From 95e7e3446d41b47c159d1620125113c565bcefbb Mon Sep 17 00:00:00 2001 From: Christian Adell Date: Mon, 24 Apr 2023 10:13:20 +0200 Subject: [PATCH] refactor: :recycle: Use public nautobot/go-nautobot client and reference @nleiva work --- GNUmakefile | 32 +- README.md | 27 +- client/go.mod | 15 - client/go.sum | 25 - client/nautobot.go | 314095 --------------- client/nautobot_test.go | 97 - client/swagger.yaml | 206454 ---------- client/types.go | 199541 --------- go.mod | 6 +- go.sum | 2 + .../provider/data_source_manufacturers.go | 2 +- internal/provider/patch.go | 2 +- internal/provider/provider.go | 2 +- internal/provider/resource_manufacturer.go | 2 +- main.go | 4 +- test/main.tf | 10 +- 16 files changed, 48 insertions(+), 720268 deletions(-) delete mode 100644 client/go.mod delete mode 100644 client/go.sum delete mode 100644 client/nautobot.go delete mode 100644 client/nautobot_test.go delete mode 100644 client/swagger.yaml delete mode 100644 client/types.go diff --git a/GNUmakefile b/GNUmakefile index 48e1dee..04d3744 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,9 +1,9 @@ TEST?=$$(go list ./... | grep -v 'vendor') HOSTNAME=github.com -NAMESPACE=nleiva +NAMESPACE=nautobot NAME=nautobot BINARY=terraform-provider-${NAME} -VERSION=0.3.3 +VERSION=0.0.1-beta OS_ARCH=$(shell go env GOOS)_$(shell go env GOARCH) @@ -30,32 +30,34 @@ install: build mkdir -p $(HOME)/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} mv ${BINARY} $(HOME)/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} -get-api: - cd client; wget https://demo.nautobot.com/api/swagger.yaml\?api_version\=1.3 -O swagger.yaml +# TODO: no need to generate client, use the one from nautobot/go-nautobot +# get-api: +# cd client; wget https://demo.nautobot.com/api/swagger.yaml\?api_version\=1.3 -O swagger.yaml -generate: get-api - cd client; oapi-codegen -generate client -o nautobot.go -package nautobot swagger.yaml && \ - oapi-codegen -generate types -o types.go -package nautobot swagger.yaml && \ - go mod tidy +# generate: get-api +# cd client; oapi-codegen -generate client -o nautobot.go -package nautobot swagger.yaml && \ +# oapi-codegen -generate types -o types.go -package nautobot swagger.yaml && \ +# go mod tidy -test: - go test -i $(TEST) || exit 1 - echo $(TEST) | xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4 +test: + go test -i $(TEST) || exit 1 + echo $(TEST) | xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4 gpg-key: gpg --armor --export-secret-key $(EMAIL) -w0 | xclip -selection clipboard -i -testacc: +testacc: TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m +# TODO: adjust install local: install - sed -i "s-/home/nleiva-${HOME}-" test/.terraform/plugin_path + # sed -i "s-/home/nleiva-${HOME}-" test/.terraform/plugin_path sed -i 's-version =.*-version = "${VERSION}"-' test/main.tf cd test; terraform init -upgrade && \ terraform apply -auto-approve; cd .. - + tag: local git add . git commit -m "Bump to version ${VERSION}" git tag -a -m "Bump to version ${VERSION}" v${VERSION} - git push --follow-tag \ No newline at end of file + git push --follow-tag diff --git a/README.md b/README.md index 8d382c9..24a28bf 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,20 @@ -# Terraform Provider Nautobot +# Terraform Provider Nautobot -Nautobot provider created for educational purposes. You can fork it for long-term development :-) +## :warning: Disclaimer :warning: + +This project is in **beta** development stage, and it's suitable to change before being released as generally available. Use it at your own discretion. ## Requirements -- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x -- [Go](https://golang.org/doc/install) >= 1.20 +- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x +- [Go](https://golang.org/doc/install) >= 1.20 ## Building The Provider 1. Clone the repository 2. Enter the repository directory -3. Build the provider using the `make` command: +3. Build the provider using the `make` command: + ```sh $ make install ``` @@ -32,16 +35,14 @@ Then commit the changes to `go.mod` and `go.sum`. ## Using the provider - The provide takes two arguments, `url` and `token`. For the data sources and resources supported, take a look at the [internal/provider](internal/provider) folder. In the next example, we capture the data of all manufacturers and create a new manufacturer "Vendor I". - ```hcl terraform { required_providers { nautobot = { - version = "0.3.3" - source = "nleiva/nautobot" + version = "0.0.1-beta" + source = "nautobot/nautobot" } } } @@ -63,15 +64,19 @@ resource "nautobot_manufacturer" "new" { If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (see [Requirements](#requirements) above). -There are a few make tagets you can leverage you can leverage: +There are a few make targets you can leverage: - `make install`: To compile the provider. - `go generate ./...`: To generate or update documentation. - `make local`: Test local version of the provider. - `make testacc`: To run the full suite of Acceptance tests. -*Note:* Acceptance tests create real resources, and often cost money to run. +_Note:_ Acceptance tests create real resources, and often cost money to run. ```sh $ make testacc ``` + +## Credits + +This [project](https://github.com/nleiva/terraform-provider-nautobot) started as an exercise for educational purposes by @nleiva during the development of his book "Network Automation with Go". Thank you Nicolas for your effort and collaboration! diff --git a/client/go.mod b/client/go.mod deleted file mode 100644 index 78f832c..0000000 --- a/client/go.mod +++ /dev/null @@ -1,15 +0,0 @@ -module github.com/nautobot/go-nautobot - -go 1.20 - -require ( - github.com/deepmap/oapi-codegen v1.12.4 - github.com/tidwall/gjson v1.14.4 -) - -require ( - github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/tidwall/match v1.1.1 // indirect - github.com/tidwall/pretty v1.2.1 // indirect -) diff --git a/client/go.sum b/client/go.sum deleted file mode 100644 index 9a9c59d..0000000 --- a/client/go.sum +++ /dev/null @@ -1,25 +0,0 @@ -github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk= -github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= -github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= -github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/deepmap/oapi-codegen v1.12.4 h1:pPmn6qI9MuOtCz82WY2Xaw46EQjgvxednXXrP7g5Q2s= -github.com/deepmap/oapi-codegen v1.12.4/go.mod h1:3lgHGMu6myQ2vqbbTXH2H1o4eXFTGnFiDaOaKKl5yas= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= -github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= -github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= -github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/client/nautobot.go b/client/nautobot.go deleted file mode 100644 index 80d8da3..0000000 --- a/client/nautobot.go +++ /dev/null @@ -1,314095 +0,0 @@ -// Package nautobot provides primitives to interact with the openapi HTTP API. -// -// Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT. -package nautobot - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - "io" - "net/http" - "net/url" - "strings" - - "github.com/deepmap/oapi-codegen/pkg/runtime" - openapi_types "github.com/deepmap/oapi-codegen/pkg/types" -) - -// RequestEditorFn is the function signature for the RequestEditor callback function -type RequestEditorFn func(ctx context.Context, req *http.Request) error - -// Doer performs HTTP requests. -// -// The standard http.Client implements this interface. -type HttpRequestDoer interface { - Do(req *http.Request) (*http.Response, error) -} - -// Client which conforms to the OpenAPI3 specification for this service. -type Client struct { - // The endpoint of the server conforming to this interface, with scheme, - // https://api.deepmap.com for example. This can contain a path relative - // to the server, such as https://api.deepmap.com/dev-test, and all the - // paths in the swagger spec will be appended to the server. - Server string - - // Doer for performing requests, typically a *http.Client with any - // customized settings, such as certificate chains. - Client HttpRequestDoer - - // A list of callbacks for modifying requests which are generated before sending over - // the network. - RequestEditors []RequestEditorFn -} - -// ClientOption allows setting custom parameters during construction -type ClientOption func(*Client) error - -// Creates a new Client, with reasonable defaults -func NewClient(server string, opts ...ClientOption) (*Client, error) { - // create a client with sane default values - client := Client{ - Server: server, - } - // mutate client and add all optional params - for _, o := range opts { - if err := o(&client); err != nil { - return nil, err - } - } - // ensure the server URL always has a trailing slash - if !strings.HasSuffix(client.Server, "/") { - client.Server += "/" - } - // create httpClient, if not already present - if client.Client == nil { - client.Client = &http.Client{} - } - return &client, nil -} - -// WithHTTPClient allows overriding the default Doer, which is -// automatically created using http.Client. This is useful for tests. -func WithHTTPClient(doer HttpRequestDoer) ClientOption { - return func(c *Client) error { - c.Client = doer - return nil - } -} - -// WithRequestEditorFn allows setting up a callback function, which will be -// called right before sending the request. This can be used to mutate the request. -func WithRequestEditorFn(fn RequestEditorFn) ClientOption { - return func(c *Client) error { - c.RequestEditors = append(c.RequestEditors, fn) - return nil - } -} - -// The interface specification for the client above. -type ClientInterface interface { - // CircuitsCircuitTerminationsBulkDestroy request with any body - CircuitsCircuitTerminationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTerminationsBulkDestroy(ctx context.Context, body CircuitsCircuitTerminationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsList request - CircuitsCircuitTerminationsList(ctx context.Context, params *CircuitsCircuitTerminationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsBulkPartialUpdate request with any body - CircuitsCircuitTerminationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context, body CircuitsCircuitTerminationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsCreate request with any body - CircuitsCircuitTerminationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTerminationsCreate(ctx context.Context, body CircuitsCircuitTerminationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsBulkUpdate request with any body - CircuitsCircuitTerminationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTerminationsBulkUpdate(ctx context.Context, body CircuitsCircuitTerminationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsDestroy request - CircuitsCircuitTerminationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsRetrieve request - CircuitsCircuitTerminationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsPartialUpdate request with any body - CircuitsCircuitTerminationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsUpdate request with any body - CircuitsCircuitTerminationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTerminationsUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsNotesList request - CircuitsCircuitTerminationsNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTerminationsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsNotesCreate request with any body - CircuitsCircuitTerminationsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTerminationsNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTerminationsTraceRetrieve request - CircuitsCircuitTerminationsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesBulkDestroy request with any body - CircuitsCircuitTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTypesBulkDestroy(ctx context.Context, body CircuitsCircuitTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesList request - CircuitsCircuitTypesList(ctx context.Context, params *CircuitsCircuitTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesBulkPartialUpdate request with any body - CircuitsCircuitTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context, body CircuitsCircuitTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesCreate request with any body - CircuitsCircuitTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTypesCreate(ctx context.Context, body CircuitsCircuitTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesBulkUpdate request with any body - CircuitsCircuitTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTypesBulkUpdate(ctx context.Context, body CircuitsCircuitTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesDestroy request - CircuitsCircuitTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesRetrieve request - CircuitsCircuitTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesPartialUpdate request with any body - CircuitsCircuitTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesUpdate request with any body - CircuitsCircuitTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTypesUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesNotesList request - CircuitsCircuitTypesNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitTypesNotesCreate request with any body - CircuitsCircuitTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsBulkDestroy request with any body - CircuitsCircuitsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitsBulkDestroy(ctx context.Context, body CircuitsCircuitsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsList request - CircuitsCircuitsList(ctx context.Context, params *CircuitsCircuitsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsBulkPartialUpdate request with any body - CircuitsCircuitsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitsBulkPartialUpdate(ctx context.Context, body CircuitsCircuitsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsCreate request with any body - CircuitsCircuitsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitsCreate(ctx context.Context, body CircuitsCircuitsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsBulkUpdate request with any body - CircuitsCircuitsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitsBulkUpdate(ctx context.Context, body CircuitsCircuitsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsDestroy request - CircuitsCircuitsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsRetrieve request - CircuitsCircuitsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsPartialUpdate request with any body - CircuitsCircuitsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitsPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsUpdate request with any body - CircuitsCircuitsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitsUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsNotesList request - CircuitsCircuitsNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsCircuitsNotesCreate request with any body - CircuitsCircuitsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsCircuitsNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksBulkDestroy request with any body - CircuitsProviderNetworksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProviderNetworksBulkDestroy(ctx context.Context, body CircuitsProviderNetworksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksList request - CircuitsProviderNetworksList(ctx context.Context, params *CircuitsProviderNetworksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksBulkPartialUpdate request with any body - CircuitsProviderNetworksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context, body CircuitsProviderNetworksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksCreate request with any body - CircuitsProviderNetworksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProviderNetworksCreate(ctx context.Context, body CircuitsProviderNetworksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksBulkUpdate request with any body - CircuitsProviderNetworksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProviderNetworksBulkUpdate(ctx context.Context, body CircuitsProviderNetworksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksDestroy request - CircuitsProviderNetworksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksRetrieve request - CircuitsProviderNetworksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksPartialUpdate request with any body - CircuitsProviderNetworksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProviderNetworksPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksUpdate request with any body - CircuitsProviderNetworksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProviderNetworksUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksNotesList request - CircuitsProviderNetworksNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsProviderNetworksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProviderNetworksNotesCreate request with any body - CircuitsProviderNetworksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProviderNetworksNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersBulkDestroy request with any body - CircuitsProvidersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProvidersBulkDestroy(ctx context.Context, body CircuitsProvidersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersList request - CircuitsProvidersList(ctx context.Context, params *CircuitsProvidersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersBulkPartialUpdate request with any body - CircuitsProvidersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProvidersBulkPartialUpdate(ctx context.Context, body CircuitsProvidersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersCreate request with any body - CircuitsProvidersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProvidersCreate(ctx context.Context, body CircuitsProvidersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersBulkUpdate request with any body - CircuitsProvidersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProvidersBulkUpdate(ctx context.Context, body CircuitsProvidersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersDestroy request - CircuitsProvidersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersRetrieve request - CircuitsProvidersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersPartialUpdate request with any body - CircuitsProvidersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProvidersPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersUpdate request with any body - CircuitsProvidersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProvidersUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersNotesList request - CircuitsProvidersNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsProvidersNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CircuitsProvidersNotesCreate request with any body - CircuitsProvidersNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CircuitsProvidersNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesBulkDestroy request with any body - DcimCablesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimCablesBulkDestroy(ctx context.Context, body DcimCablesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesList request - DcimCablesList(ctx context.Context, params *DcimCablesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesBulkPartialUpdate request with any body - DcimCablesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimCablesBulkPartialUpdate(ctx context.Context, body DcimCablesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesCreate request with any body - DcimCablesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimCablesCreate(ctx context.Context, body DcimCablesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesBulkUpdate request with any body - DcimCablesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimCablesBulkUpdate(ctx context.Context, body DcimCablesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesDestroy request - DcimCablesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesRetrieve request - DcimCablesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesPartialUpdate request with any body - DcimCablesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimCablesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimCablesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesUpdate request with any body - DcimCablesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimCablesUpdate(ctx context.Context, id openapi_types.UUID, body DcimCablesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesNotesList request - DcimCablesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimCablesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimCablesNotesCreate request with any body - DcimCablesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimCablesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimCablesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConnectedDeviceList request - DcimConnectedDeviceList(ctx context.Context, params *DcimConnectedDeviceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleConnectionsList request - DcimConsoleConnectionsList(ctx context.Context, params *DcimConsoleConnectionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesBulkDestroy request with any body - DcimConsolePortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortTemplatesBulkDestroy(ctx context.Context, body DcimConsolePortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesList request - DcimConsolePortTemplatesList(ctx context.Context, params *DcimConsolePortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesBulkPartialUpdate request with any body - DcimConsolePortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context, body DcimConsolePortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesCreate request with any body - DcimConsolePortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortTemplatesCreate(ctx context.Context, body DcimConsolePortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesBulkUpdate request with any body - DcimConsolePortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortTemplatesBulkUpdate(ctx context.Context, body DcimConsolePortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesDestroy request - DcimConsolePortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesRetrieve request - DcimConsolePortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesPartialUpdate request with any body - DcimConsolePortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesUpdate request with any body - DcimConsolePortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesNotesList request - DcimConsolePortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortTemplatesNotesCreate request with any body - DcimConsolePortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsBulkDestroy request with any body - DcimConsolePortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortsBulkDestroy(ctx context.Context, body DcimConsolePortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsList request - DcimConsolePortsList(ctx context.Context, params *DcimConsolePortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsBulkPartialUpdate request with any body - DcimConsolePortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortsBulkPartialUpdate(ctx context.Context, body DcimConsolePortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsCreate request with any body - DcimConsolePortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortsCreate(ctx context.Context, body DcimConsolePortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsBulkUpdate request with any body - DcimConsolePortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortsBulkUpdate(ctx context.Context, body DcimConsolePortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsDestroy request - DcimConsolePortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsRetrieve request - DcimConsolePortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsPartialUpdate request with any body - DcimConsolePortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsUpdate request with any body - DcimConsolePortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsNotesList request - DcimConsolePortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsNotesCreate request with any body - DcimConsolePortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsolePortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsolePortsTraceRetrieve request - DcimConsolePortsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesBulkDestroy request with any body - DcimConsoleServerPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context, body DcimConsoleServerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesList request - DcimConsoleServerPortTemplatesList(ctx context.Context, params *DcimConsoleServerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesBulkPartialUpdate request with any body - DcimConsoleServerPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimConsoleServerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesCreate request with any body - DcimConsoleServerPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortTemplatesCreate(ctx context.Context, body DcimConsoleServerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesBulkUpdate request with any body - DcimConsoleServerPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context, body DcimConsoleServerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesDestroy request - DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesRetrieve request - DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesPartialUpdate request with any body - DcimConsoleServerPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesUpdate request with any body - DcimConsoleServerPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesNotesList request - DcimConsoleServerPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortTemplatesNotesCreate request with any body - DcimConsoleServerPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsBulkDestroy request with any body - DcimConsoleServerPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortsBulkDestroy(ctx context.Context, body DcimConsoleServerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsList request - DcimConsoleServerPortsList(ctx context.Context, params *DcimConsoleServerPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsBulkPartialUpdate request with any body - DcimConsoleServerPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context, body DcimConsoleServerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsCreate request with any body - DcimConsoleServerPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortsCreate(ctx context.Context, body DcimConsoleServerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsBulkUpdate request with any body - DcimConsoleServerPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortsBulkUpdate(ctx context.Context, body DcimConsoleServerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsDestroy request - DcimConsoleServerPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsRetrieve request - DcimConsoleServerPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsPartialUpdate request with any body - DcimConsoleServerPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsUpdate request with any body - DcimConsoleServerPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsNotesList request - DcimConsoleServerPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsNotesCreate request with any body - DcimConsoleServerPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimConsoleServerPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimConsoleServerPortsTraceRetrieve request - DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesBulkDestroy request with any body - DcimDeviceBayTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBayTemplatesBulkDestroy(ctx context.Context, body DcimDeviceBayTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesList request - DcimDeviceBayTemplatesList(ctx context.Context, params *DcimDeviceBayTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesBulkPartialUpdate request with any body - DcimDeviceBayTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context, body DcimDeviceBayTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesCreate request with any body - DcimDeviceBayTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBayTemplatesCreate(ctx context.Context, body DcimDeviceBayTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesBulkUpdate request with any body - DcimDeviceBayTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBayTemplatesBulkUpdate(ctx context.Context, body DcimDeviceBayTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesDestroy request - DcimDeviceBayTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesRetrieve request - DcimDeviceBayTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesPartialUpdate request with any body - DcimDeviceBayTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesUpdate request with any body - DcimDeviceBayTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBayTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesNotesList request - DcimDeviceBayTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBayTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBayTemplatesNotesCreate request with any body - DcimDeviceBayTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBayTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysBulkDestroy request with any body - DcimDeviceBaysBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBaysBulkDestroy(ctx context.Context, body DcimDeviceBaysBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysList request - DcimDeviceBaysList(ctx context.Context, params *DcimDeviceBaysListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysBulkPartialUpdate request with any body - DcimDeviceBaysBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBaysBulkPartialUpdate(ctx context.Context, body DcimDeviceBaysBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysCreate request with any body - DcimDeviceBaysCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBaysCreate(ctx context.Context, body DcimDeviceBaysCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysBulkUpdate request with any body - DcimDeviceBaysBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBaysBulkUpdate(ctx context.Context, body DcimDeviceBaysBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysDestroy request - DcimDeviceBaysDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysRetrieve request - DcimDeviceBaysRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysPartialUpdate request with any body - DcimDeviceBaysPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBaysPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysUpdate request with any body - DcimDeviceBaysUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBaysUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysNotesList request - DcimDeviceBaysNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBaysNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceBaysNotesCreate request with any body - DcimDeviceBaysNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceBaysNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsBulkDestroy request with any body - DcimDeviceRedundancyGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRedundancyGroupsBulkDestroy(ctx context.Context, body DcimDeviceRedundancyGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsList request - DcimDeviceRedundancyGroupsList(ctx context.Context, params *DcimDeviceRedundancyGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsBulkPartialUpdate request with any body - DcimDeviceRedundancyGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRedundancyGroupsBulkPartialUpdate(ctx context.Context, body DcimDeviceRedundancyGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsCreate request with any body - DcimDeviceRedundancyGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRedundancyGroupsCreate(ctx context.Context, body DcimDeviceRedundancyGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsBulkUpdate request with any body - DcimDeviceRedundancyGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRedundancyGroupsBulkUpdate(ctx context.Context, body DcimDeviceRedundancyGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsDestroy request - DcimDeviceRedundancyGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsRetrieve request - DcimDeviceRedundancyGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsPartialUpdate request with any body - DcimDeviceRedundancyGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRedundancyGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsUpdate request with any body - DcimDeviceRedundancyGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRedundancyGroupsUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsNotesList request - DcimDeviceRedundancyGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRedundancyGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRedundancyGroupsNotesCreate request with any body - DcimDeviceRedundancyGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRedundancyGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesBulkDestroy request with any body - DcimDeviceRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRolesBulkDestroy(ctx context.Context, body DcimDeviceRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesList request - DcimDeviceRolesList(ctx context.Context, params *DcimDeviceRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesBulkPartialUpdate request with any body - DcimDeviceRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRolesBulkPartialUpdate(ctx context.Context, body DcimDeviceRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesCreate request with any body - DcimDeviceRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRolesCreate(ctx context.Context, body DcimDeviceRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesBulkUpdate request with any body - DcimDeviceRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRolesBulkUpdate(ctx context.Context, body DcimDeviceRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesDestroy request - DcimDeviceRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesRetrieve request - DcimDeviceRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesPartialUpdate request with any body - DcimDeviceRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesUpdate request with any body - DcimDeviceRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRolesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesNotesList request - DcimDeviceRolesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRolesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceRolesNotesCreate request with any body - DcimDeviceRolesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceRolesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesBulkDestroy request with any body - DcimDeviceTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceTypesBulkDestroy(ctx context.Context, body DcimDeviceTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesList request - DcimDeviceTypesList(ctx context.Context, params *DcimDeviceTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesBulkPartialUpdate request with any body - DcimDeviceTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceTypesBulkPartialUpdate(ctx context.Context, body DcimDeviceTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesCreate request with any body - DcimDeviceTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceTypesCreate(ctx context.Context, body DcimDeviceTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesBulkUpdate request with any body - DcimDeviceTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceTypesBulkUpdate(ctx context.Context, body DcimDeviceTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesDestroy request - DcimDeviceTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesRetrieve request - DcimDeviceTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesPartialUpdate request with any body - DcimDeviceTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesUpdate request with any body - DcimDeviceTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceTypesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesNotesList request - DcimDeviceTypesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDeviceTypesNotesCreate request with any body - DcimDeviceTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDeviceTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesBulkDestroy request with any body - DcimDevicesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDevicesBulkDestroy(ctx context.Context, body DcimDevicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesList request - DcimDevicesList(ctx context.Context, params *DcimDevicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesBulkPartialUpdate request with any body - DcimDevicesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDevicesBulkPartialUpdate(ctx context.Context, body DcimDevicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesCreate request with any body - DcimDevicesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDevicesCreate(ctx context.Context, body DcimDevicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesBulkUpdate request with any body - DcimDevicesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDevicesBulkUpdate(ctx context.Context, body DcimDevicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesDestroy request - DcimDevicesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesRetrieve request - DcimDevicesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesPartialUpdate request with any body - DcimDevicesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDevicesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDevicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesUpdate request with any body - DcimDevicesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDevicesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDevicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesNapalmRetrieve request - DcimDevicesNapalmRetrieve(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNapalmRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesNotesList request - DcimDevicesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimDevicesNotesCreate request with any body - DcimDevicesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimDevicesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDevicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesBulkDestroy request with any body - DcimFrontPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortTemplatesBulkDestroy(ctx context.Context, body DcimFrontPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesList request - DcimFrontPortTemplatesList(ctx context.Context, params *DcimFrontPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesBulkPartialUpdate request with any body - DcimFrontPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimFrontPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesCreate request with any body - DcimFrontPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortTemplatesCreate(ctx context.Context, body DcimFrontPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesBulkUpdate request with any body - DcimFrontPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortTemplatesBulkUpdate(ctx context.Context, body DcimFrontPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesDestroy request - DcimFrontPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesRetrieve request - DcimFrontPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesPartialUpdate request with any body - DcimFrontPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesUpdate request with any body - DcimFrontPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesNotesList request - DcimFrontPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortTemplatesNotesCreate request with any body - DcimFrontPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsBulkDestroy request with any body - DcimFrontPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortsBulkDestroy(ctx context.Context, body DcimFrontPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsList request - DcimFrontPortsList(ctx context.Context, params *DcimFrontPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsBulkPartialUpdate request with any body - DcimFrontPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortsBulkPartialUpdate(ctx context.Context, body DcimFrontPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsCreate request with any body - DcimFrontPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortsCreate(ctx context.Context, body DcimFrontPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsBulkUpdate request with any body - DcimFrontPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortsBulkUpdate(ctx context.Context, body DcimFrontPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsDestroy request - DcimFrontPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsRetrieve request - DcimFrontPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsPartialUpdate request with any body - DcimFrontPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsUpdate request with any body - DcimFrontPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsNotesList request - DcimFrontPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsNotesCreate request with any body - DcimFrontPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimFrontPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimFrontPortsPathsRetrieve request - DcimFrontPortsPathsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceConnectionsList request - DcimInterfaceConnectionsList(ctx context.Context, params *DcimInterfaceConnectionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesBulkDestroy request with any body - DcimInterfaceTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfaceTemplatesBulkDestroy(ctx context.Context, body DcimInterfaceTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesList request - DcimInterfaceTemplatesList(ctx context.Context, params *DcimInterfaceTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesBulkPartialUpdate request with any body - DcimInterfaceTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context, body DcimInterfaceTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesCreate request with any body - DcimInterfaceTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfaceTemplatesCreate(ctx context.Context, body DcimInterfaceTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesBulkUpdate request with any body - DcimInterfaceTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfaceTemplatesBulkUpdate(ctx context.Context, body DcimInterfaceTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesDestroy request - DcimInterfaceTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesRetrieve request - DcimInterfaceTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesPartialUpdate request with any body - DcimInterfaceTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesUpdate request with any body - DcimInterfaceTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfaceTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesNotesList request - DcimInterfaceTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimInterfaceTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfaceTemplatesNotesCreate request with any body - DcimInterfaceTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfaceTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesBulkDestroy request with any body - DcimInterfacesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfacesBulkDestroy(ctx context.Context, body DcimInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesList request - DcimInterfacesList(ctx context.Context, params *DcimInterfacesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesBulkPartialUpdate request with any body - DcimInterfacesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfacesBulkPartialUpdate(ctx context.Context, body DcimInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesCreate request with any body - DcimInterfacesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfacesCreate(ctx context.Context, body DcimInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesBulkUpdate request with any body - DcimInterfacesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfacesBulkUpdate(ctx context.Context, body DcimInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesDestroy request - DcimInterfacesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesRetrieve request - DcimInterfacesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesPartialUpdate request with any body - DcimInterfacesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfacesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesUpdate request with any body - DcimInterfacesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfacesUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesNotesList request - DcimInterfacesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesNotesCreate request with any body - DcimInterfacesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInterfacesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInterfacesTraceRetrieve request - DcimInterfacesTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsBulkDestroy request with any body - DcimInventoryItemsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInventoryItemsBulkDestroy(ctx context.Context, body DcimInventoryItemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsList request - DcimInventoryItemsList(ctx context.Context, params *DcimInventoryItemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsBulkPartialUpdate request with any body - DcimInventoryItemsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInventoryItemsBulkPartialUpdate(ctx context.Context, body DcimInventoryItemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsCreate request with any body - DcimInventoryItemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInventoryItemsCreate(ctx context.Context, body DcimInventoryItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsBulkUpdate request with any body - DcimInventoryItemsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInventoryItemsBulkUpdate(ctx context.Context, body DcimInventoryItemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsDestroy request - DcimInventoryItemsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsRetrieve request - DcimInventoryItemsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsPartialUpdate request with any body - DcimInventoryItemsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInventoryItemsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsUpdate request with any body - DcimInventoryItemsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInventoryItemsUpdate(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsNotesList request - DcimInventoryItemsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimInventoryItemsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimInventoryItemsNotesCreate request with any body - DcimInventoryItemsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimInventoryItemsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesBulkDestroy request with any body - DcimLocationTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationTypesBulkDestroy(ctx context.Context, body DcimLocationTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesList request - DcimLocationTypesList(ctx context.Context, params *DcimLocationTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesBulkPartialUpdate request with any body - DcimLocationTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationTypesBulkPartialUpdate(ctx context.Context, body DcimLocationTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesCreate request with any body - DcimLocationTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationTypesCreate(ctx context.Context, body DcimLocationTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesBulkUpdate request with any body - DcimLocationTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationTypesBulkUpdate(ctx context.Context, body DcimLocationTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesDestroy request - DcimLocationTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesRetrieve request - DcimLocationTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesPartialUpdate request with any body - DcimLocationTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesUpdate request with any body - DcimLocationTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationTypesUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesNotesList request - DcimLocationTypesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimLocationTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationTypesNotesCreate request with any body - DcimLocationTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsBulkDestroy request with any body - DcimLocationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationsBulkDestroy(ctx context.Context, body DcimLocationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsList request - DcimLocationsList(ctx context.Context, params *DcimLocationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsBulkPartialUpdate request with any body - DcimLocationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationsBulkPartialUpdate(ctx context.Context, body DcimLocationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsCreate request with any body - DcimLocationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationsCreate(ctx context.Context, body DcimLocationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsBulkUpdate request with any body - DcimLocationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationsBulkUpdate(ctx context.Context, body DcimLocationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsDestroy request - DcimLocationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsRetrieve request - DcimLocationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsPartialUpdate request with any body - DcimLocationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsUpdate request with any body - DcimLocationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationsUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsNotesList request - DcimLocationsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimLocationsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimLocationsNotesCreate request with any body - DcimLocationsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimLocationsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimLocationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersBulkDestroy request with any body - DcimManufacturersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimManufacturersBulkDestroy(ctx context.Context, body DcimManufacturersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersList request - DcimManufacturersList(ctx context.Context, params *DcimManufacturersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersBulkPartialUpdate request with any body - DcimManufacturersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimManufacturersBulkPartialUpdate(ctx context.Context, body DcimManufacturersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersCreate request with any body - DcimManufacturersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimManufacturersCreate(ctx context.Context, body DcimManufacturersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersBulkUpdate request with any body - DcimManufacturersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimManufacturersBulkUpdate(ctx context.Context, body DcimManufacturersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersDestroy request - DcimManufacturersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersRetrieve request - DcimManufacturersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersPartialUpdate request with any body - DcimManufacturersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimManufacturersPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimManufacturersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersUpdate request with any body - DcimManufacturersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimManufacturersUpdate(ctx context.Context, id openapi_types.UUID, body DcimManufacturersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersNotesList request - DcimManufacturersNotesList(ctx context.Context, id openapi_types.UUID, params *DcimManufacturersNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimManufacturersNotesCreate request with any body - DcimManufacturersNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimManufacturersNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimManufacturersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsBulkDestroy request with any body - DcimPlatformsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPlatformsBulkDestroy(ctx context.Context, body DcimPlatformsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsList request - DcimPlatformsList(ctx context.Context, params *DcimPlatformsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsBulkPartialUpdate request with any body - DcimPlatformsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPlatformsBulkPartialUpdate(ctx context.Context, body DcimPlatformsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsCreate request with any body - DcimPlatformsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPlatformsCreate(ctx context.Context, body DcimPlatformsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsBulkUpdate request with any body - DcimPlatformsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPlatformsBulkUpdate(ctx context.Context, body DcimPlatformsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsDestroy request - DcimPlatformsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsRetrieve request - DcimPlatformsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsPartialUpdate request with any body - DcimPlatformsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPlatformsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPlatformsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsUpdate request with any body - DcimPlatformsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPlatformsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPlatformsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsNotesList request - DcimPlatformsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPlatformsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPlatformsNotesCreate request with any body - DcimPlatformsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPlatformsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPlatformsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerConnectionsList request - DcimPowerConnectionsList(ctx context.Context, params *DcimPowerConnectionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsBulkDestroy request with any body - DcimPowerFeedsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerFeedsBulkDestroy(ctx context.Context, body DcimPowerFeedsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsList request - DcimPowerFeedsList(ctx context.Context, params *DcimPowerFeedsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsBulkPartialUpdate request with any body - DcimPowerFeedsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerFeedsBulkPartialUpdate(ctx context.Context, body DcimPowerFeedsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsCreate request with any body - DcimPowerFeedsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerFeedsCreate(ctx context.Context, body DcimPowerFeedsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsBulkUpdate request with any body - DcimPowerFeedsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerFeedsBulkUpdate(ctx context.Context, body DcimPowerFeedsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsDestroy request - DcimPowerFeedsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsRetrieve request - DcimPowerFeedsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsPartialUpdate request with any body - DcimPowerFeedsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerFeedsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsUpdate request with any body - DcimPowerFeedsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerFeedsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsNotesList request - DcimPowerFeedsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerFeedsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsNotesCreate request with any body - DcimPowerFeedsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerFeedsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerFeedsTraceRetrieve request - DcimPowerFeedsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesBulkDestroy request with any body - DcimPowerOutletTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletTemplatesBulkDestroy(ctx context.Context, body DcimPowerOutletTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesList request - DcimPowerOutletTemplatesList(ctx context.Context, params *DcimPowerOutletTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesBulkPartialUpdate request with any body - DcimPowerOutletTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context, body DcimPowerOutletTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesCreate request with any body - DcimPowerOutletTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletTemplatesCreate(ctx context.Context, body DcimPowerOutletTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesBulkUpdate request with any body - DcimPowerOutletTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletTemplatesBulkUpdate(ctx context.Context, body DcimPowerOutletTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesDestroy request - DcimPowerOutletTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesRetrieve request - DcimPowerOutletTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesPartialUpdate request with any body - DcimPowerOutletTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesUpdate request with any body - DcimPowerOutletTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesNotesList request - DcimPowerOutletTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletTemplatesNotesCreate request with any body - DcimPowerOutletTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsBulkDestroy request with any body - DcimPowerOutletsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletsBulkDestroy(ctx context.Context, body DcimPowerOutletsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsList request - DcimPowerOutletsList(ctx context.Context, params *DcimPowerOutletsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsBulkPartialUpdate request with any body - DcimPowerOutletsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletsBulkPartialUpdate(ctx context.Context, body DcimPowerOutletsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsCreate request with any body - DcimPowerOutletsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletsCreate(ctx context.Context, body DcimPowerOutletsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsBulkUpdate request with any body - DcimPowerOutletsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletsBulkUpdate(ctx context.Context, body DcimPowerOutletsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsDestroy request - DcimPowerOutletsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsRetrieve request - DcimPowerOutletsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsPartialUpdate request with any body - DcimPowerOutletsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsUpdate request with any body - DcimPowerOutletsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsNotesList request - DcimPowerOutletsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsNotesCreate request with any body - DcimPowerOutletsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerOutletsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerOutletsTraceRetrieve request - DcimPowerOutletsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsBulkDestroy request with any body - DcimPowerPanelsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPanelsBulkDestroy(ctx context.Context, body DcimPowerPanelsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsList request - DcimPowerPanelsList(ctx context.Context, params *DcimPowerPanelsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsBulkPartialUpdate request with any body - DcimPowerPanelsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPanelsBulkPartialUpdate(ctx context.Context, body DcimPowerPanelsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsCreate request with any body - DcimPowerPanelsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPanelsCreate(ctx context.Context, body DcimPowerPanelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsBulkUpdate request with any body - DcimPowerPanelsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPanelsBulkUpdate(ctx context.Context, body DcimPowerPanelsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsDestroy request - DcimPowerPanelsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsRetrieve request - DcimPowerPanelsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsPartialUpdate request with any body - DcimPowerPanelsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPanelsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsUpdate request with any body - DcimPowerPanelsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPanelsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsNotesList request - DcimPowerPanelsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerPanelsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPanelsNotesCreate request with any body - DcimPowerPanelsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPanelsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesBulkDestroy request with any body - DcimPowerPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortTemplatesBulkDestroy(ctx context.Context, body DcimPowerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesList request - DcimPowerPortTemplatesList(ctx context.Context, params *DcimPowerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesBulkPartialUpdate request with any body - DcimPowerPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimPowerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesCreate request with any body - DcimPowerPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortTemplatesCreate(ctx context.Context, body DcimPowerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesBulkUpdate request with any body - DcimPowerPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortTemplatesBulkUpdate(ctx context.Context, body DcimPowerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesDestroy request - DcimPowerPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesRetrieve request - DcimPowerPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesPartialUpdate request with any body - DcimPowerPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesUpdate request with any body - DcimPowerPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesNotesList request - DcimPowerPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortTemplatesNotesCreate request with any body - DcimPowerPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsBulkDestroy request with any body - DcimPowerPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortsBulkDestroy(ctx context.Context, body DcimPowerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsList request - DcimPowerPortsList(ctx context.Context, params *DcimPowerPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsBulkPartialUpdate request with any body - DcimPowerPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortsBulkPartialUpdate(ctx context.Context, body DcimPowerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsCreate request with any body - DcimPowerPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortsCreate(ctx context.Context, body DcimPowerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsBulkUpdate request with any body - DcimPowerPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortsBulkUpdate(ctx context.Context, body DcimPowerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsDestroy request - DcimPowerPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsRetrieve request - DcimPowerPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsPartialUpdate request with any body - DcimPowerPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsUpdate request with any body - DcimPowerPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsNotesList request - DcimPowerPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsNotesCreate request with any body - DcimPowerPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimPowerPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimPowerPortsTraceRetrieve request - DcimPowerPortsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsBulkDestroy request with any body - DcimRackGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackGroupsBulkDestroy(ctx context.Context, body DcimRackGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsList request - DcimRackGroupsList(ctx context.Context, params *DcimRackGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsBulkPartialUpdate request with any body - DcimRackGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackGroupsBulkPartialUpdate(ctx context.Context, body DcimRackGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsCreate request with any body - DcimRackGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackGroupsCreate(ctx context.Context, body DcimRackGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsBulkUpdate request with any body - DcimRackGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackGroupsBulkUpdate(ctx context.Context, body DcimRackGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsDestroy request - DcimRackGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsRetrieve request - DcimRackGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsPartialUpdate request with any body - DcimRackGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsUpdate request with any body - DcimRackGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackGroupsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsNotesList request - DcimRackGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRackGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackGroupsNotesCreate request with any body - DcimRackGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsBulkDestroy request with any body - DcimRackReservationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackReservationsBulkDestroy(ctx context.Context, body DcimRackReservationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsList request - DcimRackReservationsList(ctx context.Context, params *DcimRackReservationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsBulkPartialUpdate request with any body - DcimRackReservationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackReservationsBulkPartialUpdate(ctx context.Context, body DcimRackReservationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsCreate request with any body - DcimRackReservationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackReservationsCreate(ctx context.Context, body DcimRackReservationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsBulkUpdate request with any body - DcimRackReservationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackReservationsBulkUpdate(ctx context.Context, body DcimRackReservationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsDestroy request - DcimRackReservationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsRetrieve request - DcimRackReservationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsPartialUpdate request with any body - DcimRackReservationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackReservationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsUpdate request with any body - DcimRackReservationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackReservationsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsNotesList request - DcimRackReservationsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRackReservationsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackReservationsNotesCreate request with any body - DcimRackReservationsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackReservationsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesBulkDestroy request with any body - DcimRackRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackRolesBulkDestroy(ctx context.Context, body DcimRackRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesList request - DcimRackRolesList(ctx context.Context, params *DcimRackRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesBulkPartialUpdate request with any body - DcimRackRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackRolesBulkPartialUpdate(ctx context.Context, body DcimRackRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesCreate request with any body - DcimRackRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackRolesCreate(ctx context.Context, body DcimRackRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesBulkUpdate request with any body - DcimRackRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackRolesBulkUpdate(ctx context.Context, body DcimRackRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesDestroy request - DcimRackRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesRetrieve request - DcimRackRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesPartialUpdate request with any body - DcimRackRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesUpdate request with any body - DcimRackRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackRolesUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesNotesList request - DcimRackRolesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRackRolesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRackRolesNotesCreate request with any body - DcimRackRolesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRackRolesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRackRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksBulkDestroy request with any body - DcimRacksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRacksBulkDestroy(ctx context.Context, body DcimRacksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksList request - DcimRacksList(ctx context.Context, params *DcimRacksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksBulkPartialUpdate request with any body - DcimRacksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRacksBulkPartialUpdate(ctx context.Context, body DcimRacksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksCreate request with any body - DcimRacksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRacksCreate(ctx context.Context, body DcimRacksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksBulkUpdate request with any body - DcimRacksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRacksBulkUpdate(ctx context.Context, body DcimRacksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksDestroy request - DcimRacksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksRetrieve request - DcimRacksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksPartialUpdate request with any body - DcimRacksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRacksPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRacksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksUpdate request with any body - DcimRacksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRacksUpdate(ctx context.Context, id openapi_types.UUID, body DcimRacksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksElevationList request - DcimRacksElevationList(ctx context.Context, id openapi_types.UUID, params *DcimRacksElevationListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksNotesList request - DcimRacksNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRacksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRacksNotesCreate request with any body - DcimRacksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRacksNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRacksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesBulkDestroy request with any body - DcimRearPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortTemplatesBulkDestroy(ctx context.Context, body DcimRearPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesList request - DcimRearPortTemplatesList(ctx context.Context, params *DcimRearPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesBulkPartialUpdate request with any body - DcimRearPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimRearPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesCreate request with any body - DcimRearPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortTemplatesCreate(ctx context.Context, body DcimRearPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesBulkUpdate request with any body - DcimRearPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortTemplatesBulkUpdate(ctx context.Context, body DcimRearPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesDestroy request - DcimRearPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesRetrieve request - DcimRearPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesPartialUpdate request with any body - DcimRearPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesUpdate request with any body - DcimRearPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesNotesList request - DcimRearPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRearPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortTemplatesNotesCreate request with any body - DcimRearPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsBulkDestroy request with any body - DcimRearPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortsBulkDestroy(ctx context.Context, body DcimRearPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsList request - DcimRearPortsList(ctx context.Context, params *DcimRearPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsBulkPartialUpdate request with any body - DcimRearPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortsBulkPartialUpdate(ctx context.Context, body DcimRearPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsCreate request with any body - DcimRearPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortsCreate(ctx context.Context, body DcimRearPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsBulkUpdate request with any body - DcimRearPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortsBulkUpdate(ctx context.Context, body DcimRearPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsDestroy request - DcimRearPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsRetrieve request - DcimRearPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsPartialUpdate request with any body - DcimRearPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsUpdate request with any body - DcimRearPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsNotesList request - DcimRearPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRearPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsNotesCreate request with any body - DcimRearPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRearPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRearPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRearPortsPathsRetrieve request - DcimRearPortsPathsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsBulkDestroy request with any body - DcimRegionsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRegionsBulkDestroy(ctx context.Context, body DcimRegionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsList request - DcimRegionsList(ctx context.Context, params *DcimRegionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsBulkPartialUpdate request with any body - DcimRegionsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRegionsBulkPartialUpdate(ctx context.Context, body DcimRegionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsCreate request with any body - DcimRegionsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRegionsCreate(ctx context.Context, body DcimRegionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsBulkUpdate request with any body - DcimRegionsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRegionsBulkUpdate(ctx context.Context, body DcimRegionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsDestroy request - DcimRegionsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsRetrieve request - DcimRegionsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsPartialUpdate request with any body - DcimRegionsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRegionsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRegionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsUpdate request with any body - DcimRegionsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRegionsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRegionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsNotesList request - DcimRegionsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRegionsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimRegionsNotesCreate request with any body - DcimRegionsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimRegionsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRegionsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesBulkDestroy request with any body - DcimSitesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimSitesBulkDestroy(ctx context.Context, body DcimSitesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesList request - DcimSitesList(ctx context.Context, params *DcimSitesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesBulkPartialUpdate request with any body - DcimSitesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimSitesBulkPartialUpdate(ctx context.Context, body DcimSitesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesCreate request with any body - DcimSitesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimSitesCreate(ctx context.Context, body DcimSitesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesBulkUpdate request with any body - DcimSitesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimSitesBulkUpdate(ctx context.Context, body DcimSitesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesDestroy request - DcimSitesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesRetrieve request - DcimSitesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesPartialUpdate request with any body - DcimSitesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimSitesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimSitesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesUpdate request with any body - DcimSitesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimSitesUpdate(ctx context.Context, id openapi_types.UUID, body DcimSitesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesNotesList request - DcimSitesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimSitesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimSitesNotesCreate request with any body - DcimSitesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimSitesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimSitesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisBulkDestroy request with any body - DcimVirtualChassisBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimVirtualChassisBulkDestroy(ctx context.Context, body DcimVirtualChassisBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisList request - DcimVirtualChassisList(ctx context.Context, params *DcimVirtualChassisListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisBulkPartialUpdate request with any body - DcimVirtualChassisBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimVirtualChassisBulkPartialUpdate(ctx context.Context, body DcimVirtualChassisBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisCreate request with any body - DcimVirtualChassisCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimVirtualChassisCreate(ctx context.Context, body DcimVirtualChassisCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisBulkUpdate request with any body - DcimVirtualChassisBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimVirtualChassisBulkUpdate(ctx context.Context, body DcimVirtualChassisBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisDestroy request - DcimVirtualChassisDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisRetrieve request - DcimVirtualChassisRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisPartialUpdate request with any body - DcimVirtualChassisPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimVirtualChassisPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisUpdate request with any body - DcimVirtualChassisUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimVirtualChassisUpdate(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisNotesList request - DcimVirtualChassisNotesList(ctx context.Context, id openapi_types.UUID, params *DcimVirtualChassisNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DcimVirtualChassisNotesCreate request with any body - DcimVirtualChassisNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DcimVirtualChassisNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsBulkDestroy request with any body - ExtrasComputedFieldsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasComputedFieldsBulkDestroy(ctx context.Context, body ExtrasComputedFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsList request - ExtrasComputedFieldsList(ctx context.Context, params *ExtrasComputedFieldsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsBulkPartialUpdate request with any body - ExtrasComputedFieldsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasComputedFieldsBulkPartialUpdate(ctx context.Context, body ExtrasComputedFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsCreate request with any body - ExtrasComputedFieldsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasComputedFieldsCreate(ctx context.Context, body ExtrasComputedFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsBulkUpdate request with any body - ExtrasComputedFieldsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasComputedFieldsBulkUpdate(ctx context.Context, body ExtrasComputedFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsDestroy request - ExtrasComputedFieldsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsRetrieve request - ExtrasComputedFieldsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsPartialUpdate request with any body - ExtrasComputedFieldsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasComputedFieldsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsUpdate request with any body - ExtrasComputedFieldsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasComputedFieldsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsNotesList request - ExtrasComputedFieldsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasComputedFieldsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasComputedFieldsNotesCreate request with any body - ExtrasComputedFieldsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasComputedFieldsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasBulkDestroy request with any body - ExtrasConfigContextSchemasBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextSchemasBulkDestroy(ctx context.Context, body ExtrasConfigContextSchemasBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasList request - ExtrasConfigContextSchemasList(ctx context.Context, params *ExtrasConfigContextSchemasListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasBulkPartialUpdate request with any body - ExtrasConfigContextSchemasBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextSchemasBulkPartialUpdate(ctx context.Context, body ExtrasConfigContextSchemasBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasCreate request with any body - ExtrasConfigContextSchemasCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextSchemasCreate(ctx context.Context, body ExtrasConfigContextSchemasCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasBulkUpdate request with any body - ExtrasConfigContextSchemasBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextSchemasBulkUpdate(ctx context.Context, body ExtrasConfigContextSchemasBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasDestroy request - ExtrasConfigContextSchemasDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasRetrieve request - ExtrasConfigContextSchemasRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasPartialUpdate request with any body - ExtrasConfigContextSchemasPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextSchemasPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasUpdate request with any body - ExtrasConfigContextSchemasUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextSchemasUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasNotesList request - ExtrasConfigContextSchemasNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextSchemasNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextSchemasNotesCreate request with any body - ExtrasConfigContextSchemasNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextSchemasNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsBulkDestroy request with any body - ExtrasConfigContextsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextsBulkDestroy(ctx context.Context, body ExtrasConfigContextsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsList request - ExtrasConfigContextsList(ctx context.Context, params *ExtrasConfigContextsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsBulkPartialUpdate request with any body - ExtrasConfigContextsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextsBulkPartialUpdate(ctx context.Context, body ExtrasConfigContextsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsCreate request with any body - ExtrasConfigContextsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextsCreate(ctx context.Context, body ExtrasConfigContextsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsBulkUpdate request with any body - ExtrasConfigContextsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextsBulkUpdate(ctx context.Context, body ExtrasConfigContextsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsDestroy request - ExtrasConfigContextsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsRetrieve request - ExtrasConfigContextsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsPartialUpdate request with any body - ExtrasConfigContextsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsUpdate request with any body - ExtrasConfigContextsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsNotesList request - ExtrasConfigContextsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasConfigContextsNotesCreate request with any body - ExtrasConfigContextsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasConfigContextsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasContentTypesList request - ExtrasContentTypesList(ctx context.Context, params *ExtrasContentTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasContentTypesRetrieve request - ExtrasContentTypesRetrieve(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesBulkDestroy request with any body - ExtrasCustomFieldChoicesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldChoicesBulkDestroy(ctx context.Context, body ExtrasCustomFieldChoicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesList request - ExtrasCustomFieldChoicesList(ctx context.Context, params *ExtrasCustomFieldChoicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesBulkPartialUpdate request with any body - ExtrasCustomFieldChoicesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldChoicesBulkPartialUpdate(ctx context.Context, body ExtrasCustomFieldChoicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesCreate request with any body - ExtrasCustomFieldChoicesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldChoicesCreate(ctx context.Context, body ExtrasCustomFieldChoicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesBulkUpdate request with any body - ExtrasCustomFieldChoicesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldChoicesBulkUpdate(ctx context.Context, body ExtrasCustomFieldChoicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesDestroy request - ExtrasCustomFieldChoicesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesRetrieve request - ExtrasCustomFieldChoicesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesPartialUpdate request with any body - ExtrasCustomFieldChoicesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldChoicesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldChoicesUpdate request with any body - ExtrasCustomFieldChoicesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldChoicesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsBulkDestroy request with any body - ExtrasCustomFieldsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldsBulkDestroy(ctx context.Context, body ExtrasCustomFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsList request - ExtrasCustomFieldsList(ctx context.Context, params *ExtrasCustomFieldsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsBulkPartialUpdate request with any body - ExtrasCustomFieldsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context, body ExtrasCustomFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsCreate request with any body - ExtrasCustomFieldsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldsCreate(ctx context.Context, body ExtrasCustomFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsBulkUpdate request with any body - ExtrasCustomFieldsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldsBulkUpdate(ctx context.Context, body ExtrasCustomFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsDestroy request - ExtrasCustomFieldsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsRetrieve request - ExtrasCustomFieldsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsPartialUpdate request with any body - ExtrasCustomFieldsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsUpdate request with any body - ExtrasCustomFieldsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsNotesList request - ExtrasCustomFieldsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomFieldsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomFieldsNotesCreate request with any body - ExtrasCustomFieldsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomFieldsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksBulkDestroy request with any body - ExtrasCustomLinksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomLinksBulkDestroy(ctx context.Context, body ExtrasCustomLinksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksList request - ExtrasCustomLinksList(ctx context.Context, params *ExtrasCustomLinksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksBulkPartialUpdate request with any body - ExtrasCustomLinksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomLinksBulkPartialUpdate(ctx context.Context, body ExtrasCustomLinksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksCreate request with any body - ExtrasCustomLinksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomLinksCreate(ctx context.Context, body ExtrasCustomLinksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksBulkUpdate request with any body - ExtrasCustomLinksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomLinksBulkUpdate(ctx context.Context, body ExtrasCustomLinksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksDestroy request - ExtrasCustomLinksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksRetrieve request - ExtrasCustomLinksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksPartialUpdate request with any body - ExtrasCustomLinksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomLinksPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksUpdate request with any body - ExtrasCustomLinksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomLinksUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksNotesList request - ExtrasCustomLinksNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomLinksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasCustomLinksNotesCreate request with any body - ExtrasCustomLinksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasCustomLinksNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsBulkDestroy request with any body - ExtrasDynamicGroupMembershipsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupMembershipsBulkDestroy(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsList request - ExtrasDynamicGroupMembershipsList(ctx context.Context, params *ExtrasDynamicGroupMembershipsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsBulkPartialUpdate request with any body - ExtrasDynamicGroupMembershipsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupMembershipsBulkPartialUpdate(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsCreate request with any body - ExtrasDynamicGroupMembershipsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupMembershipsCreate(ctx context.Context, body ExtrasDynamicGroupMembershipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsBulkUpdate request with any body - ExtrasDynamicGroupMembershipsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupMembershipsBulkUpdate(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsDestroy request - ExtrasDynamicGroupMembershipsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsRetrieve request - ExtrasDynamicGroupMembershipsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsPartialUpdate request with any body - ExtrasDynamicGroupMembershipsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupMembershipsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupMembershipsUpdate request with any body - ExtrasDynamicGroupMembershipsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupMembershipsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsBulkDestroy request with any body - ExtrasDynamicGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupsBulkDestroy(ctx context.Context, body ExtrasDynamicGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsList request - ExtrasDynamicGroupsList(ctx context.Context, params *ExtrasDynamicGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsBulkPartialUpdate request with any body - ExtrasDynamicGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupsBulkPartialUpdate(ctx context.Context, body ExtrasDynamicGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsCreate request with any body - ExtrasDynamicGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupsCreate(ctx context.Context, body ExtrasDynamicGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsBulkUpdate request with any body - ExtrasDynamicGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupsBulkUpdate(ctx context.Context, body ExtrasDynamicGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsDestroy request - ExtrasDynamicGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsRetrieve request - ExtrasDynamicGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsPartialUpdate request with any body - ExtrasDynamicGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsUpdate request with any body - ExtrasDynamicGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsMembersRetrieve request - ExtrasDynamicGroupsMembersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsNotesList request - ExtrasDynamicGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasDynamicGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasDynamicGroupsNotesCreate request with any body - ExtrasDynamicGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasDynamicGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesBulkDestroy request with any body - ExtrasExportTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasExportTemplatesBulkDestroy(ctx context.Context, body ExtrasExportTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesList request - ExtrasExportTemplatesList(ctx context.Context, params *ExtrasExportTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesBulkPartialUpdate request with any body - ExtrasExportTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context, body ExtrasExportTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesCreate request with any body - ExtrasExportTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasExportTemplatesCreate(ctx context.Context, body ExtrasExportTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesBulkUpdate request with any body - ExtrasExportTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasExportTemplatesBulkUpdate(ctx context.Context, body ExtrasExportTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesDestroy request - ExtrasExportTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesRetrieve request - ExtrasExportTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesPartialUpdate request with any body - ExtrasExportTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasExportTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesUpdate request with any body - ExtrasExportTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasExportTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesNotesList request - ExtrasExportTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasExportTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasExportTemplatesNotesCreate request with any body - ExtrasExportTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasExportTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesBulkDestroy request with any body - ExtrasGitRepositoriesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesBulkDestroy(ctx context.Context, body ExtrasGitRepositoriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesList request - ExtrasGitRepositoriesList(ctx context.Context, params *ExtrasGitRepositoriesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesBulkPartialUpdate request with any body - ExtrasGitRepositoriesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesBulkPartialUpdate(ctx context.Context, body ExtrasGitRepositoriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesCreate request with any body - ExtrasGitRepositoriesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesCreate(ctx context.Context, body ExtrasGitRepositoriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesBulkUpdate request with any body - ExtrasGitRepositoriesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesBulkUpdate(ctx context.Context, body ExtrasGitRepositoriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesDestroy request - ExtrasGitRepositoriesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesRetrieve request - ExtrasGitRepositoriesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesPartialUpdate request with any body - ExtrasGitRepositoriesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesUpdate request with any body - ExtrasGitRepositoriesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesNotesList request - ExtrasGitRepositoriesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasGitRepositoriesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesNotesCreate request with any body - ExtrasGitRepositoriesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGitRepositoriesSyncCreate request with any body - ExtrasGitRepositoriesSyncCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGitRepositoriesSyncCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesSyncCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesBulkDestroy request with any body - ExtrasGraphqlQueriesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesBulkDestroy(ctx context.Context, body ExtrasGraphqlQueriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesList request - ExtrasGraphqlQueriesList(ctx context.Context, params *ExtrasGraphqlQueriesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesBulkPartialUpdate request with any body - ExtrasGraphqlQueriesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesBulkPartialUpdate(ctx context.Context, body ExtrasGraphqlQueriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesCreate request with any body - ExtrasGraphqlQueriesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesCreate(ctx context.Context, body ExtrasGraphqlQueriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesBulkUpdate request with any body - ExtrasGraphqlQueriesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesBulkUpdate(ctx context.Context, body ExtrasGraphqlQueriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesDestroy request - ExtrasGraphqlQueriesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesRetrieve request - ExtrasGraphqlQueriesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesPartialUpdate request with any body - ExtrasGraphqlQueriesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesUpdate request with any body - ExtrasGraphqlQueriesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesNotesList request - ExtrasGraphqlQueriesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasGraphqlQueriesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesNotesCreate request with any body - ExtrasGraphqlQueriesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasGraphqlQueriesRunCreate request with any body - ExtrasGraphqlQueriesRunCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasGraphqlQueriesRunCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsBulkDestroy request with any body - ExtrasImageAttachmentsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasImageAttachmentsBulkDestroy(ctx context.Context, body ExtrasImageAttachmentsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsList request - ExtrasImageAttachmentsList(ctx context.Context, params *ExtrasImageAttachmentsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsBulkPartialUpdate request with any body - ExtrasImageAttachmentsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context, body ExtrasImageAttachmentsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsCreate request with any body - ExtrasImageAttachmentsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasImageAttachmentsCreate(ctx context.Context, body ExtrasImageAttachmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsBulkUpdate request with any body - ExtrasImageAttachmentsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasImageAttachmentsBulkUpdate(ctx context.Context, body ExtrasImageAttachmentsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsDestroy request - ExtrasImageAttachmentsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsRetrieve request - ExtrasImageAttachmentsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsPartialUpdate request with any body - ExtrasImageAttachmentsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasImageAttachmentsUpdate request with any body - ExtrasImageAttachmentsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasImageAttachmentsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksBulkDestroy request with any body - ExtrasJobHooksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobHooksBulkDestroy(ctx context.Context, body ExtrasJobHooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksList request - ExtrasJobHooksList(ctx context.Context, params *ExtrasJobHooksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksBulkPartialUpdate request with any body - ExtrasJobHooksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobHooksBulkPartialUpdate(ctx context.Context, body ExtrasJobHooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksCreate request with any body - ExtrasJobHooksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobHooksCreate(ctx context.Context, body ExtrasJobHooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksBulkUpdate request with any body - ExtrasJobHooksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobHooksBulkUpdate(ctx context.Context, body ExtrasJobHooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksDestroy request - ExtrasJobHooksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksRetrieve request - ExtrasJobHooksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksPartialUpdate request with any body - ExtrasJobHooksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobHooksPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksUpdate request with any body - ExtrasJobHooksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobHooksUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksNotesList request - ExtrasJobHooksNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasJobHooksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobHooksNotesCreate request with any body - ExtrasJobHooksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobHooksNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobLogsList request - ExtrasJobLogsList(ctx context.Context, params *ExtrasJobLogsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobLogsRetrieve request - ExtrasJobLogsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobResultsBulkDestroy request with any body - ExtrasJobResultsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobResultsBulkDestroy(ctx context.Context, body ExtrasJobResultsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobResultsList request - ExtrasJobResultsList(ctx context.Context, params *ExtrasJobResultsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobResultsDestroy request - ExtrasJobResultsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobResultsRetrieve request - ExtrasJobResultsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobResultsLogsRetrieve request - ExtrasJobResultsLogsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsBulkDestroy request with any body - ExtrasJobsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsBulkDestroy(ctx context.Context, body ExtrasJobsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsList request - ExtrasJobsList(ctx context.Context, params *ExtrasJobsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsBulkPartialUpdate request with any body - ExtrasJobsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsBulkPartialUpdate(ctx context.Context, body ExtrasJobsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsBulkUpdate request with any body - ExtrasJobsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsBulkUpdate(ctx context.Context, body ExtrasJobsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsReadDeprecated request - ExtrasJobsReadDeprecated(ctx context.Context, classPath string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsRunDeprecated request with any body - ExtrasJobsRunDeprecatedWithBody(ctx context.Context, classPath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsRunDeprecated(ctx context.Context, classPath string, body ExtrasJobsRunDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsDestroy request - ExtrasJobsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsRetrieve request - ExtrasJobsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsPartialUpdate request with any body - ExtrasJobsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsUpdate request with any body - ExtrasJobsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsNotesList request - ExtrasJobsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsNotesCreate request with any body - ExtrasJobsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsRunCreate request with any body - ExtrasJobsRunCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasJobsRunCreate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasJobsVariablesList request - ExtrasJobsVariablesList(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsVariablesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesBulkDestroy request with any body - ExtrasNotesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasNotesBulkDestroy(ctx context.Context, body ExtrasNotesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesList request - ExtrasNotesList(ctx context.Context, params *ExtrasNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesBulkPartialUpdate request with any body - ExtrasNotesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasNotesBulkPartialUpdate(ctx context.Context, body ExtrasNotesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesCreate request with any body - ExtrasNotesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasNotesCreate(ctx context.Context, body ExtrasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesBulkUpdate request with any body - ExtrasNotesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasNotesBulkUpdate(ctx context.Context, body ExtrasNotesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesDestroy request - ExtrasNotesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesRetrieve request - ExtrasNotesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesPartialUpdate request with any body - ExtrasNotesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasNotesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasNotesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasNotesUpdate request with any body - ExtrasNotesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasNotesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasNotesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasObjectChangesList request - ExtrasObjectChangesList(ctx context.Context, params *ExtrasObjectChangesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasObjectChangesRetrieve request - ExtrasObjectChangesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsBulkDestroy request with any body - ExtrasRelationshipAssociationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipAssociationsBulkDestroy(ctx context.Context, body ExtrasRelationshipAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsList request - ExtrasRelationshipAssociationsList(ctx context.Context, params *ExtrasRelationshipAssociationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsBulkPartialUpdate request with any body - ExtrasRelationshipAssociationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipAssociationsBulkPartialUpdate(ctx context.Context, body ExtrasRelationshipAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsCreate request with any body - ExtrasRelationshipAssociationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipAssociationsCreate(ctx context.Context, body ExtrasRelationshipAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsBulkUpdate request with any body - ExtrasRelationshipAssociationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipAssociationsBulkUpdate(ctx context.Context, body ExtrasRelationshipAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsDestroy request - ExtrasRelationshipAssociationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsRetrieve request - ExtrasRelationshipAssociationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsPartialUpdate request with any body - ExtrasRelationshipAssociationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipAssociationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipAssociationsUpdate request with any body - ExtrasRelationshipAssociationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipAssociationsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsBulkDestroy request with any body - ExtrasRelationshipsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipsBulkDestroy(ctx context.Context, body ExtrasRelationshipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsList request - ExtrasRelationshipsList(ctx context.Context, params *ExtrasRelationshipsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsBulkPartialUpdate request with any body - ExtrasRelationshipsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipsBulkPartialUpdate(ctx context.Context, body ExtrasRelationshipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsCreate request with any body - ExtrasRelationshipsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipsCreate(ctx context.Context, body ExtrasRelationshipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsBulkUpdate request with any body - ExtrasRelationshipsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipsBulkUpdate(ctx context.Context, body ExtrasRelationshipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsDestroy request - ExtrasRelationshipsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsRetrieve request - ExtrasRelationshipsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsPartialUpdate request with any body - ExtrasRelationshipsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsUpdate request with any body - ExtrasRelationshipsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsNotesList request - ExtrasRelationshipsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasRelationshipsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasRelationshipsNotesCreate request with any body - ExtrasRelationshipsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasRelationshipsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasScheduledJobsList request - ExtrasScheduledJobsList(ctx context.Context, params *ExtrasScheduledJobsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasScheduledJobsRetrieve request - ExtrasScheduledJobsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasScheduledJobsApproveCreate request - ExtrasScheduledJobsApproveCreate(ctx context.Context, id openapi_types.UUID, params *ExtrasScheduledJobsApproveCreateParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasScheduledJobsDenyCreate request - ExtrasScheduledJobsDenyCreate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasScheduledJobsDryRunCreate request - ExtrasScheduledJobsDryRunCreate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsBulkDestroy request with any body - ExtrasSecretsGroupsAssociationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsAssociationsBulkDestroy(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsList request - ExtrasSecretsGroupsAssociationsList(ctx context.Context, params *ExtrasSecretsGroupsAssociationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsBulkPartialUpdate request with any body - ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsAssociationsBulkPartialUpdate(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsCreate request with any body - ExtrasSecretsGroupsAssociationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsAssociationsCreate(ctx context.Context, body ExtrasSecretsGroupsAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsBulkUpdate request with any body - ExtrasSecretsGroupsAssociationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsAssociationsBulkUpdate(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsDestroy request - ExtrasSecretsGroupsAssociationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsRetrieve request - ExtrasSecretsGroupsAssociationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsPartialUpdate request with any body - ExtrasSecretsGroupsAssociationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsAssociationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsAssociationsUpdate request with any body - ExtrasSecretsGroupsAssociationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsAssociationsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsBulkDestroy request with any body - ExtrasSecretsGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsBulkDestroy(ctx context.Context, body ExtrasSecretsGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsList request - ExtrasSecretsGroupsList(ctx context.Context, params *ExtrasSecretsGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsBulkPartialUpdate request with any body - ExtrasSecretsGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsBulkPartialUpdate(ctx context.Context, body ExtrasSecretsGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsCreate request with any body - ExtrasSecretsGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsCreate(ctx context.Context, body ExtrasSecretsGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsBulkUpdate request with any body - ExtrasSecretsGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsBulkUpdate(ctx context.Context, body ExtrasSecretsGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsDestroy request - ExtrasSecretsGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsRetrieve request - ExtrasSecretsGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsPartialUpdate request with any body - ExtrasSecretsGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsUpdate request with any body - ExtrasSecretsGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsNotesList request - ExtrasSecretsGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsGroupsNotesCreate request with any body - ExtrasSecretsGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsBulkDestroy request with any body - ExtrasSecretsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsBulkDestroy(ctx context.Context, body ExtrasSecretsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsList request - ExtrasSecretsList(ctx context.Context, params *ExtrasSecretsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsBulkPartialUpdate request with any body - ExtrasSecretsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsBulkPartialUpdate(ctx context.Context, body ExtrasSecretsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsCreate request with any body - ExtrasSecretsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsCreate(ctx context.Context, body ExtrasSecretsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsBulkUpdate request with any body - ExtrasSecretsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsBulkUpdate(ctx context.Context, body ExtrasSecretsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsDestroy request - ExtrasSecretsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsRetrieve request - ExtrasSecretsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsPartialUpdate request with any body - ExtrasSecretsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsUpdate request with any body - ExtrasSecretsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsNotesList request - ExtrasSecretsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasSecretsNotesCreate request with any body - ExtrasSecretsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasSecretsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesBulkDestroy request with any body - ExtrasStatusesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasStatusesBulkDestroy(ctx context.Context, body ExtrasStatusesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesList request - ExtrasStatusesList(ctx context.Context, params *ExtrasStatusesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesBulkPartialUpdate request with any body - ExtrasStatusesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasStatusesBulkPartialUpdate(ctx context.Context, body ExtrasStatusesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesCreate request with any body - ExtrasStatusesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasStatusesCreate(ctx context.Context, body ExtrasStatusesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesBulkUpdate request with any body - ExtrasStatusesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasStatusesBulkUpdate(ctx context.Context, body ExtrasStatusesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesDestroy request - ExtrasStatusesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesRetrieve request - ExtrasStatusesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesPartialUpdate request with any body - ExtrasStatusesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasStatusesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesUpdate request with any body - ExtrasStatusesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasStatusesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesNotesList request - ExtrasStatusesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasStatusesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasStatusesNotesCreate request with any body - ExtrasStatusesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasStatusesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsBulkDestroy request with any body - ExtrasTagsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasTagsBulkDestroy(ctx context.Context, body ExtrasTagsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsList request - ExtrasTagsList(ctx context.Context, params *ExtrasTagsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsBulkPartialUpdate request with any body - ExtrasTagsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasTagsBulkPartialUpdate(ctx context.Context, body ExtrasTagsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsCreate request with any body - ExtrasTagsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasTagsCreate(ctx context.Context, body ExtrasTagsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsBulkUpdate request with any body - ExtrasTagsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasTagsBulkUpdate(ctx context.Context, body ExtrasTagsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsDestroy request - ExtrasTagsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsRetrieve request - ExtrasTagsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsPartialUpdate request with any body - ExtrasTagsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasTagsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasTagsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsUpdate request with any body - ExtrasTagsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasTagsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasTagsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsNotesList request - ExtrasTagsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasTagsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasTagsNotesCreate request with any body - ExtrasTagsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasTagsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasTagsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksBulkDestroy request with any body - ExtrasWebhooksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasWebhooksBulkDestroy(ctx context.Context, body ExtrasWebhooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksList request - ExtrasWebhooksList(ctx context.Context, params *ExtrasWebhooksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksBulkPartialUpdate request with any body - ExtrasWebhooksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasWebhooksBulkPartialUpdate(ctx context.Context, body ExtrasWebhooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksCreate request with any body - ExtrasWebhooksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasWebhooksCreate(ctx context.Context, body ExtrasWebhooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksBulkUpdate request with any body - ExtrasWebhooksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasWebhooksBulkUpdate(ctx context.Context, body ExtrasWebhooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksDestroy request - ExtrasWebhooksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksRetrieve request - ExtrasWebhooksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksPartialUpdate request with any body - ExtrasWebhooksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasWebhooksPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksUpdate request with any body - ExtrasWebhooksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasWebhooksUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksNotesList request - ExtrasWebhooksNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasWebhooksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExtrasWebhooksNotesCreate request with any body - ExtrasWebhooksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ExtrasWebhooksNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GraphqlCreate request with any body - GraphqlCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - GraphqlCreate(ctx context.Context, body GraphqlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesBulkDestroy request with any body - IpamAggregatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamAggregatesBulkDestroy(ctx context.Context, body IpamAggregatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesList request - IpamAggregatesList(ctx context.Context, params *IpamAggregatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesBulkPartialUpdate request with any body - IpamAggregatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamAggregatesBulkPartialUpdate(ctx context.Context, body IpamAggregatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesCreate request with any body - IpamAggregatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamAggregatesCreate(ctx context.Context, body IpamAggregatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesBulkUpdate request with any body - IpamAggregatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamAggregatesBulkUpdate(ctx context.Context, body IpamAggregatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesDestroy request - IpamAggregatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesRetrieve request - IpamAggregatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesPartialUpdate request with any body - IpamAggregatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamAggregatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamAggregatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesUpdate request with any body - IpamAggregatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamAggregatesUpdate(ctx context.Context, id openapi_types.UUID, body IpamAggregatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesNotesList request - IpamAggregatesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamAggregatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamAggregatesNotesCreate request with any body - IpamAggregatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamAggregatesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamAggregatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesBulkDestroy request with any body - IpamIpAddressesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamIpAddressesBulkDestroy(ctx context.Context, body IpamIpAddressesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesList request - IpamIpAddressesList(ctx context.Context, params *IpamIpAddressesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesBulkPartialUpdate request with any body - IpamIpAddressesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamIpAddressesBulkPartialUpdate(ctx context.Context, body IpamIpAddressesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesCreate request with any body - IpamIpAddressesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamIpAddressesCreate(ctx context.Context, body IpamIpAddressesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesBulkUpdate request with any body - IpamIpAddressesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamIpAddressesBulkUpdate(ctx context.Context, body IpamIpAddressesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesDestroy request - IpamIpAddressesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesRetrieve request - IpamIpAddressesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesPartialUpdate request with any body - IpamIpAddressesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamIpAddressesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesUpdate request with any body - IpamIpAddressesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamIpAddressesUpdate(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesNotesList request - IpamIpAddressesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamIpAddressesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamIpAddressesNotesCreate request with any body - IpamIpAddressesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamIpAddressesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesBulkDestroy request with any body - IpamPrefixesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesBulkDestroy(ctx context.Context, body IpamPrefixesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesList request - IpamPrefixesList(ctx context.Context, params *IpamPrefixesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesBulkPartialUpdate request with any body - IpamPrefixesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesBulkPartialUpdate(ctx context.Context, body IpamPrefixesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesCreate request with any body - IpamPrefixesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesCreate(ctx context.Context, body IpamPrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesBulkUpdate request with any body - IpamPrefixesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesBulkUpdate(ctx context.Context, body IpamPrefixesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesDestroy request - IpamPrefixesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesRetrieve request - IpamPrefixesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesPartialUpdate request with any body - IpamPrefixesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesUpdate request with any body - IpamPrefixesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesUpdate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesAvailableIpsList request - IpamPrefixesAvailableIpsList(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesAvailableIpsCreate request - IpamPrefixesAvailableIpsCreate(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsCreateParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesAvailablePrefixesList request - IpamPrefixesAvailablePrefixesList(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailablePrefixesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesAvailablePrefixesCreate request with any body - IpamPrefixesAvailablePrefixesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesAvailablePrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesNotesList request - IpamPrefixesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamPrefixesNotesCreate request with any body - IpamPrefixesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamPrefixesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsBulkDestroy request with any body - IpamRirsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRirsBulkDestroy(ctx context.Context, body IpamRirsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsList request - IpamRirsList(ctx context.Context, params *IpamRirsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsBulkPartialUpdate request with any body - IpamRirsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRirsBulkPartialUpdate(ctx context.Context, body IpamRirsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsCreate request with any body - IpamRirsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRirsCreate(ctx context.Context, body IpamRirsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsBulkUpdate request with any body - IpamRirsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRirsBulkUpdate(ctx context.Context, body IpamRirsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsDestroy request - IpamRirsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsRetrieve request - IpamRirsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsPartialUpdate request with any body - IpamRirsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRirsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamRirsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsUpdate request with any body - IpamRirsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRirsUpdate(ctx context.Context, id openapi_types.UUID, body IpamRirsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsNotesList request - IpamRirsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamRirsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRirsNotesCreate request with any body - IpamRirsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRirsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamRirsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesBulkDestroy request with any body - IpamRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRolesBulkDestroy(ctx context.Context, body IpamRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesList request - IpamRolesList(ctx context.Context, params *IpamRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesBulkPartialUpdate request with any body - IpamRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRolesBulkPartialUpdate(ctx context.Context, body IpamRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesCreate request with any body - IpamRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRolesCreate(ctx context.Context, body IpamRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesBulkUpdate request with any body - IpamRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRolesBulkUpdate(ctx context.Context, body IpamRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesDestroy request - IpamRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesRetrieve request - IpamRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesPartialUpdate request with any body - IpamRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesUpdate request with any body - IpamRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRolesUpdate(ctx context.Context, id openapi_types.UUID, body IpamRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesNotesList request - IpamRolesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamRolesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRolesNotesCreate request with any body - IpamRolesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRolesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsBulkDestroy request with any body - IpamRouteTargetsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRouteTargetsBulkDestroy(ctx context.Context, body IpamRouteTargetsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsList request - IpamRouteTargetsList(ctx context.Context, params *IpamRouteTargetsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsBulkPartialUpdate request with any body - IpamRouteTargetsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRouteTargetsBulkPartialUpdate(ctx context.Context, body IpamRouteTargetsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsCreate request with any body - IpamRouteTargetsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRouteTargetsCreate(ctx context.Context, body IpamRouteTargetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsBulkUpdate request with any body - IpamRouteTargetsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRouteTargetsBulkUpdate(ctx context.Context, body IpamRouteTargetsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsDestroy request - IpamRouteTargetsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsRetrieve request - IpamRouteTargetsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsPartialUpdate request with any body - IpamRouteTargetsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRouteTargetsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsUpdate request with any body - IpamRouteTargetsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRouteTargetsUpdate(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsNotesList request - IpamRouteTargetsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamRouteTargetsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamRouteTargetsNotesCreate request with any body - IpamRouteTargetsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamRouteTargetsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesBulkDestroy request with any body - IpamServicesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamServicesBulkDestroy(ctx context.Context, body IpamServicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesList request - IpamServicesList(ctx context.Context, params *IpamServicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesBulkPartialUpdate request with any body - IpamServicesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamServicesBulkPartialUpdate(ctx context.Context, body IpamServicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesCreate request with any body - IpamServicesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamServicesCreate(ctx context.Context, body IpamServicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesBulkUpdate request with any body - IpamServicesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamServicesBulkUpdate(ctx context.Context, body IpamServicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesDestroy request - IpamServicesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesRetrieve request - IpamServicesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesPartialUpdate request with any body - IpamServicesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamServicesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamServicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesUpdate request with any body - IpamServicesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamServicesUpdate(ctx context.Context, id openapi_types.UUID, body IpamServicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesNotesList request - IpamServicesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamServicesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamServicesNotesCreate request with any body - IpamServicesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamServicesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamServicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsBulkDestroy request with any body - IpamVlanGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlanGroupsBulkDestroy(ctx context.Context, body IpamVlanGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsList request - IpamVlanGroupsList(ctx context.Context, params *IpamVlanGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsBulkPartialUpdate request with any body - IpamVlanGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlanGroupsBulkPartialUpdate(ctx context.Context, body IpamVlanGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsCreate request with any body - IpamVlanGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlanGroupsCreate(ctx context.Context, body IpamVlanGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsBulkUpdate request with any body - IpamVlanGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlanGroupsBulkUpdate(ctx context.Context, body IpamVlanGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsDestroy request - IpamVlanGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsRetrieve request - IpamVlanGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsPartialUpdate request with any body - IpamVlanGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlanGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsUpdate request with any body - IpamVlanGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlanGroupsUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsNotesList request - IpamVlanGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamVlanGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlanGroupsNotesCreate request with any body - IpamVlanGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlanGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansBulkDestroy request with any body - IpamVlansBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlansBulkDestroy(ctx context.Context, body IpamVlansBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansList request - IpamVlansList(ctx context.Context, params *IpamVlansListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansBulkPartialUpdate request with any body - IpamVlansBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlansBulkPartialUpdate(ctx context.Context, body IpamVlansBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansCreate request with any body - IpamVlansCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlansCreate(ctx context.Context, body IpamVlansCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansBulkUpdate request with any body - IpamVlansBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlansBulkUpdate(ctx context.Context, body IpamVlansBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansDestroy request - IpamVlansDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansRetrieve request - IpamVlansRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansPartialUpdate request with any body - IpamVlansPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlansPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlansPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansUpdate request with any body - IpamVlansUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlansUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlansUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansNotesList request - IpamVlansNotesList(ctx context.Context, id openapi_types.UUID, params *IpamVlansNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVlansNotesCreate request with any body - IpamVlansNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVlansNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamVlansNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsBulkDestroy request with any body - IpamVrfsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVrfsBulkDestroy(ctx context.Context, body IpamVrfsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsList request - IpamVrfsList(ctx context.Context, params *IpamVrfsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsBulkPartialUpdate request with any body - IpamVrfsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVrfsBulkPartialUpdate(ctx context.Context, body IpamVrfsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsCreate request with any body - IpamVrfsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVrfsCreate(ctx context.Context, body IpamVrfsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsBulkUpdate request with any body - IpamVrfsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVrfsBulkUpdate(ctx context.Context, body IpamVrfsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsDestroy request - IpamVrfsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsRetrieve request - IpamVrfsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsPartialUpdate request with any body - IpamVrfsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVrfsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamVrfsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsUpdate request with any body - IpamVrfsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVrfsUpdate(ctx context.Context, id openapi_types.UUID, body IpamVrfsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsNotesList request - IpamVrfsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamVrfsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IpamVrfsNotesCreate request with any body - IpamVrfsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - IpamVrfsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamVrfsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesBulkDestroy request with any body - PluginsBgpAddressFamiliesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAddressFamiliesBulkDestroy(ctx context.Context, body PluginsBgpAddressFamiliesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesList request - PluginsBgpAddressFamiliesList(ctx context.Context, params *PluginsBgpAddressFamiliesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesBulkPartialUpdate request with any body - PluginsBgpAddressFamiliesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAddressFamiliesBulkPartialUpdate(ctx context.Context, body PluginsBgpAddressFamiliesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesCreate request with any body - PluginsBgpAddressFamiliesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAddressFamiliesCreate(ctx context.Context, body PluginsBgpAddressFamiliesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesBulkUpdate request with any body - PluginsBgpAddressFamiliesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAddressFamiliesBulkUpdate(ctx context.Context, body PluginsBgpAddressFamiliesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesDestroy request - PluginsBgpAddressFamiliesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesRetrieve request - PluginsBgpAddressFamiliesRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpAddressFamiliesRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesPartialUpdate request with any body - PluginsBgpAddressFamiliesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAddressFamiliesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAddressFamiliesUpdate request with any body - PluginsBgpAddressFamiliesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAddressFamiliesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsBulkDestroy request with any body - PluginsBgpAutonomousSystemsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAutonomousSystemsBulkDestroy(ctx context.Context, body PluginsBgpAutonomousSystemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsList request - PluginsBgpAutonomousSystemsList(ctx context.Context, params *PluginsBgpAutonomousSystemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsBulkPartialUpdate request with any body - PluginsBgpAutonomousSystemsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAutonomousSystemsBulkPartialUpdate(ctx context.Context, body PluginsBgpAutonomousSystemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsCreate request with any body - PluginsBgpAutonomousSystemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAutonomousSystemsCreate(ctx context.Context, body PluginsBgpAutonomousSystemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsBulkUpdate request with any body - PluginsBgpAutonomousSystemsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAutonomousSystemsBulkUpdate(ctx context.Context, body PluginsBgpAutonomousSystemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsDestroy request - PluginsBgpAutonomousSystemsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsRetrieve request - PluginsBgpAutonomousSystemsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsPartialUpdate request with any body - PluginsBgpAutonomousSystemsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAutonomousSystemsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpAutonomousSystemsUpdate request with any body - PluginsBgpAutonomousSystemsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpAutonomousSystemsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsBulkDestroy request with any body - PluginsBgpPeerEndpointsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerEndpointsBulkDestroy(ctx context.Context, body PluginsBgpPeerEndpointsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsList request - PluginsBgpPeerEndpointsList(ctx context.Context, params *PluginsBgpPeerEndpointsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsBulkPartialUpdate request with any body - PluginsBgpPeerEndpointsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerEndpointsBulkPartialUpdate(ctx context.Context, body PluginsBgpPeerEndpointsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsCreate request with any body - PluginsBgpPeerEndpointsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerEndpointsCreate(ctx context.Context, body PluginsBgpPeerEndpointsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsBulkUpdate request with any body - PluginsBgpPeerEndpointsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerEndpointsBulkUpdate(ctx context.Context, body PluginsBgpPeerEndpointsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsDestroy request - PluginsBgpPeerEndpointsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsRetrieve request - PluginsBgpPeerEndpointsRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerEndpointsRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsPartialUpdate request with any body - PluginsBgpPeerEndpointsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerEndpointsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerEndpointsUpdate request with any body - PluginsBgpPeerEndpointsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerEndpointsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesBulkDestroy request with any body - PluginsBgpPeerGroupTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupTemplatesBulkDestroy(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesList request - PluginsBgpPeerGroupTemplatesList(ctx context.Context, params *PluginsBgpPeerGroupTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesBulkPartialUpdate request with any body - PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupTemplatesBulkPartialUpdate(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesCreate request with any body - PluginsBgpPeerGroupTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupTemplatesCreate(ctx context.Context, body PluginsBgpPeerGroupTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesBulkUpdate request with any body - PluginsBgpPeerGroupTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupTemplatesBulkUpdate(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesDestroy request - PluginsBgpPeerGroupTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesRetrieve request - PluginsBgpPeerGroupTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupTemplatesRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesPartialUpdate request with any body - PluginsBgpPeerGroupTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupTemplatesUpdate request with any body - PluginsBgpPeerGroupTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsBulkDestroy request with any body - PluginsBgpPeerGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupsBulkDestroy(ctx context.Context, body PluginsBgpPeerGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsList request - PluginsBgpPeerGroupsList(ctx context.Context, params *PluginsBgpPeerGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsBulkPartialUpdate request with any body - PluginsBgpPeerGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupsBulkPartialUpdate(ctx context.Context, body PluginsBgpPeerGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsCreate request with any body - PluginsBgpPeerGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupsCreate(ctx context.Context, body PluginsBgpPeerGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsBulkUpdate request with any body - PluginsBgpPeerGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupsBulkUpdate(ctx context.Context, body PluginsBgpPeerGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsDestroy request - PluginsBgpPeerGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsRetrieve request - PluginsBgpPeerGroupsRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupsRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsPartialUpdate request with any body - PluginsBgpPeerGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeerGroupsUpdate request with any body - PluginsBgpPeerGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeerGroupsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesBulkDestroy request with any body - PluginsBgpPeeringRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringRolesBulkDestroy(ctx context.Context, body PluginsBgpPeeringRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesList request - PluginsBgpPeeringRolesList(ctx context.Context, params *PluginsBgpPeeringRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesBulkPartialUpdate request with any body - PluginsBgpPeeringRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringRolesBulkPartialUpdate(ctx context.Context, body PluginsBgpPeeringRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesCreate request with any body - PluginsBgpPeeringRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringRolesCreate(ctx context.Context, body PluginsBgpPeeringRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesBulkUpdate request with any body - PluginsBgpPeeringRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringRolesBulkUpdate(ctx context.Context, body PluginsBgpPeeringRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesDestroy request - PluginsBgpPeeringRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesRetrieve request - PluginsBgpPeeringRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesPartialUpdate request with any body - PluginsBgpPeeringRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringRolesUpdate request with any body - PluginsBgpPeeringRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringRolesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsBulkDestroy request with any body - PluginsBgpPeeringsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringsBulkDestroy(ctx context.Context, body PluginsBgpPeeringsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsList request - PluginsBgpPeeringsList(ctx context.Context, params *PluginsBgpPeeringsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsBulkPartialUpdate request with any body - PluginsBgpPeeringsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringsBulkPartialUpdate(ctx context.Context, body PluginsBgpPeeringsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsCreate request with any body - PluginsBgpPeeringsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringsCreate(ctx context.Context, body PluginsBgpPeeringsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsBulkUpdate request with any body - PluginsBgpPeeringsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringsBulkUpdate(ctx context.Context, body PluginsBgpPeeringsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsDestroy request - PluginsBgpPeeringsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsRetrieve request - PluginsBgpPeeringsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsPartialUpdate request with any body - PluginsBgpPeeringsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpPeeringsUpdate request with any body - PluginsBgpPeeringsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpPeeringsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesBulkDestroy request with any body - PluginsBgpRoutingInstancesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpRoutingInstancesBulkDestroy(ctx context.Context, body PluginsBgpRoutingInstancesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesList request - PluginsBgpRoutingInstancesList(ctx context.Context, params *PluginsBgpRoutingInstancesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesBulkPartialUpdate request with any body - PluginsBgpRoutingInstancesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpRoutingInstancesBulkPartialUpdate(ctx context.Context, body PluginsBgpRoutingInstancesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesCreate request with any body - PluginsBgpRoutingInstancesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpRoutingInstancesCreate(ctx context.Context, body PluginsBgpRoutingInstancesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesBulkUpdate request with any body - PluginsBgpRoutingInstancesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpRoutingInstancesBulkUpdate(ctx context.Context, body PluginsBgpRoutingInstancesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesDestroy request - PluginsBgpRoutingInstancesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesRetrieve request - PluginsBgpRoutingInstancesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesPartialUpdate request with any body - PluginsBgpRoutingInstancesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpRoutingInstancesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsBgpRoutingInstancesUpdate request with any body - PluginsBgpRoutingInstancesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsBgpRoutingInstancesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantBulkDestroy request with any body - PluginsChatopsAccessgrantBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsAccessgrantBulkDestroy(ctx context.Context, body PluginsChatopsAccessgrantBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantList request - PluginsChatopsAccessgrantList(ctx context.Context, params *PluginsChatopsAccessgrantListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantBulkPartialUpdate request with any body - PluginsChatopsAccessgrantBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsAccessgrantBulkPartialUpdate(ctx context.Context, body PluginsChatopsAccessgrantBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantCreate request with any body - PluginsChatopsAccessgrantCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsAccessgrantCreate(ctx context.Context, body PluginsChatopsAccessgrantCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantBulkUpdate request with any body - PluginsChatopsAccessgrantBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsAccessgrantBulkUpdate(ctx context.Context, body PluginsChatopsAccessgrantBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantDestroy request - PluginsChatopsAccessgrantDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantRetrieve request - PluginsChatopsAccessgrantRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantPartialUpdate request with any body - PluginsChatopsAccessgrantPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsAccessgrantPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsAccessgrantUpdate request with any body - PluginsChatopsAccessgrantUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsAccessgrantUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenBulkDestroy request with any body - PluginsChatopsCommandtokenBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsCommandtokenBulkDestroy(ctx context.Context, body PluginsChatopsCommandtokenBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenList request - PluginsChatopsCommandtokenList(ctx context.Context, params *PluginsChatopsCommandtokenListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenBulkPartialUpdate request with any body - PluginsChatopsCommandtokenBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsCommandtokenBulkPartialUpdate(ctx context.Context, body PluginsChatopsCommandtokenBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenCreate request with any body - PluginsChatopsCommandtokenCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsCommandtokenCreate(ctx context.Context, body PluginsChatopsCommandtokenCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenBulkUpdate request with any body - PluginsChatopsCommandtokenBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsCommandtokenBulkUpdate(ctx context.Context, body PluginsChatopsCommandtokenBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenDestroy request - PluginsChatopsCommandtokenDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenRetrieve request - PluginsChatopsCommandtokenRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenPartialUpdate request with any body - PluginsChatopsCommandtokenPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsCommandtokenPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsChatopsCommandtokenUpdate request with any body - PluginsChatopsCommandtokenUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsChatopsCommandtokenUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactBulkDestroy request with any body - PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceCircuitimpactBulkDestroy(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactList request - PluginsCircuitMaintenanceCircuitimpactList(ctx context.Context, params *PluginsCircuitMaintenanceCircuitimpactListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactCreate request with any body - PluginsCircuitMaintenanceCircuitimpactCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceCircuitimpactCreate(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactBulkUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceCircuitimpactBulkUpdate(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactDestroy request - PluginsCircuitMaintenanceCircuitimpactDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactRetrieve request - PluginsCircuitMaintenanceCircuitimpactRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactPartialUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceCircuitimpactPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceCircuitimpactUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceCircuitimpactUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceBulkDestroy request with any body - PluginsCircuitMaintenanceMaintenanceBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceMaintenanceBulkDestroy(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceList request - PluginsCircuitMaintenanceMaintenanceList(ctx context.Context, params *PluginsCircuitMaintenanceMaintenanceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate request with any body - PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceCreate request with any body - PluginsCircuitMaintenanceMaintenanceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceMaintenanceCreate(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceBulkUpdate request with any body - PluginsCircuitMaintenanceMaintenanceBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceMaintenanceBulkUpdate(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceDestroy request - PluginsCircuitMaintenanceMaintenanceDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceRetrieve request - PluginsCircuitMaintenanceMaintenanceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenancePartialUpdate request with any body - PluginsCircuitMaintenanceMaintenancePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceMaintenancePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceMaintenanceUpdate request with any body - PluginsCircuitMaintenanceMaintenanceUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceMaintenanceUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenanceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteBulkDestroy request with any body - PluginsCircuitMaintenanceNoteBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceNoteBulkDestroy(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteList request - PluginsCircuitMaintenanceNoteList(ctx context.Context, params *PluginsCircuitMaintenanceNoteListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteBulkPartialUpdate request with any body - PluginsCircuitMaintenanceNoteBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceNoteBulkPartialUpdate(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteCreate request with any body - PluginsCircuitMaintenanceNoteCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceNoteCreate(ctx context.Context, body PluginsCircuitMaintenanceNoteCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteBulkUpdate request with any body - PluginsCircuitMaintenanceNoteBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceNoteBulkUpdate(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteDestroy request - PluginsCircuitMaintenanceNoteDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteRetrieve request - PluginsCircuitMaintenanceNoteRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNotePartialUpdate request with any body - PluginsCircuitMaintenanceNotePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceNotePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNotePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNoteUpdate request with any body - PluginsCircuitMaintenanceNoteUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsCircuitMaintenanceNoteUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNoteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNotificationsourceList request - PluginsCircuitMaintenanceNotificationsourceList(ctx context.Context, params *PluginsCircuitMaintenanceNotificationsourceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsCircuitMaintenanceNotificationsourceRetrieve request - PluginsCircuitMaintenanceNotificationsourceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxBulkDestroy request with any body - PluginsDataValidationEngineRulesMinMaxBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesMinMaxBulkDestroy(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxList request - PluginsDataValidationEngineRulesMinMaxList(ctx context.Context, params *PluginsDataValidationEngineRulesMinMaxListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate request with any body - PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxCreate request with any body - PluginsDataValidationEngineRulesMinMaxCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesMinMaxCreate(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxBulkUpdate request with any body - PluginsDataValidationEngineRulesMinMaxBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesMinMaxBulkUpdate(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxDestroy request - PluginsDataValidationEngineRulesMinMaxDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxRetrieve request - PluginsDataValidationEngineRulesMinMaxRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxPartialUpdate request with any body - PluginsDataValidationEngineRulesMinMaxPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesMinMaxPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesMinMaxUpdate request with any body - PluginsDataValidationEngineRulesMinMaxUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesMinMaxUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexBulkDestroy request with any body - PluginsDataValidationEngineRulesRegexBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesRegexBulkDestroy(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexList request - PluginsDataValidationEngineRulesRegexList(ctx context.Context, params *PluginsDataValidationEngineRulesRegexListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexBulkPartialUpdate request with any body - PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesRegexBulkPartialUpdate(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexCreate request with any body - PluginsDataValidationEngineRulesRegexCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesRegexCreate(ctx context.Context, body PluginsDataValidationEngineRulesRegexCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexBulkUpdate request with any body - PluginsDataValidationEngineRulesRegexBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesRegexBulkUpdate(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexDestroy request - PluginsDataValidationEngineRulesRegexDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexRetrieve request - PluginsDataValidationEngineRulesRegexRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexPartialUpdate request with any body - PluginsDataValidationEngineRulesRegexPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesRegexPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDataValidationEngineRulesRegexUpdate request with any body - PluginsDataValidationEngineRulesRegexUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDataValidationEngineRulesRegexUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDeviceOnboardingOnboardingList request - PluginsDeviceOnboardingOnboardingList(ctx context.Context, params *PluginsDeviceOnboardingOnboardingListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDeviceOnboardingOnboardingCreate request with any body - PluginsDeviceOnboardingOnboardingCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsDeviceOnboardingOnboardingCreate(ctx context.Context, body PluginsDeviceOnboardingOnboardingCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDeviceOnboardingOnboardingDestroy request - PluginsDeviceOnboardingOnboardingDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsDeviceOnboardingOnboardingRetrieve request - PluginsDeviceOnboardingOnboardingRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupBulkDestroy request with any body - PluginsFirewallAddressObjectGroupBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectGroupBulkDestroy(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupList request - PluginsFirewallAddressObjectGroupList(ctx context.Context, params *PluginsFirewallAddressObjectGroupListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupBulkPartialUpdate request with any body - PluginsFirewallAddressObjectGroupBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectGroupBulkPartialUpdate(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupCreate request with any body - PluginsFirewallAddressObjectGroupCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectGroupCreate(ctx context.Context, body PluginsFirewallAddressObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupBulkUpdate request with any body - PluginsFirewallAddressObjectGroupBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectGroupBulkUpdate(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupDestroy request - PluginsFirewallAddressObjectGroupDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupRetrieve request - PluginsFirewallAddressObjectGroupRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupPartialUpdate request with any body - PluginsFirewallAddressObjectGroupPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectGroupPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupUpdate request with any body - PluginsFirewallAddressObjectGroupUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectGroupUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupNotesList request - PluginsFirewallAddressObjectGroupNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectGroupNotesCreate request with any body - PluginsFirewallAddressObjectGroupNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectGroupNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectBulkDestroy request with any body - PluginsFirewallAddressObjectBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectBulkDestroy(ctx context.Context, body PluginsFirewallAddressObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectList request - PluginsFirewallAddressObjectList(ctx context.Context, params *PluginsFirewallAddressObjectListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectBulkPartialUpdate request with any body - PluginsFirewallAddressObjectBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectBulkPartialUpdate(ctx context.Context, body PluginsFirewallAddressObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectCreate request with any body - PluginsFirewallAddressObjectCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectCreate(ctx context.Context, body PluginsFirewallAddressObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectBulkUpdate request with any body - PluginsFirewallAddressObjectBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectBulkUpdate(ctx context.Context, body PluginsFirewallAddressObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectDestroy request - PluginsFirewallAddressObjectDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectRetrieve request - PluginsFirewallAddressObjectRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectPartialUpdate request with any body - PluginsFirewallAddressObjectPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectUpdate request with any body - PluginsFirewallAddressObjectUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectNotesList request - PluginsFirewallAddressObjectNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallAddressObjectNotesCreate request with any body - PluginsFirewallAddressObjectNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallAddressObjectNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyBulkDestroy request with any body - PluginsFirewallCapircaPolicyBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallCapircaPolicyBulkDestroy(ctx context.Context, body PluginsFirewallCapircaPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyList request - PluginsFirewallCapircaPolicyList(ctx context.Context, params *PluginsFirewallCapircaPolicyListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyBulkPartialUpdate request with any body - PluginsFirewallCapircaPolicyBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallCapircaPolicyBulkPartialUpdate(ctx context.Context, body PluginsFirewallCapircaPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyCreate request with any body - PluginsFirewallCapircaPolicyCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallCapircaPolicyCreate(ctx context.Context, body PluginsFirewallCapircaPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyBulkUpdate request with any body - PluginsFirewallCapircaPolicyBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallCapircaPolicyBulkUpdate(ctx context.Context, body PluginsFirewallCapircaPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyDestroy request - PluginsFirewallCapircaPolicyDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyRetrieve request - PluginsFirewallCapircaPolicyRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyPartialUpdate request with any body - PluginsFirewallCapircaPolicyPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallCapircaPolicyPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallCapircaPolicyUpdate request with any body - PluginsFirewallCapircaPolicyUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallCapircaPolicyUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnBulkDestroy request with any body - PluginsFirewallFqdnBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallFqdnBulkDestroy(ctx context.Context, body PluginsFirewallFqdnBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnList request - PluginsFirewallFqdnList(ctx context.Context, params *PluginsFirewallFqdnListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnBulkPartialUpdate request with any body - PluginsFirewallFqdnBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallFqdnBulkPartialUpdate(ctx context.Context, body PluginsFirewallFqdnBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnCreate request with any body - PluginsFirewallFqdnCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallFqdnCreate(ctx context.Context, body PluginsFirewallFqdnCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnBulkUpdate request with any body - PluginsFirewallFqdnBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallFqdnBulkUpdate(ctx context.Context, body PluginsFirewallFqdnBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnDestroy request - PluginsFirewallFqdnDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnRetrieve request - PluginsFirewallFqdnRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnPartialUpdate request with any body - PluginsFirewallFqdnPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallFqdnPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnUpdate request with any body - PluginsFirewallFqdnUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallFqdnUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnNotesList request - PluginsFirewallFqdnNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallFqdnNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallFqdnNotesCreate request with any body - PluginsFirewallFqdnNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallFqdnNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeBulkDestroy request with any body - PluginsFirewallIpRangeBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallIpRangeBulkDestroy(ctx context.Context, body PluginsFirewallIpRangeBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeList request - PluginsFirewallIpRangeList(ctx context.Context, params *PluginsFirewallIpRangeListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeBulkPartialUpdate request with any body - PluginsFirewallIpRangeBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallIpRangeBulkPartialUpdate(ctx context.Context, body PluginsFirewallIpRangeBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeCreate request with any body - PluginsFirewallIpRangeCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallIpRangeCreate(ctx context.Context, body PluginsFirewallIpRangeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeBulkUpdate request with any body - PluginsFirewallIpRangeBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallIpRangeBulkUpdate(ctx context.Context, body PluginsFirewallIpRangeBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeDestroy request - PluginsFirewallIpRangeDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeRetrieve request - PluginsFirewallIpRangeRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangePartialUpdate request with any body - PluginsFirewallIpRangePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallIpRangePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeUpdate request with any body - PluginsFirewallIpRangeUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallIpRangeUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeNotesList request - PluginsFirewallIpRangeNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallIpRangeNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallIpRangeNotesCreate request with any body - PluginsFirewallIpRangeNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallIpRangeNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleBulkDestroy request with any body - PluginsFirewallNatPolicyRuleBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyRuleBulkDestroy(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleList request - PluginsFirewallNatPolicyRuleList(ctx context.Context, params *PluginsFirewallNatPolicyRuleListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleBulkPartialUpdate request with any body - PluginsFirewallNatPolicyRuleBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyRuleBulkPartialUpdate(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleCreate request with any body - PluginsFirewallNatPolicyRuleCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyRuleCreate(ctx context.Context, body PluginsFirewallNatPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleBulkUpdate request with any body - PluginsFirewallNatPolicyRuleBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyRuleBulkUpdate(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleDestroy request - PluginsFirewallNatPolicyRuleDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleRetrieve request - PluginsFirewallNatPolicyRuleRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRulePartialUpdate request with any body - PluginsFirewallNatPolicyRulePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyRulePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleUpdate request with any body - PluginsFirewallNatPolicyRuleUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyRuleUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleNotesList request - PluginsFirewallNatPolicyRuleNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRuleNotesCreate request with any body - PluginsFirewallNatPolicyRuleNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyRuleNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyBulkDestroy request with any body - PluginsFirewallNatPolicyBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyBulkDestroy(ctx context.Context, body PluginsFirewallNatPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyList request - PluginsFirewallNatPolicyList(ctx context.Context, params *PluginsFirewallNatPolicyListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyBulkPartialUpdate request with any body - PluginsFirewallNatPolicyBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyBulkPartialUpdate(ctx context.Context, body PluginsFirewallNatPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyCreate request with any body - PluginsFirewallNatPolicyCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyCreate(ctx context.Context, body PluginsFirewallNatPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyBulkUpdate request with any body - PluginsFirewallNatPolicyBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyBulkUpdate(ctx context.Context, body PluginsFirewallNatPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyDestroy request - PluginsFirewallNatPolicyDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyRetrieve request - PluginsFirewallNatPolicyRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyPartialUpdate request with any body - PluginsFirewallNatPolicyPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyUpdate request with any body - PluginsFirewallNatPolicyUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyNotesList request - PluginsFirewallNatPolicyNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallNatPolicyNotesCreate request with any body - PluginsFirewallNatPolicyNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallNatPolicyNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleBulkDestroy request with any body - PluginsFirewallPolicyRuleBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyRuleBulkDestroy(ctx context.Context, body PluginsFirewallPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleList request - PluginsFirewallPolicyRuleList(ctx context.Context, params *PluginsFirewallPolicyRuleListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleBulkPartialUpdate request with any body - PluginsFirewallPolicyRuleBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyRuleBulkPartialUpdate(ctx context.Context, body PluginsFirewallPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleCreate request with any body - PluginsFirewallPolicyRuleCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyRuleCreate(ctx context.Context, body PluginsFirewallPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleBulkUpdate request with any body - PluginsFirewallPolicyRuleBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyRuleBulkUpdate(ctx context.Context, body PluginsFirewallPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleDestroy request - PluginsFirewallPolicyRuleDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleRetrieve request - PluginsFirewallPolicyRuleRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRulePartialUpdate request with any body - PluginsFirewallPolicyRulePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyRulePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleUpdate request with any body - PluginsFirewallPolicyRuleUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyRuleUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleNotesList request - PluginsFirewallPolicyRuleNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRuleNotesCreate request with any body - PluginsFirewallPolicyRuleNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyRuleNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyBulkDestroy request with any body - PluginsFirewallPolicyBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyBulkDestroy(ctx context.Context, body PluginsFirewallPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyList request - PluginsFirewallPolicyList(ctx context.Context, params *PluginsFirewallPolicyListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyBulkPartialUpdate request with any body - PluginsFirewallPolicyBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyBulkPartialUpdate(ctx context.Context, body PluginsFirewallPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyCreate request with any body - PluginsFirewallPolicyCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyCreate(ctx context.Context, body PluginsFirewallPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyBulkUpdate request with any body - PluginsFirewallPolicyBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyBulkUpdate(ctx context.Context, body PluginsFirewallPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyDestroy request - PluginsFirewallPolicyDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyRetrieve request - PluginsFirewallPolicyRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyPartialUpdate request with any body - PluginsFirewallPolicyPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyUpdate request with any body - PluginsFirewallPolicyUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyNotesList request - PluginsFirewallPolicyNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallPolicyNotesCreate request with any body - PluginsFirewallPolicyNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallPolicyNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupBulkDestroy request with any body - PluginsFirewallServiceObjectGroupBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectGroupBulkDestroy(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupList request - PluginsFirewallServiceObjectGroupList(ctx context.Context, params *PluginsFirewallServiceObjectGroupListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupBulkPartialUpdate request with any body - PluginsFirewallServiceObjectGroupBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectGroupBulkPartialUpdate(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupCreate request with any body - PluginsFirewallServiceObjectGroupCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectGroupCreate(ctx context.Context, body PluginsFirewallServiceObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupBulkUpdate request with any body - PluginsFirewallServiceObjectGroupBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectGroupBulkUpdate(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupDestroy request - PluginsFirewallServiceObjectGroupDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupRetrieve request - PluginsFirewallServiceObjectGroupRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupPartialUpdate request with any body - PluginsFirewallServiceObjectGroupPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectGroupPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupUpdate request with any body - PluginsFirewallServiceObjectGroupUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectGroupUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupNotesList request - PluginsFirewallServiceObjectGroupNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectGroupNotesCreate request with any body - PluginsFirewallServiceObjectGroupNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectGroupNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectBulkDestroy request with any body - PluginsFirewallServiceObjectBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectBulkDestroy(ctx context.Context, body PluginsFirewallServiceObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectList request - PluginsFirewallServiceObjectList(ctx context.Context, params *PluginsFirewallServiceObjectListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectBulkPartialUpdate request with any body - PluginsFirewallServiceObjectBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectBulkPartialUpdate(ctx context.Context, body PluginsFirewallServiceObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectCreate request with any body - PluginsFirewallServiceObjectCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectCreate(ctx context.Context, body PluginsFirewallServiceObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectBulkUpdate request with any body - PluginsFirewallServiceObjectBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectBulkUpdate(ctx context.Context, body PluginsFirewallServiceObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectDestroy request - PluginsFirewallServiceObjectDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectRetrieve request - PluginsFirewallServiceObjectRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectPartialUpdate request with any body - PluginsFirewallServiceObjectPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectUpdate request with any body - PluginsFirewallServiceObjectUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectNotesList request - PluginsFirewallServiceObjectNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallServiceObjectNotesCreate request with any body - PluginsFirewallServiceObjectNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallServiceObjectNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupBulkDestroy request with any body - PluginsFirewallUserObjectGroupBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectGroupBulkDestroy(ctx context.Context, body PluginsFirewallUserObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupList request - PluginsFirewallUserObjectGroupList(ctx context.Context, params *PluginsFirewallUserObjectGroupListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupBulkPartialUpdate request with any body - PluginsFirewallUserObjectGroupBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectGroupBulkPartialUpdate(ctx context.Context, body PluginsFirewallUserObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupCreate request with any body - PluginsFirewallUserObjectGroupCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectGroupCreate(ctx context.Context, body PluginsFirewallUserObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupBulkUpdate request with any body - PluginsFirewallUserObjectGroupBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectGroupBulkUpdate(ctx context.Context, body PluginsFirewallUserObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupDestroy request - PluginsFirewallUserObjectGroupDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupRetrieve request - PluginsFirewallUserObjectGroupRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupPartialUpdate request with any body - PluginsFirewallUserObjectGroupPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectGroupPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupUpdate request with any body - PluginsFirewallUserObjectGroupUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectGroupUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupNotesList request - PluginsFirewallUserObjectGroupNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectGroupNotesCreate request with any body - PluginsFirewallUserObjectGroupNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectGroupNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectBulkDestroy request with any body - PluginsFirewallUserObjectBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectBulkDestroy(ctx context.Context, body PluginsFirewallUserObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectList request - PluginsFirewallUserObjectList(ctx context.Context, params *PluginsFirewallUserObjectListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectBulkPartialUpdate request with any body - PluginsFirewallUserObjectBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectBulkPartialUpdate(ctx context.Context, body PluginsFirewallUserObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectCreate request with any body - PluginsFirewallUserObjectCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectCreate(ctx context.Context, body PluginsFirewallUserObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectBulkUpdate request with any body - PluginsFirewallUserObjectBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectBulkUpdate(ctx context.Context, body PluginsFirewallUserObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectDestroy request - PluginsFirewallUserObjectDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectRetrieve request - PluginsFirewallUserObjectRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectPartialUpdate request with any body - PluginsFirewallUserObjectPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectUpdate request with any body - PluginsFirewallUserObjectUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectNotesList request - PluginsFirewallUserObjectNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallUserObjectNotesCreate request with any body - PluginsFirewallUserObjectNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallUserObjectNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneBulkDestroy request with any body - PluginsFirewallZoneBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallZoneBulkDestroy(ctx context.Context, body PluginsFirewallZoneBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneList request - PluginsFirewallZoneList(ctx context.Context, params *PluginsFirewallZoneListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneBulkPartialUpdate request with any body - PluginsFirewallZoneBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallZoneBulkPartialUpdate(ctx context.Context, body PluginsFirewallZoneBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneCreate request with any body - PluginsFirewallZoneCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallZoneCreate(ctx context.Context, body PluginsFirewallZoneCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneBulkUpdate request with any body - PluginsFirewallZoneBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallZoneBulkUpdate(ctx context.Context, body PluginsFirewallZoneBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneDestroy request - PluginsFirewallZoneDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneRetrieve request - PluginsFirewallZoneRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZonePartialUpdate request with any body - PluginsFirewallZonePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallZonePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZonePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneUpdate request with any body - PluginsFirewallZoneUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallZoneUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneNotesList request - PluginsFirewallZoneNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallZoneNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsFirewallZoneNotesCreate request with any body - PluginsFirewallZoneNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsFirewallZoneNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureBulkDestroy request with any body - PluginsGoldenConfigComplianceFeatureBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceFeatureBulkDestroy(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureList request - PluginsGoldenConfigComplianceFeatureList(ctx context.Context, params *PluginsGoldenConfigComplianceFeatureListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureBulkPartialUpdate request with any body - PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceFeatureBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureCreate request with any body - PluginsGoldenConfigComplianceFeatureCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceFeatureCreate(ctx context.Context, body PluginsGoldenConfigComplianceFeatureCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureBulkUpdate request with any body - PluginsGoldenConfigComplianceFeatureBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceFeatureBulkUpdate(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureDestroy request - PluginsGoldenConfigComplianceFeatureDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureRetrieve request - PluginsGoldenConfigComplianceFeatureRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeaturePartialUpdate request with any body - PluginsGoldenConfigComplianceFeaturePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceFeaturePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeaturePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceFeatureUpdate request with any body - PluginsGoldenConfigComplianceFeatureUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceFeatureUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeatureUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleBulkDestroy request with any body - PluginsGoldenConfigComplianceRuleBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceRuleBulkDestroy(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleList request - PluginsGoldenConfigComplianceRuleList(ctx context.Context, params *PluginsGoldenConfigComplianceRuleListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleBulkPartialUpdate request with any body - PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceRuleBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleCreate request with any body - PluginsGoldenConfigComplianceRuleCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceRuleCreate(ctx context.Context, body PluginsGoldenConfigComplianceRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleBulkUpdate request with any body - PluginsGoldenConfigComplianceRuleBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceRuleBulkUpdate(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleDestroy request - PluginsGoldenConfigComplianceRuleDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleRetrieve request - PluginsGoldenConfigComplianceRuleRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRulePartialUpdate request with any body - PluginsGoldenConfigComplianceRulePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceRulePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigComplianceRuleUpdate request with any body - PluginsGoldenConfigComplianceRuleUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigComplianceRuleUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceBulkDestroy request with any body - PluginsGoldenConfigConfigComplianceBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigComplianceBulkDestroy(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceList request - PluginsGoldenConfigConfigComplianceList(ctx context.Context, params *PluginsGoldenConfigConfigComplianceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceBulkPartialUpdate request with any body - PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigComplianceBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceCreate request with any body - PluginsGoldenConfigConfigComplianceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigComplianceCreate(ctx context.Context, body PluginsGoldenConfigConfigComplianceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceBulkUpdate request with any body - PluginsGoldenConfigConfigComplianceBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigComplianceBulkUpdate(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceDestroy request - PluginsGoldenConfigConfigComplianceDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceRetrieve request - PluginsGoldenConfigConfigComplianceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigCompliancePartialUpdate request with any body - PluginsGoldenConfigConfigCompliancePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigCompliancePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigCompliancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigComplianceUpdate request with any body - PluginsGoldenConfigConfigComplianceUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigComplianceUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigComplianceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigPostprocessingRetrieve request - PluginsGoldenConfigConfigPostprocessingRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveBulkDestroy request with any body - PluginsGoldenConfigConfigRemoveBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigRemoveBulkDestroy(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveList request - PluginsGoldenConfigConfigRemoveList(ctx context.Context, params *PluginsGoldenConfigConfigRemoveListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveBulkPartialUpdate request with any body - PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigRemoveBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveCreate request with any body - PluginsGoldenConfigConfigRemoveCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigRemoveCreate(ctx context.Context, body PluginsGoldenConfigConfigRemoveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveBulkUpdate request with any body - PluginsGoldenConfigConfigRemoveBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigRemoveBulkUpdate(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveDestroy request - PluginsGoldenConfigConfigRemoveDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveRetrieve request - PluginsGoldenConfigConfigRemoveRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemovePartialUpdate request with any body - PluginsGoldenConfigConfigRemovePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigRemovePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemovePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigRemoveUpdate request with any body - PluginsGoldenConfigConfigRemoveUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigRemoveUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemoveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceBulkDestroy request with any body - PluginsGoldenConfigConfigReplaceBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigReplaceBulkDestroy(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceList request - PluginsGoldenConfigConfigReplaceList(ctx context.Context, params *PluginsGoldenConfigConfigReplaceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceBulkPartialUpdate request with any body - PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigReplaceBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceCreate request with any body - PluginsGoldenConfigConfigReplaceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigReplaceCreate(ctx context.Context, body PluginsGoldenConfigConfigReplaceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceBulkUpdate request with any body - PluginsGoldenConfigConfigReplaceBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigReplaceBulkUpdate(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceDestroy request - PluginsGoldenConfigConfigReplaceDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceRetrieve request - PluginsGoldenConfigConfigReplaceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplacePartialUpdate request with any body - PluginsGoldenConfigConfigReplacePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigReplacePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplacePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigConfigReplaceUpdate request with any body - PluginsGoldenConfigConfigReplaceUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigConfigReplaceUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplaceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsBulkDestroy request with any body - PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigSettingsBulkDestroy(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsList request - PluginsGoldenConfigGoldenConfigSettingsList(ctx context.Context, params *PluginsGoldenConfigGoldenConfigSettingsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsCreate request with any body - PluginsGoldenConfigGoldenConfigSettingsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigSettingsCreate(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsBulkUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigSettingsBulkUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsDestroy request - PluginsGoldenConfigGoldenConfigSettingsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsRetrieve request - PluginsGoldenConfigGoldenConfigSettingsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigSettingsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigSettingsUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigSettingsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigBulkDestroy request with any body - PluginsGoldenConfigGoldenConfigBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigBulkDestroy(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigList request - PluginsGoldenConfigGoldenConfigList(ctx context.Context, params *PluginsGoldenConfigGoldenConfigListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigBulkPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigCreate request with any body - PluginsGoldenConfigGoldenConfigCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigCreate(ctx context.Context, body PluginsGoldenConfigGoldenConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigBulkUpdate request with any body - PluginsGoldenConfigGoldenConfigBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigBulkUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigDestroy request - PluginsGoldenConfigGoldenConfigDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigRetrieve request - PluginsGoldenConfigGoldenConfigRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigGoldenConfigUpdate request with any body - PluginsGoldenConfigGoldenConfigUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsGoldenConfigGoldenConfigUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsGoldenConfigSotaggRetrieve request - PluginsGoldenConfigSotaggRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactList request - PluginsNautobotDeviceLifecycleMgmtContactList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContactListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactCreate request with any body - PluginsNautobotDeviceLifecycleMgmtContactCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContactCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactDestroy request - PluginsNautobotDeviceLifecycleMgmtContactDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactRetrieve request - PluginsNautobotDeviceLifecycleMgmtContactRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContactUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContactUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractList request - PluginsNautobotDeviceLifecycleMgmtContractList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContractListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractCreate request with any body - PluginsNautobotDeviceLifecycleMgmtContractCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContractCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractDestroy request - PluginsNautobotDeviceLifecycleMgmtContractDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractRetrieve request - PluginsNautobotDeviceLifecycleMgmtContractRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtContractUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtContractUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveList request - PluginsNautobotDeviceLifecycleMgmtCveList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtCveListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveCreate request with any body - PluginsNautobotDeviceLifecycleMgmtCveCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtCveCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveDestroy request - PluginsNautobotDeviceLifecycleMgmtCveDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveRetrieve request - PluginsNautobotDeviceLifecycleMgmtCveRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtCveUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCveUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtCveUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareList request - PluginsNautobotDeviceLifecycleMgmtHardwareList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtHardwareListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareCreate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareDestroy request - PluginsNautobotDeviceLifecycleMgmtHardwareDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareRetrieve request - PluginsNautobotDeviceLifecycleMgmtHardwareRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderList request - PluginsNautobotDeviceLifecycleMgmtProviderList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtProviderListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderCreate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtProviderCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderDestroy request - PluginsNautobotDeviceLifecycleMgmtProviderDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderRetrieve request - PluginsNautobotDeviceLifecycleMgmtProviderRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtProviderUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageList request - PluginsNautobotDeviceLifecycleMgmtSoftwareImageList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareImageListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroy request - PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieve request - PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareList request - PluginsNautobotDeviceLifecycleMgmtSoftwareList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareCreate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareDestroy request - PluginsNautobotDeviceLifecycleMgmtSoftwareDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieve request - PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareList request - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroy request - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieve request - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityList request - PluginsNautobotDeviceLifecycleMgmtVulnerabilityList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtVulnerabilityListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroy request - PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieve request - PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // StatusRetrieve request - StatusRetrieve(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SwaggerJsonRetrieve request - SwaggerJsonRetrieve(ctx context.Context, params *SwaggerJsonRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SwaggerYamlRetrieve request - SwaggerYamlRetrieve(ctx context.Context, params *SwaggerYamlRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SwaggerRetrieve request - SwaggerRetrieve(ctx context.Context, params *SwaggerRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsBulkDestroy request with any body - TenancyTenantGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantGroupsBulkDestroy(ctx context.Context, body TenancyTenantGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsList request - TenancyTenantGroupsList(ctx context.Context, params *TenancyTenantGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsBulkPartialUpdate request with any body - TenancyTenantGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantGroupsBulkPartialUpdate(ctx context.Context, body TenancyTenantGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsCreate request with any body - TenancyTenantGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantGroupsCreate(ctx context.Context, body TenancyTenantGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsBulkUpdate request with any body - TenancyTenantGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantGroupsBulkUpdate(ctx context.Context, body TenancyTenantGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsDestroy request - TenancyTenantGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsRetrieve request - TenancyTenantGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsPartialUpdate request with any body - TenancyTenantGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsUpdate request with any body - TenancyTenantGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantGroupsUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsNotesList request - TenancyTenantGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *TenancyTenantGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantGroupsNotesCreate request with any body - TenancyTenantGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsBulkDestroy request with any body - TenancyTenantsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantsBulkDestroy(ctx context.Context, body TenancyTenantsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsList request - TenancyTenantsList(ctx context.Context, params *TenancyTenantsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsBulkPartialUpdate request with any body - TenancyTenantsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantsBulkPartialUpdate(ctx context.Context, body TenancyTenantsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsCreate request with any body - TenancyTenantsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantsCreate(ctx context.Context, body TenancyTenantsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsBulkUpdate request with any body - TenancyTenantsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantsBulkUpdate(ctx context.Context, body TenancyTenantsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsDestroy request - TenancyTenantsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsRetrieve request - TenancyTenantsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsPartialUpdate request with any body - TenancyTenantsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantsPartialUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsUpdate request with any body - TenancyTenantsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantsUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsNotesList request - TenancyTenantsNotesList(ctx context.Context, id openapi_types.UUID, params *TenancyTenantsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TenancyTenantsNotesCreate request with any body - TenancyTenantsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TenancyTenantsNotesCreate(ctx context.Context, id openapi_types.UUID, body TenancyTenantsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersConfigRetrieve request - UsersConfigRetrieve(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsBulkDestroy request with any body - UsersGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersGroupsBulkDestroy(ctx context.Context, body UsersGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsList request - UsersGroupsList(ctx context.Context, params *UsersGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsBulkPartialUpdate request with any body - UsersGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersGroupsBulkPartialUpdate(ctx context.Context, body UsersGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsCreate request with any body - UsersGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersGroupsCreate(ctx context.Context, body UsersGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsBulkUpdate request with any body - UsersGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersGroupsBulkUpdate(ctx context.Context, body UsersGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsDestroy request - UsersGroupsDestroy(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsRetrieve request - UsersGroupsRetrieve(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsPartialUpdate request with any body - UsersGroupsPartialUpdateWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersGroupsPartialUpdate(ctx context.Context, id int, body UsersGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersGroupsUpdate request with any body - UsersGroupsUpdateWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersGroupsUpdate(ctx context.Context, id int, body UsersGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsBulkDestroy request with any body - UsersPermissionsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersPermissionsBulkDestroy(ctx context.Context, body UsersPermissionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsList request - UsersPermissionsList(ctx context.Context, params *UsersPermissionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsBulkPartialUpdate request with any body - UsersPermissionsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersPermissionsBulkPartialUpdate(ctx context.Context, body UsersPermissionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsCreate request with any body - UsersPermissionsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersPermissionsCreate(ctx context.Context, body UsersPermissionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsBulkUpdate request with any body - UsersPermissionsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersPermissionsBulkUpdate(ctx context.Context, body UsersPermissionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsDestroy request - UsersPermissionsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsRetrieve request - UsersPermissionsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsPartialUpdate request with any body - UsersPermissionsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersPermissionsPartialUpdate(ctx context.Context, id openapi_types.UUID, body UsersPermissionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersPermissionsUpdate request with any body - UsersPermissionsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersPermissionsUpdate(ctx context.Context, id openapi_types.UUID, body UsersPermissionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensBulkDestroy request with any body - UsersTokensBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersTokensBulkDestroy(ctx context.Context, body UsersTokensBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensList request - UsersTokensList(ctx context.Context, params *UsersTokensListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensBulkPartialUpdate request with any body - UsersTokensBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersTokensBulkPartialUpdate(ctx context.Context, body UsersTokensBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensCreate request with any body - UsersTokensCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersTokensCreate(ctx context.Context, body UsersTokensCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensBulkUpdate request with any body - UsersTokensBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersTokensBulkUpdate(ctx context.Context, body UsersTokensBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensDestroy request - UsersTokensDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensRetrieve request - UsersTokensRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensPartialUpdate request with any body - UsersTokensPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersTokensPartialUpdate(ctx context.Context, id openapi_types.UUID, body UsersTokensPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersTokensUpdate request with any body - UsersTokensUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersTokensUpdate(ctx context.Context, id openapi_types.UUID, body UsersTokensUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersBulkDestroy request with any body - UsersUsersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersUsersBulkDestroy(ctx context.Context, body UsersUsersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersList request - UsersUsersList(ctx context.Context, params *UsersUsersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersBulkPartialUpdate request with any body - UsersUsersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersUsersBulkPartialUpdate(ctx context.Context, body UsersUsersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersCreate request with any body - UsersUsersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersUsersCreate(ctx context.Context, body UsersUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersBulkUpdate request with any body - UsersUsersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersUsersBulkUpdate(ctx context.Context, body UsersUsersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersDestroy request - UsersUsersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersRetrieve request - UsersUsersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersPartialUpdate request with any body - UsersUsersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersUsersPartialUpdate(ctx context.Context, id openapi_types.UUID, body UsersUsersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsersUsersUpdate request with any body - UsersUsersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UsersUsersUpdate(ctx context.Context, id openapi_types.UUID, body UsersUsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsBulkDestroy request with any body - VirtualizationClusterGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterGroupsBulkDestroy(ctx context.Context, body VirtualizationClusterGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsList request - VirtualizationClusterGroupsList(ctx context.Context, params *VirtualizationClusterGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsBulkPartialUpdate request with any body - VirtualizationClusterGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterGroupsBulkPartialUpdate(ctx context.Context, body VirtualizationClusterGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsCreate request with any body - VirtualizationClusterGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterGroupsCreate(ctx context.Context, body VirtualizationClusterGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsBulkUpdate request with any body - VirtualizationClusterGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterGroupsBulkUpdate(ctx context.Context, body VirtualizationClusterGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsDestroy request - VirtualizationClusterGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsRetrieve request - VirtualizationClusterGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsPartialUpdate request with any body - VirtualizationClusterGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsUpdate request with any body - VirtualizationClusterGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterGroupsUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsNotesList request - VirtualizationClusterGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterGroupsNotesCreate request with any body - VirtualizationClusterGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesBulkDestroy request with any body - VirtualizationClusterTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterTypesBulkDestroy(ctx context.Context, body VirtualizationClusterTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesList request - VirtualizationClusterTypesList(ctx context.Context, params *VirtualizationClusterTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesBulkPartialUpdate request with any body - VirtualizationClusterTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterTypesBulkPartialUpdate(ctx context.Context, body VirtualizationClusterTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesCreate request with any body - VirtualizationClusterTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterTypesCreate(ctx context.Context, body VirtualizationClusterTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesBulkUpdate request with any body - VirtualizationClusterTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterTypesBulkUpdate(ctx context.Context, body VirtualizationClusterTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesDestroy request - VirtualizationClusterTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesRetrieve request - VirtualizationClusterTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesPartialUpdate request with any body - VirtualizationClusterTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesUpdate request with any body - VirtualizationClusterTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterTypesUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesNotesList request - VirtualizationClusterTypesNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClusterTypesNotesCreate request with any body - VirtualizationClusterTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClusterTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersBulkDestroy request with any body - VirtualizationClustersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClustersBulkDestroy(ctx context.Context, body VirtualizationClustersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersList request - VirtualizationClustersList(ctx context.Context, params *VirtualizationClustersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersBulkPartialUpdate request with any body - VirtualizationClustersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClustersBulkPartialUpdate(ctx context.Context, body VirtualizationClustersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersCreate request with any body - VirtualizationClustersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClustersCreate(ctx context.Context, body VirtualizationClustersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersBulkUpdate request with any body - VirtualizationClustersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClustersBulkUpdate(ctx context.Context, body VirtualizationClustersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersDestroy request - VirtualizationClustersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersRetrieve request - VirtualizationClustersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersPartialUpdate request with any body - VirtualizationClustersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClustersPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersUpdate request with any body - VirtualizationClustersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClustersUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersNotesList request - VirtualizationClustersNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationClustersNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationClustersNotesCreate request with any body - VirtualizationClustersNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationClustersNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesBulkDestroy request with any body - VirtualizationInterfacesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationInterfacesBulkDestroy(ctx context.Context, body VirtualizationInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesList request - VirtualizationInterfacesList(ctx context.Context, params *VirtualizationInterfacesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesBulkPartialUpdate request with any body - VirtualizationInterfacesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationInterfacesBulkPartialUpdate(ctx context.Context, body VirtualizationInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesCreate request with any body - VirtualizationInterfacesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationInterfacesCreate(ctx context.Context, body VirtualizationInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesBulkUpdate request with any body - VirtualizationInterfacesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationInterfacesBulkUpdate(ctx context.Context, body VirtualizationInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesDestroy request - VirtualizationInterfacesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesRetrieve request - VirtualizationInterfacesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesPartialUpdate request with any body - VirtualizationInterfacesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationInterfacesPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesUpdate request with any body - VirtualizationInterfacesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationInterfacesUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesNotesList request - VirtualizationInterfacesNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationInterfacesNotesCreate request with any body - VirtualizationInterfacesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationInterfacesNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesBulkDestroy request with any body - VirtualizationVirtualMachinesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationVirtualMachinesBulkDestroy(ctx context.Context, body VirtualizationVirtualMachinesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesList request - VirtualizationVirtualMachinesList(ctx context.Context, params *VirtualizationVirtualMachinesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesBulkPartialUpdate request with any body - VirtualizationVirtualMachinesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context, body VirtualizationVirtualMachinesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesCreate request with any body - VirtualizationVirtualMachinesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationVirtualMachinesCreate(ctx context.Context, body VirtualizationVirtualMachinesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesBulkUpdate request with any body - VirtualizationVirtualMachinesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationVirtualMachinesBulkUpdate(ctx context.Context, body VirtualizationVirtualMachinesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesDestroy request - VirtualizationVirtualMachinesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesRetrieve request - VirtualizationVirtualMachinesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesPartialUpdate request with any body - VirtualizationVirtualMachinesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationVirtualMachinesPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesUpdate request with any body - VirtualizationVirtualMachinesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationVirtualMachinesUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesNotesList request - VirtualizationVirtualMachinesNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationVirtualMachinesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualizationVirtualMachinesNotesCreate request with any body - VirtualizationVirtualMachinesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - VirtualizationVirtualMachinesNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) -} - -func (c *Client) CircuitsCircuitTerminationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsBulkDestroy(ctx context.Context, body CircuitsCircuitTerminationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsList(ctx context.Context, params *CircuitsCircuitTerminationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context, body CircuitsCircuitTerminationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsCreate(ctx context.Context, body CircuitsCircuitTerminationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsBulkUpdate(ctx context.Context, body CircuitsCircuitTerminationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTerminationsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTerminationsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTerminationsTraceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesBulkDestroy(ctx context.Context, body CircuitsCircuitTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesList(ctx context.Context, params *CircuitsCircuitTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context, body CircuitsCircuitTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesCreate(ctx context.Context, body CircuitsCircuitTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesBulkUpdate(ctx context.Context, body CircuitsCircuitTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitTypesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsBulkDestroy(ctx context.Context, body CircuitsCircuitsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsList(ctx context.Context, params *CircuitsCircuitsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsBulkPartialUpdate(ctx context.Context, body CircuitsCircuitsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsCreate(ctx context.Context, body CircuitsCircuitsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsBulkUpdate(ctx context.Context, body CircuitsCircuitsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsCircuitsNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsCircuitsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksBulkDestroy(ctx context.Context, body CircuitsProviderNetworksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksList(ctx context.Context, params *CircuitsProviderNetworksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context, body CircuitsProviderNetworksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksCreate(ctx context.Context, body CircuitsProviderNetworksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksBulkUpdate(ctx context.Context, body CircuitsProviderNetworksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsProviderNetworksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProviderNetworksNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProviderNetworksNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersBulkDestroy(ctx context.Context, body CircuitsProvidersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersList(ctx context.Context, params *CircuitsProvidersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersBulkPartialUpdate(ctx context.Context, body CircuitsProvidersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersCreate(ctx context.Context, body CircuitsProvidersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersBulkUpdate(ctx context.Context, body CircuitsProvidersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersPartialUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersUpdate(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersNotesList(ctx context.Context, id openapi_types.UUID, params *CircuitsProvidersNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CircuitsProvidersNotesCreate(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCircuitsProvidersNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesBulkDestroy(ctx context.Context, body DcimCablesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesList(ctx context.Context, params *DcimCablesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesBulkPartialUpdate(ctx context.Context, body DcimCablesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesCreate(ctx context.Context, body DcimCablesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesBulkUpdate(ctx context.Context, body DcimCablesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimCablesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesUpdate(ctx context.Context, id openapi_types.UUID, body DcimCablesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimCablesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimCablesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimCablesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimCablesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConnectedDeviceList(ctx context.Context, params *DcimConnectedDeviceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConnectedDeviceListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleConnectionsList(ctx context.Context, params *DcimConsoleConnectionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleConnectionsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesBulkDestroy(ctx context.Context, body DcimConsolePortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesList(ctx context.Context, params *DcimConsolePortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context, body DcimConsolePortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesCreate(ctx context.Context, body DcimConsolePortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesBulkUpdate(ctx context.Context, body DcimConsolePortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsBulkDestroy(ctx context.Context, body DcimConsolePortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsList(ctx context.Context, params *DcimConsolePortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsBulkPartialUpdate(ctx context.Context, body DcimConsolePortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsCreate(ctx context.Context, body DcimConsolePortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsBulkUpdate(ctx context.Context, body DcimConsolePortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsolePortsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsolePortsTraceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context, body DcimConsoleServerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesList(ctx context.Context, params *DcimConsoleServerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimConsoleServerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesCreate(ctx context.Context, body DcimConsoleServerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context, body DcimConsoleServerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsBulkDestroy(ctx context.Context, body DcimConsoleServerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsList(ctx context.Context, params *DcimConsoleServerPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context, body DcimConsoleServerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsCreate(ctx context.Context, body DcimConsoleServerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsBulkUpdate(ctx context.Context, body DcimConsoleServerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimConsoleServerPortsTraceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesBulkDestroy(ctx context.Context, body DcimDeviceBayTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesList(ctx context.Context, params *DcimDeviceBayTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context, body DcimDeviceBayTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesCreate(ctx context.Context, body DcimDeviceBayTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesBulkUpdate(ctx context.Context, body DcimDeviceBayTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBayTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBayTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBayTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysBulkDestroy(ctx context.Context, body DcimDeviceBaysBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysList(ctx context.Context, params *DcimDeviceBaysListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysBulkPartialUpdate(ctx context.Context, body DcimDeviceBaysBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysCreate(ctx context.Context, body DcimDeviceBaysCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysBulkUpdate(ctx context.Context, body DcimDeviceBaysBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBaysNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceBaysNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceBaysNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsBulkDestroy(ctx context.Context, body DcimDeviceRedundancyGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsList(ctx context.Context, params *DcimDeviceRedundancyGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsBulkPartialUpdate(ctx context.Context, body DcimDeviceRedundancyGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsCreate(ctx context.Context, body DcimDeviceRedundancyGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsBulkUpdate(ctx context.Context, body DcimDeviceRedundancyGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRedundancyGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRedundancyGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRedundancyGroupsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesBulkDestroy(ctx context.Context, body DcimDeviceRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesList(ctx context.Context, params *DcimDeviceRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesBulkPartialUpdate(ctx context.Context, body DcimDeviceRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesCreate(ctx context.Context, body DcimDeviceRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesBulkUpdate(ctx context.Context, body DcimDeviceRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRolesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceRolesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceRolesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesBulkDestroy(ctx context.Context, body DcimDeviceTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesList(ctx context.Context, params *DcimDeviceTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesBulkPartialUpdate(ctx context.Context, body DcimDeviceTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesCreate(ctx context.Context, body DcimDeviceTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesBulkUpdate(ctx context.Context, body DcimDeviceTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDeviceTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDeviceTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDeviceTypesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesBulkDestroy(ctx context.Context, body DcimDevicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesList(ctx context.Context, params *DcimDevicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesBulkPartialUpdate(ctx context.Context, body DcimDevicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesCreate(ctx context.Context, body DcimDevicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesBulkUpdate(ctx context.Context, body DcimDevicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimDevicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesUpdate(ctx context.Context, id openapi_types.UUID, body DcimDevicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesNapalmRetrieve(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNapalmRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesNapalmRetrieveRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimDevicesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimDevicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimDevicesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesBulkDestroy(ctx context.Context, body DcimFrontPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesList(ctx context.Context, params *DcimFrontPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimFrontPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesCreate(ctx context.Context, body DcimFrontPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesBulkUpdate(ctx context.Context, body DcimFrontPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsBulkDestroy(ctx context.Context, body DcimFrontPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsList(ctx context.Context, params *DcimFrontPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsBulkPartialUpdate(ctx context.Context, body DcimFrontPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsCreate(ctx context.Context, body DcimFrontPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsBulkUpdate(ctx context.Context, body DcimFrontPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimFrontPortsPathsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimFrontPortsPathsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceConnectionsList(ctx context.Context, params *DcimInterfaceConnectionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceConnectionsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesBulkDestroy(ctx context.Context, body DcimInterfaceTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesList(ctx context.Context, params *DcimInterfaceTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context, body DcimInterfaceTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesCreate(ctx context.Context, body DcimInterfaceTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesBulkUpdate(ctx context.Context, body DcimInterfaceTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimInterfaceTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfaceTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfaceTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesBulkDestroy(ctx context.Context, body DcimInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesList(ctx context.Context, params *DcimInterfacesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesBulkPartialUpdate(ctx context.Context, body DcimInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesCreate(ctx context.Context, body DcimInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesBulkUpdate(ctx context.Context, body DcimInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesUpdate(ctx context.Context, id openapi_types.UUID, body DcimInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInterfacesTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInterfacesTraceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsBulkDestroy(ctx context.Context, body DcimInventoryItemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsList(ctx context.Context, params *DcimInventoryItemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsBulkPartialUpdate(ctx context.Context, body DcimInventoryItemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsCreate(ctx context.Context, body DcimInventoryItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsBulkUpdate(ctx context.Context, body DcimInventoryItemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsUpdate(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimInventoryItemsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimInventoryItemsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimInventoryItemsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesBulkDestroy(ctx context.Context, body DcimLocationTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesList(ctx context.Context, params *DcimLocationTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesBulkPartialUpdate(ctx context.Context, body DcimLocationTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesCreate(ctx context.Context, body DcimLocationTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesBulkUpdate(ctx context.Context, body DcimLocationTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimLocationTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationTypesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsBulkDestroy(ctx context.Context, body DcimLocationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsList(ctx context.Context, params *DcimLocationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsBulkPartialUpdate(ctx context.Context, body DcimLocationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsCreate(ctx context.Context, body DcimLocationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsBulkUpdate(ctx context.Context, body DcimLocationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsUpdate(ctx context.Context, id openapi_types.UUID, body DcimLocationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimLocationsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimLocationsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimLocationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimLocationsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersBulkDestroy(ctx context.Context, body DcimManufacturersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersList(ctx context.Context, params *DcimManufacturersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersBulkPartialUpdate(ctx context.Context, body DcimManufacturersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersCreate(ctx context.Context, body DcimManufacturersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersBulkUpdate(ctx context.Context, body DcimManufacturersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimManufacturersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersUpdate(ctx context.Context, id openapi_types.UUID, body DcimManufacturersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersNotesList(ctx context.Context, id openapi_types.UUID, params *DcimManufacturersNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimManufacturersNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimManufacturersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimManufacturersNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsBulkDestroy(ctx context.Context, body DcimPlatformsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsList(ctx context.Context, params *DcimPlatformsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsBulkPartialUpdate(ctx context.Context, body DcimPlatformsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsCreate(ctx context.Context, body DcimPlatformsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsBulkUpdate(ctx context.Context, body DcimPlatformsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPlatformsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPlatformsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPlatformsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPlatformsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPlatformsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPlatformsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerConnectionsList(ctx context.Context, params *DcimPowerConnectionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerConnectionsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsBulkDestroy(ctx context.Context, body DcimPowerFeedsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsList(ctx context.Context, params *DcimPowerFeedsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsBulkPartialUpdate(ctx context.Context, body DcimPowerFeedsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsCreate(ctx context.Context, body DcimPowerFeedsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsBulkUpdate(ctx context.Context, body DcimPowerFeedsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerFeedsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerFeedsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerFeedsTraceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesBulkDestroy(ctx context.Context, body DcimPowerOutletTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesList(ctx context.Context, params *DcimPowerOutletTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context, body DcimPowerOutletTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesCreate(ctx context.Context, body DcimPowerOutletTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesBulkUpdate(ctx context.Context, body DcimPowerOutletTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsBulkDestroy(ctx context.Context, body DcimPowerOutletsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsList(ctx context.Context, params *DcimPowerOutletsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsBulkPartialUpdate(ctx context.Context, body DcimPowerOutletsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsCreate(ctx context.Context, body DcimPowerOutletsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsBulkUpdate(ctx context.Context, body DcimPowerOutletsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerOutletsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerOutletsTraceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsBulkDestroy(ctx context.Context, body DcimPowerPanelsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsList(ctx context.Context, params *DcimPowerPanelsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsBulkPartialUpdate(ctx context.Context, body DcimPowerPanelsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsCreate(ctx context.Context, body DcimPowerPanelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsBulkUpdate(ctx context.Context, body DcimPowerPanelsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerPanelsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPanelsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPanelsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesBulkDestroy(ctx context.Context, body DcimPowerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesList(ctx context.Context, params *DcimPowerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimPowerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesCreate(ctx context.Context, body DcimPowerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesBulkUpdate(ctx context.Context, body DcimPowerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsBulkDestroy(ctx context.Context, body DcimPowerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsList(ctx context.Context, params *DcimPowerPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsBulkPartialUpdate(ctx context.Context, body DcimPowerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsCreate(ctx context.Context, body DcimPowerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsBulkUpdate(ctx context.Context, body DcimPowerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimPowerPortsTraceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimPowerPortsTraceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsBulkDestroy(ctx context.Context, body DcimRackGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsList(ctx context.Context, params *DcimRackGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsBulkPartialUpdate(ctx context.Context, body DcimRackGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsCreate(ctx context.Context, body DcimRackGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsBulkUpdate(ctx context.Context, body DcimRackGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRackGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackGroupsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsBulkDestroy(ctx context.Context, body DcimRackReservationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsList(ctx context.Context, params *DcimRackReservationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsBulkPartialUpdate(ctx context.Context, body DcimRackReservationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsCreate(ctx context.Context, body DcimRackReservationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsBulkUpdate(ctx context.Context, body DcimRackReservationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRackReservationsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackReservationsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackReservationsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesBulkDestroy(ctx context.Context, body DcimRackRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesList(ctx context.Context, params *DcimRackRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesBulkPartialUpdate(ctx context.Context, body DcimRackRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesCreate(ctx context.Context, body DcimRackRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesBulkUpdate(ctx context.Context, body DcimRackRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesUpdate(ctx context.Context, id openapi_types.UUID, body DcimRackRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRackRolesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRackRolesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRackRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRackRolesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksBulkDestroy(ctx context.Context, body DcimRacksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksList(ctx context.Context, params *DcimRacksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksBulkPartialUpdate(ctx context.Context, body DcimRacksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksCreate(ctx context.Context, body DcimRacksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksBulkUpdate(ctx context.Context, body DcimRacksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRacksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksUpdate(ctx context.Context, id openapi_types.UUID, body DcimRacksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksElevationList(ctx context.Context, id openapi_types.UUID, params *DcimRacksElevationListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksElevationListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRacksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRacksNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRacksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRacksNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesBulkDestroy(ctx context.Context, body DcimRearPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesList(ctx context.Context, params *DcimRearPortTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesBulkPartialUpdate(ctx context.Context, body DcimRearPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesCreate(ctx context.Context, body DcimRearPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesBulkUpdate(ctx context.Context, body DcimRearPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRearPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsBulkDestroy(ctx context.Context, body DcimRearPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsList(ctx context.Context, params *DcimRearPortsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsBulkPartialUpdate(ctx context.Context, body DcimRearPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsCreate(ctx context.Context, body DcimRearPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsBulkUpdate(ctx context.Context, body DcimRearPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRearPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRearPortsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRearPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRearPortsPathsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRearPortsPathsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsBulkDestroy(ctx context.Context, body DcimRegionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsList(ctx context.Context, params *DcimRegionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsBulkPartialUpdate(ctx context.Context, body DcimRegionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsCreate(ctx context.Context, body DcimRegionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsBulkUpdate(ctx context.Context, body DcimRegionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimRegionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsUpdate(ctx context.Context, id openapi_types.UUID, body DcimRegionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsNotesList(ctx context.Context, id openapi_types.UUID, params *DcimRegionsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimRegionsNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimRegionsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimRegionsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesBulkDestroy(ctx context.Context, body DcimSitesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesList(ctx context.Context, params *DcimSitesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesBulkPartialUpdate(ctx context.Context, body DcimSitesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesCreate(ctx context.Context, body DcimSitesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesBulkUpdate(ctx context.Context, body DcimSitesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimSitesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesUpdate(ctx context.Context, id openapi_types.UUID, body DcimSitesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesNotesList(ctx context.Context, id openapi_types.UUID, params *DcimSitesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimSitesNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimSitesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimSitesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisBulkDestroy(ctx context.Context, body DcimVirtualChassisBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisList(ctx context.Context, params *DcimVirtualChassisListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisBulkPartialUpdate(ctx context.Context, body DcimVirtualChassisBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisCreate(ctx context.Context, body DcimVirtualChassisCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisBulkUpdate(ctx context.Context, body DcimVirtualChassisBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisPartialUpdate(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisUpdate(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisNotesList(ctx context.Context, id openapi_types.UUID, params *DcimVirtualChassisNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DcimVirtualChassisNotesCreate(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDcimVirtualChassisNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsBulkDestroy(ctx context.Context, body ExtrasComputedFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsList(ctx context.Context, params *ExtrasComputedFieldsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsBulkPartialUpdate(ctx context.Context, body ExtrasComputedFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsCreate(ctx context.Context, body ExtrasComputedFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsBulkUpdate(ctx context.Context, body ExtrasComputedFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasComputedFieldsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasComputedFieldsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasComputedFieldsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasBulkDestroy(ctx context.Context, body ExtrasConfigContextSchemasBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasList(ctx context.Context, params *ExtrasConfigContextSchemasListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasBulkPartialUpdate(ctx context.Context, body ExtrasConfigContextSchemasBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasCreate(ctx context.Context, body ExtrasConfigContextSchemasCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasBulkUpdate(ctx context.Context, body ExtrasConfigContextSchemasBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextSchemasNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextSchemasNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextSchemasNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsBulkDestroy(ctx context.Context, body ExtrasConfigContextsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsList(ctx context.Context, params *ExtrasConfigContextsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsBulkPartialUpdate(ctx context.Context, body ExtrasConfigContextsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsCreate(ctx context.Context, body ExtrasConfigContextsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsBulkUpdate(ctx context.Context, body ExtrasConfigContextsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasConfigContextsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasConfigContextsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasContentTypesList(ctx context.Context, params *ExtrasContentTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasContentTypesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasContentTypesRetrieve(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasContentTypesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesBulkDestroy(ctx context.Context, body ExtrasCustomFieldChoicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesList(ctx context.Context, params *ExtrasCustomFieldChoicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesBulkPartialUpdate(ctx context.Context, body ExtrasCustomFieldChoicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesCreate(ctx context.Context, body ExtrasCustomFieldChoicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesBulkUpdate(ctx context.Context, body ExtrasCustomFieldChoicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldChoicesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldChoicesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsBulkDestroy(ctx context.Context, body ExtrasCustomFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsList(ctx context.Context, params *ExtrasCustomFieldsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context, body ExtrasCustomFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsCreate(ctx context.Context, body ExtrasCustomFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsBulkUpdate(ctx context.Context, body ExtrasCustomFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomFieldsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomFieldsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomFieldsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksBulkDestroy(ctx context.Context, body ExtrasCustomLinksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksList(ctx context.Context, params *ExtrasCustomLinksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksBulkPartialUpdate(ctx context.Context, body ExtrasCustomLinksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksCreate(ctx context.Context, body ExtrasCustomLinksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksBulkUpdate(ctx context.Context, body ExtrasCustomLinksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomLinksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasCustomLinksNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasCustomLinksNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsBulkDestroy(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsList(ctx context.Context, params *ExtrasDynamicGroupMembershipsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsBulkPartialUpdate(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsCreate(ctx context.Context, body ExtrasDynamicGroupMembershipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsBulkUpdate(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupMembershipsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupMembershipsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsBulkDestroy(ctx context.Context, body ExtrasDynamicGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsList(ctx context.Context, params *ExtrasDynamicGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsBulkPartialUpdate(ctx context.Context, body ExtrasDynamicGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsCreate(ctx context.Context, body ExtrasDynamicGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsBulkUpdate(ctx context.Context, body ExtrasDynamicGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsMembersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsMembersRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasDynamicGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasDynamicGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasDynamicGroupsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesBulkDestroy(ctx context.Context, body ExtrasExportTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesList(ctx context.Context, params *ExtrasExportTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context, body ExtrasExportTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesCreate(ctx context.Context, body ExtrasExportTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesBulkUpdate(ctx context.Context, body ExtrasExportTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasExportTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasExportTemplatesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasExportTemplatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesBulkDestroy(ctx context.Context, body ExtrasGitRepositoriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesList(ctx context.Context, params *ExtrasGitRepositoriesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesBulkPartialUpdate(ctx context.Context, body ExtrasGitRepositoriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesCreate(ctx context.Context, body ExtrasGitRepositoriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesBulkUpdate(ctx context.Context, body ExtrasGitRepositoriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasGitRepositoriesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesSyncCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesSyncCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGitRepositoriesSyncCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesSyncCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGitRepositoriesSyncCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesBulkDestroy(ctx context.Context, body ExtrasGraphqlQueriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesList(ctx context.Context, params *ExtrasGraphqlQueriesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesBulkPartialUpdate(ctx context.Context, body ExtrasGraphqlQueriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesCreate(ctx context.Context, body ExtrasGraphqlQueriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesBulkUpdate(ctx context.Context, body ExtrasGraphqlQueriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasGraphqlQueriesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesRunCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesRunCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasGraphqlQueriesRunCreate(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasGraphqlQueriesRunCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsBulkDestroy(ctx context.Context, body ExtrasImageAttachmentsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsList(ctx context.Context, params *ExtrasImageAttachmentsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context, body ExtrasImageAttachmentsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsCreate(ctx context.Context, body ExtrasImageAttachmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsBulkUpdate(ctx context.Context, body ExtrasImageAttachmentsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasImageAttachmentsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasImageAttachmentsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksBulkDestroy(ctx context.Context, body ExtrasJobHooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksList(ctx context.Context, params *ExtrasJobHooksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksBulkPartialUpdate(ctx context.Context, body ExtrasJobHooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksCreate(ctx context.Context, body ExtrasJobHooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksBulkUpdate(ctx context.Context, body ExtrasJobHooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasJobHooksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobHooksNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobHooksNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobLogsList(ctx context.Context, params *ExtrasJobLogsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobLogsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobLogsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobLogsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobResultsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobResultsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobResultsBulkDestroy(ctx context.Context, body ExtrasJobResultsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobResultsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobResultsList(ctx context.Context, params *ExtrasJobResultsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobResultsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobResultsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobResultsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobResultsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobResultsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobResultsLogsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobResultsLogsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsBulkDestroy(ctx context.Context, body ExtrasJobsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsList(ctx context.Context, params *ExtrasJobsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsBulkPartialUpdate(ctx context.Context, body ExtrasJobsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsBulkUpdate(ctx context.Context, body ExtrasJobsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsReadDeprecated(ctx context.Context, classPath string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsReadDeprecatedRequest(c.Server, classPath) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsRunDeprecatedWithBody(ctx context.Context, classPath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsRunDeprecatedRequestWithBody(c.Server, classPath, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsRunDeprecated(ctx context.Context, classPath string, body ExtrasJobsRunDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsRunDeprecatedRequest(c.Server, classPath, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsRunCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsRunCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsRunCreate(ctx context.Context, id openapi_types.UUID, body ExtrasJobsRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsRunCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasJobsVariablesList(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsVariablesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasJobsVariablesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesBulkDestroy(ctx context.Context, body ExtrasNotesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesList(ctx context.Context, params *ExtrasNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesBulkPartialUpdate(ctx context.Context, body ExtrasNotesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesCreate(ctx context.Context, body ExtrasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesBulkUpdate(ctx context.Context, body ExtrasNotesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasNotesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasNotesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasNotesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasNotesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasObjectChangesList(ctx context.Context, params *ExtrasObjectChangesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasObjectChangesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasObjectChangesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasObjectChangesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsBulkDestroy(ctx context.Context, body ExtrasRelationshipAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsList(ctx context.Context, params *ExtrasRelationshipAssociationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsBulkPartialUpdate(ctx context.Context, body ExtrasRelationshipAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsCreate(ctx context.Context, body ExtrasRelationshipAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsBulkUpdate(ctx context.Context, body ExtrasRelationshipAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipAssociationsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipAssociationsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsBulkDestroy(ctx context.Context, body ExtrasRelationshipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsList(ctx context.Context, params *ExtrasRelationshipsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsBulkPartialUpdate(ctx context.Context, body ExtrasRelationshipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsCreate(ctx context.Context, body ExtrasRelationshipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsBulkUpdate(ctx context.Context, body ExtrasRelationshipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasRelationshipsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasRelationshipsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasRelationshipsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasScheduledJobsList(ctx context.Context, params *ExtrasScheduledJobsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasScheduledJobsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasScheduledJobsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasScheduledJobsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasScheduledJobsApproveCreate(ctx context.Context, id openapi_types.UUID, params *ExtrasScheduledJobsApproveCreateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasScheduledJobsApproveCreateRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasScheduledJobsDenyCreate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasScheduledJobsDenyCreateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasScheduledJobsDryRunCreate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasScheduledJobsDryRunCreateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsBulkDestroy(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsList(ctx context.Context, params *ExtrasSecretsGroupsAssociationsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsBulkPartialUpdate(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsCreate(ctx context.Context, body ExtrasSecretsGroupsAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsBulkUpdate(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsAssociationsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsAssociationsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsBulkDestroy(ctx context.Context, body ExtrasSecretsGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsList(ctx context.Context, params *ExtrasSecretsGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsBulkPartialUpdate(ctx context.Context, body ExtrasSecretsGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsCreate(ctx context.Context, body ExtrasSecretsGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsBulkUpdate(ctx context.Context, body ExtrasSecretsGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsGroupsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsBulkDestroy(ctx context.Context, body ExtrasSecretsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsList(ctx context.Context, params *ExtrasSecretsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsBulkPartialUpdate(ctx context.Context, body ExtrasSecretsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsCreate(ctx context.Context, body ExtrasSecretsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsBulkUpdate(ctx context.Context, body ExtrasSecretsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasSecretsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasSecretsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesBulkDestroy(ctx context.Context, body ExtrasStatusesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesList(ctx context.Context, params *ExtrasStatusesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesBulkPartialUpdate(ctx context.Context, body ExtrasStatusesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesCreate(ctx context.Context, body ExtrasStatusesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesBulkUpdate(ctx context.Context, body ExtrasStatusesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasStatusesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasStatusesNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasStatusesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsBulkDestroy(ctx context.Context, body ExtrasTagsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsList(ctx context.Context, params *ExtrasTagsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsBulkPartialUpdate(ctx context.Context, body ExtrasTagsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsCreate(ctx context.Context, body ExtrasTagsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsBulkUpdate(ctx context.Context, body ExtrasTagsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasTagsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasTagsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasTagsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasTagsNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasTagsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasTagsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksBulkDestroy(ctx context.Context, body ExtrasWebhooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksList(ctx context.Context, params *ExtrasWebhooksListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksBulkPartialUpdate(ctx context.Context, body ExtrasWebhooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksCreate(ctx context.Context, body ExtrasWebhooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksBulkUpdate(ctx context.Context, body ExtrasWebhooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksPartialUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksUpdate(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksNotesList(ctx context.Context, id openapi_types.UUID, params *ExtrasWebhooksNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ExtrasWebhooksNotesCreate(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExtrasWebhooksNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GraphqlCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGraphqlCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GraphqlCreate(ctx context.Context, body GraphqlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGraphqlCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesBulkDestroy(ctx context.Context, body IpamAggregatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesList(ctx context.Context, params *IpamAggregatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesBulkPartialUpdate(ctx context.Context, body IpamAggregatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesCreate(ctx context.Context, body IpamAggregatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesBulkUpdate(ctx context.Context, body IpamAggregatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamAggregatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesUpdate(ctx context.Context, id openapi_types.UUID, body IpamAggregatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamAggregatesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamAggregatesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamAggregatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamAggregatesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesBulkDestroy(ctx context.Context, body IpamIpAddressesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesList(ctx context.Context, params *IpamIpAddressesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesBulkPartialUpdate(ctx context.Context, body IpamIpAddressesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesCreate(ctx context.Context, body IpamIpAddressesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesBulkUpdate(ctx context.Context, body IpamIpAddressesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesUpdate(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamIpAddressesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamIpAddressesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamIpAddressesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesBulkDestroy(ctx context.Context, body IpamPrefixesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesList(ctx context.Context, params *IpamPrefixesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesBulkPartialUpdate(ctx context.Context, body IpamPrefixesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesCreate(ctx context.Context, body IpamPrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesBulkUpdate(ctx context.Context, body IpamPrefixesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesUpdate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesAvailableIpsList(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesAvailableIpsListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesAvailableIpsCreate(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsCreateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesAvailableIpsCreateRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesAvailablePrefixesList(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailablePrefixesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesAvailablePrefixesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesAvailablePrefixesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesAvailablePrefixesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesAvailablePrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesAvailablePrefixesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamPrefixesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamPrefixesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamPrefixesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsBulkDestroy(ctx context.Context, body IpamRirsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsList(ctx context.Context, params *IpamRirsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsBulkPartialUpdate(ctx context.Context, body IpamRirsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsCreate(ctx context.Context, body IpamRirsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsBulkUpdate(ctx context.Context, body IpamRirsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamRirsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsUpdate(ctx context.Context, id openapi_types.UUID, body IpamRirsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamRirsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRirsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamRirsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRirsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesBulkDestroy(ctx context.Context, body IpamRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesList(ctx context.Context, params *IpamRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesBulkPartialUpdate(ctx context.Context, body IpamRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesCreate(ctx context.Context, body IpamRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesBulkUpdate(ctx context.Context, body IpamRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesUpdate(ctx context.Context, id openapi_types.UUID, body IpamRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamRolesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRolesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRolesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsBulkDestroy(ctx context.Context, body IpamRouteTargetsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsList(ctx context.Context, params *IpamRouteTargetsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsBulkPartialUpdate(ctx context.Context, body IpamRouteTargetsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsCreate(ctx context.Context, body IpamRouteTargetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsBulkUpdate(ctx context.Context, body IpamRouteTargetsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsUpdate(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamRouteTargetsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamRouteTargetsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamRouteTargetsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesBulkDestroy(ctx context.Context, body IpamServicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesList(ctx context.Context, params *IpamServicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesBulkPartialUpdate(ctx context.Context, body IpamServicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesCreate(ctx context.Context, body IpamServicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesBulkUpdate(ctx context.Context, body IpamServicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamServicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesUpdate(ctx context.Context, id openapi_types.UUID, body IpamServicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesNotesList(ctx context.Context, id openapi_types.UUID, params *IpamServicesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamServicesNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamServicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamServicesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsBulkDestroy(ctx context.Context, body IpamVlanGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsList(ctx context.Context, params *IpamVlanGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsBulkPartialUpdate(ctx context.Context, body IpamVlanGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsCreate(ctx context.Context, body IpamVlanGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsBulkUpdate(ctx context.Context, body IpamVlanGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamVlanGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlanGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlanGroupsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansBulkDestroy(ctx context.Context, body IpamVlansBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansList(ctx context.Context, params *IpamVlansListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansBulkPartialUpdate(ctx context.Context, body IpamVlansBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansCreate(ctx context.Context, body IpamVlansCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansBulkUpdate(ctx context.Context, body IpamVlansBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlansPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansUpdate(ctx context.Context, id openapi_types.UUID, body IpamVlansUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansNotesList(ctx context.Context, id openapi_types.UUID, params *IpamVlansNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVlansNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamVlansNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVlansNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsBulkDestroy(ctx context.Context, body IpamVrfsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsList(ctx context.Context, params *IpamVrfsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsBulkPartialUpdate(ctx context.Context, body IpamVrfsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsCreate(ctx context.Context, body IpamVrfsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsBulkUpdate(ctx context.Context, body IpamVrfsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsPartialUpdate(ctx context.Context, id openapi_types.UUID, body IpamVrfsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsUpdate(ctx context.Context, id openapi_types.UUID, body IpamVrfsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsNotesList(ctx context.Context, id openapi_types.UUID, params *IpamVrfsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) IpamVrfsNotesCreate(ctx context.Context, id openapi_types.UUID, body IpamVrfsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIpamVrfsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesBulkDestroy(ctx context.Context, body PluginsBgpAddressFamiliesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesList(ctx context.Context, params *PluginsBgpAddressFamiliesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesBulkPartialUpdate(ctx context.Context, body PluginsBgpAddressFamiliesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesCreate(ctx context.Context, body PluginsBgpAddressFamiliesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesBulkUpdate(ctx context.Context, body PluginsBgpAddressFamiliesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpAddressFamiliesRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesRetrieveRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAddressFamiliesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAddressFamiliesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsBulkDestroy(ctx context.Context, body PluginsBgpAutonomousSystemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsList(ctx context.Context, params *PluginsBgpAutonomousSystemsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsBulkPartialUpdate(ctx context.Context, body PluginsBgpAutonomousSystemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsCreate(ctx context.Context, body PluginsBgpAutonomousSystemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsBulkUpdate(ctx context.Context, body PluginsBgpAutonomousSystemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpAutonomousSystemsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpAutonomousSystemsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsBulkDestroy(ctx context.Context, body PluginsBgpPeerEndpointsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsList(ctx context.Context, params *PluginsBgpPeerEndpointsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsBulkPartialUpdate(ctx context.Context, body PluginsBgpPeerEndpointsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsCreate(ctx context.Context, body PluginsBgpPeerEndpointsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsBulkUpdate(ctx context.Context, body PluginsBgpPeerEndpointsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerEndpointsRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsRetrieveRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerEndpointsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerEndpointsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesBulkDestroy(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesList(ctx context.Context, params *PluginsBgpPeerGroupTemplatesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesBulkPartialUpdate(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesCreate(ctx context.Context, body PluginsBgpPeerGroupTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesBulkUpdate(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupTemplatesRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesRetrieveRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupTemplatesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupTemplatesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsBulkDestroy(ctx context.Context, body PluginsBgpPeerGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsList(ctx context.Context, params *PluginsBgpPeerGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsBulkPartialUpdate(ctx context.Context, body PluginsBgpPeerGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsCreate(ctx context.Context, body PluginsBgpPeerGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsBulkUpdate(ctx context.Context, body PluginsBgpPeerGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsRetrieve(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupsRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsRetrieveRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeerGroupsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeerGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesBulkDestroy(ctx context.Context, body PluginsBgpPeeringRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesList(ctx context.Context, params *PluginsBgpPeeringRolesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesBulkPartialUpdate(ctx context.Context, body PluginsBgpPeeringRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesCreate(ctx context.Context, body PluginsBgpPeeringRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesBulkUpdate(ctx context.Context, body PluginsBgpPeeringRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringRolesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringRolesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsBulkDestroy(ctx context.Context, body PluginsBgpPeeringsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsList(ctx context.Context, params *PluginsBgpPeeringsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsBulkPartialUpdate(ctx context.Context, body PluginsBgpPeeringsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsCreate(ctx context.Context, body PluginsBgpPeeringsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsBulkUpdate(ctx context.Context, body PluginsBgpPeeringsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpPeeringsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpPeeringsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesBulkDestroy(ctx context.Context, body PluginsBgpRoutingInstancesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesList(ctx context.Context, params *PluginsBgpRoutingInstancesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesBulkPartialUpdate(ctx context.Context, body PluginsBgpRoutingInstancesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesCreate(ctx context.Context, body PluginsBgpRoutingInstancesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesBulkUpdate(ctx context.Context, body PluginsBgpRoutingInstancesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsBgpRoutingInstancesUpdate(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsBgpRoutingInstancesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantBulkDestroy(ctx context.Context, body PluginsChatopsAccessgrantBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantList(ctx context.Context, params *PluginsChatopsAccessgrantListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantBulkPartialUpdate(ctx context.Context, body PluginsChatopsAccessgrantBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantCreate(ctx context.Context, body PluginsChatopsAccessgrantCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantBulkUpdate(ctx context.Context, body PluginsChatopsAccessgrantBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsAccessgrantUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsAccessgrantUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenBulkDestroy(ctx context.Context, body PluginsChatopsCommandtokenBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenList(ctx context.Context, params *PluginsChatopsCommandtokenListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenBulkPartialUpdate(ctx context.Context, body PluginsChatopsCommandtokenBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenCreate(ctx context.Context, body PluginsChatopsCommandtokenCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenBulkUpdate(ctx context.Context, body PluginsChatopsCommandtokenBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsChatopsCommandtokenUpdate(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsChatopsCommandtokenUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactBulkDestroy(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactList(ctx context.Context, params *PluginsCircuitMaintenanceCircuitimpactListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactCreate(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactBulkUpdate(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceCircuitimpactUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceCircuitimpactUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceBulkDestroy(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceList(ctx context.Context, params *PluginsCircuitMaintenanceMaintenanceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceCreate(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceBulkUpdate(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenancePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenancePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenancePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenancePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceMaintenanceUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenanceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceMaintenanceUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteBulkDestroy(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteList(ctx context.Context, params *PluginsCircuitMaintenanceNoteListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteBulkPartialUpdate(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteCreate(ctx context.Context, body PluginsCircuitMaintenanceNoteCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteBulkUpdate(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNotePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNotePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNotePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNotePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNotePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNoteUpdate(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNoteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNoteUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNotificationsourceList(ctx context.Context, params *PluginsCircuitMaintenanceNotificationsourceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNotificationsourceListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsCircuitMaintenanceNotificationsourceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsCircuitMaintenanceNotificationsourceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxBulkDestroy(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxList(ctx context.Context, params *PluginsDataValidationEngineRulesMinMaxListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxCreate(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxBulkUpdate(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesMinMaxUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesMinMaxUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexBulkDestroy(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexList(ctx context.Context, params *PluginsDataValidationEngineRulesRegexListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexBulkPartialUpdate(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexCreate(ctx context.Context, body PluginsDataValidationEngineRulesRegexCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexBulkUpdate(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDataValidationEngineRulesRegexUpdate(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDataValidationEngineRulesRegexUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDeviceOnboardingOnboardingList(ctx context.Context, params *PluginsDeviceOnboardingOnboardingListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDeviceOnboardingOnboardingListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDeviceOnboardingOnboardingCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDeviceOnboardingOnboardingCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDeviceOnboardingOnboardingCreate(ctx context.Context, body PluginsDeviceOnboardingOnboardingCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDeviceOnboardingOnboardingCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDeviceOnboardingOnboardingDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDeviceOnboardingOnboardingDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsDeviceOnboardingOnboardingRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsDeviceOnboardingOnboardingRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupBulkDestroy(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupList(ctx context.Context, params *PluginsFirewallAddressObjectGroupListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupBulkPartialUpdate(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupCreate(ctx context.Context, body PluginsFirewallAddressObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupBulkUpdate(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectGroupNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectGroupNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectBulkDestroy(ctx context.Context, body PluginsFirewallAddressObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectList(ctx context.Context, params *PluginsFirewallAddressObjectListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectBulkPartialUpdate(ctx context.Context, body PluginsFirewallAddressObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectCreate(ctx context.Context, body PluginsFirewallAddressObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectBulkUpdate(ctx context.Context, body PluginsFirewallAddressObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallAddressObjectNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallAddressObjectNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyBulkDestroy(ctx context.Context, body PluginsFirewallCapircaPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyList(ctx context.Context, params *PluginsFirewallCapircaPolicyListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyBulkPartialUpdate(ctx context.Context, body PluginsFirewallCapircaPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyCreate(ctx context.Context, body PluginsFirewallCapircaPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyBulkUpdate(ctx context.Context, body PluginsFirewallCapircaPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallCapircaPolicyUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallCapircaPolicyUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnBulkDestroy(ctx context.Context, body PluginsFirewallFqdnBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnList(ctx context.Context, params *PluginsFirewallFqdnListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnBulkPartialUpdate(ctx context.Context, body PluginsFirewallFqdnBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnCreate(ctx context.Context, body PluginsFirewallFqdnCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnBulkUpdate(ctx context.Context, body PluginsFirewallFqdnBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallFqdnNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallFqdnNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallFqdnNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeBulkDestroy(ctx context.Context, body PluginsFirewallIpRangeBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeList(ctx context.Context, params *PluginsFirewallIpRangeListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeBulkPartialUpdate(ctx context.Context, body PluginsFirewallIpRangeBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeCreate(ctx context.Context, body PluginsFirewallIpRangeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeBulkUpdate(ctx context.Context, body PluginsFirewallIpRangeBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallIpRangeNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallIpRangeNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallIpRangeNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleBulkDestroy(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleList(ctx context.Context, params *PluginsFirewallNatPolicyRuleListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleBulkPartialUpdate(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleCreate(ctx context.Context, body PluginsFirewallNatPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleBulkUpdate(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRulePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRulePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRulePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRulePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRuleNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRuleNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyBulkDestroy(ctx context.Context, body PluginsFirewallNatPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyList(ctx context.Context, params *PluginsFirewallNatPolicyListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyBulkPartialUpdate(ctx context.Context, body PluginsFirewallNatPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyCreate(ctx context.Context, body PluginsFirewallNatPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyBulkUpdate(ctx context.Context, body PluginsFirewallNatPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallNatPolicyNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallNatPolicyNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleBulkDestroy(ctx context.Context, body PluginsFirewallPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleList(ctx context.Context, params *PluginsFirewallPolicyRuleListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleBulkPartialUpdate(ctx context.Context, body PluginsFirewallPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleCreate(ctx context.Context, body PluginsFirewallPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleBulkUpdate(ctx context.Context, body PluginsFirewallPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRulePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRulePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRulePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRulePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRuleNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRuleNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyBulkDestroy(ctx context.Context, body PluginsFirewallPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyList(ctx context.Context, params *PluginsFirewallPolicyListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyBulkPartialUpdate(ctx context.Context, body PluginsFirewallPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyCreate(ctx context.Context, body PluginsFirewallPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyBulkUpdate(ctx context.Context, body PluginsFirewallPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallPolicyNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallPolicyNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupBulkDestroy(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupList(ctx context.Context, params *PluginsFirewallServiceObjectGroupListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupBulkPartialUpdate(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupCreate(ctx context.Context, body PluginsFirewallServiceObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupBulkUpdate(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectGroupNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectGroupNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectBulkDestroy(ctx context.Context, body PluginsFirewallServiceObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectList(ctx context.Context, params *PluginsFirewallServiceObjectListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectBulkPartialUpdate(ctx context.Context, body PluginsFirewallServiceObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectCreate(ctx context.Context, body PluginsFirewallServiceObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectBulkUpdate(ctx context.Context, body PluginsFirewallServiceObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallServiceObjectNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallServiceObjectNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupBulkDestroy(ctx context.Context, body PluginsFirewallUserObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupList(ctx context.Context, params *PluginsFirewallUserObjectGroupListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupBulkPartialUpdate(ctx context.Context, body PluginsFirewallUserObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupCreate(ctx context.Context, body PluginsFirewallUserObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupBulkUpdate(ctx context.Context, body PluginsFirewallUserObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectGroupNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectGroupNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectBulkDestroy(ctx context.Context, body PluginsFirewallUserObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectList(ctx context.Context, params *PluginsFirewallUserObjectListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectBulkPartialUpdate(ctx context.Context, body PluginsFirewallUserObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectCreate(ctx context.Context, body PluginsFirewallUserObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectBulkUpdate(ctx context.Context, body PluginsFirewallUserObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallUserObjectNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallUserObjectNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneBulkDestroy(ctx context.Context, body PluginsFirewallZoneBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneList(ctx context.Context, params *PluginsFirewallZoneListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneBulkPartialUpdate(ctx context.Context, body PluginsFirewallZoneBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneCreate(ctx context.Context, body PluginsFirewallZoneCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneBulkUpdate(ctx context.Context, body PluginsFirewallZoneBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZonePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZonePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZonePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZonePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZonePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneUpdate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneNotesList(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallZoneNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsFirewallZoneNotesCreate(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsFirewallZoneNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureBulkDestroy(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureList(ctx context.Context, params *PluginsGoldenConfigComplianceFeatureListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureCreate(ctx context.Context, body PluginsGoldenConfigComplianceFeatureCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureBulkUpdate(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeaturePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeaturePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeaturePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeaturePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeaturePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceFeatureUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeatureUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceFeatureUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleBulkDestroy(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleList(ctx context.Context, params *PluginsGoldenConfigComplianceRuleListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleCreate(ctx context.Context, body PluginsGoldenConfigComplianceRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleBulkUpdate(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRulePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRulePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRulePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRulePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigComplianceRuleUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigComplianceRuleUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceBulkDestroy(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceList(ctx context.Context, params *PluginsGoldenConfigConfigComplianceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceCreate(ctx context.Context, body PluginsGoldenConfigConfigComplianceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceBulkUpdate(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigCompliancePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigCompliancePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigCompliancePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigCompliancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigCompliancePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigComplianceUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigComplianceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigComplianceUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigPostprocessingRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigPostprocessingRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveBulkDestroy(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveList(ctx context.Context, params *PluginsGoldenConfigConfigRemoveListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveCreate(ctx context.Context, body PluginsGoldenConfigConfigRemoveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveBulkUpdate(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemovePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemovePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemovePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemovePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemovePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigRemoveUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemoveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigRemoveUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceBulkDestroy(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceList(ctx context.Context, params *PluginsGoldenConfigConfigReplaceListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceCreate(ctx context.Context, body PluginsGoldenConfigConfigReplaceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceBulkUpdate(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplacePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplacePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplacePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplacePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplacePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigConfigReplaceUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplaceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigConfigReplaceUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsBulkDestroy(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsList(ctx context.Context, params *PluginsGoldenConfigGoldenConfigSettingsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsCreate(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsBulkUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigSettingsUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigSettingsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigBulkDestroy(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigList(ctx context.Context, params *PluginsGoldenConfigGoldenConfigListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigBulkPartialUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigCreate(ctx context.Context, body PluginsGoldenConfigGoldenConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigBulkUpdate(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigGoldenConfigUpdate(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigGoldenConfigUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsGoldenConfigSotaggRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsGoldenConfigSotaggRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContactListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContactUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContactUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContractListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtContractUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtContractUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtCveListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCvePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCvePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtCveUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtCveUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtHardwareListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtHardwareUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtHardwareUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtProviderListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtProviderUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtProviderUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareImageListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtSoftwareUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityList(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtVulnerabilityListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) StatusRetrieve(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewStatusRetrieveRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) SwaggerJsonRetrieve(ctx context.Context, params *SwaggerJsonRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSwaggerJsonRetrieveRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) SwaggerYamlRetrieve(ctx context.Context, params *SwaggerYamlRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSwaggerYamlRetrieveRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) SwaggerRetrieve(ctx context.Context, params *SwaggerRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSwaggerRetrieveRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsBulkDestroy(ctx context.Context, body TenancyTenantGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsList(ctx context.Context, params *TenancyTenantGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsBulkPartialUpdate(ctx context.Context, body TenancyTenantGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsCreate(ctx context.Context, body TenancyTenantGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsBulkUpdate(ctx context.Context, body TenancyTenantGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *TenancyTenantGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantGroupsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsBulkDestroy(ctx context.Context, body TenancyTenantsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsList(ctx context.Context, params *TenancyTenantsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsBulkPartialUpdate(ctx context.Context, body TenancyTenantsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsCreate(ctx context.Context, body TenancyTenantsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsBulkUpdate(ctx context.Context, body TenancyTenantsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsPartialUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsUpdate(ctx context.Context, id openapi_types.UUID, body TenancyTenantsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsNotesList(ctx context.Context, id openapi_types.UUID, params *TenancyTenantsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) TenancyTenantsNotesCreate(ctx context.Context, id openapi_types.UUID, body TenancyTenantsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTenancyTenantsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersConfigRetrieve(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersConfigRetrieveRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsBulkDestroy(ctx context.Context, body UsersGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsList(ctx context.Context, params *UsersGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsBulkPartialUpdate(ctx context.Context, body UsersGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsCreate(ctx context.Context, body UsersGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsBulkUpdate(ctx context.Context, body UsersGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsDestroy(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsRetrieve(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsPartialUpdateWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsPartialUpdate(ctx context.Context, id int, body UsersGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsUpdateWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersGroupsUpdate(ctx context.Context, id int, body UsersGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsBulkDestroy(ctx context.Context, body UsersPermissionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsList(ctx context.Context, params *UsersPermissionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsBulkPartialUpdate(ctx context.Context, body UsersPermissionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsCreate(ctx context.Context, body UsersPermissionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsBulkUpdate(ctx context.Context, body UsersPermissionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsPartialUpdate(ctx context.Context, id openapi_types.UUID, body UsersPermissionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersPermissionsUpdate(ctx context.Context, id openapi_types.UUID, body UsersPermissionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersPermissionsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensBulkDestroy(ctx context.Context, body UsersTokensBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensList(ctx context.Context, params *UsersTokensListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensBulkPartialUpdate(ctx context.Context, body UsersTokensBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensCreate(ctx context.Context, body UsersTokensCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensBulkUpdate(ctx context.Context, body UsersTokensBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensPartialUpdate(ctx context.Context, id openapi_types.UUID, body UsersTokensPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersTokensUpdate(ctx context.Context, id openapi_types.UUID, body UsersTokensUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersTokensUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersBulkDestroy(ctx context.Context, body UsersUsersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersList(ctx context.Context, params *UsersUsersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersBulkPartialUpdate(ctx context.Context, body UsersUsersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersCreate(ctx context.Context, body UsersUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersBulkUpdate(ctx context.Context, body UsersUsersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersPartialUpdate(ctx context.Context, id openapi_types.UUID, body UsersUsersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UsersUsersUpdate(ctx context.Context, id openapi_types.UUID, body UsersUsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsersUsersUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsBulkDestroy(ctx context.Context, body VirtualizationClusterGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsList(ctx context.Context, params *VirtualizationClusterGroupsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsBulkPartialUpdate(ctx context.Context, body VirtualizationClusterGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsCreate(ctx context.Context, body VirtualizationClusterGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsBulkUpdate(ctx context.Context, body VirtualizationClusterGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterGroupsNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterGroupsNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterGroupsNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesBulkDestroy(ctx context.Context, body VirtualizationClusterTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesList(ctx context.Context, params *VirtualizationClusterTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesBulkPartialUpdate(ctx context.Context, body VirtualizationClusterTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesCreate(ctx context.Context, body VirtualizationClusterTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesBulkUpdate(ctx context.Context, body VirtualizationClusterTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterTypesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClusterTypesNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClusterTypesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersBulkDestroy(ctx context.Context, body VirtualizationClustersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersList(ctx context.Context, params *VirtualizationClustersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersBulkPartialUpdate(ctx context.Context, body VirtualizationClustersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersCreate(ctx context.Context, body VirtualizationClustersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersBulkUpdate(ctx context.Context, body VirtualizationClustersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationClustersNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationClustersNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationClustersNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesBulkDestroy(ctx context.Context, body VirtualizationInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesList(ctx context.Context, params *VirtualizationInterfacesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesBulkPartialUpdate(ctx context.Context, body VirtualizationInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesCreate(ctx context.Context, body VirtualizationInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesBulkUpdate(ctx context.Context, body VirtualizationInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationInterfacesNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationInterfacesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesBulkDestroyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesBulkDestroyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesBulkDestroy(ctx context.Context, body VirtualizationVirtualMachinesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesBulkDestroyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesList(ctx context.Context, params *VirtualizationVirtualMachinesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesListRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesBulkPartialUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesBulkPartialUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context, body VirtualizationVirtualMachinesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesBulkPartialUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesCreateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesCreate(ctx context.Context, body VirtualizationVirtualMachinesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesCreateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesBulkUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesBulkUpdateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesBulkUpdate(ctx context.Context, body VirtualizationVirtualMachinesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesBulkUpdateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesDestroy(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesDestroyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesRetrieve(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesRetrieveRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesPartialUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesPartialUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesPartialUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesPartialUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesUpdateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesUpdateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesUpdate(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesUpdateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesNotesList(ctx context.Context, id openapi_types.UUID, params *VirtualizationVirtualMachinesNotesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesNotesListRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesNotesCreateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesNotesCreateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) VirtualizationVirtualMachinesNotesCreate(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualizationVirtualMachinesNotesCreateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NewCircuitsCircuitTerminationsBulkDestroyRequest calls the generic CircuitsCircuitTerminationsBulkDestroy builder with application/json body -func NewCircuitsCircuitTerminationsBulkDestroyRequest(server string, body CircuitsCircuitTerminationsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTerminationsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTerminationsBulkDestroyRequestWithBody generates requests for CircuitsCircuitTerminationsBulkDestroy with any type of body -func NewCircuitsCircuitTerminationsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTerminationsListRequest generates requests for CircuitsCircuitTerminationsList -func NewCircuitsCircuitTerminationsListRequest(server string, params *CircuitsCircuitTerminationsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CircuitId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "circuit_id", runtime.ParamLocationQuery, *params.CircuitId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CircuitIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "circuit_id__n", runtime.ParamLocationQuery, *params.CircuitIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Connected != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connected", runtime.ParamLocationQuery, *params.Connected); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortSpeed != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port_speed", runtime.ParamLocationQuery, *params.PortSpeed); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortSpeedGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port_speed__gt", runtime.ParamLocationQuery, *params.PortSpeedGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortSpeedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port_speed__gte", runtime.ParamLocationQuery, *params.PortSpeedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortSpeedLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port_speed__lt", runtime.ParamLocationQuery, *params.PortSpeedLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortSpeedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port_speed__lte", runtime.ParamLocationQuery, *params.PortSpeedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortSpeedN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port_speed__n", runtime.ParamLocationQuery, *params.PortSpeedN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNetworkId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_network_id", runtime.ParamLocationQuery, *params.ProviderNetworkId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNetworkIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_network_id__n", runtime.ParamLocationQuery, *params.ProviderNetworkIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TermSide != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "term_side", runtime.ParamLocationQuery, *params.TermSide); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TermSideN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "term_side__n", runtime.ParamLocationQuery, *params.TermSideN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpstreamSpeed != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "upstream_speed", runtime.ParamLocationQuery, *params.UpstreamSpeed); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpstreamSpeedGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "upstream_speed__gt", runtime.ParamLocationQuery, *params.UpstreamSpeedGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpstreamSpeedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "upstream_speed__gte", runtime.ParamLocationQuery, *params.UpstreamSpeedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpstreamSpeedLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "upstream_speed__lt", runtime.ParamLocationQuery, *params.UpstreamSpeedLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpstreamSpeedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "upstream_speed__lte", runtime.ParamLocationQuery, *params.UpstreamSpeedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpstreamSpeedN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "upstream_speed__n", runtime.ParamLocationQuery, *params.UpstreamSpeedN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id", runtime.ParamLocationQuery, *params.XconnectId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__ic", runtime.ParamLocationQuery, *params.XconnectIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__ie", runtime.ParamLocationQuery, *params.XconnectIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__iew", runtime.ParamLocationQuery, *params.XconnectIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__ire", runtime.ParamLocationQuery, *params.XconnectIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__isw", runtime.ParamLocationQuery, *params.XconnectIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__n", runtime.ParamLocationQuery, *params.XconnectIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__nic", runtime.ParamLocationQuery, *params.XconnectIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__nie", runtime.ParamLocationQuery, *params.XconnectIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__niew", runtime.ParamLocationQuery, *params.XconnectIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__nire", runtime.ParamLocationQuery, *params.XconnectIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__nisw", runtime.ParamLocationQuery, *params.XconnectIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__nre", runtime.ParamLocationQuery, *params.XconnectIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.XconnectIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "xconnect_id__re", runtime.ParamLocationQuery, *params.XconnectIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTerminationsBulkPartialUpdateRequest calls the generic CircuitsCircuitTerminationsBulkPartialUpdate builder with application/json body -func NewCircuitsCircuitTerminationsBulkPartialUpdateRequest(server string, body CircuitsCircuitTerminationsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTerminationsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTerminationsBulkPartialUpdateRequestWithBody generates requests for CircuitsCircuitTerminationsBulkPartialUpdate with any type of body -func NewCircuitsCircuitTerminationsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTerminationsCreateRequest calls the generic CircuitsCircuitTerminationsCreate builder with application/json body -func NewCircuitsCircuitTerminationsCreateRequest(server string, body CircuitsCircuitTerminationsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTerminationsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTerminationsCreateRequestWithBody generates requests for CircuitsCircuitTerminationsCreate with any type of body -func NewCircuitsCircuitTerminationsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTerminationsBulkUpdateRequest calls the generic CircuitsCircuitTerminationsBulkUpdate builder with application/json body -func NewCircuitsCircuitTerminationsBulkUpdateRequest(server string, body CircuitsCircuitTerminationsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTerminationsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTerminationsBulkUpdateRequestWithBody generates requests for CircuitsCircuitTerminationsBulkUpdate with any type of body -func NewCircuitsCircuitTerminationsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTerminationsDestroyRequest generates requests for CircuitsCircuitTerminationsDestroy -func NewCircuitsCircuitTerminationsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTerminationsRetrieveRequest generates requests for CircuitsCircuitTerminationsRetrieve -func NewCircuitsCircuitTerminationsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTerminationsPartialUpdateRequest calls the generic CircuitsCircuitTerminationsPartialUpdate builder with application/json body -func NewCircuitsCircuitTerminationsPartialUpdateRequest(server string, id openapi_types.UUID, body CircuitsCircuitTerminationsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTerminationsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitTerminationsPartialUpdateRequestWithBody generates requests for CircuitsCircuitTerminationsPartialUpdate with any type of body -func NewCircuitsCircuitTerminationsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTerminationsUpdateRequest calls the generic CircuitsCircuitTerminationsUpdate builder with application/json body -func NewCircuitsCircuitTerminationsUpdateRequest(server string, id openapi_types.UUID, body CircuitsCircuitTerminationsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTerminationsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitTerminationsUpdateRequestWithBody generates requests for CircuitsCircuitTerminationsUpdate with any type of body -func NewCircuitsCircuitTerminationsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTerminationsNotesListRequest generates requests for CircuitsCircuitTerminationsNotesList -func NewCircuitsCircuitTerminationsNotesListRequest(server string, id openapi_types.UUID, params *CircuitsCircuitTerminationsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTerminationsNotesCreateRequest calls the generic CircuitsCircuitTerminationsNotesCreate builder with application/json body -func NewCircuitsCircuitTerminationsNotesCreateRequest(server string, id openapi_types.UUID, body CircuitsCircuitTerminationsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTerminationsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitTerminationsNotesCreateRequestWithBody generates requests for CircuitsCircuitTerminationsNotesCreate with any type of body -func NewCircuitsCircuitTerminationsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTerminationsTraceRetrieveRequest generates requests for CircuitsCircuitTerminationsTraceRetrieve -func NewCircuitsCircuitTerminationsTraceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-terminations/%s/trace/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTypesBulkDestroyRequest calls the generic CircuitsCircuitTypesBulkDestroy builder with application/json body -func NewCircuitsCircuitTypesBulkDestroyRequest(server string, body CircuitsCircuitTypesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTypesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTypesBulkDestroyRequestWithBody generates requests for CircuitsCircuitTypesBulkDestroy with any type of body -func NewCircuitsCircuitTypesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTypesListRequest generates requests for CircuitsCircuitTypesList -func NewCircuitsCircuitTypesListRequest(server string, params *CircuitsCircuitTypesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTypesBulkPartialUpdateRequest calls the generic CircuitsCircuitTypesBulkPartialUpdate builder with application/json body -func NewCircuitsCircuitTypesBulkPartialUpdateRequest(server string, body CircuitsCircuitTypesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTypesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTypesBulkPartialUpdateRequestWithBody generates requests for CircuitsCircuitTypesBulkPartialUpdate with any type of body -func NewCircuitsCircuitTypesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTypesCreateRequest calls the generic CircuitsCircuitTypesCreate builder with application/json body -func NewCircuitsCircuitTypesCreateRequest(server string, body CircuitsCircuitTypesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTypesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTypesCreateRequestWithBody generates requests for CircuitsCircuitTypesCreate with any type of body -func NewCircuitsCircuitTypesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTypesBulkUpdateRequest calls the generic CircuitsCircuitTypesBulkUpdate builder with application/json body -func NewCircuitsCircuitTypesBulkUpdateRequest(server string, body CircuitsCircuitTypesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTypesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitTypesBulkUpdateRequestWithBody generates requests for CircuitsCircuitTypesBulkUpdate with any type of body -func NewCircuitsCircuitTypesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTypesDestroyRequest generates requests for CircuitsCircuitTypesDestroy -func NewCircuitsCircuitTypesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTypesRetrieveRequest generates requests for CircuitsCircuitTypesRetrieve -func NewCircuitsCircuitTypesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTypesPartialUpdateRequest calls the generic CircuitsCircuitTypesPartialUpdate builder with application/json body -func NewCircuitsCircuitTypesPartialUpdateRequest(server string, id openapi_types.UUID, body CircuitsCircuitTypesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTypesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitTypesPartialUpdateRequestWithBody generates requests for CircuitsCircuitTypesPartialUpdate with any type of body -func NewCircuitsCircuitTypesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTypesUpdateRequest calls the generic CircuitsCircuitTypesUpdate builder with application/json body -func NewCircuitsCircuitTypesUpdateRequest(server string, id openapi_types.UUID, body CircuitsCircuitTypesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTypesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitTypesUpdateRequestWithBody generates requests for CircuitsCircuitTypesUpdate with any type of body -func NewCircuitsCircuitTypesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitTypesNotesListRequest generates requests for CircuitsCircuitTypesNotesList -func NewCircuitsCircuitTypesNotesListRequest(server string, id openapi_types.UUID, params *CircuitsCircuitTypesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitTypesNotesCreateRequest calls the generic CircuitsCircuitTypesNotesCreate builder with application/json body -func NewCircuitsCircuitTypesNotesCreateRequest(server string, id openapi_types.UUID, body CircuitsCircuitTypesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitTypesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitTypesNotesCreateRequestWithBody generates requests for CircuitsCircuitTypesNotesCreate with any type of body -func NewCircuitsCircuitTypesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuit-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitsBulkDestroyRequest calls the generic CircuitsCircuitsBulkDestroy builder with application/json body -func NewCircuitsCircuitsBulkDestroyRequest(server string, body CircuitsCircuitsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitsBulkDestroyRequestWithBody generates requests for CircuitsCircuitsBulkDestroy with any type of body -func NewCircuitsCircuitsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitsListRequest generates requests for CircuitsCircuitsList -func NewCircuitsCircuitsListRequest(server string, params *CircuitsCircuitsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cid != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid", runtime.ParamLocationQuery, *params.Cid); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__ic", runtime.ParamLocationQuery, *params.CidIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__ie", runtime.ParamLocationQuery, *params.CidIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__iew", runtime.ParamLocationQuery, *params.CidIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__ire", runtime.ParamLocationQuery, *params.CidIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__isw", runtime.ParamLocationQuery, *params.CidIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__n", runtime.ParamLocationQuery, *params.CidN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__nic", runtime.ParamLocationQuery, *params.CidNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__nie", runtime.ParamLocationQuery, *params.CidNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__niew", runtime.ParamLocationQuery, *params.CidNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__nire", runtime.ParamLocationQuery, *params.CidNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__nisw", runtime.ParamLocationQuery, *params.CidNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__nre", runtime.ParamLocationQuery, *params.CidNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CidRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cid__re", runtime.ParamLocationQuery, *params.CidRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitRate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_rate", runtime.ParamLocationQuery, *params.CommitRate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitRateGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_rate__gt", runtime.ParamLocationQuery, *params.CommitRateGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitRateGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_rate__gte", runtime.ParamLocationQuery, *params.CommitRateGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitRateLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_rate__lt", runtime.ParamLocationQuery, *params.CommitRateLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitRateLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_rate__lte", runtime.ParamLocationQuery, *params.CommitRateLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitRateN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_rate__n", runtime.ParamLocationQuery, *params.CommitRateN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstallDate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "install_date", runtime.ParamLocationQuery, *params.InstallDate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstallDateGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "install_date__gt", runtime.ParamLocationQuery, *params.InstallDateGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstallDateGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "install_date__gte", runtime.ParamLocationQuery, *params.InstallDateGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstallDateLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "install_date__lt", runtime.ParamLocationQuery, *params.InstallDateLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstallDateLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "install_date__lte", runtime.ParamLocationQuery, *params.InstallDateLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstallDateN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "install_date__n", runtime.ParamLocationQuery, *params.InstallDateN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Provider != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider", runtime.ParamLocationQuery, *params.Provider); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__n", runtime.ParamLocationQuery, *params.ProviderN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_id", runtime.ParamLocationQuery, *params.ProviderId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_id__n", runtime.ParamLocationQuery, *params.ProviderIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNetworkId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_network_id", runtime.ParamLocationQuery, *params.ProviderNetworkId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNetworkIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_network_id__n", runtime.ParamLocationQuery, *params.ProviderNetworkIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_id", runtime.ParamLocationQuery, *params.TypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_id__n", runtime.ParamLocationQuery, *params.TypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitsBulkPartialUpdateRequest calls the generic CircuitsCircuitsBulkPartialUpdate builder with application/json body -func NewCircuitsCircuitsBulkPartialUpdateRequest(server string, body CircuitsCircuitsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitsBulkPartialUpdateRequestWithBody generates requests for CircuitsCircuitsBulkPartialUpdate with any type of body -func NewCircuitsCircuitsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitsCreateRequest calls the generic CircuitsCircuitsCreate builder with application/json body -func NewCircuitsCircuitsCreateRequest(server string, body CircuitsCircuitsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitsCreateRequestWithBody generates requests for CircuitsCircuitsCreate with any type of body -func NewCircuitsCircuitsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitsBulkUpdateRequest calls the generic CircuitsCircuitsBulkUpdate builder with application/json body -func NewCircuitsCircuitsBulkUpdateRequest(server string, body CircuitsCircuitsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsCircuitsBulkUpdateRequestWithBody generates requests for CircuitsCircuitsBulkUpdate with any type of body -func NewCircuitsCircuitsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitsDestroyRequest generates requests for CircuitsCircuitsDestroy -func NewCircuitsCircuitsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitsRetrieveRequest generates requests for CircuitsCircuitsRetrieve -func NewCircuitsCircuitsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitsPartialUpdateRequest calls the generic CircuitsCircuitsPartialUpdate builder with application/json body -func NewCircuitsCircuitsPartialUpdateRequest(server string, id openapi_types.UUID, body CircuitsCircuitsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitsPartialUpdateRequestWithBody generates requests for CircuitsCircuitsPartialUpdate with any type of body -func NewCircuitsCircuitsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitsUpdateRequest calls the generic CircuitsCircuitsUpdate builder with application/json body -func NewCircuitsCircuitsUpdateRequest(server string, id openapi_types.UUID, body CircuitsCircuitsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitsUpdateRequestWithBody generates requests for CircuitsCircuitsUpdate with any type of body -func NewCircuitsCircuitsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsCircuitsNotesListRequest generates requests for CircuitsCircuitsNotesList -func NewCircuitsCircuitsNotesListRequest(server string, id openapi_types.UUID, params *CircuitsCircuitsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsCircuitsNotesCreateRequest calls the generic CircuitsCircuitsNotesCreate builder with application/json body -func NewCircuitsCircuitsNotesCreateRequest(server string, id openapi_types.UUID, body CircuitsCircuitsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsCircuitsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsCircuitsNotesCreateRequestWithBody generates requests for CircuitsCircuitsNotesCreate with any type of body -func NewCircuitsCircuitsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/circuits/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProviderNetworksBulkDestroyRequest calls the generic CircuitsProviderNetworksBulkDestroy builder with application/json body -func NewCircuitsProviderNetworksBulkDestroyRequest(server string, body CircuitsProviderNetworksBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProviderNetworksBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProviderNetworksBulkDestroyRequestWithBody generates requests for CircuitsProviderNetworksBulkDestroy with any type of body -func NewCircuitsProviderNetworksBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProviderNetworksListRequest generates requests for CircuitsProviderNetworksList -func NewCircuitsProviderNetworksListRequest(server string, params *CircuitsProviderNetworksListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Provider != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider", runtime.ParamLocationQuery, *params.Provider); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__n", runtime.ParamLocationQuery, *params.ProviderN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_id", runtime.ParamLocationQuery, *params.ProviderId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_id__n", runtime.ParamLocationQuery, *params.ProviderIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProviderNetworksBulkPartialUpdateRequest calls the generic CircuitsProviderNetworksBulkPartialUpdate builder with application/json body -func NewCircuitsProviderNetworksBulkPartialUpdateRequest(server string, body CircuitsProviderNetworksBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProviderNetworksBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProviderNetworksBulkPartialUpdateRequestWithBody generates requests for CircuitsProviderNetworksBulkPartialUpdate with any type of body -func NewCircuitsProviderNetworksBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProviderNetworksCreateRequest calls the generic CircuitsProviderNetworksCreate builder with application/json body -func NewCircuitsProviderNetworksCreateRequest(server string, body CircuitsProviderNetworksCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProviderNetworksCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProviderNetworksCreateRequestWithBody generates requests for CircuitsProviderNetworksCreate with any type of body -func NewCircuitsProviderNetworksCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProviderNetworksBulkUpdateRequest calls the generic CircuitsProviderNetworksBulkUpdate builder with application/json body -func NewCircuitsProviderNetworksBulkUpdateRequest(server string, body CircuitsProviderNetworksBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProviderNetworksBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProviderNetworksBulkUpdateRequestWithBody generates requests for CircuitsProviderNetworksBulkUpdate with any type of body -func NewCircuitsProviderNetworksBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProviderNetworksDestroyRequest generates requests for CircuitsProviderNetworksDestroy -func NewCircuitsProviderNetworksDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProviderNetworksRetrieveRequest generates requests for CircuitsProviderNetworksRetrieve -func NewCircuitsProviderNetworksRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProviderNetworksPartialUpdateRequest calls the generic CircuitsProviderNetworksPartialUpdate builder with application/json body -func NewCircuitsProviderNetworksPartialUpdateRequest(server string, id openapi_types.UUID, body CircuitsProviderNetworksPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProviderNetworksPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsProviderNetworksPartialUpdateRequestWithBody generates requests for CircuitsProviderNetworksPartialUpdate with any type of body -func NewCircuitsProviderNetworksPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProviderNetworksUpdateRequest calls the generic CircuitsProviderNetworksUpdate builder with application/json body -func NewCircuitsProviderNetworksUpdateRequest(server string, id openapi_types.UUID, body CircuitsProviderNetworksUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProviderNetworksUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsProviderNetworksUpdateRequestWithBody generates requests for CircuitsProviderNetworksUpdate with any type of body -func NewCircuitsProviderNetworksUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProviderNetworksNotesListRequest generates requests for CircuitsProviderNetworksNotesList -func NewCircuitsProviderNetworksNotesListRequest(server string, id openapi_types.UUID, params *CircuitsProviderNetworksNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProviderNetworksNotesCreateRequest calls the generic CircuitsProviderNetworksNotesCreate builder with application/json body -func NewCircuitsProviderNetworksNotesCreateRequest(server string, id openapi_types.UUID, body CircuitsProviderNetworksNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProviderNetworksNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsProviderNetworksNotesCreateRequestWithBody generates requests for CircuitsProviderNetworksNotesCreate with any type of body -func NewCircuitsProviderNetworksNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/provider-networks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProvidersBulkDestroyRequest calls the generic CircuitsProvidersBulkDestroy builder with application/json body -func NewCircuitsProvidersBulkDestroyRequest(server string, body CircuitsProvidersBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProvidersBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProvidersBulkDestroyRequestWithBody generates requests for CircuitsProvidersBulkDestroy with any type of body -func NewCircuitsProvidersBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProvidersListRequest generates requests for CircuitsProvidersList -func NewCircuitsProvidersListRequest(server string, params *CircuitsProvidersListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Account != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account", runtime.ParamLocationQuery, *params.Account); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__ic", runtime.ParamLocationQuery, *params.AccountIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__ie", runtime.ParamLocationQuery, *params.AccountIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__iew", runtime.ParamLocationQuery, *params.AccountIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__ire", runtime.ParamLocationQuery, *params.AccountIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__isw", runtime.ParamLocationQuery, *params.AccountIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__n", runtime.ParamLocationQuery, *params.AccountN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__nic", runtime.ParamLocationQuery, *params.AccountNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__nie", runtime.ParamLocationQuery, *params.AccountNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__niew", runtime.ParamLocationQuery, *params.AccountNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__nire", runtime.ParamLocationQuery, *params.AccountNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__nisw", runtime.ParamLocationQuery, *params.AccountNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__nre", runtime.ParamLocationQuery, *params.AccountNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccountRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account__re", runtime.ParamLocationQuery, *params.AccountRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Asn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn", runtime.ParamLocationQuery, *params.Asn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__gt", runtime.ParamLocationQuery, *params.AsnGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__gte", runtime.ParamLocationQuery, *params.AsnGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__lt", runtime.ParamLocationQuery, *params.AsnLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__lte", runtime.ParamLocationQuery, *params.AsnLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__n", runtime.ParamLocationQuery, *params.AsnN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProvidersBulkPartialUpdateRequest calls the generic CircuitsProvidersBulkPartialUpdate builder with application/json body -func NewCircuitsProvidersBulkPartialUpdateRequest(server string, body CircuitsProvidersBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProvidersBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProvidersBulkPartialUpdateRequestWithBody generates requests for CircuitsProvidersBulkPartialUpdate with any type of body -func NewCircuitsProvidersBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProvidersCreateRequest calls the generic CircuitsProvidersCreate builder with application/json body -func NewCircuitsProvidersCreateRequest(server string, body CircuitsProvidersCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProvidersCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProvidersCreateRequestWithBody generates requests for CircuitsProvidersCreate with any type of body -func NewCircuitsProvidersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProvidersBulkUpdateRequest calls the generic CircuitsProvidersBulkUpdate builder with application/json body -func NewCircuitsProvidersBulkUpdateRequest(server string, body CircuitsProvidersBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProvidersBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCircuitsProvidersBulkUpdateRequestWithBody generates requests for CircuitsProvidersBulkUpdate with any type of body -func NewCircuitsProvidersBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProvidersDestroyRequest generates requests for CircuitsProvidersDestroy -func NewCircuitsProvidersDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProvidersRetrieveRequest generates requests for CircuitsProvidersRetrieve -func NewCircuitsProvidersRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProvidersPartialUpdateRequest calls the generic CircuitsProvidersPartialUpdate builder with application/json body -func NewCircuitsProvidersPartialUpdateRequest(server string, id openapi_types.UUID, body CircuitsProvidersPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProvidersPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsProvidersPartialUpdateRequestWithBody generates requests for CircuitsProvidersPartialUpdate with any type of body -func NewCircuitsProvidersPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProvidersUpdateRequest calls the generic CircuitsProvidersUpdate builder with application/json body -func NewCircuitsProvidersUpdateRequest(server string, id openapi_types.UUID, body CircuitsProvidersUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProvidersUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsProvidersUpdateRequestWithBody generates requests for CircuitsProvidersUpdate with any type of body -func NewCircuitsProvidersUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCircuitsProvidersNotesListRequest generates requests for CircuitsProvidersNotesList -func NewCircuitsProvidersNotesListRequest(server string, id openapi_types.UUID, params *CircuitsProvidersNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCircuitsProvidersNotesCreateRequest calls the generic CircuitsProvidersNotesCreate builder with application/json body -func NewCircuitsProvidersNotesCreateRequest(server string, id openapi_types.UUID, body CircuitsProvidersNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCircuitsProvidersNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCircuitsProvidersNotesCreateRequestWithBody generates requests for CircuitsProvidersNotesCreate with any type of body -func NewCircuitsProvidersNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/circuits/providers/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimCablesBulkDestroyRequest calls the generic DcimCablesBulkDestroy builder with application/json body -func NewDcimCablesBulkDestroyRequest(server string, body DcimCablesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimCablesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimCablesBulkDestroyRequestWithBody generates requests for DcimCablesBulkDestroy with any type of body -func NewDcimCablesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimCablesListRequest generates requests for DcimCablesList -func NewDcimCablesListRequest(server string, params *DcimCablesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Color != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color", runtime.ParamLocationQuery, *params.Color); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ic", runtime.ParamLocationQuery, *params.ColorIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ie", runtime.ParamLocationQuery, *params.ColorIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__iew", runtime.ParamLocationQuery, *params.ColorIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ire", runtime.ParamLocationQuery, *params.ColorIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__isw", runtime.ParamLocationQuery, *params.ColorIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__n", runtime.ParamLocationQuery, *params.ColorN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nic", runtime.ParamLocationQuery, *params.ColorNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nie", runtime.ParamLocationQuery, *params.ColorNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__niew", runtime.ParamLocationQuery, *params.ColorNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nire", runtime.ParamLocationQuery, *params.ColorNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nisw", runtime.ParamLocationQuery, *params.ColorNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nre", runtime.ParamLocationQuery, *params.ColorNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__re", runtime.ParamLocationQuery, *params.ColorRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Length != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LengthGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length__gt", runtime.ParamLocationQuery, *params.LengthGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LengthGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length__gte", runtime.ParamLocationQuery, *params.LengthGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LengthLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length__lt", runtime.ParamLocationQuery, *params.LengthLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LengthLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length__lte", runtime.ParamLocationQuery, *params.LengthLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LengthN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length__n", runtime.ParamLocationQuery, *params.LengthN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LengthUnit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length_unit", runtime.ParamLocationQuery, *params.LengthUnit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LengthUnitN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length_unit__n", runtime.ParamLocationQuery, *params.LengthUnitN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rack != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack", runtime.ParamLocationQuery, *params.Rack); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id", runtime.ParamLocationQuery, *params.RackId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id", runtime.ParamLocationQuery, *params.TerminationAId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__ic", runtime.ParamLocationQuery, *params.TerminationAIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__ie", runtime.ParamLocationQuery, *params.TerminationAIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__iew", runtime.ParamLocationQuery, *params.TerminationAIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__ire", runtime.ParamLocationQuery, *params.TerminationAIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__isw", runtime.ParamLocationQuery, *params.TerminationAIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__n", runtime.ParamLocationQuery, *params.TerminationAIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__nic", runtime.ParamLocationQuery, *params.TerminationAIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__nie", runtime.ParamLocationQuery, *params.TerminationAIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__niew", runtime.ParamLocationQuery, *params.TerminationAIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__nire", runtime.ParamLocationQuery, *params.TerminationAIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__nisw", runtime.ParamLocationQuery, *params.TerminationAIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__nre", runtime.ParamLocationQuery, *params.TerminationAIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_id__re", runtime.ParamLocationQuery, *params.TerminationAIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationAType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_type", runtime.ParamLocationQuery, *params.TerminationAType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationATypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_a_type__n", runtime.ParamLocationQuery, *params.TerminationATypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id", runtime.ParamLocationQuery, *params.TerminationBId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__ic", runtime.ParamLocationQuery, *params.TerminationBIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__ie", runtime.ParamLocationQuery, *params.TerminationBIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__iew", runtime.ParamLocationQuery, *params.TerminationBIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__ire", runtime.ParamLocationQuery, *params.TerminationBIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__isw", runtime.ParamLocationQuery, *params.TerminationBIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__n", runtime.ParamLocationQuery, *params.TerminationBIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__nic", runtime.ParamLocationQuery, *params.TerminationBIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__nie", runtime.ParamLocationQuery, *params.TerminationBIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__niew", runtime.ParamLocationQuery, *params.TerminationBIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__nire", runtime.ParamLocationQuery, *params.TerminationBIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__nisw", runtime.ParamLocationQuery, *params.TerminationBIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__nre", runtime.ParamLocationQuery, *params.TerminationBIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_id__re", runtime.ParamLocationQuery, *params.TerminationBIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_type", runtime.ParamLocationQuery, *params.TerminationBType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TerminationBTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "termination_b_type__n", runtime.ParamLocationQuery, *params.TerminationBTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimCablesBulkPartialUpdateRequest calls the generic DcimCablesBulkPartialUpdate builder with application/json body -func NewDcimCablesBulkPartialUpdateRequest(server string, body DcimCablesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimCablesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimCablesBulkPartialUpdateRequestWithBody generates requests for DcimCablesBulkPartialUpdate with any type of body -func NewDcimCablesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimCablesCreateRequest calls the generic DcimCablesCreate builder with application/json body -func NewDcimCablesCreateRequest(server string, body DcimCablesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimCablesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimCablesCreateRequestWithBody generates requests for DcimCablesCreate with any type of body -func NewDcimCablesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimCablesBulkUpdateRequest calls the generic DcimCablesBulkUpdate builder with application/json body -func NewDcimCablesBulkUpdateRequest(server string, body DcimCablesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimCablesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimCablesBulkUpdateRequestWithBody generates requests for DcimCablesBulkUpdate with any type of body -func NewDcimCablesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimCablesDestroyRequest generates requests for DcimCablesDestroy -func NewDcimCablesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimCablesRetrieveRequest generates requests for DcimCablesRetrieve -func NewDcimCablesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimCablesPartialUpdateRequest calls the generic DcimCablesPartialUpdate builder with application/json body -func NewDcimCablesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimCablesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimCablesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimCablesPartialUpdateRequestWithBody generates requests for DcimCablesPartialUpdate with any type of body -func NewDcimCablesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimCablesUpdateRequest calls the generic DcimCablesUpdate builder with application/json body -func NewDcimCablesUpdateRequest(server string, id openapi_types.UUID, body DcimCablesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimCablesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimCablesUpdateRequestWithBody generates requests for DcimCablesUpdate with any type of body -func NewDcimCablesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimCablesNotesListRequest generates requests for DcimCablesNotesList -func NewDcimCablesNotesListRequest(server string, id openapi_types.UUID, params *DcimCablesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimCablesNotesCreateRequest calls the generic DcimCablesNotesCreate builder with application/json body -func NewDcimCablesNotesCreateRequest(server string, id openapi_types.UUID, body DcimCablesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimCablesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimCablesNotesCreateRequestWithBody generates requests for DcimCablesNotesCreate with any type of body -func NewDcimCablesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/cables/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConnectedDeviceListRequest generates requests for DcimConnectedDeviceList -func NewDcimConnectedDeviceListRequest(server string, params *DcimConnectedDeviceListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/connected-device/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "peer_device", runtime.ParamLocationQuery, params.PeerDevice); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "peer_interface", runtime.ParamLocationQuery, params.PeerInterface); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleConnectionsListRequest generates requests for DcimConsoleConnectionsList -func NewDcimConsoleConnectionsListRequest(server string, params *DcimConsoleConnectionsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-connections/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortTemplatesBulkDestroyRequest calls the generic DcimConsolePortTemplatesBulkDestroy builder with application/json body -func NewDcimConsolePortTemplatesBulkDestroyRequest(server string, body DcimConsolePortTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortTemplatesBulkDestroyRequestWithBody generates requests for DcimConsolePortTemplatesBulkDestroy with any type of body -func NewDcimConsolePortTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortTemplatesListRequest generates requests for DcimConsolePortTemplatesList -func NewDcimConsolePortTemplatesListRequest(server string, params *DcimConsolePortTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortTemplatesBulkPartialUpdateRequest calls the generic DcimConsolePortTemplatesBulkPartialUpdate builder with application/json body -func NewDcimConsolePortTemplatesBulkPartialUpdateRequest(server string, body DcimConsolePortTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimConsolePortTemplatesBulkPartialUpdate with any type of body -func NewDcimConsolePortTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortTemplatesCreateRequest calls the generic DcimConsolePortTemplatesCreate builder with application/json body -func NewDcimConsolePortTemplatesCreateRequest(server string, body DcimConsolePortTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortTemplatesCreateRequestWithBody generates requests for DcimConsolePortTemplatesCreate with any type of body -func NewDcimConsolePortTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortTemplatesBulkUpdateRequest calls the generic DcimConsolePortTemplatesBulkUpdate builder with application/json body -func NewDcimConsolePortTemplatesBulkUpdateRequest(server string, body DcimConsolePortTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortTemplatesBulkUpdateRequestWithBody generates requests for DcimConsolePortTemplatesBulkUpdate with any type of body -func NewDcimConsolePortTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortTemplatesDestroyRequest generates requests for DcimConsolePortTemplatesDestroy -func NewDcimConsolePortTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortTemplatesRetrieveRequest generates requests for DcimConsolePortTemplatesRetrieve -func NewDcimConsolePortTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortTemplatesPartialUpdateRequest calls the generic DcimConsolePortTemplatesPartialUpdate builder with application/json body -func NewDcimConsolePortTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimConsolePortTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsolePortTemplatesPartialUpdateRequestWithBody generates requests for DcimConsolePortTemplatesPartialUpdate with any type of body -func NewDcimConsolePortTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortTemplatesUpdateRequest calls the generic DcimConsolePortTemplatesUpdate builder with application/json body -func NewDcimConsolePortTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimConsolePortTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsolePortTemplatesUpdateRequestWithBody generates requests for DcimConsolePortTemplatesUpdate with any type of body -func NewDcimConsolePortTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortTemplatesNotesListRequest generates requests for DcimConsolePortTemplatesNotesList -func NewDcimConsolePortTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimConsolePortTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortTemplatesNotesCreateRequest calls the generic DcimConsolePortTemplatesNotesCreate builder with application/json body -func NewDcimConsolePortTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimConsolePortTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsolePortTemplatesNotesCreateRequestWithBody generates requests for DcimConsolePortTemplatesNotesCreate with any type of body -func NewDcimConsolePortTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsBulkDestroyRequest calls the generic DcimConsolePortsBulkDestroy builder with application/json body -func NewDcimConsolePortsBulkDestroyRequest(server string, body DcimConsolePortsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortsBulkDestroyRequestWithBody generates requests for DcimConsolePortsBulkDestroy with any type of body -func NewDcimConsolePortsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsListRequest generates requests for DcimConsolePortsList -func NewDcimConsolePortsListRequest(server string, params *DcimConsolePortsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Connected != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connected", runtime.ParamLocationQuery, *params.Connected); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortsBulkPartialUpdateRequest calls the generic DcimConsolePortsBulkPartialUpdate builder with application/json body -func NewDcimConsolePortsBulkPartialUpdateRequest(server string, body DcimConsolePortsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortsBulkPartialUpdateRequestWithBody generates requests for DcimConsolePortsBulkPartialUpdate with any type of body -func NewDcimConsolePortsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsCreateRequest calls the generic DcimConsolePortsCreate builder with application/json body -func NewDcimConsolePortsCreateRequest(server string, body DcimConsolePortsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortsCreateRequestWithBody generates requests for DcimConsolePortsCreate with any type of body -func NewDcimConsolePortsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsBulkUpdateRequest calls the generic DcimConsolePortsBulkUpdate builder with application/json body -func NewDcimConsolePortsBulkUpdateRequest(server string, body DcimConsolePortsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsolePortsBulkUpdateRequestWithBody generates requests for DcimConsolePortsBulkUpdate with any type of body -func NewDcimConsolePortsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsDestroyRequest generates requests for DcimConsolePortsDestroy -func NewDcimConsolePortsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortsRetrieveRequest generates requests for DcimConsolePortsRetrieve -func NewDcimConsolePortsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortsPartialUpdateRequest calls the generic DcimConsolePortsPartialUpdate builder with application/json body -func NewDcimConsolePortsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimConsolePortsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsolePortsPartialUpdateRequestWithBody generates requests for DcimConsolePortsPartialUpdate with any type of body -func NewDcimConsolePortsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsUpdateRequest calls the generic DcimConsolePortsUpdate builder with application/json body -func NewDcimConsolePortsUpdateRequest(server string, id openapi_types.UUID, body DcimConsolePortsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsolePortsUpdateRequestWithBody generates requests for DcimConsolePortsUpdate with any type of body -func NewDcimConsolePortsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsNotesListRequest generates requests for DcimConsolePortsNotesList -func NewDcimConsolePortsNotesListRequest(server string, id openapi_types.UUID, params *DcimConsolePortsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsolePortsNotesCreateRequest calls the generic DcimConsolePortsNotesCreate builder with application/json body -func NewDcimConsolePortsNotesCreateRequest(server string, id openapi_types.UUID, body DcimConsolePortsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsolePortsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsolePortsNotesCreateRequestWithBody generates requests for DcimConsolePortsNotesCreate with any type of body -func NewDcimConsolePortsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsolePortsTraceRetrieveRequest generates requests for DcimConsolePortsTraceRetrieve -func NewDcimConsolePortsTraceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-ports/%s/trace/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesBulkDestroyRequest calls the generic DcimConsoleServerPortTemplatesBulkDestroy builder with application/json body -func NewDcimConsoleServerPortTemplatesBulkDestroyRequest(server string, body DcimConsoleServerPortTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortTemplatesBulkDestroyRequestWithBody generates requests for DcimConsoleServerPortTemplatesBulkDestroy with any type of body -func NewDcimConsoleServerPortTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesListRequest generates requests for DcimConsoleServerPortTemplatesList -func NewDcimConsoleServerPortTemplatesListRequest(server string, params *DcimConsoleServerPortTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesBulkPartialUpdateRequest calls the generic DcimConsoleServerPortTemplatesBulkPartialUpdate builder with application/json body -func NewDcimConsoleServerPortTemplatesBulkPartialUpdateRequest(server string, body DcimConsoleServerPortTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimConsoleServerPortTemplatesBulkPartialUpdate with any type of body -func NewDcimConsoleServerPortTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesCreateRequest calls the generic DcimConsoleServerPortTemplatesCreate builder with application/json body -func NewDcimConsoleServerPortTemplatesCreateRequest(server string, body DcimConsoleServerPortTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortTemplatesCreateRequestWithBody generates requests for DcimConsoleServerPortTemplatesCreate with any type of body -func NewDcimConsoleServerPortTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesBulkUpdateRequest calls the generic DcimConsoleServerPortTemplatesBulkUpdate builder with application/json body -func NewDcimConsoleServerPortTemplatesBulkUpdateRequest(server string, body DcimConsoleServerPortTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortTemplatesBulkUpdateRequestWithBody generates requests for DcimConsoleServerPortTemplatesBulkUpdate with any type of body -func NewDcimConsoleServerPortTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesDestroyRequest generates requests for DcimConsoleServerPortTemplatesDestroy -func NewDcimConsoleServerPortTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesRetrieveRequest generates requests for DcimConsoleServerPortTemplatesRetrieve -func NewDcimConsoleServerPortTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesPartialUpdateRequest calls the generic DcimConsoleServerPortTemplatesPartialUpdate builder with application/json body -func NewDcimConsoleServerPortTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimConsoleServerPortTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortTemplatesPartialUpdateRequestWithBody generates requests for DcimConsoleServerPortTemplatesPartialUpdate with any type of body -func NewDcimConsoleServerPortTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesUpdateRequest calls the generic DcimConsoleServerPortTemplatesUpdate builder with application/json body -func NewDcimConsoleServerPortTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimConsoleServerPortTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortTemplatesUpdateRequestWithBody generates requests for DcimConsoleServerPortTemplatesUpdate with any type of body -func NewDcimConsoleServerPortTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesNotesListRequest generates requests for DcimConsoleServerPortTemplatesNotesList -func NewDcimConsoleServerPortTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimConsoleServerPortTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortTemplatesNotesCreateRequest calls the generic DcimConsoleServerPortTemplatesNotesCreate builder with application/json body -func NewDcimConsoleServerPortTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimConsoleServerPortTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortTemplatesNotesCreateRequestWithBody generates requests for DcimConsoleServerPortTemplatesNotesCreate with any type of body -func NewDcimConsoleServerPortTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsBulkDestroyRequest calls the generic DcimConsoleServerPortsBulkDestroy builder with application/json body -func NewDcimConsoleServerPortsBulkDestroyRequest(server string, body DcimConsoleServerPortsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortsBulkDestroyRequestWithBody generates requests for DcimConsoleServerPortsBulkDestroy with any type of body -func NewDcimConsoleServerPortsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsListRequest generates requests for DcimConsoleServerPortsList -func NewDcimConsoleServerPortsListRequest(server string, params *DcimConsoleServerPortsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Connected != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connected", runtime.ParamLocationQuery, *params.Connected); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortsBulkPartialUpdateRequest calls the generic DcimConsoleServerPortsBulkPartialUpdate builder with application/json body -func NewDcimConsoleServerPortsBulkPartialUpdateRequest(server string, body DcimConsoleServerPortsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortsBulkPartialUpdateRequestWithBody generates requests for DcimConsoleServerPortsBulkPartialUpdate with any type of body -func NewDcimConsoleServerPortsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsCreateRequest calls the generic DcimConsoleServerPortsCreate builder with application/json body -func NewDcimConsoleServerPortsCreateRequest(server string, body DcimConsoleServerPortsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortsCreateRequestWithBody generates requests for DcimConsoleServerPortsCreate with any type of body -func NewDcimConsoleServerPortsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsBulkUpdateRequest calls the generic DcimConsoleServerPortsBulkUpdate builder with application/json body -func NewDcimConsoleServerPortsBulkUpdateRequest(server string, body DcimConsoleServerPortsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortsBulkUpdateRequestWithBody generates requests for DcimConsoleServerPortsBulkUpdate with any type of body -func NewDcimConsoleServerPortsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsDestroyRequest generates requests for DcimConsoleServerPortsDestroy -func NewDcimConsoleServerPortsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortsRetrieveRequest generates requests for DcimConsoleServerPortsRetrieve -func NewDcimConsoleServerPortsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortsPartialUpdateRequest calls the generic DcimConsoleServerPortsPartialUpdate builder with application/json body -func NewDcimConsoleServerPortsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimConsoleServerPortsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortsPartialUpdateRequestWithBody generates requests for DcimConsoleServerPortsPartialUpdate with any type of body -func NewDcimConsoleServerPortsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsUpdateRequest calls the generic DcimConsoleServerPortsUpdate builder with application/json body -func NewDcimConsoleServerPortsUpdateRequest(server string, id openapi_types.UUID, body DcimConsoleServerPortsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortsUpdateRequestWithBody generates requests for DcimConsoleServerPortsUpdate with any type of body -func NewDcimConsoleServerPortsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsNotesListRequest generates requests for DcimConsoleServerPortsNotesList -func NewDcimConsoleServerPortsNotesListRequest(server string, id openapi_types.UUID, params *DcimConsoleServerPortsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimConsoleServerPortsNotesCreateRequest calls the generic DcimConsoleServerPortsNotesCreate builder with application/json body -func NewDcimConsoleServerPortsNotesCreateRequest(server string, id openapi_types.UUID, body DcimConsoleServerPortsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimConsoleServerPortsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimConsoleServerPortsNotesCreateRequestWithBody generates requests for DcimConsoleServerPortsNotesCreate with any type of body -func NewDcimConsoleServerPortsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimConsoleServerPortsTraceRetrieveRequest generates requests for DcimConsoleServerPortsTraceRetrieve -func NewDcimConsoleServerPortsTraceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/console-server-ports/%s/trace/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBayTemplatesBulkDestroyRequest calls the generic DcimDeviceBayTemplatesBulkDestroy builder with application/json body -func NewDcimDeviceBayTemplatesBulkDestroyRequest(server string, body DcimDeviceBayTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBayTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBayTemplatesBulkDestroyRequestWithBody generates requests for DcimDeviceBayTemplatesBulkDestroy with any type of body -func NewDcimDeviceBayTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBayTemplatesListRequest generates requests for DcimDeviceBayTemplatesList -func NewDcimDeviceBayTemplatesListRequest(server string, params *DcimDeviceBayTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBayTemplatesBulkPartialUpdateRequest calls the generic DcimDeviceBayTemplatesBulkPartialUpdate builder with application/json body -func NewDcimDeviceBayTemplatesBulkPartialUpdateRequest(server string, body DcimDeviceBayTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBayTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBayTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimDeviceBayTemplatesBulkPartialUpdate with any type of body -func NewDcimDeviceBayTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBayTemplatesCreateRequest calls the generic DcimDeviceBayTemplatesCreate builder with application/json body -func NewDcimDeviceBayTemplatesCreateRequest(server string, body DcimDeviceBayTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBayTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBayTemplatesCreateRequestWithBody generates requests for DcimDeviceBayTemplatesCreate with any type of body -func NewDcimDeviceBayTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBayTemplatesBulkUpdateRequest calls the generic DcimDeviceBayTemplatesBulkUpdate builder with application/json body -func NewDcimDeviceBayTemplatesBulkUpdateRequest(server string, body DcimDeviceBayTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBayTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBayTemplatesBulkUpdateRequestWithBody generates requests for DcimDeviceBayTemplatesBulkUpdate with any type of body -func NewDcimDeviceBayTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBayTemplatesDestroyRequest generates requests for DcimDeviceBayTemplatesDestroy -func NewDcimDeviceBayTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBayTemplatesRetrieveRequest generates requests for DcimDeviceBayTemplatesRetrieve -func NewDcimDeviceBayTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBayTemplatesPartialUpdateRequest calls the generic DcimDeviceBayTemplatesPartialUpdate builder with application/json body -func NewDcimDeviceBayTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceBayTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBayTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceBayTemplatesPartialUpdateRequestWithBody generates requests for DcimDeviceBayTemplatesPartialUpdate with any type of body -func NewDcimDeviceBayTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBayTemplatesUpdateRequest calls the generic DcimDeviceBayTemplatesUpdate builder with application/json body -func NewDcimDeviceBayTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceBayTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBayTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceBayTemplatesUpdateRequestWithBody generates requests for DcimDeviceBayTemplatesUpdate with any type of body -func NewDcimDeviceBayTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBayTemplatesNotesListRequest generates requests for DcimDeviceBayTemplatesNotesList -func NewDcimDeviceBayTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimDeviceBayTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBayTemplatesNotesCreateRequest calls the generic DcimDeviceBayTemplatesNotesCreate builder with application/json body -func NewDcimDeviceBayTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimDeviceBayTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBayTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceBayTemplatesNotesCreateRequestWithBody generates requests for DcimDeviceBayTemplatesNotesCreate with any type of body -func NewDcimDeviceBayTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bay-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBaysBulkDestroyRequest calls the generic DcimDeviceBaysBulkDestroy builder with application/json body -func NewDcimDeviceBaysBulkDestroyRequest(server string, body DcimDeviceBaysBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBaysBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBaysBulkDestroyRequestWithBody generates requests for DcimDeviceBaysBulkDestroy with any type of body -func NewDcimDeviceBaysBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBaysListRequest generates requests for DcimDeviceBaysList -func NewDcimDeviceBaysListRequest(server string, params *DcimDeviceBaysListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstalledDevice != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "installed_device", runtime.ParamLocationQuery, *params.InstalledDevice); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstalledDeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "installed_device__n", runtime.ParamLocationQuery, *params.InstalledDeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBaysBulkPartialUpdateRequest calls the generic DcimDeviceBaysBulkPartialUpdate builder with application/json body -func NewDcimDeviceBaysBulkPartialUpdateRequest(server string, body DcimDeviceBaysBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBaysBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBaysBulkPartialUpdateRequestWithBody generates requests for DcimDeviceBaysBulkPartialUpdate with any type of body -func NewDcimDeviceBaysBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBaysCreateRequest calls the generic DcimDeviceBaysCreate builder with application/json body -func NewDcimDeviceBaysCreateRequest(server string, body DcimDeviceBaysCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBaysCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBaysCreateRequestWithBody generates requests for DcimDeviceBaysCreate with any type of body -func NewDcimDeviceBaysCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBaysBulkUpdateRequest calls the generic DcimDeviceBaysBulkUpdate builder with application/json body -func NewDcimDeviceBaysBulkUpdateRequest(server string, body DcimDeviceBaysBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBaysBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceBaysBulkUpdateRequestWithBody generates requests for DcimDeviceBaysBulkUpdate with any type of body -func NewDcimDeviceBaysBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBaysDestroyRequest generates requests for DcimDeviceBaysDestroy -func NewDcimDeviceBaysDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBaysRetrieveRequest generates requests for DcimDeviceBaysRetrieve -func NewDcimDeviceBaysRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBaysPartialUpdateRequest calls the generic DcimDeviceBaysPartialUpdate builder with application/json body -func NewDcimDeviceBaysPartialUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceBaysPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBaysPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceBaysPartialUpdateRequestWithBody generates requests for DcimDeviceBaysPartialUpdate with any type of body -func NewDcimDeviceBaysPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBaysUpdateRequest calls the generic DcimDeviceBaysUpdate builder with application/json body -func NewDcimDeviceBaysUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceBaysUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBaysUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceBaysUpdateRequestWithBody generates requests for DcimDeviceBaysUpdate with any type of body -func NewDcimDeviceBaysUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceBaysNotesListRequest generates requests for DcimDeviceBaysNotesList -func NewDcimDeviceBaysNotesListRequest(server string, id openapi_types.UUID, params *DcimDeviceBaysNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceBaysNotesCreateRequest calls the generic DcimDeviceBaysNotesCreate builder with application/json body -func NewDcimDeviceBaysNotesCreateRequest(server string, id openapi_types.UUID, body DcimDeviceBaysNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceBaysNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceBaysNotesCreateRequestWithBody generates requests for DcimDeviceBaysNotesCreate with any type of body -func NewDcimDeviceBaysNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-bays/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsBulkDestroyRequest calls the generic DcimDeviceRedundancyGroupsBulkDestroy builder with application/json body -func NewDcimDeviceRedundancyGroupsBulkDestroyRequest(server string, body DcimDeviceRedundancyGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRedundancyGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRedundancyGroupsBulkDestroyRequestWithBody generates requests for DcimDeviceRedundancyGroupsBulkDestroy with any type of body -func NewDcimDeviceRedundancyGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsListRequest generates requests for DcimDeviceRedundancyGroupsList -func NewDcimDeviceRedundancyGroupsListRequest(server string, params *DcimDeviceRedundancyGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FailoverStrategy != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "failover_strategy", runtime.ParamLocationQuery, *params.FailoverStrategy); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FailoverStrategyN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "failover_strategy__n", runtime.ParamLocationQuery, *params.FailoverStrategyN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group", runtime.ParamLocationQuery, *params.SecretsGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group__n", runtime.ParamLocationQuery, *params.SecretsGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsBulkPartialUpdateRequest calls the generic DcimDeviceRedundancyGroupsBulkPartialUpdate builder with application/json body -func NewDcimDeviceRedundancyGroupsBulkPartialUpdateRequest(server string, body DcimDeviceRedundancyGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRedundancyGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRedundancyGroupsBulkPartialUpdateRequestWithBody generates requests for DcimDeviceRedundancyGroupsBulkPartialUpdate with any type of body -func NewDcimDeviceRedundancyGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsCreateRequest calls the generic DcimDeviceRedundancyGroupsCreate builder with application/json body -func NewDcimDeviceRedundancyGroupsCreateRequest(server string, body DcimDeviceRedundancyGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRedundancyGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRedundancyGroupsCreateRequestWithBody generates requests for DcimDeviceRedundancyGroupsCreate with any type of body -func NewDcimDeviceRedundancyGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsBulkUpdateRequest calls the generic DcimDeviceRedundancyGroupsBulkUpdate builder with application/json body -func NewDcimDeviceRedundancyGroupsBulkUpdateRequest(server string, body DcimDeviceRedundancyGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRedundancyGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRedundancyGroupsBulkUpdateRequestWithBody generates requests for DcimDeviceRedundancyGroupsBulkUpdate with any type of body -func NewDcimDeviceRedundancyGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsDestroyRequest generates requests for DcimDeviceRedundancyGroupsDestroy -func NewDcimDeviceRedundancyGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsRetrieveRequest generates requests for DcimDeviceRedundancyGroupsRetrieve -func NewDcimDeviceRedundancyGroupsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsPartialUpdateRequest calls the generic DcimDeviceRedundancyGroupsPartialUpdate builder with application/json body -func NewDcimDeviceRedundancyGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceRedundancyGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRedundancyGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceRedundancyGroupsPartialUpdateRequestWithBody generates requests for DcimDeviceRedundancyGroupsPartialUpdate with any type of body -func NewDcimDeviceRedundancyGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsUpdateRequest calls the generic DcimDeviceRedundancyGroupsUpdate builder with application/json body -func NewDcimDeviceRedundancyGroupsUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceRedundancyGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRedundancyGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceRedundancyGroupsUpdateRequestWithBody generates requests for DcimDeviceRedundancyGroupsUpdate with any type of body -func NewDcimDeviceRedundancyGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsNotesListRequest generates requests for DcimDeviceRedundancyGroupsNotesList -func NewDcimDeviceRedundancyGroupsNotesListRequest(server string, id openapi_types.UUID, params *DcimDeviceRedundancyGroupsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRedundancyGroupsNotesCreateRequest calls the generic DcimDeviceRedundancyGroupsNotesCreate builder with application/json body -func NewDcimDeviceRedundancyGroupsNotesCreateRequest(server string, id openapi_types.UUID, body DcimDeviceRedundancyGroupsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRedundancyGroupsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceRedundancyGroupsNotesCreateRequestWithBody generates requests for DcimDeviceRedundancyGroupsNotesCreate with any type of body -func NewDcimDeviceRedundancyGroupsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-redundancy-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRolesBulkDestroyRequest calls the generic DcimDeviceRolesBulkDestroy builder with application/json body -func NewDcimDeviceRolesBulkDestroyRequest(server string, body DcimDeviceRolesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRolesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRolesBulkDestroyRequestWithBody generates requests for DcimDeviceRolesBulkDestroy with any type of body -func NewDcimDeviceRolesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRolesListRequest generates requests for DcimDeviceRolesList -func NewDcimDeviceRolesListRequest(server string, params *DcimDeviceRolesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Color != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color", runtime.ParamLocationQuery, *params.Color); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ic", runtime.ParamLocationQuery, *params.ColorIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ie", runtime.ParamLocationQuery, *params.ColorIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__iew", runtime.ParamLocationQuery, *params.ColorIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ire", runtime.ParamLocationQuery, *params.ColorIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__isw", runtime.ParamLocationQuery, *params.ColorIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__n", runtime.ParamLocationQuery, *params.ColorN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nic", runtime.ParamLocationQuery, *params.ColorNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nie", runtime.ParamLocationQuery, *params.ColorNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__niew", runtime.ParamLocationQuery, *params.ColorNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nire", runtime.ParamLocationQuery, *params.ColorNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nisw", runtime.ParamLocationQuery, *params.ColorNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nre", runtime.ParamLocationQuery, *params.ColorNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__re", runtime.ParamLocationQuery, *params.ColorRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices", runtime.ParamLocationQuery, *params.Devices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices__n", runtime.ParamLocationQuery, *params.DevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_devices", runtime.ParamLocationQuery, *params.HasDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasVirtualMachines != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_virtual_machines", runtime.ParamLocationQuery, *params.HasVirtualMachines); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachines != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machines", runtime.ParamLocationQuery, *params.VirtualMachines); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachinesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machines__n", runtime.ParamLocationQuery, *params.VirtualMachinesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VmRole != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vm_role", runtime.ParamLocationQuery, *params.VmRole); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRolesBulkPartialUpdateRequest calls the generic DcimDeviceRolesBulkPartialUpdate builder with application/json body -func NewDcimDeviceRolesBulkPartialUpdateRequest(server string, body DcimDeviceRolesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRolesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRolesBulkPartialUpdateRequestWithBody generates requests for DcimDeviceRolesBulkPartialUpdate with any type of body -func NewDcimDeviceRolesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRolesCreateRequest calls the generic DcimDeviceRolesCreate builder with application/json body -func NewDcimDeviceRolesCreateRequest(server string, body DcimDeviceRolesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRolesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRolesCreateRequestWithBody generates requests for DcimDeviceRolesCreate with any type of body -func NewDcimDeviceRolesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRolesBulkUpdateRequest calls the generic DcimDeviceRolesBulkUpdate builder with application/json body -func NewDcimDeviceRolesBulkUpdateRequest(server string, body DcimDeviceRolesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRolesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceRolesBulkUpdateRequestWithBody generates requests for DcimDeviceRolesBulkUpdate with any type of body -func NewDcimDeviceRolesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRolesDestroyRequest generates requests for DcimDeviceRolesDestroy -func NewDcimDeviceRolesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRolesRetrieveRequest generates requests for DcimDeviceRolesRetrieve -func NewDcimDeviceRolesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRolesPartialUpdateRequest calls the generic DcimDeviceRolesPartialUpdate builder with application/json body -func NewDcimDeviceRolesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceRolesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRolesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceRolesPartialUpdateRequestWithBody generates requests for DcimDeviceRolesPartialUpdate with any type of body -func NewDcimDeviceRolesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRolesUpdateRequest calls the generic DcimDeviceRolesUpdate builder with application/json body -func NewDcimDeviceRolesUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceRolesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRolesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceRolesUpdateRequestWithBody generates requests for DcimDeviceRolesUpdate with any type of body -func NewDcimDeviceRolesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceRolesNotesListRequest generates requests for DcimDeviceRolesNotesList -func NewDcimDeviceRolesNotesListRequest(server string, id openapi_types.UUID, params *DcimDeviceRolesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceRolesNotesCreateRequest calls the generic DcimDeviceRolesNotesCreate builder with application/json body -func NewDcimDeviceRolesNotesCreateRequest(server string, id openapi_types.UUID, body DcimDeviceRolesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceRolesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceRolesNotesCreateRequestWithBody generates requests for DcimDeviceRolesNotesCreate with any type of body -func NewDcimDeviceRolesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-roles/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceTypesBulkDestroyRequest calls the generic DcimDeviceTypesBulkDestroy builder with application/json body -func NewDcimDeviceTypesBulkDestroyRequest(server string, body DcimDeviceTypesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceTypesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceTypesBulkDestroyRequestWithBody generates requests for DcimDeviceTypesBulkDestroy with any type of body -func NewDcimDeviceTypesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceTypesListRequest generates requests for DcimDeviceTypesList -func NewDcimDeviceTypesListRequest(server string, params *DcimDeviceTypesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsolePortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_port_templates", runtime.ParamLocationQuery, *params.ConsolePortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsolePortTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_port_templates__n", runtime.ParamLocationQuery, *params.ConsolePortTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsolePorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_ports", runtime.ParamLocationQuery, *params.ConsolePorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsoleServerPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_server_port_templates", runtime.ParamLocationQuery, *params.ConsoleServerPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsoleServerPortTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_server_port_templates__n", runtime.ParamLocationQuery, *params.ConsoleServerPortTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsoleServerPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_server_ports", runtime.ParamLocationQuery, *params.ConsoleServerPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceBayTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_bay_templates", runtime.ParamLocationQuery, *params.DeviceBayTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceBayTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_bay_templates__n", runtime.ParamLocationQuery, *params.DeviceBayTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceBays != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_bays", runtime.ParamLocationQuery, *params.DeviceBays); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FrontPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "front_port_templates", runtime.ParamLocationQuery, *params.FrontPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FrontPortTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "front_port_templates__n", runtime.ParamLocationQuery, *params.FrontPortTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasConsolePortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_console_port_templates", runtime.ParamLocationQuery, *params.HasConsolePortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasConsoleServerPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_console_server_port_templates", runtime.ParamLocationQuery, *params.HasConsoleServerPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDeviceBayTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_device_bay_templates", runtime.ParamLocationQuery, *params.HasDeviceBayTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasFrontPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_front_port_templates", runtime.ParamLocationQuery, *params.HasFrontPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasInstances != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_instances", runtime.ParamLocationQuery, *params.HasInstances); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasInterfaceTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_interface_templates", runtime.ParamLocationQuery, *params.HasInterfaceTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerOutletTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_outlet_templates", runtime.ParamLocationQuery, *params.HasPowerOutletTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_port_templates", runtime.ParamLocationQuery, *params.HasPowerPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasRearPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_rear_port_templates", runtime.ParamLocationQuery, *params.HasRearPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Instances != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "instances", runtime.ParamLocationQuery, *params.Instances); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InstancesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "instances__n", runtime.ParamLocationQuery, *params.InstancesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InterfaceTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interface_templates", runtime.ParamLocationQuery, *params.InterfaceTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InterfaceTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interface_templates__n", runtime.ParamLocationQuery, *params.InterfaceTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Interfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interfaces", runtime.ParamLocationQuery, *params.Interfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsFullDepth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_full_depth", runtime.ParamLocationQuery, *params.IsFullDepth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Manufacturer != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer", runtime.ParamLocationQuery, *params.Manufacturer); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer__n", runtime.ParamLocationQuery, *params.ManufacturerN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id", runtime.ParamLocationQuery, *params.ManufacturerId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id__n", runtime.ParamLocationQuery, *params.ManufacturerIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Model != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model", runtime.ParamLocationQuery, *params.Model); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__ic", runtime.ParamLocationQuery, *params.ModelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__ie", runtime.ParamLocationQuery, *params.ModelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__iew", runtime.ParamLocationQuery, *params.ModelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__ire", runtime.ParamLocationQuery, *params.ModelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__isw", runtime.ParamLocationQuery, *params.ModelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__n", runtime.ParamLocationQuery, *params.ModelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nic", runtime.ParamLocationQuery, *params.ModelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nie", runtime.ParamLocationQuery, *params.ModelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__niew", runtime.ParamLocationQuery, *params.ModelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nire", runtime.ParamLocationQuery, *params.ModelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nisw", runtime.ParamLocationQuery, *params.ModelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nre", runtime.ParamLocationQuery, *params.ModelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__re", runtime.ParamLocationQuery, *params.ModelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumber != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number", runtime.ParamLocationQuery, *params.PartNumber); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__ic", runtime.ParamLocationQuery, *params.PartNumberIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__ie", runtime.ParamLocationQuery, *params.PartNumberIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__iew", runtime.ParamLocationQuery, *params.PartNumberIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__ire", runtime.ParamLocationQuery, *params.PartNumberIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__isw", runtime.ParamLocationQuery, *params.PartNumberIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__n", runtime.ParamLocationQuery, *params.PartNumberN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__nic", runtime.ParamLocationQuery, *params.PartNumberNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__nie", runtime.ParamLocationQuery, *params.PartNumberNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__niew", runtime.ParamLocationQuery, *params.PartNumberNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__nire", runtime.ParamLocationQuery, *params.PartNumberNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__nisw", runtime.ParamLocationQuery, *params.PartNumberNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__nre", runtime.ParamLocationQuery, *params.PartNumberNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartNumberRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_number__re", runtime.ParamLocationQuery, *params.PartNumberRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PassThroughPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pass_through_ports", runtime.ParamLocationQuery, *params.PassThroughPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutletTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlet_templates", runtime.ParamLocationQuery, *params.PowerOutletTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutletTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlet_templates__n", runtime.ParamLocationQuery, *params.PowerOutletTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutlets != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlets", runtime.ParamLocationQuery, *params.PowerOutlets); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_port_templates", runtime.ParamLocationQuery, *params.PowerPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPortTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_port_templates__n", runtime.ParamLocationQuery, *params.PowerPortTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_ports", runtime.ParamLocationQuery, *params.PowerPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_templates", runtime.ParamLocationQuery, *params.RearPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_templates__n", runtime.ParamLocationQuery, *params.RearPortTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubdeviceRole != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subdevice_role", runtime.ParamLocationQuery, *params.SubdeviceRole); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubdeviceRoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subdevice_role__n", runtime.ParamLocationQuery, *params.SubdeviceRoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height", runtime.ParamLocationQuery, *params.UHeight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__gt", runtime.ParamLocationQuery, *params.UHeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__gte", runtime.ParamLocationQuery, *params.UHeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__lt", runtime.ParamLocationQuery, *params.UHeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__lte", runtime.ParamLocationQuery, *params.UHeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__n", runtime.ParamLocationQuery, *params.UHeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceTypesBulkPartialUpdateRequest calls the generic DcimDeviceTypesBulkPartialUpdate builder with application/json body -func NewDcimDeviceTypesBulkPartialUpdateRequest(server string, body DcimDeviceTypesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceTypesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceTypesBulkPartialUpdateRequestWithBody generates requests for DcimDeviceTypesBulkPartialUpdate with any type of body -func NewDcimDeviceTypesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceTypesCreateRequest calls the generic DcimDeviceTypesCreate builder with application/json body -func NewDcimDeviceTypesCreateRequest(server string, body DcimDeviceTypesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceTypesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceTypesCreateRequestWithBody generates requests for DcimDeviceTypesCreate with any type of body -func NewDcimDeviceTypesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceTypesBulkUpdateRequest calls the generic DcimDeviceTypesBulkUpdate builder with application/json body -func NewDcimDeviceTypesBulkUpdateRequest(server string, body DcimDeviceTypesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceTypesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDeviceTypesBulkUpdateRequestWithBody generates requests for DcimDeviceTypesBulkUpdate with any type of body -func NewDcimDeviceTypesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceTypesDestroyRequest generates requests for DcimDeviceTypesDestroy -func NewDcimDeviceTypesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceTypesRetrieveRequest generates requests for DcimDeviceTypesRetrieve -func NewDcimDeviceTypesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceTypesPartialUpdateRequest calls the generic DcimDeviceTypesPartialUpdate builder with application/json body -func NewDcimDeviceTypesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceTypesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceTypesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceTypesPartialUpdateRequestWithBody generates requests for DcimDeviceTypesPartialUpdate with any type of body -func NewDcimDeviceTypesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceTypesUpdateRequest calls the generic DcimDeviceTypesUpdate builder with application/json body -func NewDcimDeviceTypesUpdateRequest(server string, id openapi_types.UUID, body DcimDeviceTypesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceTypesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceTypesUpdateRequestWithBody generates requests for DcimDeviceTypesUpdate with any type of body -func NewDcimDeviceTypesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDeviceTypesNotesListRequest generates requests for DcimDeviceTypesNotesList -func NewDcimDeviceTypesNotesListRequest(server string, id openapi_types.UUID, params *DcimDeviceTypesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDeviceTypesNotesCreateRequest calls the generic DcimDeviceTypesNotesCreate builder with application/json body -func NewDcimDeviceTypesNotesCreateRequest(server string, id openapi_types.UUID, body DcimDeviceTypesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDeviceTypesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDeviceTypesNotesCreateRequestWithBody generates requests for DcimDeviceTypesNotesCreate with any type of body -func NewDcimDeviceTypesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/device-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDevicesBulkDestroyRequest calls the generic DcimDevicesBulkDestroy builder with application/json body -func NewDcimDevicesBulkDestroyRequest(server string, body DcimDevicesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDevicesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDevicesBulkDestroyRequestWithBody generates requests for DcimDevicesBulkDestroy with any type of body -func NewDcimDevicesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDevicesListRequest generates requests for DcimDevicesList -func NewDcimDevicesListRequest(server string, params *DcimDevicesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AssetTag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag", runtime.ParamLocationQuery, *params.AssetTag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ic", runtime.ParamLocationQuery, *params.AssetTagIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ie", runtime.ParamLocationQuery, *params.AssetTagIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__iew", runtime.ParamLocationQuery, *params.AssetTagIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ire", runtime.ParamLocationQuery, *params.AssetTagIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__isw", runtime.ParamLocationQuery, *params.AssetTagIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__n", runtime.ParamLocationQuery, *params.AssetTagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nic", runtime.ParamLocationQuery, *params.AssetTagNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nie", runtime.ParamLocationQuery, *params.AssetTagNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__niew", runtime.ParamLocationQuery, *params.AssetTagNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nire", runtime.ParamLocationQuery, *params.AssetTagNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nisw", runtime.ParamLocationQuery, *params.AssetTagNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nre", runtime.ParamLocationQuery, *params.AssetTagNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__re", runtime.ParamLocationQuery, *params.AssetTagRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id", runtime.ParamLocationQuery, *params.ClusterId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id__n", runtime.ParamLocationQuery, *params.ClusterIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsolePorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_ports", runtime.ParamLocationQuery, *params.ConsolePorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ConsoleServerPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "console_server_ports", runtime.ParamLocationQuery, *params.ConsoleServerPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceBays != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_bays", runtime.ParamLocationQuery, *params.DeviceBays); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group", runtime.ParamLocationQuery, *params.DeviceRedundancyGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group__n", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupPriority != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group_priority", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupPriority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupPriorityGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group_priority__gt", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupPriorityGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupPriorityGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group_priority__gte", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupPriorityGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupPriorityLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group_priority__lt", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupPriorityLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupPriorityLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group_priority__lte", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupPriorityLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupPriorityN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group_priority__n", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupPriorityN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id", runtime.ParamLocationQuery, *params.DeviceTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id__n", runtime.ParamLocationQuery, *params.DeviceTypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Face != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "face", runtime.ParamLocationQuery, *params.Face); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FaceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "face__n", runtime.ParamLocationQuery, *params.FaceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasConsolePorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_console_ports", runtime.ParamLocationQuery, *params.HasConsolePorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasConsoleServerPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_console_server_ports", runtime.ParamLocationQuery, *params.HasConsoleServerPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDeviceBays != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_device_bays", runtime.ParamLocationQuery, *params.HasDeviceBays); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasFrontPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_front_ports", runtime.ParamLocationQuery, *params.HasFrontPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_interfaces", runtime.ParamLocationQuery, *params.HasInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerOutlets != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_outlets", runtime.ParamLocationQuery, *params.HasPowerOutlets); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_ports", runtime.ParamLocationQuery, *params.HasPowerPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPrimaryIp != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_primary_ip", runtime.ParamLocationQuery, *params.HasPrimaryIp); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasRearPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_rear_ports", runtime.ParamLocationQuery, *params.HasRearPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Interfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interfaces", runtime.ParamLocationQuery, *params.Interfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsFullDepth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_full_depth", runtime.ParamLocationQuery, *params.IsFullDepth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsVirtualChassisMember != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_virtual_chassis_member", runtime.ParamLocationQuery, *params.IsVirtualChassisMember); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextData != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_data", runtime.ParamLocationQuery, *params.LocalContextData); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchema != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema", runtime.ParamLocationQuery, *params.LocalContextSchema); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchemaN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema__n", runtime.ParamLocationQuery, *params.LocalContextSchemaN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchemaId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema_id", runtime.ParamLocationQuery, *params.LocalContextSchemaId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchemaIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema_id__n", runtime.ParamLocationQuery, *params.LocalContextSchemaIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address", runtime.ParamLocationQuery, *params.MacAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ic", runtime.ParamLocationQuery, *params.MacAddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ie", runtime.ParamLocationQuery, *params.MacAddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__iew", runtime.ParamLocationQuery, *params.MacAddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ire", runtime.ParamLocationQuery, *params.MacAddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__isw", runtime.ParamLocationQuery, *params.MacAddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__n", runtime.ParamLocationQuery, *params.MacAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nic", runtime.ParamLocationQuery, *params.MacAddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nie", runtime.ParamLocationQuery, *params.MacAddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__niew", runtime.ParamLocationQuery, *params.MacAddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nire", runtime.ParamLocationQuery, *params.MacAddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nisw", runtime.ParamLocationQuery, *params.MacAddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nre", runtime.ParamLocationQuery, *params.MacAddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__re", runtime.ParamLocationQuery, *params.MacAddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Manufacturer != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer", runtime.ParamLocationQuery, *params.Manufacturer); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer__n", runtime.ParamLocationQuery, *params.ManufacturerN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id", runtime.ParamLocationQuery, *params.ManufacturerId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id__n", runtime.ParamLocationQuery, *params.ManufacturerIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Model != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model", runtime.ParamLocationQuery, *params.Model); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__n", runtime.ParamLocationQuery, *params.ModelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PassThroughPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pass_through_ports", runtime.ParamLocationQuery, *params.PassThroughPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform__n", runtime.ParamLocationQuery, *params.PlatformN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id__n", runtime.ParamLocationQuery, *params.PlatformIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Position != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "position", runtime.ParamLocationQuery, *params.Position); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "position__gt", runtime.ParamLocationQuery, *params.PositionGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "position__gte", runtime.ParamLocationQuery, *params.PositionGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "position__lt", runtime.ParamLocationQuery, *params.PositionLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "position__lte", runtime.ParamLocationQuery, *params.PositionLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "position__n", runtime.ParamLocationQuery, *params.PositionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutlets != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlets", runtime.ParamLocationQuery, *params.PowerOutlets); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_ports", runtime.ParamLocationQuery, *params.PowerPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group_id", runtime.ParamLocationQuery, *params.RackGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group_id__n", runtime.ParamLocationQuery, *params.RackGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id", runtime.ParamLocationQuery, *params.RackId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id__n", runtime.ParamLocationQuery, *params.RackIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id__n", runtime.ParamLocationQuery, *params.RoleIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group", runtime.ParamLocationQuery, *params.SecretsGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group__n", runtime.ParamLocationQuery, *params.SecretsGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group_id", runtime.ParamLocationQuery, *params.SecretsGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group_id__n", runtime.ParamLocationQuery, *params.SecretsGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Serial != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "serial", runtime.ParamLocationQuery, *params.Serial); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPosition != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_position", runtime.ParamLocationQuery, *params.VcPosition); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPositionGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_position__gt", runtime.ParamLocationQuery, *params.VcPositionGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPositionGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_position__gte", runtime.ParamLocationQuery, *params.VcPositionGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPositionLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_position__lt", runtime.ParamLocationQuery, *params.VcPositionLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPositionLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_position__lte", runtime.ParamLocationQuery, *params.VcPositionLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPositionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_position__n", runtime.ParamLocationQuery, *params.VcPositionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPriority != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_priority", runtime.ParamLocationQuery, *params.VcPriority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPriorityGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_priority__gt", runtime.ParamLocationQuery, *params.VcPriorityGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPriorityGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_priority__gte", runtime.ParamLocationQuery, *params.VcPriorityGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPriorityLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_priority__lt", runtime.ParamLocationQuery, *params.VcPriorityLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPriorityLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_priority__lte", runtime.ParamLocationQuery, *params.VcPriorityLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcPriorityN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vc_priority__n", runtime.ParamLocationQuery, *params.VcPriorityN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualChassisId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_chassis_id", runtime.ParamLocationQuery, *params.VirtualChassisId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualChassisIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_chassis_id__n", runtime.ParamLocationQuery, *params.VirtualChassisIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualChassisMember != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_chassis_member", runtime.ParamLocationQuery, *params.VirtualChassisMember); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDevicesBulkPartialUpdateRequest calls the generic DcimDevicesBulkPartialUpdate builder with application/json body -func NewDcimDevicesBulkPartialUpdateRequest(server string, body DcimDevicesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDevicesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDevicesBulkPartialUpdateRequestWithBody generates requests for DcimDevicesBulkPartialUpdate with any type of body -func NewDcimDevicesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDevicesCreateRequest calls the generic DcimDevicesCreate builder with application/json body -func NewDcimDevicesCreateRequest(server string, body DcimDevicesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDevicesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDevicesCreateRequestWithBody generates requests for DcimDevicesCreate with any type of body -func NewDcimDevicesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDevicesBulkUpdateRequest calls the generic DcimDevicesBulkUpdate builder with application/json body -func NewDcimDevicesBulkUpdateRequest(server string, body DcimDevicesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDevicesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimDevicesBulkUpdateRequestWithBody generates requests for DcimDevicesBulkUpdate with any type of body -func NewDcimDevicesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDevicesDestroyRequest generates requests for DcimDevicesDestroy -func NewDcimDevicesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDevicesRetrieveRequest generates requests for DcimDevicesRetrieve -func NewDcimDevicesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDevicesPartialUpdateRequest calls the generic DcimDevicesPartialUpdate builder with application/json body -func NewDcimDevicesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimDevicesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDevicesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDevicesPartialUpdateRequestWithBody generates requests for DcimDevicesPartialUpdate with any type of body -func NewDcimDevicesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDevicesUpdateRequest calls the generic DcimDevicesUpdate builder with application/json body -func NewDcimDevicesUpdateRequest(server string, id openapi_types.UUID, body DcimDevicesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDevicesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDevicesUpdateRequestWithBody generates requests for DcimDevicesUpdate with any type of body -func NewDcimDevicesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimDevicesNapalmRetrieveRequest generates requests for DcimDevicesNapalmRetrieve -func NewDcimDevicesNapalmRetrieveRequest(server string, id openapi_types.UUID, params *DcimDevicesNapalmRetrieveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/%s/napalm/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "method", runtime.ParamLocationQuery, params.Method); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDevicesNotesListRequest generates requests for DcimDevicesNotesList -func NewDcimDevicesNotesListRequest(server string, id openapi_types.UUID, params *DcimDevicesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimDevicesNotesCreateRequest calls the generic DcimDevicesNotesCreate builder with application/json body -func NewDcimDevicesNotesCreateRequest(server string, id openapi_types.UUID, body DcimDevicesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimDevicesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimDevicesNotesCreateRequestWithBody generates requests for DcimDevicesNotesCreate with any type of body -func NewDcimDevicesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/devices/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortTemplatesBulkDestroyRequest calls the generic DcimFrontPortTemplatesBulkDestroy builder with application/json body -func NewDcimFrontPortTemplatesBulkDestroyRequest(server string, body DcimFrontPortTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortTemplatesBulkDestroyRequestWithBody generates requests for DcimFrontPortTemplatesBulkDestroy with any type of body -func NewDcimFrontPortTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortTemplatesListRequest generates requests for DcimFrontPortTemplatesList -func NewDcimFrontPortTemplatesListRequest(server string, params *DcimFrontPortTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPosition != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position", runtime.ParamLocationQuery, *params.RearPortPosition); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__gt", runtime.ParamLocationQuery, *params.RearPortPositionGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__gte", runtime.ParamLocationQuery, *params.RearPortPositionGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__lt", runtime.ParamLocationQuery, *params.RearPortPositionLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__lte", runtime.ParamLocationQuery, *params.RearPortPositionLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__n", runtime.ParamLocationQuery, *params.RearPortPositionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortTemplate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_template", runtime.ParamLocationQuery, *params.RearPortTemplate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortTemplateN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_template__n", runtime.ParamLocationQuery, *params.RearPortTemplateN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortTemplatesBulkPartialUpdateRequest calls the generic DcimFrontPortTemplatesBulkPartialUpdate builder with application/json body -func NewDcimFrontPortTemplatesBulkPartialUpdateRequest(server string, body DcimFrontPortTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimFrontPortTemplatesBulkPartialUpdate with any type of body -func NewDcimFrontPortTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortTemplatesCreateRequest calls the generic DcimFrontPortTemplatesCreate builder with application/json body -func NewDcimFrontPortTemplatesCreateRequest(server string, body DcimFrontPortTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortTemplatesCreateRequestWithBody generates requests for DcimFrontPortTemplatesCreate with any type of body -func NewDcimFrontPortTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortTemplatesBulkUpdateRequest calls the generic DcimFrontPortTemplatesBulkUpdate builder with application/json body -func NewDcimFrontPortTemplatesBulkUpdateRequest(server string, body DcimFrontPortTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortTemplatesBulkUpdateRequestWithBody generates requests for DcimFrontPortTemplatesBulkUpdate with any type of body -func NewDcimFrontPortTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortTemplatesDestroyRequest generates requests for DcimFrontPortTemplatesDestroy -func NewDcimFrontPortTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortTemplatesRetrieveRequest generates requests for DcimFrontPortTemplatesRetrieve -func NewDcimFrontPortTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortTemplatesPartialUpdateRequest calls the generic DcimFrontPortTemplatesPartialUpdate builder with application/json body -func NewDcimFrontPortTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimFrontPortTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimFrontPortTemplatesPartialUpdateRequestWithBody generates requests for DcimFrontPortTemplatesPartialUpdate with any type of body -func NewDcimFrontPortTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortTemplatesUpdateRequest calls the generic DcimFrontPortTemplatesUpdate builder with application/json body -func NewDcimFrontPortTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimFrontPortTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimFrontPortTemplatesUpdateRequestWithBody generates requests for DcimFrontPortTemplatesUpdate with any type of body -func NewDcimFrontPortTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortTemplatesNotesListRequest generates requests for DcimFrontPortTemplatesNotesList -func NewDcimFrontPortTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimFrontPortTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortTemplatesNotesCreateRequest calls the generic DcimFrontPortTemplatesNotesCreate builder with application/json body -func NewDcimFrontPortTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimFrontPortTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimFrontPortTemplatesNotesCreateRequestWithBody generates requests for DcimFrontPortTemplatesNotesCreate with any type of body -func NewDcimFrontPortTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsBulkDestroyRequest calls the generic DcimFrontPortsBulkDestroy builder with application/json body -func NewDcimFrontPortsBulkDestroyRequest(server string, body DcimFrontPortsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortsBulkDestroyRequestWithBody generates requests for DcimFrontPortsBulkDestroy with any type of body -func NewDcimFrontPortsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsListRequest generates requests for DcimFrontPortsList -func NewDcimFrontPortsListRequest(server string, params *DcimFrontPortsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPort != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port", runtime.ParamLocationQuery, *params.RearPort); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port__n", runtime.ParamLocationQuery, *params.RearPortN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPosition != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position", runtime.ParamLocationQuery, *params.RearPortPosition); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__gt", runtime.ParamLocationQuery, *params.RearPortPositionGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__gte", runtime.ParamLocationQuery, *params.RearPortPositionGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__lt", runtime.ParamLocationQuery, *params.RearPortPositionLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__lte", runtime.ParamLocationQuery, *params.RearPortPositionLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RearPortPositionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rear_port_position__n", runtime.ParamLocationQuery, *params.RearPortPositionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortsBulkPartialUpdateRequest calls the generic DcimFrontPortsBulkPartialUpdate builder with application/json body -func NewDcimFrontPortsBulkPartialUpdateRequest(server string, body DcimFrontPortsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortsBulkPartialUpdateRequestWithBody generates requests for DcimFrontPortsBulkPartialUpdate with any type of body -func NewDcimFrontPortsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsCreateRequest calls the generic DcimFrontPortsCreate builder with application/json body -func NewDcimFrontPortsCreateRequest(server string, body DcimFrontPortsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortsCreateRequestWithBody generates requests for DcimFrontPortsCreate with any type of body -func NewDcimFrontPortsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsBulkUpdateRequest calls the generic DcimFrontPortsBulkUpdate builder with application/json body -func NewDcimFrontPortsBulkUpdateRequest(server string, body DcimFrontPortsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimFrontPortsBulkUpdateRequestWithBody generates requests for DcimFrontPortsBulkUpdate with any type of body -func NewDcimFrontPortsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsDestroyRequest generates requests for DcimFrontPortsDestroy -func NewDcimFrontPortsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortsRetrieveRequest generates requests for DcimFrontPortsRetrieve -func NewDcimFrontPortsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortsPartialUpdateRequest calls the generic DcimFrontPortsPartialUpdate builder with application/json body -func NewDcimFrontPortsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimFrontPortsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimFrontPortsPartialUpdateRequestWithBody generates requests for DcimFrontPortsPartialUpdate with any type of body -func NewDcimFrontPortsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsUpdateRequest calls the generic DcimFrontPortsUpdate builder with application/json body -func NewDcimFrontPortsUpdateRequest(server string, id openapi_types.UUID, body DcimFrontPortsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimFrontPortsUpdateRequestWithBody generates requests for DcimFrontPortsUpdate with any type of body -func NewDcimFrontPortsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsNotesListRequest generates requests for DcimFrontPortsNotesList -func NewDcimFrontPortsNotesListRequest(server string, id openapi_types.UUID, params *DcimFrontPortsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimFrontPortsNotesCreateRequest calls the generic DcimFrontPortsNotesCreate builder with application/json body -func NewDcimFrontPortsNotesCreateRequest(server string, id openapi_types.UUID, body DcimFrontPortsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimFrontPortsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimFrontPortsNotesCreateRequestWithBody generates requests for DcimFrontPortsNotesCreate with any type of body -func NewDcimFrontPortsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimFrontPortsPathsRetrieveRequest generates requests for DcimFrontPortsPathsRetrieve -func NewDcimFrontPortsPathsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/front-ports/%s/paths/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfaceConnectionsListRequest generates requests for DcimInterfaceConnectionsList -func NewDcimInterfaceConnectionsListRequest(server string, params *DcimInterfaceConnectionsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-connections/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfaceTemplatesBulkDestroyRequest calls the generic DcimInterfaceTemplatesBulkDestroy builder with application/json body -func NewDcimInterfaceTemplatesBulkDestroyRequest(server string, body DcimInterfaceTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfaceTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfaceTemplatesBulkDestroyRequestWithBody generates requests for DcimInterfaceTemplatesBulkDestroy with any type of body -func NewDcimInterfaceTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfaceTemplatesListRequest generates requests for DcimInterfaceTemplatesList -func NewDcimInterfaceTemplatesListRequest(server string, params *DcimInterfaceTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MgmtOnly != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mgmt_only", runtime.ParamLocationQuery, *params.MgmtOnly); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfaceTemplatesBulkPartialUpdateRequest calls the generic DcimInterfaceTemplatesBulkPartialUpdate builder with application/json body -func NewDcimInterfaceTemplatesBulkPartialUpdateRequest(server string, body DcimInterfaceTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfaceTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfaceTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimInterfaceTemplatesBulkPartialUpdate with any type of body -func NewDcimInterfaceTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfaceTemplatesCreateRequest calls the generic DcimInterfaceTemplatesCreate builder with application/json body -func NewDcimInterfaceTemplatesCreateRequest(server string, body DcimInterfaceTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfaceTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfaceTemplatesCreateRequestWithBody generates requests for DcimInterfaceTemplatesCreate with any type of body -func NewDcimInterfaceTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfaceTemplatesBulkUpdateRequest calls the generic DcimInterfaceTemplatesBulkUpdate builder with application/json body -func NewDcimInterfaceTemplatesBulkUpdateRequest(server string, body DcimInterfaceTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfaceTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfaceTemplatesBulkUpdateRequestWithBody generates requests for DcimInterfaceTemplatesBulkUpdate with any type of body -func NewDcimInterfaceTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfaceTemplatesDestroyRequest generates requests for DcimInterfaceTemplatesDestroy -func NewDcimInterfaceTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfaceTemplatesRetrieveRequest generates requests for DcimInterfaceTemplatesRetrieve -func NewDcimInterfaceTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfaceTemplatesPartialUpdateRequest calls the generic DcimInterfaceTemplatesPartialUpdate builder with application/json body -func NewDcimInterfaceTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimInterfaceTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfaceTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInterfaceTemplatesPartialUpdateRequestWithBody generates requests for DcimInterfaceTemplatesPartialUpdate with any type of body -func NewDcimInterfaceTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfaceTemplatesUpdateRequest calls the generic DcimInterfaceTemplatesUpdate builder with application/json body -func NewDcimInterfaceTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimInterfaceTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfaceTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInterfaceTemplatesUpdateRequestWithBody generates requests for DcimInterfaceTemplatesUpdate with any type of body -func NewDcimInterfaceTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfaceTemplatesNotesListRequest generates requests for DcimInterfaceTemplatesNotesList -func NewDcimInterfaceTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimInterfaceTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfaceTemplatesNotesCreateRequest calls the generic DcimInterfaceTemplatesNotesCreate builder with application/json body -func NewDcimInterfaceTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimInterfaceTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfaceTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInterfaceTemplatesNotesCreateRequestWithBody generates requests for DcimInterfaceTemplatesNotesCreate with any type of body -func NewDcimInterfaceTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interface-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesBulkDestroyRequest calls the generic DcimInterfacesBulkDestroy builder with application/json body -func NewDcimInterfacesBulkDestroyRequest(server string, body DcimInterfacesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfacesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfacesBulkDestroyRequestWithBody generates requests for DcimInterfacesBulkDestroy with any type of body -func NewDcimInterfacesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesListRequest generates requests for DcimInterfacesList -func NewDcimInterfacesListRequest(server string, params *DcimInterfacesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Bridge != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridge", runtime.ParamLocationQuery, *params.Bridge); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BridgeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridge__n", runtime.ParamLocationQuery, *params.BridgeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BridgedInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridged_interfaces", runtime.ParamLocationQuery, *params.BridgedInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BridgedInterfacesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridged_interfaces__n", runtime.ParamLocationQuery, *params.BridgedInterfacesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "child_interfaces", runtime.ParamLocationQuery, *params.ChildInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildInterfacesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "child_interfaces__n", runtime.ParamLocationQuery, *params.ChildInterfacesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Connected != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connected", runtime.ParamLocationQuery, *params.Connected); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceWithCommonVc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_with_common_vc", runtime.ParamLocationQuery, *params.DeviceWithCommonVc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasBridgedInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_bridged_interfaces", runtime.ParamLocationQuery, *params.HasBridgedInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasChildInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_child_interfaces", runtime.ParamLocationQuery, *params.HasChildInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasMemberInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_member_interfaces", runtime.ParamLocationQuery, *params.HasMemberInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasTaggedVlans != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_tagged_vlans", runtime.ParamLocationQuery, *params.HasTaggedVlans); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Kind != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kind", runtime.ParamLocationQuery, *params.Kind); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Lag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lag", runtime.ParamLocationQuery, *params.Lag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lag__n", runtime.ParamLocationQuery, *params.LagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LagId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lag_id", runtime.ParamLocationQuery, *params.LagId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LagIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lag_id__n", runtime.ParamLocationQuery, *params.LagIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address", runtime.ParamLocationQuery, *params.MacAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ic", runtime.ParamLocationQuery, *params.MacAddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ie", runtime.ParamLocationQuery, *params.MacAddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__iew", runtime.ParamLocationQuery, *params.MacAddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ire", runtime.ParamLocationQuery, *params.MacAddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__isw", runtime.ParamLocationQuery, *params.MacAddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__n", runtime.ParamLocationQuery, *params.MacAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nic", runtime.ParamLocationQuery, *params.MacAddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nie", runtime.ParamLocationQuery, *params.MacAddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__niew", runtime.ParamLocationQuery, *params.MacAddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nire", runtime.ParamLocationQuery, *params.MacAddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nisw", runtime.ParamLocationQuery, *params.MacAddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nre", runtime.ParamLocationQuery, *params.MacAddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__re", runtime.ParamLocationQuery, *params.MacAddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MemberInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "member_interfaces", runtime.ParamLocationQuery, *params.MemberInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MemberInterfacesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "member_interfaces__n", runtime.ParamLocationQuery, *params.MemberInterfacesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MgmtOnly != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mgmt_only", runtime.ParamLocationQuery, *params.MgmtOnly); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Mode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mode", runtime.ParamLocationQuery, *params.Mode); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mode__n", runtime.ParamLocationQuery, *params.ModeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Mtu != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu", runtime.ParamLocationQuery, *params.Mtu); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__gt", runtime.ParamLocationQuery, *params.MtuGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__gte", runtime.ParamLocationQuery, *params.MtuGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__lt", runtime.ParamLocationQuery, *params.MtuLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__lte", runtime.ParamLocationQuery, *params.MtuLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__n", runtime.ParamLocationQuery, *params.MtuN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__ic", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__ie", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__iew", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__ire", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__isw", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__n", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__nic", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__nie", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__niew", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__nire", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__nisw", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__nre", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsInterfacesBgpRoutingInstanceRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_interfaces_bgp_routing_instance__re", runtime.ParamLocationQuery, *params.NautobotBgpModelsInterfacesBgpRoutingInstanceRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentInterface != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_interface", runtime.ParamLocationQuery, *params.ParentInterface); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentInterfaceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_interface__n", runtime.ParamLocationQuery, *params.ParentInterfaceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TaggedVlans != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tagged_vlans", runtime.ParamLocationQuery, *params.TaggedVlans); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TaggedVlansN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tagged_vlans__n", runtime.ParamLocationQuery, *params.TaggedVlansN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UntaggedVlan != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "untagged_vlan", runtime.ParamLocationQuery, *params.UntaggedVlan); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UntaggedVlanN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "untagged_vlan__n", runtime.ParamLocationQuery, *params.UntaggedVlanN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vlan != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlan", runtime.ParamLocationQuery, *params.Vlan); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VlanId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlan_id", runtime.ParamLocationQuery, *params.VlanId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfacesBulkPartialUpdateRequest calls the generic DcimInterfacesBulkPartialUpdate builder with application/json body -func NewDcimInterfacesBulkPartialUpdateRequest(server string, body DcimInterfacesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfacesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfacesBulkPartialUpdateRequestWithBody generates requests for DcimInterfacesBulkPartialUpdate with any type of body -func NewDcimInterfacesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesCreateRequest calls the generic DcimInterfacesCreate builder with application/json body -func NewDcimInterfacesCreateRequest(server string, body DcimInterfacesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfacesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfacesCreateRequestWithBody generates requests for DcimInterfacesCreate with any type of body -func NewDcimInterfacesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesBulkUpdateRequest calls the generic DcimInterfacesBulkUpdate builder with application/json body -func NewDcimInterfacesBulkUpdateRequest(server string, body DcimInterfacesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfacesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInterfacesBulkUpdateRequestWithBody generates requests for DcimInterfacesBulkUpdate with any type of body -func NewDcimInterfacesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesDestroyRequest generates requests for DcimInterfacesDestroy -func NewDcimInterfacesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfacesRetrieveRequest generates requests for DcimInterfacesRetrieve -func NewDcimInterfacesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfacesPartialUpdateRequest calls the generic DcimInterfacesPartialUpdate builder with application/json body -func NewDcimInterfacesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimInterfacesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfacesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInterfacesPartialUpdateRequestWithBody generates requests for DcimInterfacesPartialUpdate with any type of body -func NewDcimInterfacesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesUpdateRequest calls the generic DcimInterfacesUpdate builder with application/json body -func NewDcimInterfacesUpdateRequest(server string, id openapi_types.UUID, body DcimInterfacesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfacesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInterfacesUpdateRequestWithBody generates requests for DcimInterfacesUpdate with any type of body -func NewDcimInterfacesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesNotesListRequest generates requests for DcimInterfacesNotesList -func NewDcimInterfacesNotesListRequest(server string, id openapi_types.UUID, params *DcimInterfacesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInterfacesNotesCreateRequest calls the generic DcimInterfacesNotesCreate builder with application/json body -func NewDcimInterfacesNotesCreateRequest(server string, id openapi_types.UUID, body DcimInterfacesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInterfacesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInterfacesNotesCreateRequestWithBody generates requests for DcimInterfacesNotesCreate with any type of body -func NewDcimInterfacesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInterfacesTraceRetrieveRequest generates requests for DcimInterfacesTraceRetrieve -func NewDcimInterfacesTraceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/interfaces/%s/trace/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInventoryItemsBulkDestroyRequest calls the generic DcimInventoryItemsBulkDestroy builder with application/json body -func NewDcimInventoryItemsBulkDestroyRequest(server string, body DcimInventoryItemsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInventoryItemsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInventoryItemsBulkDestroyRequestWithBody generates requests for DcimInventoryItemsBulkDestroy with any type of body -func NewDcimInventoryItemsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInventoryItemsListRequest generates requests for DcimInventoryItemsList -func NewDcimInventoryItemsListRequest(server string, params *DcimInventoryItemsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AssetTag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag", runtime.ParamLocationQuery, *params.AssetTag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ic", runtime.ParamLocationQuery, *params.AssetTagIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ie", runtime.ParamLocationQuery, *params.AssetTagIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__iew", runtime.ParamLocationQuery, *params.AssetTagIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ire", runtime.ParamLocationQuery, *params.AssetTagIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__isw", runtime.ParamLocationQuery, *params.AssetTagIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__n", runtime.ParamLocationQuery, *params.AssetTagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nic", runtime.ParamLocationQuery, *params.AssetTagNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nie", runtime.ParamLocationQuery, *params.AssetTagNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__niew", runtime.ParamLocationQuery, *params.AssetTagNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nire", runtime.ParamLocationQuery, *params.AssetTagNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nisw", runtime.ParamLocationQuery, *params.AssetTagNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nre", runtime.ParamLocationQuery, *params.AssetTagNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__re", runtime.ParamLocationQuery, *params.AssetTagRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildItems != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "child_items", runtime.ParamLocationQuery, *params.ChildItems); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildItemsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "child_items__n", runtime.ParamLocationQuery, *params.ChildItemsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Discovered != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "discovered", runtime.ParamLocationQuery, *params.Discovered); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasChildItems != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_child_items", runtime.ParamLocationQuery, *params.HasChildItems); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Manufacturer != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer", runtime.ParamLocationQuery, *params.Manufacturer); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer__n", runtime.ParamLocationQuery, *params.ManufacturerN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id", runtime.ParamLocationQuery, *params.ManufacturerId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id__n", runtime.ParamLocationQuery, *params.ManufacturerIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parent != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent", runtime.ParamLocationQuery, *params.Parent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent__n", runtime.ParamLocationQuery, *params.ParentN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id", runtime.ParamLocationQuery, *params.ParentId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id__n", runtime.ParamLocationQuery, *params.ParentIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id", runtime.ParamLocationQuery, *params.PartId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__ic", runtime.ParamLocationQuery, *params.PartIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__ie", runtime.ParamLocationQuery, *params.PartIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__iew", runtime.ParamLocationQuery, *params.PartIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__ire", runtime.ParamLocationQuery, *params.PartIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__isw", runtime.ParamLocationQuery, *params.PartIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__n", runtime.ParamLocationQuery, *params.PartIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__nic", runtime.ParamLocationQuery, *params.PartIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__nie", runtime.ParamLocationQuery, *params.PartIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__niew", runtime.ParamLocationQuery, *params.PartIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__nire", runtime.ParamLocationQuery, *params.PartIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__nisw", runtime.ParamLocationQuery, *params.PartIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__nre", runtime.ParamLocationQuery, *params.PartIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PartIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "part_id__re", runtime.ParamLocationQuery, *params.PartIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Serial != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "serial", runtime.ParamLocationQuery, *params.Serial); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInventoryItemsBulkPartialUpdateRequest calls the generic DcimInventoryItemsBulkPartialUpdate builder with application/json body -func NewDcimInventoryItemsBulkPartialUpdateRequest(server string, body DcimInventoryItemsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInventoryItemsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInventoryItemsBulkPartialUpdateRequestWithBody generates requests for DcimInventoryItemsBulkPartialUpdate with any type of body -func NewDcimInventoryItemsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInventoryItemsCreateRequest calls the generic DcimInventoryItemsCreate builder with application/json body -func NewDcimInventoryItemsCreateRequest(server string, body DcimInventoryItemsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInventoryItemsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInventoryItemsCreateRequestWithBody generates requests for DcimInventoryItemsCreate with any type of body -func NewDcimInventoryItemsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInventoryItemsBulkUpdateRequest calls the generic DcimInventoryItemsBulkUpdate builder with application/json body -func NewDcimInventoryItemsBulkUpdateRequest(server string, body DcimInventoryItemsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInventoryItemsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimInventoryItemsBulkUpdateRequestWithBody generates requests for DcimInventoryItemsBulkUpdate with any type of body -func NewDcimInventoryItemsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInventoryItemsDestroyRequest generates requests for DcimInventoryItemsDestroy -func NewDcimInventoryItemsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInventoryItemsRetrieveRequest generates requests for DcimInventoryItemsRetrieve -func NewDcimInventoryItemsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInventoryItemsPartialUpdateRequest calls the generic DcimInventoryItemsPartialUpdate builder with application/json body -func NewDcimInventoryItemsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimInventoryItemsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInventoryItemsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInventoryItemsPartialUpdateRequestWithBody generates requests for DcimInventoryItemsPartialUpdate with any type of body -func NewDcimInventoryItemsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInventoryItemsUpdateRequest calls the generic DcimInventoryItemsUpdate builder with application/json body -func NewDcimInventoryItemsUpdateRequest(server string, id openapi_types.UUID, body DcimInventoryItemsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInventoryItemsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInventoryItemsUpdateRequestWithBody generates requests for DcimInventoryItemsUpdate with any type of body -func NewDcimInventoryItemsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimInventoryItemsNotesListRequest generates requests for DcimInventoryItemsNotesList -func NewDcimInventoryItemsNotesListRequest(server string, id openapi_types.UUID, params *DcimInventoryItemsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimInventoryItemsNotesCreateRequest calls the generic DcimInventoryItemsNotesCreate builder with application/json body -func NewDcimInventoryItemsNotesCreateRequest(server string, id openapi_types.UUID, body DcimInventoryItemsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimInventoryItemsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimInventoryItemsNotesCreateRequestWithBody generates requests for DcimInventoryItemsNotesCreate with any type of body -func NewDcimInventoryItemsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/inventory-items/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationTypesBulkDestroyRequest calls the generic DcimLocationTypesBulkDestroy builder with application/json body -func NewDcimLocationTypesBulkDestroyRequest(server string, body DcimLocationTypesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationTypesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationTypesBulkDestroyRequestWithBody generates requests for DcimLocationTypesBulkDestroy with any type of body -func NewDcimLocationTypesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationTypesListRequest generates requests for DcimLocationTypesList -func NewDcimLocationTypesListRequest(server string, params *DcimLocationTypesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types", runtime.ParamLocationQuery, *params.ContentTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types__n", runtime.ParamLocationQuery, *params.ContentTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Nestable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nestable", runtime.ParamLocationQuery, *params.Nestable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parent != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent", runtime.ParamLocationQuery, *params.Parent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent__n", runtime.ParamLocationQuery, *params.ParentN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationTypesBulkPartialUpdateRequest calls the generic DcimLocationTypesBulkPartialUpdate builder with application/json body -func NewDcimLocationTypesBulkPartialUpdateRequest(server string, body DcimLocationTypesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationTypesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationTypesBulkPartialUpdateRequestWithBody generates requests for DcimLocationTypesBulkPartialUpdate with any type of body -func NewDcimLocationTypesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationTypesCreateRequest calls the generic DcimLocationTypesCreate builder with application/json body -func NewDcimLocationTypesCreateRequest(server string, body DcimLocationTypesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationTypesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationTypesCreateRequestWithBody generates requests for DcimLocationTypesCreate with any type of body -func NewDcimLocationTypesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationTypesBulkUpdateRequest calls the generic DcimLocationTypesBulkUpdate builder with application/json body -func NewDcimLocationTypesBulkUpdateRequest(server string, body DcimLocationTypesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationTypesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationTypesBulkUpdateRequestWithBody generates requests for DcimLocationTypesBulkUpdate with any type of body -func NewDcimLocationTypesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationTypesDestroyRequest generates requests for DcimLocationTypesDestroy -func NewDcimLocationTypesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationTypesRetrieveRequest generates requests for DcimLocationTypesRetrieve -func NewDcimLocationTypesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationTypesPartialUpdateRequest calls the generic DcimLocationTypesPartialUpdate builder with application/json body -func NewDcimLocationTypesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimLocationTypesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationTypesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimLocationTypesPartialUpdateRequestWithBody generates requests for DcimLocationTypesPartialUpdate with any type of body -func NewDcimLocationTypesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationTypesUpdateRequest calls the generic DcimLocationTypesUpdate builder with application/json body -func NewDcimLocationTypesUpdateRequest(server string, id openapi_types.UUID, body DcimLocationTypesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationTypesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimLocationTypesUpdateRequestWithBody generates requests for DcimLocationTypesUpdate with any type of body -func NewDcimLocationTypesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationTypesNotesListRequest generates requests for DcimLocationTypesNotesList -func NewDcimLocationTypesNotesListRequest(server string, id openapi_types.UUID, params *DcimLocationTypesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationTypesNotesCreateRequest calls the generic DcimLocationTypesNotesCreate builder with application/json body -func NewDcimLocationTypesNotesCreateRequest(server string, id openapi_types.UUID, body DcimLocationTypesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationTypesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimLocationTypesNotesCreateRequestWithBody generates requests for DcimLocationTypesNotesCreate with any type of body -func NewDcimLocationTypesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/location-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationsBulkDestroyRequest calls the generic DcimLocationsBulkDestroy builder with application/json body -func NewDcimLocationsBulkDestroyRequest(server string, body DcimLocationsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationsBulkDestroyRequestWithBody generates requests for DcimLocationsBulkDestroy with any type of body -func NewDcimLocationsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationsListRequest generates requests for DcimLocationsList -func NewDcimLocationsListRequest(server string, params *DcimLocationsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.BaseSite != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "base_site", runtime.ParamLocationQuery, *params.BaseSite); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildLocationType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "child_location_type", runtime.ParamLocationQuery, *params.ChildLocationType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location_type", runtime.ParamLocationQuery, *params.LocationType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location_type__n", runtime.ParamLocationQuery, *params.LocationTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parent != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent", runtime.ParamLocationQuery, *params.Parent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent__n", runtime.ParamLocationQuery, *params.ParentN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Subtree != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subtree", runtime.ParamLocationQuery, *params.Subtree); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationsBulkPartialUpdateRequest calls the generic DcimLocationsBulkPartialUpdate builder with application/json body -func NewDcimLocationsBulkPartialUpdateRequest(server string, body DcimLocationsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationsBulkPartialUpdateRequestWithBody generates requests for DcimLocationsBulkPartialUpdate with any type of body -func NewDcimLocationsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationsCreateRequest calls the generic DcimLocationsCreate builder with application/json body -func NewDcimLocationsCreateRequest(server string, body DcimLocationsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationsCreateRequestWithBody generates requests for DcimLocationsCreate with any type of body -func NewDcimLocationsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationsBulkUpdateRequest calls the generic DcimLocationsBulkUpdate builder with application/json body -func NewDcimLocationsBulkUpdateRequest(server string, body DcimLocationsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimLocationsBulkUpdateRequestWithBody generates requests for DcimLocationsBulkUpdate with any type of body -func NewDcimLocationsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationsDestroyRequest generates requests for DcimLocationsDestroy -func NewDcimLocationsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationsRetrieveRequest generates requests for DcimLocationsRetrieve -func NewDcimLocationsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationsPartialUpdateRequest calls the generic DcimLocationsPartialUpdate builder with application/json body -func NewDcimLocationsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimLocationsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimLocationsPartialUpdateRequestWithBody generates requests for DcimLocationsPartialUpdate with any type of body -func NewDcimLocationsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationsUpdateRequest calls the generic DcimLocationsUpdate builder with application/json body -func NewDcimLocationsUpdateRequest(server string, id openapi_types.UUID, body DcimLocationsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimLocationsUpdateRequestWithBody generates requests for DcimLocationsUpdate with any type of body -func NewDcimLocationsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimLocationsNotesListRequest generates requests for DcimLocationsNotesList -func NewDcimLocationsNotesListRequest(server string, id openapi_types.UUID, params *DcimLocationsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimLocationsNotesCreateRequest calls the generic DcimLocationsNotesCreate builder with application/json body -func NewDcimLocationsNotesCreateRequest(server string, id openapi_types.UUID, body DcimLocationsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimLocationsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimLocationsNotesCreateRequestWithBody generates requests for DcimLocationsNotesCreate with any type of body -func NewDcimLocationsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/locations/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimManufacturersBulkDestroyRequest calls the generic DcimManufacturersBulkDestroy builder with application/json body -func NewDcimManufacturersBulkDestroyRequest(server string, body DcimManufacturersBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimManufacturersBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimManufacturersBulkDestroyRequestWithBody generates requests for DcimManufacturersBulkDestroy with any type of body -func NewDcimManufacturersBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimManufacturersListRequest generates requests for DcimManufacturersList -func NewDcimManufacturersListRequest(server string, params *DcimManufacturersListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types", runtime.ParamLocationQuery, *params.DeviceTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types__n", runtime.ParamLocationQuery, *params.DeviceTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDeviceTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_device_types", runtime.ParamLocationQuery, *params.HasDeviceTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasInventoryItems != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_inventory_items", runtime.ParamLocationQuery, *params.HasInventoryItems); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPlatforms != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_platforms", runtime.ParamLocationQuery, *params.HasPlatforms); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItems != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items", runtime.ParamLocationQuery, *params.InventoryItems); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items__n", runtime.ParamLocationQuery, *params.InventoryItemsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platforms != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platforms", runtime.ParamLocationQuery, *params.Platforms); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platforms__n", runtime.ParamLocationQuery, *params.PlatformsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimManufacturersBulkPartialUpdateRequest calls the generic DcimManufacturersBulkPartialUpdate builder with application/json body -func NewDcimManufacturersBulkPartialUpdateRequest(server string, body DcimManufacturersBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimManufacturersBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimManufacturersBulkPartialUpdateRequestWithBody generates requests for DcimManufacturersBulkPartialUpdate with any type of body -func NewDcimManufacturersBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimManufacturersCreateRequest calls the generic DcimManufacturersCreate builder with application/json body -func NewDcimManufacturersCreateRequest(server string, body DcimManufacturersCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimManufacturersCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimManufacturersCreateRequestWithBody generates requests for DcimManufacturersCreate with any type of body -func NewDcimManufacturersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimManufacturersBulkUpdateRequest calls the generic DcimManufacturersBulkUpdate builder with application/json body -func NewDcimManufacturersBulkUpdateRequest(server string, body DcimManufacturersBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimManufacturersBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimManufacturersBulkUpdateRequestWithBody generates requests for DcimManufacturersBulkUpdate with any type of body -func NewDcimManufacturersBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimManufacturersDestroyRequest generates requests for DcimManufacturersDestroy -func NewDcimManufacturersDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimManufacturersRetrieveRequest generates requests for DcimManufacturersRetrieve -func NewDcimManufacturersRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimManufacturersPartialUpdateRequest calls the generic DcimManufacturersPartialUpdate builder with application/json body -func NewDcimManufacturersPartialUpdateRequest(server string, id openapi_types.UUID, body DcimManufacturersPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimManufacturersPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimManufacturersPartialUpdateRequestWithBody generates requests for DcimManufacturersPartialUpdate with any type of body -func NewDcimManufacturersPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimManufacturersUpdateRequest calls the generic DcimManufacturersUpdate builder with application/json body -func NewDcimManufacturersUpdateRequest(server string, id openapi_types.UUID, body DcimManufacturersUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimManufacturersUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimManufacturersUpdateRequestWithBody generates requests for DcimManufacturersUpdate with any type of body -func NewDcimManufacturersUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimManufacturersNotesListRequest generates requests for DcimManufacturersNotesList -func NewDcimManufacturersNotesListRequest(server string, id openapi_types.UUID, params *DcimManufacturersNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimManufacturersNotesCreateRequest calls the generic DcimManufacturersNotesCreate builder with application/json body -func NewDcimManufacturersNotesCreateRequest(server string, id openapi_types.UUID, body DcimManufacturersNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimManufacturersNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimManufacturersNotesCreateRequestWithBody generates requests for DcimManufacturersNotesCreate with any type of body -func NewDcimManufacturersNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/manufacturers/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPlatformsBulkDestroyRequest calls the generic DcimPlatformsBulkDestroy builder with application/json body -func NewDcimPlatformsBulkDestroyRequest(server string, body DcimPlatformsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPlatformsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPlatformsBulkDestroyRequestWithBody generates requests for DcimPlatformsBulkDestroy with any type of body -func NewDcimPlatformsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPlatformsListRequest generates requests for DcimPlatformsList -func NewDcimPlatformsListRequest(server string, params *DcimPlatformsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices", runtime.ParamLocationQuery, *params.Devices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices__n", runtime.ParamLocationQuery, *params.DevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_devices", runtime.ParamLocationQuery, *params.HasDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasVirtualMachines != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_virtual_machines", runtime.ParamLocationQuery, *params.HasVirtualMachines); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Manufacturer != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer", runtime.ParamLocationQuery, *params.Manufacturer); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer__n", runtime.ParamLocationQuery, *params.ManufacturerN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id", runtime.ParamLocationQuery, *params.ManufacturerId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id__n", runtime.ParamLocationQuery, *params.ManufacturerIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmArgs != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_args", runtime.ParamLocationQuery, *params.NapalmArgs); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriver != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver", runtime.ParamLocationQuery, *params.NapalmDriver); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__ic", runtime.ParamLocationQuery, *params.NapalmDriverIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__ie", runtime.ParamLocationQuery, *params.NapalmDriverIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__iew", runtime.ParamLocationQuery, *params.NapalmDriverIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__ire", runtime.ParamLocationQuery, *params.NapalmDriverIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__isw", runtime.ParamLocationQuery, *params.NapalmDriverIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__n", runtime.ParamLocationQuery, *params.NapalmDriverN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__nic", runtime.ParamLocationQuery, *params.NapalmDriverNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__nie", runtime.ParamLocationQuery, *params.NapalmDriverNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__niew", runtime.ParamLocationQuery, *params.NapalmDriverNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__nire", runtime.ParamLocationQuery, *params.NapalmDriverNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__nisw", runtime.ParamLocationQuery, *params.NapalmDriverNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__nre", runtime.ParamLocationQuery, *params.NapalmDriverNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NapalmDriverRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "napalm_driver__re", runtime.ParamLocationQuery, *params.NapalmDriverRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachines != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machines", runtime.ParamLocationQuery, *params.VirtualMachines); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachinesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machines__n", runtime.ParamLocationQuery, *params.VirtualMachinesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPlatformsBulkPartialUpdateRequest calls the generic DcimPlatformsBulkPartialUpdate builder with application/json body -func NewDcimPlatformsBulkPartialUpdateRequest(server string, body DcimPlatformsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPlatformsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPlatformsBulkPartialUpdateRequestWithBody generates requests for DcimPlatformsBulkPartialUpdate with any type of body -func NewDcimPlatformsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPlatformsCreateRequest calls the generic DcimPlatformsCreate builder with application/json body -func NewDcimPlatformsCreateRequest(server string, body DcimPlatformsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPlatformsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPlatformsCreateRequestWithBody generates requests for DcimPlatformsCreate with any type of body -func NewDcimPlatformsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPlatformsBulkUpdateRequest calls the generic DcimPlatformsBulkUpdate builder with application/json body -func NewDcimPlatformsBulkUpdateRequest(server string, body DcimPlatformsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPlatformsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPlatformsBulkUpdateRequestWithBody generates requests for DcimPlatformsBulkUpdate with any type of body -func NewDcimPlatformsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPlatformsDestroyRequest generates requests for DcimPlatformsDestroy -func NewDcimPlatformsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPlatformsRetrieveRequest generates requests for DcimPlatformsRetrieve -func NewDcimPlatformsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPlatformsPartialUpdateRequest calls the generic DcimPlatformsPartialUpdate builder with application/json body -func NewDcimPlatformsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimPlatformsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPlatformsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPlatformsPartialUpdateRequestWithBody generates requests for DcimPlatformsPartialUpdate with any type of body -func NewDcimPlatformsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPlatformsUpdateRequest calls the generic DcimPlatformsUpdate builder with application/json body -func NewDcimPlatformsUpdateRequest(server string, id openapi_types.UUID, body DcimPlatformsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPlatformsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPlatformsUpdateRequestWithBody generates requests for DcimPlatformsUpdate with any type of body -func NewDcimPlatformsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPlatformsNotesListRequest generates requests for DcimPlatformsNotesList -func NewDcimPlatformsNotesListRequest(server string, id openapi_types.UUID, params *DcimPlatformsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPlatformsNotesCreateRequest calls the generic DcimPlatformsNotesCreate builder with application/json body -func NewDcimPlatformsNotesCreateRequest(server string, id openapi_types.UUID, body DcimPlatformsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPlatformsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPlatformsNotesCreateRequestWithBody generates requests for DcimPlatformsNotesCreate with any type of body -func NewDcimPlatformsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/platforms/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerConnectionsListRequest generates requests for DcimPowerConnectionsList -func NewDcimPowerConnectionsListRequest(server string, params *DcimPowerConnectionsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-connections/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerFeedsBulkDestroyRequest calls the generic DcimPowerFeedsBulkDestroy builder with application/json body -func NewDcimPowerFeedsBulkDestroyRequest(server string, body DcimPowerFeedsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerFeedsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerFeedsBulkDestroyRequestWithBody generates requests for DcimPowerFeedsBulkDestroy with any type of body -func NewDcimPowerFeedsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerFeedsListRequest generates requests for DcimPowerFeedsList -func NewDcimPowerFeedsListRequest(server string, params *DcimPowerFeedsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Amperage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "amperage", runtime.ParamLocationQuery, *params.Amperage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AmperageGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "amperage__gt", runtime.ParamLocationQuery, *params.AmperageGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AmperageGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "amperage__gte", runtime.ParamLocationQuery, *params.AmperageGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AmperageLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "amperage__lt", runtime.ParamLocationQuery, *params.AmperageLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AmperageLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "amperage__lte", runtime.ParamLocationQuery, *params.AmperageLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AmperageN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "amperage__n", runtime.ParamLocationQuery, *params.AmperageN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AvailablePower != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "available_power", runtime.ParamLocationQuery, *params.AvailablePower); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AvailablePowerGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "available_power__gt", runtime.ParamLocationQuery, *params.AvailablePowerGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AvailablePowerGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "available_power__gte", runtime.ParamLocationQuery, *params.AvailablePowerGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AvailablePowerLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "available_power__lt", runtime.ParamLocationQuery, *params.AvailablePowerLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AvailablePowerLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "available_power__lte", runtime.ParamLocationQuery, *params.AvailablePowerLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AvailablePowerN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "available_power__n", runtime.ParamLocationQuery, *params.AvailablePowerN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Connected != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connected", runtime.ParamLocationQuery, *params.Connected); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxUtilization != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max_utilization", runtime.ParamLocationQuery, *params.MaxUtilization); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxUtilizationGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max_utilization__gt", runtime.ParamLocationQuery, *params.MaxUtilizationGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxUtilizationGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max_utilization__gte", runtime.ParamLocationQuery, *params.MaxUtilizationGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxUtilizationLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max_utilization__lt", runtime.ParamLocationQuery, *params.MaxUtilizationLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxUtilizationLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max_utilization__lte", runtime.ParamLocationQuery, *params.MaxUtilizationLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxUtilizationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max_utilization__n", runtime.ParamLocationQuery, *params.MaxUtilizationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Phase != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phase", runtime.ParamLocationQuery, *params.Phase); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhaseN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phase__n", runtime.ParamLocationQuery, *params.PhaseN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panel", runtime.ParamLocationQuery, *params.PowerPanel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panel__n", runtime.ParamLocationQuery, *params.PowerPanelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanelId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panel_id", runtime.ParamLocationQuery, *params.PowerPanelId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanelIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panel_id__n", runtime.ParamLocationQuery, *params.PowerPanelIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rack != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack", runtime.ParamLocationQuery, *params.Rack); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack__n", runtime.ParamLocationQuery, *params.RackN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id", runtime.ParamLocationQuery, *params.RackId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id__n", runtime.ParamLocationQuery, *params.RackIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Supply != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "supply", runtime.ParamLocationQuery, *params.Supply); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupplyN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "supply__n", runtime.ParamLocationQuery, *params.SupplyN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Voltage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "voltage", runtime.ParamLocationQuery, *params.Voltage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VoltageGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "voltage__gt", runtime.ParamLocationQuery, *params.VoltageGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VoltageGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "voltage__gte", runtime.ParamLocationQuery, *params.VoltageGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VoltageLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "voltage__lt", runtime.ParamLocationQuery, *params.VoltageLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VoltageLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "voltage__lte", runtime.ParamLocationQuery, *params.VoltageLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VoltageN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "voltage__n", runtime.ParamLocationQuery, *params.VoltageN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerFeedsBulkPartialUpdateRequest calls the generic DcimPowerFeedsBulkPartialUpdate builder with application/json body -func NewDcimPowerFeedsBulkPartialUpdateRequest(server string, body DcimPowerFeedsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerFeedsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerFeedsBulkPartialUpdateRequestWithBody generates requests for DcimPowerFeedsBulkPartialUpdate with any type of body -func NewDcimPowerFeedsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerFeedsCreateRequest calls the generic DcimPowerFeedsCreate builder with application/json body -func NewDcimPowerFeedsCreateRequest(server string, body DcimPowerFeedsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerFeedsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerFeedsCreateRequestWithBody generates requests for DcimPowerFeedsCreate with any type of body -func NewDcimPowerFeedsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerFeedsBulkUpdateRequest calls the generic DcimPowerFeedsBulkUpdate builder with application/json body -func NewDcimPowerFeedsBulkUpdateRequest(server string, body DcimPowerFeedsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerFeedsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerFeedsBulkUpdateRequestWithBody generates requests for DcimPowerFeedsBulkUpdate with any type of body -func NewDcimPowerFeedsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerFeedsDestroyRequest generates requests for DcimPowerFeedsDestroy -func NewDcimPowerFeedsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerFeedsRetrieveRequest generates requests for DcimPowerFeedsRetrieve -func NewDcimPowerFeedsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerFeedsPartialUpdateRequest calls the generic DcimPowerFeedsPartialUpdate builder with application/json body -func NewDcimPowerFeedsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimPowerFeedsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerFeedsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerFeedsPartialUpdateRequestWithBody generates requests for DcimPowerFeedsPartialUpdate with any type of body -func NewDcimPowerFeedsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerFeedsUpdateRequest calls the generic DcimPowerFeedsUpdate builder with application/json body -func NewDcimPowerFeedsUpdateRequest(server string, id openapi_types.UUID, body DcimPowerFeedsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerFeedsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerFeedsUpdateRequestWithBody generates requests for DcimPowerFeedsUpdate with any type of body -func NewDcimPowerFeedsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerFeedsNotesListRequest generates requests for DcimPowerFeedsNotesList -func NewDcimPowerFeedsNotesListRequest(server string, id openapi_types.UUID, params *DcimPowerFeedsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerFeedsNotesCreateRequest calls the generic DcimPowerFeedsNotesCreate builder with application/json body -func NewDcimPowerFeedsNotesCreateRequest(server string, id openapi_types.UUID, body DcimPowerFeedsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerFeedsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerFeedsNotesCreateRequestWithBody generates requests for DcimPowerFeedsNotesCreate with any type of body -func NewDcimPowerFeedsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerFeedsTraceRetrieveRequest generates requests for DcimPowerFeedsTraceRetrieve -func NewDcimPowerFeedsTraceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-feeds/%s/trace/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletTemplatesBulkDestroyRequest calls the generic DcimPowerOutletTemplatesBulkDestroy builder with application/json body -func NewDcimPowerOutletTemplatesBulkDestroyRequest(server string, body DcimPowerOutletTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletTemplatesBulkDestroyRequestWithBody generates requests for DcimPowerOutletTemplatesBulkDestroy with any type of body -func NewDcimPowerOutletTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletTemplatesListRequest generates requests for DcimPowerOutletTemplatesList -func NewDcimPowerOutletTemplatesListRequest(server string, params *DcimPowerOutletTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FeedLeg != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "feed_leg", runtime.ParamLocationQuery, *params.FeedLeg); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FeedLegN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "feed_leg__n", runtime.ParamLocationQuery, *params.FeedLegN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPortTemplate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_port_template", runtime.ParamLocationQuery, *params.PowerPortTemplate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPortTemplateN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_port_template__n", runtime.ParamLocationQuery, *params.PowerPortTemplateN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletTemplatesBulkPartialUpdateRequest calls the generic DcimPowerOutletTemplatesBulkPartialUpdate builder with application/json body -func NewDcimPowerOutletTemplatesBulkPartialUpdateRequest(server string, body DcimPowerOutletTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimPowerOutletTemplatesBulkPartialUpdate with any type of body -func NewDcimPowerOutletTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletTemplatesCreateRequest calls the generic DcimPowerOutletTemplatesCreate builder with application/json body -func NewDcimPowerOutletTemplatesCreateRequest(server string, body DcimPowerOutletTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletTemplatesCreateRequestWithBody generates requests for DcimPowerOutletTemplatesCreate with any type of body -func NewDcimPowerOutletTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletTemplatesBulkUpdateRequest calls the generic DcimPowerOutletTemplatesBulkUpdate builder with application/json body -func NewDcimPowerOutletTemplatesBulkUpdateRequest(server string, body DcimPowerOutletTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletTemplatesBulkUpdateRequestWithBody generates requests for DcimPowerOutletTemplatesBulkUpdate with any type of body -func NewDcimPowerOutletTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletTemplatesDestroyRequest generates requests for DcimPowerOutletTemplatesDestroy -func NewDcimPowerOutletTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletTemplatesRetrieveRequest generates requests for DcimPowerOutletTemplatesRetrieve -func NewDcimPowerOutletTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletTemplatesPartialUpdateRequest calls the generic DcimPowerOutletTemplatesPartialUpdate builder with application/json body -func NewDcimPowerOutletTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimPowerOutletTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerOutletTemplatesPartialUpdateRequestWithBody generates requests for DcimPowerOutletTemplatesPartialUpdate with any type of body -func NewDcimPowerOutletTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletTemplatesUpdateRequest calls the generic DcimPowerOutletTemplatesUpdate builder with application/json body -func NewDcimPowerOutletTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimPowerOutletTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerOutletTemplatesUpdateRequestWithBody generates requests for DcimPowerOutletTemplatesUpdate with any type of body -func NewDcimPowerOutletTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletTemplatesNotesListRequest generates requests for DcimPowerOutletTemplatesNotesList -func NewDcimPowerOutletTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimPowerOutletTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletTemplatesNotesCreateRequest calls the generic DcimPowerOutletTemplatesNotesCreate builder with application/json body -func NewDcimPowerOutletTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimPowerOutletTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerOutletTemplatesNotesCreateRequestWithBody generates requests for DcimPowerOutletTemplatesNotesCreate with any type of body -func NewDcimPowerOutletTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlet-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsBulkDestroyRequest calls the generic DcimPowerOutletsBulkDestroy builder with application/json body -func NewDcimPowerOutletsBulkDestroyRequest(server string, body DcimPowerOutletsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletsBulkDestroyRequestWithBody generates requests for DcimPowerOutletsBulkDestroy with any type of body -func NewDcimPowerOutletsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsListRequest generates requests for DcimPowerOutletsList -func NewDcimPowerOutletsListRequest(server string, params *DcimPowerOutletsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Connected != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connected", runtime.ParamLocationQuery, *params.Connected); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FeedLeg != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "feed_leg", runtime.ParamLocationQuery, *params.FeedLeg); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FeedLegN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "feed_leg__n", runtime.ParamLocationQuery, *params.FeedLegN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPort != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_port", runtime.ParamLocationQuery, *params.PowerPort); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPortN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_port__n", runtime.ParamLocationQuery, *params.PowerPortN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletsBulkPartialUpdateRequest calls the generic DcimPowerOutletsBulkPartialUpdate builder with application/json body -func NewDcimPowerOutletsBulkPartialUpdateRequest(server string, body DcimPowerOutletsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletsBulkPartialUpdateRequestWithBody generates requests for DcimPowerOutletsBulkPartialUpdate with any type of body -func NewDcimPowerOutletsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsCreateRequest calls the generic DcimPowerOutletsCreate builder with application/json body -func NewDcimPowerOutletsCreateRequest(server string, body DcimPowerOutletsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletsCreateRequestWithBody generates requests for DcimPowerOutletsCreate with any type of body -func NewDcimPowerOutletsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsBulkUpdateRequest calls the generic DcimPowerOutletsBulkUpdate builder with application/json body -func NewDcimPowerOutletsBulkUpdateRequest(server string, body DcimPowerOutletsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerOutletsBulkUpdateRequestWithBody generates requests for DcimPowerOutletsBulkUpdate with any type of body -func NewDcimPowerOutletsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsDestroyRequest generates requests for DcimPowerOutletsDestroy -func NewDcimPowerOutletsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletsRetrieveRequest generates requests for DcimPowerOutletsRetrieve -func NewDcimPowerOutletsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletsPartialUpdateRequest calls the generic DcimPowerOutletsPartialUpdate builder with application/json body -func NewDcimPowerOutletsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimPowerOutletsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerOutletsPartialUpdateRequestWithBody generates requests for DcimPowerOutletsPartialUpdate with any type of body -func NewDcimPowerOutletsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsUpdateRequest calls the generic DcimPowerOutletsUpdate builder with application/json body -func NewDcimPowerOutletsUpdateRequest(server string, id openapi_types.UUID, body DcimPowerOutletsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerOutletsUpdateRequestWithBody generates requests for DcimPowerOutletsUpdate with any type of body -func NewDcimPowerOutletsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsNotesListRequest generates requests for DcimPowerOutletsNotesList -func NewDcimPowerOutletsNotesListRequest(server string, id openapi_types.UUID, params *DcimPowerOutletsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerOutletsNotesCreateRequest calls the generic DcimPowerOutletsNotesCreate builder with application/json body -func NewDcimPowerOutletsNotesCreateRequest(server string, id openapi_types.UUID, body DcimPowerOutletsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerOutletsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerOutletsNotesCreateRequestWithBody generates requests for DcimPowerOutletsNotesCreate with any type of body -func NewDcimPowerOutletsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerOutletsTraceRetrieveRequest generates requests for DcimPowerOutletsTraceRetrieve -func NewDcimPowerOutletsTraceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-outlets/%s/trace/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPanelsBulkDestroyRequest calls the generic DcimPowerPanelsBulkDestroy builder with application/json body -func NewDcimPowerPanelsBulkDestroyRequest(server string, body DcimPowerPanelsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPanelsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPanelsBulkDestroyRequestWithBody generates requests for DcimPowerPanelsBulkDestroy with any type of body -func NewDcimPowerPanelsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPanelsListRequest generates requests for DcimPowerPanelsList -func NewDcimPowerPanelsListRequest(server string, params *DcimPowerPanelsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerFeeds != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_feeds", runtime.ParamLocationQuery, *params.HasPowerFeeds); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerFeeds != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_feeds", runtime.ParamLocationQuery, *params.PowerFeeds); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerFeedsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_feeds__n", runtime.ParamLocationQuery, *params.PowerFeedsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group", runtime.ParamLocationQuery, *params.RackGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group__n", runtime.ParamLocationQuery, *params.RackGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group_id", runtime.ParamLocationQuery, *params.RackGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group_id__n", runtime.ParamLocationQuery, *params.RackGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPanelsBulkPartialUpdateRequest calls the generic DcimPowerPanelsBulkPartialUpdate builder with application/json body -func NewDcimPowerPanelsBulkPartialUpdateRequest(server string, body DcimPowerPanelsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPanelsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPanelsBulkPartialUpdateRequestWithBody generates requests for DcimPowerPanelsBulkPartialUpdate with any type of body -func NewDcimPowerPanelsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPanelsCreateRequest calls the generic DcimPowerPanelsCreate builder with application/json body -func NewDcimPowerPanelsCreateRequest(server string, body DcimPowerPanelsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPanelsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPanelsCreateRequestWithBody generates requests for DcimPowerPanelsCreate with any type of body -func NewDcimPowerPanelsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPanelsBulkUpdateRequest calls the generic DcimPowerPanelsBulkUpdate builder with application/json body -func NewDcimPowerPanelsBulkUpdateRequest(server string, body DcimPowerPanelsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPanelsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPanelsBulkUpdateRequestWithBody generates requests for DcimPowerPanelsBulkUpdate with any type of body -func NewDcimPowerPanelsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPanelsDestroyRequest generates requests for DcimPowerPanelsDestroy -func NewDcimPowerPanelsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPanelsRetrieveRequest generates requests for DcimPowerPanelsRetrieve -func NewDcimPowerPanelsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPanelsPartialUpdateRequest calls the generic DcimPowerPanelsPartialUpdate builder with application/json body -func NewDcimPowerPanelsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimPowerPanelsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPanelsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPanelsPartialUpdateRequestWithBody generates requests for DcimPowerPanelsPartialUpdate with any type of body -func NewDcimPowerPanelsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPanelsUpdateRequest calls the generic DcimPowerPanelsUpdate builder with application/json body -func NewDcimPowerPanelsUpdateRequest(server string, id openapi_types.UUID, body DcimPowerPanelsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPanelsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPanelsUpdateRequestWithBody generates requests for DcimPowerPanelsUpdate with any type of body -func NewDcimPowerPanelsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPanelsNotesListRequest generates requests for DcimPowerPanelsNotesList -func NewDcimPowerPanelsNotesListRequest(server string, id openapi_types.UUID, params *DcimPowerPanelsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPanelsNotesCreateRequest calls the generic DcimPowerPanelsNotesCreate builder with application/json body -func NewDcimPowerPanelsNotesCreateRequest(server string, id openapi_types.UUID, body DcimPowerPanelsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPanelsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPanelsNotesCreateRequestWithBody generates requests for DcimPowerPanelsNotesCreate with any type of body -func NewDcimPowerPanelsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-panels/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortTemplatesBulkDestroyRequest calls the generic DcimPowerPortTemplatesBulkDestroy builder with application/json body -func NewDcimPowerPortTemplatesBulkDestroyRequest(server string, body DcimPowerPortTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortTemplatesBulkDestroyRequestWithBody generates requests for DcimPowerPortTemplatesBulkDestroy with any type of body -func NewDcimPowerPortTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortTemplatesListRequest generates requests for DcimPowerPortTemplatesList -func NewDcimPowerPortTemplatesListRequest(server string, params *DcimPowerPortTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AllocatedDraw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw", runtime.ParamLocationQuery, *params.AllocatedDraw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__gt", runtime.ParamLocationQuery, *params.AllocatedDrawGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__gte", runtime.ParamLocationQuery, *params.AllocatedDrawGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__lt", runtime.ParamLocationQuery, *params.AllocatedDrawLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__lte", runtime.ParamLocationQuery, *params.AllocatedDrawLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__n", runtime.ParamLocationQuery, *params.AllocatedDrawN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerOutletTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_outlet_templates", runtime.ParamLocationQuery, *params.HasPowerOutletTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDraw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw", runtime.ParamLocationQuery, *params.MaximumDraw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__gt", runtime.ParamLocationQuery, *params.MaximumDrawGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__gte", runtime.ParamLocationQuery, *params.MaximumDrawGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__lt", runtime.ParamLocationQuery, *params.MaximumDrawLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__lte", runtime.ParamLocationQuery, *params.MaximumDrawLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__n", runtime.ParamLocationQuery, *params.MaximumDrawN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutletTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlet_templates", runtime.ParamLocationQuery, *params.PowerOutletTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutletTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlet_templates__n", runtime.ParamLocationQuery, *params.PowerOutletTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortTemplatesBulkPartialUpdateRequest calls the generic DcimPowerPortTemplatesBulkPartialUpdate builder with application/json body -func NewDcimPowerPortTemplatesBulkPartialUpdateRequest(server string, body DcimPowerPortTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimPowerPortTemplatesBulkPartialUpdate with any type of body -func NewDcimPowerPortTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortTemplatesCreateRequest calls the generic DcimPowerPortTemplatesCreate builder with application/json body -func NewDcimPowerPortTemplatesCreateRequest(server string, body DcimPowerPortTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortTemplatesCreateRequestWithBody generates requests for DcimPowerPortTemplatesCreate with any type of body -func NewDcimPowerPortTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortTemplatesBulkUpdateRequest calls the generic DcimPowerPortTemplatesBulkUpdate builder with application/json body -func NewDcimPowerPortTemplatesBulkUpdateRequest(server string, body DcimPowerPortTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortTemplatesBulkUpdateRequestWithBody generates requests for DcimPowerPortTemplatesBulkUpdate with any type of body -func NewDcimPowerPortTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortTemplatesDestroyRequest generates requests for DcimPowerPortTemplatesDestroy -func NewDcimPowerPortTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortTemplatesRetrieveRequest generates requests for DcimPowerPortTemplatesRetrieve -func NewDcimPowerPortTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortTemplatesPartialUpdateRequest calls the generic DcimPowerPortTemplatesPartialUpdate builder with application/json body -func NewDcimPowerPortTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimPowerPortTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPortTemplatesPartialUpdateRequestWithBody generates requests for DcimPowerPortTemplatesPartialUpdate with any type of body -func NewDcimPowerPortTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortTemplatesUpdateRequest calls the generic DcimPowerPortTemplatesUpdate builder with application/json body -func NewDcimPowerPortTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimPowerPortTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPortTemplatesUpdateRequestWithBody generates requests for DcimPowerPortTemplatesUpdate with any type of body -func NewDcimPowerPortTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortTemplatesNotesListRequest generates requests for DcimPowerPortTemplatesNotesList -func NewDcimPowerPortTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimPowerPortTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortTemplatesNotesCreateRequest calls the generic DcimPowerPortTemplatesNotesCreate builder with application/json body -func NewDcimPowerPortTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimPowerPortTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPortTemplatesNotesCreateRequestWithBody generates requests for DcimPowerPortTemplatesNotesCreate with any type of body -func NewDcimPowerPortTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsBulkDestroyRequest calls the generic DcimPowerPortsBulkDestroy builder with application/json body -func NewDcimPowerPortsBulkDestroyRequest(server string, body DcimPowerPortsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortsBulkDestroyRequestWithBody generates requests for DcimPowerPortsBulkDestroy with any type of body -func NewDcimPowerPortsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsListRequest generates requests for DcimPowerPortsList -func NewDcimPowerPortsListRequest(server string, params *DcimPowerPortsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AllocatedDraw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw", runtime.ParamLocationQuery, *params.AllocatedDraw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__gt", runtime.ParamLocationQuery, *params.AllocatedDrawGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__gte", runtime.ParamLocationQuery, *params.AllocatedDrawGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__lt", runtime.ParamLocationQuery, *params.AllocatedDrawLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__lte", runtime.ParamLocationQuery, *params.AllocatedDrawLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AllocatedDrawN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated_draw__n", runtime.ParamLocationQuery, *params.AllocatedDrawN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Connected != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connected", runtime.ParamLocationQuery, *params.Connected); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerOutlets != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_outlets", runtime.ParamLocationQuery, *params.HasPowerOutlets); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDraw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw", runtime.ParamLocationQuery, *params.MaximumDraw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__gt", runtime.ParamLocationQuery, *params.MaximumDrawGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__gte", runtime.ParamLocationQuery, *params.MaximumDrawGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__lt", runtime.ParamLocationQuery, *params.MaximumDrawLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__lte", runtime.ParamLocationQuery, *params.MaximumDrawLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaximumDrawN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maximum_draw__n", runtime.ParamLocationQuery, *params.MaximumDrawN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutlets != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlets", runtime.ParamLocationQuery, *params.PowerOutlets); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerOutletsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_outlets__n", runtime.ParamLocationQuery, *params.PowerOutletsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortsBulkPartialUpdateRequest calls the generic DcimPowerPortsBulkPartialUpdate builder with application/json body -func NewDcimPowerPortsBulkPartialUpdateRequest(server string, body DcimPowerPortsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortsBulkPartialUpdateRequestWithBody generates requests for DcimPowerPortsBulkPartialUpdate with any type of body -func NewDcimPowerPortsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsCreateRequest calls the generic DcimPowerPortsCreate builder with application/json body -func NewDcimPowerPortsCreateRequest(server string, body DcimPowerPortsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortsCreateRequestWithBody generates requests for DcimPowerPortsCreate with any type of body -func NewDcimPowerPortsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsBulkUpdateRequest calls the generic DcimPowerPortsBulkUpdate builder with application/json body -func NewDcimPowerPortsBulkUpdateRequest(server string, body DcimPowerPortsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimPowerPortsBulkUpdateRequestWithBody generates requests for DcimPowerPortsBulkUpdate with any type of body -func NewDcimPowerPortsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsDestroyRequest generates requests for DcimPowerPortsDestroy -func NewDcimPowerPortsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortsRetrieveRequest generates requests for DcimPowerPortsRetrieve -func NewDcimPowerPortsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortsPartialUpdateRequest calls the generic DcimPowerPortsPartialUpdate builder with application/json body -func NewDcimPowerPortsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimPowerPortsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPortsPartialUpdateRequestWithBody generates requests for DcimPowerPortsPartialUpdate with any type of body -func NewDcimPowerPortsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsUpdateRequest calls the generic DcimPowerPortsUpdate builder with application/json body -func NewDcimPowerPortsUpdateRequest(server string, id openapi_types.UUID, body DcimPowerPortsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPortsUpdateRequestWithBody generates requests for DcimPowerPortsUpdate with any type of body -func NewDcimPowerPortsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsNotesListRequest generates requests for DcimPowerPortsNotesList -func NewDcimPowerPortsNotesListRequest(server string, id openapi_types.UUID, params *DcimPowerPortsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimPowerPortsNotesCreateRequest calls the generic DcimPowerPortsNotesCreate builder with application/json body -func NewDcimPowerPortsNotesCreateRequest(server string, id openapi_types.UUID, body DcimPowerPortsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimPowerPortsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimPowerPortsNotesCreateRequestWithBody generates requests for DcimPowerPortsNotesCreate with any type of body -func NewDcimPowerPortsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimPowerPortsTraceRetrieveRequest generates requests for DcimPowerPortsTraceRetrieve -func NewDcimPowerPortsTraceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/power-ports/%s/trace/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackGroupsBulkDestroyRequest calls the generic DcimRackGroupsBulkDestroy builder with application/json body -func NewDcimRackGroupsBulkDestroyRequest(server string, body DcimRackGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackGroupsBulkDestroyRequestWithBody generates requests for DcimRackGroupsBulkDestroy with any type of body -func NewDcimRackGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackGroupsListRequest generates requests for DcimRackGroupsList -func NewDcimRackGroupsListRequest(server string, params *DcimRackGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Children != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "children", runtime.ParamLocationQuery, *params.Children); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildrenN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "children__n", runtime.ParamLocationQuery, *params.ChildrenN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasChildren != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_children", runtime.ParamLocationQuery, *params.HasChildren); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerPanels != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_panels", runtime.ParamLocationQuery, *params.HasPowerPanels); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasRacks != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_racks", runtime.ParamLocationQuery, *params.HasRacks); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parent != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent", runtime.ParamLocationQuery, *params.Parent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent__n", runtime.ParamLocationQuery, *params.ParentN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id", runtime.ParamLocationQuery, *params.ParentId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id__n", runtime.ParamLocationQuery, *params.ParentIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanels != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panels", runtime.ParamLocationQuery, *params.PowerPanels); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanelsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panels__n", runtime.ParamLocationQuery, *params.PowerPanelsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Racks != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "racks", runtime.ParamLocationQuery, *params.Racks); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RacksN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "racks__n", runtime.ParamLocationQuery, *params.RacksN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackGroupsBulkPartialUpdateRequest calls the generic DcimRackGroupsBulkPartialUpdate builder with application/json body -func NewDcimRackGroupsBulkPartialUpdateRequest(server string, body DcimRackGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackGroupsBulkPartialUpdateRequestWithBody generates requests for DcimRackGroupsBulkPartialUpdate with any type of body -func NewDcimRackGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackGroupsCreateRequest calls the generic DcimRackGroupsCreate builder with application/json body -func NewDcimRackGroupsCreateRequest(server string, body DcimRackGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackGroupsCreateRequestWithBody generates requests for DcimRackGroupsCreate with any type of body -func NewDcimRackGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackGroupsBulkUpdateRequest calls the generic DcimRackGroupsBulkUpdate builder with application/json body -func NewDcimRackGroupsBulkUpdateRequest(server string, body DcimRackGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackGroupsBulkUpdateRequestWithBody generates requests for DcimRackGroupsBulkUpdate with any type of body -func NewDcimRackGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackGroupsDestroyRequest generates requests for DcimRackGroupsDestroy -func NewDcimRackGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackGroupsRetrieveRequest generates requests for DcimRackGroupsRetrieve -func NewDcimRackGroupsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackGroupsPartialUpdateRequest calls the generic DcimRackGroupsPartialUpdate builder with application/json body -func NewDcimRackGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimRackGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackGroupsPartialUpdateRequestWithBody generates requests for DcimRackGroupsPartialUpdate with any type of body -func NewDcimRackGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackGroupsUpdateRequest calls the generic DcimRackGroupsUpdate builder with application/json body -func NewDcimRackGroupsUpdateRequest(server string, id openapi_types.UUID, body DcimRackGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackGroupsUpdateRequestWithBody generates requests for DcimRackGroupsUpdate with any type of body -func NewDcimRackGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackGroupsNotesListRequest generates requests for DcimRackGroupsNotesList -func NewDcimRackGroupsNotesListRequest(server string, id openapi_types.UUID, params *DcimRackGroupsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackGroupsNotesCreateRequest calls the generic DcimRackGroupsNotesCreate builder with application/json body -func NewDcimRackGroupsNotesCreateRequest(server string, id openapi_types.UUID, body DcimRackGroupsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackGroupsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackGroupsNotesCreateRequestWithBody generates requests for DcimRackGroupsNotesCreate with any type of body -func NewDcimRackGroupsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackReservationsBulkDestroyRequest calls the generic DcimRackReservationsBulkDestroy builder with application/json body -func NewDcimRackReservationsBulkDestroyRequest(server string, body DcimRackReservationsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackReservationsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackReservationsBulkDestroyRequestWithBody generates requests for DcimRackReservationsBulkDestroy with any type of body -func NewDcimRackReservationsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackReservationsListRequest generates requests for DcimRackReservationsList -func NewDcimRackReservationsListRequest(server string, params *DcimRackReservationsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rack != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack", runtime.ParamLocationQuery, *params.Rack); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack__n", runtime.ParamLocationQuery, *params.RackN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id", runtime.ParamLocationQuery, *params.RackId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id__n", runtime.ParamLocationQuery, *params.RackIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user__n", runtime.ParamLocationQuery, *params.UserN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_id", runtime.ParamLocationQuery, *params.UserId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_id__n", runtime.ParamLocationQuery, *params.UserIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackReservationsBulkPartialUpdateRequest calls the generic DcimRackReservationsBulkPartialUpdate builder with application/json body -func NewDcimRackReservationsBulkPartialUpdateRequest(server string, body DcimRackReservationsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackReservationsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackReservationsBulkPartialUpdateRequestWithBody generates requests for DcimRackReservationsBulkPartialUpdate with any type of body -func NewDcimRackReservationsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackReservationsCreateRequest calls the generic DcimRackReservationsCreate builder with application/json body -func NewDcimRackReservationsCreateRequest(server string, body DcimRackReservationsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackReservationsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackReservationsCreateRequestWithBody generates requests for DcimRackReservationsCreate with any type of body -func NewDcimRackReservationsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackReservationsBulkUpdateRequest calls the generic DcimRackReservationsBulkUpdate builder with application/json body -func NewDcimRackReservationsBulkUpdateRequest(server string, body DcimRackReservationsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackReservationsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackReservationsBulkUpdateRequestWithBody generates requests for DcimRackReservationsBulkUpdate with any type of body -func NewDcimRackReservationsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackReservationsDestroyRequest generates requests for DcimRackReservationsDestroy -func NewDcimRackReservationsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackReservationsRetrieveRequest generates requests for DcimRackReservationsRetrieve -func NewDcimRackReservationsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackReservationsPartialUpdateRequest calls the generic DcimRackReservationsPartialUpdate builder with application/json body -func NewDcimRackReservationsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimRackReservationsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackReservationsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackReservationsPartialUpdateRequestWithBody generates requests for DcimRackReservationsPartialUpdate with any type of body -func NewDcimRackReservationsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackReservationsUpdateRequest calls the generic DcimRackReservationsUpdate builder with application/json body -func NewDcimRackReservationsUpdateRequest(server string, id openapi_types.UUID, body DcimRackReservationsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackReservationsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackReservationsUpdateRequestWithBody generates requests for DcimRackReservationsUpdate with any type of body -func NewDcimRackReservationsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackReservationsNotesListRequest generates requests for DcimRackReservationsNotesList -func NewDcimRackReservationsNotesListRequest(server string, id openapi_types.UUID, params *DcimRackReservationsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackReservationsNotesCreateRequest calls the generic DcimRackReservationsNotesCreate builder with application/json body -func NewDcimRackReservationsNotesCreateRequest(server string, id openapi_types.UUID, body DcimRackReservationsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackReservationsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackReservationsNotesCreateRequestWithBody generates requests for DcimRackReservationsNotesCreate with any type of body -func NewDcimRackReservationsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-reservations/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackRolesBulkDestroyRequest calls the generic DcimRackRolesBulkDestroy builder with application/json body -func NewDcimRackRolesBulkDestroyRequest(server string, body DcimRackRolesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackRolesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackRolesBulkDestroyRequestWithBody generates requests for DcimRackRolesBulkDestroy with any type of body -func NewDcimRackRolesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackRolesListRequest generates requests for DcimRackRolesList -func NewDcimRackRolesListRequest(server string, params *DcimRackRolesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Color != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color", runtime.ParamLocationQuery, *params.Color); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ic", runtime.ParamLocationQuery, *params.ColorIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ie", runtime.ParamLocationQuery, *params.ColorIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__iew", runtime.ParamLocationQuery, *params.ColorIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ire", runtime.ParamLocationQuery, *params.ColorIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__isw", runtime.ParamLocationQuery, *params.ColorIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__n", runtime.ParamLocationQuery, *params.ColorN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nic", runtime.ParamLocationQuery, *params.ColorNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nie", runtime.ParamLocationQuery, *params.ColorNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__niew", runtime.ParamLocationQuery, *params.ColorNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nire", runtime.ParamLocationQuery, *params.ColorNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nisw", runtime.ParamLocationQuery, *params.ColorNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nre", runtime.ParamLocationQuery, *params.ColorNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__re", runtime.ParamLocationQuery, *params.ColorRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasRacks != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_racks", runtime.ParamLocationQuery, *params.HasRacks); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Racks != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "racks", runtime.ParamLocationQuery, *params.Racks); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RacksN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "racks__n", runtime.ParamLocationQuery, *params.RacksN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackRolesBulkPartialUpdateRequest calls the generic DcimRackRolesBulkPartialUpdate builder with application/json body -func NewDcimRackRolesBulkPartialUpdateRequest(server string, body DcimRackRolesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackRolesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackRolesBulkPartialUpdateRequestWithBody generates requests for DcimRackRolesBulkPartialUpdate with any type of body -func NewDcimRackRolesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackRolesCreateRequest calls the generic DcimRackRolesCreate builder with application/json body -func NewDcimRackRolesCreateRequest(server string, body DcimRackRolesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackRolesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackRolesCreateRequestWithBody generates requests for DcimRackRolesCreate with any type of body -func NewDcimRackRolesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackRolesBulkUpdateRequest calls the generic DcimRackRolesBulkUpdate builder with application/json body -func NewDcimRackRolesBulkUpdateRequest(server string, body DcimRackRolesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackRolesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRackRolesBulkUpdateRequestWithBody generates requests for DcimRackRolesBulkUpdate with any type of body -func NewDcimRackRolesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackRolesDestroyRequest generates requests for DcimRackRolesDestroy -func NewDcimRackRolesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackRolesRetrieveRequest generates requests for DcimRackRolesRetrieve -func NewDcimRackRolesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackRolesPartialUpdateRequest calls the generic DcimRackRolesPartialUpdate builder with application/json body -func NewDcimRackRolesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimRackRolesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackRolesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackRolesPartialUpdateRequestWithBody generates requests for DcimRackRolesPartialUpdate with any type of body -func NewDcimRackRolesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackRolesUpdateRequest calls the generic DcimRackRolesUpdate builder with application/json body -func NewDcimRackRolesUpdateRequest(server string, id openapi_types.UUID, body DcimRackRolesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackRolesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackRolesUpdateRequestWithBody generates requests for DcimRackRolesUpdate with any type of body -func NewDcimRackRolesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRackRolesNotesListRequest generates requests for DcimRackRolesNotesList -func NewDcimRackRolesNotesListRequest(server string, id openapi_types.UUID, params *DcimRackRolesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRackRolesNotesCreateRequest calls the generic DcimRackRolesNotesCreate builder with application/json body -func NewDcimRackRolesNotesCreateRequest(server string, id openapi_types.UUID, body DcimRackRolesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRackRolesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRackRolesNotesCreateRequestWithBody generates requests for DcimRackRolesNotesCreate with any type of body -func NewDcimRackRolesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rack-roles/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRacksBulkDestroyRequest calls the generic DcimRacksBulkDestroy builder with application/json body -func NewDcimRacksBulkDestroyRequest(server string, body DcimRacksBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRacksBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRacksBulkDestroyRequestWithBody generates requests for DcimRacksBulkDestroy with any type of body -func NewDcimRacksBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRacksListRequest generates requests for DcimRacksList -func NewDcimRacksListRequest(server string, params *DcimRacksListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AssetTag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag", runtime.ParamLocationQuery, *params.AssetTag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ic", runtime.ParamLocationQuery, *params.AssetTagIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ie", runtime.ParamLocationQuery, *params.AssetTagIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__iew", runtime.ParamLocationQuery, *params.AssetTagIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ire", runtime.ParamLocationQuery, *params.AssetTagIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__isw", runtime.ParamLocationQuery, *params.AssetTagIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__n", runtime.ParamLocationQuery, *params.AssetTagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nic", runtime.ParamLocationQuery, *params.AssetTagNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nie", runtime.ParamLocationQuery, *params.AssetTagNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__niew", runtime.ParamLocationQuery, *params.AssetTagNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nire", runtime.ParamLocationQuery, *params.AssetTagNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nisw", runtime.ParamLocationQuery, *params.AssetTagNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nre", runtime.ParamLocationQuery, *params.AssetTagNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__re", runtime.ParamLocationQuery, *params.AssetTagRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescUnits != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "desc_units", runtime.ParamLocationQuery, *params.DescUnits); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices", runtime.ParamLocationQuery, *params.Devices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices__n", runtime.ParamLocationQuery, *params.DevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id", runtime.ParamLocationQuery, *params.FacilityId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__ic", runtime.ParamLocationQuery, *params.FacilityIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__ie", runtime.ParamLocationQuery, *params.FacilityIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__iew", runtime.ParamLocationQuery, *params.FacilityIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__ire", runtime.ParamLocationQuery, *params.FacilityIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__isw", runtime.ParamLocationQuery, *params.FacilityIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__n", runtime.ParamLocationQuery, *params.FacilityIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nic", runtime.ParamLocationQuery, *params.FacilityIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nie", runtime.ParamLocationQuery, *params.FacilityIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__niew", runtime.ParamLocationQuery, *params.FacilityIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nire", runtime.ParamLocationQuery, *params.FacilityIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nisw", runtime.ParamLocationQuery, *params.FacilityIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nre", runtime.ParamLocationQuery, *params.FacilityIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__re", runtime.ParamLocationQuery, *params.FacilityIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_devices", runtime.ParamLocationQuery, *params.HasDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerFeeds != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_feeds", runtime.ParamLocationQuery, *params.HasPowerFeeds); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasReservations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_reservations", runtime.ParamLocationQuery, *params.HasReservations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth", runtime.ParamLocationQuery, *params.OuterDepth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__gt", runtime.ParamLocationQuery, *params.OuterDepthGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__gte", runtime.ParamLocationQuery, *params.OuterDepthGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__lt", runtime.ParamLocationQuery, *params.OuterDepthLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__lte", runtime.ParamLocationQuery, *params.OuterDepthLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__n", runtime.ParamLocationQuery, *params.OuterDepthN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterUnit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_unit", runtime.ParamLocationQuery, *params.OuterUnit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterUnitN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_unit__n", runtime.ParamLocationQuery, *params.OuterUnitN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width", runtime.ParamLocationQuery, *params.OuterWidth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__gt", runtime.ParamLocationQuery, *params.OuterWidthGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__gte", runtime.ParamLocationQuery, *params.OuterWidthGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__lt", runtime.ParamLocationQuery, *params.OuterWidthLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__lte", runtime.ParamLocationQuery, *params.OuterWidthLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__n", runtime.ParamLocationQuery, *params.OuterWidthN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerFeeds != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_feeds", runtime.ParamLocationQuery, *params.PowerFeeds); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerFeedsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_feeds__n", runtime.ParamLocationQuery, *params.PowerFeedsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Reservations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reservations", runtime.ParamLocationQuery, *params.Reservations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ReservationsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reservations__n", runtime.ParamLocationQuery, *params.ReservationsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id__n", runtime.ParamLocationQuery, *params.RoleIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Serial != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "serial", runtime.ParamLocationQuery, *params.Serial); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height", runtime.ParamLocationQuery, *params.UHeight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__gt", runtime.ParamLocationQuery, *params.UHeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__gte", runtime.ParamLocationQuery, *params.UHeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__lt", runtime.ParamLocationQuery, *params.UHeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__lte", runtime.ParamLocationQuery, *params.UHeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__n", runtime.ParamLocationQuery, *params.UHeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Width != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "width", runtime.ParamLocationQuery, *params.Width); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WidthN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "width__n", runtime.ParamLocationQuery, *params.WidthN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRacksBulkPartialUpdateRequest calls the generic DcimRacksBulkPartialUpdate builder with application/json body -func NewDcimRacksBulkPartialUpdateRequest(server string, body DcimRacksBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRacksBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRacksBulkPartialUpdateRequestWithBody generates requests for DcimRacksBulkPartialUpdate with any type of body -func NewDcimRacksBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRacksCreateRequest calls the generic DcimRacksCreate builder with application/json body -func NewDcimRacksCreateRequest(server string, body DcimRacksCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRacksCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRacksCreateRequestWithBody generates requests for DcimRacksCreate with any type of body -func NewDcimRacksCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRacksBulkUpdateRequest calls the generic DcimRacksBulkUpdate builder with application/json body -func NewDcimRacksBulkUpdateRequest(server string, body DcimRacksBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRacksBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRacksBulkUpdateRequestWithBody generates requests for DcimRacksBulkUpdate with any type of body -func NewDcimRacksBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRacksDestroyRequest generates requests for DcimRacksDestroy -func NewDcimRacksDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRacksRetrieveRequest generates requests for DcimRacksRetrieve -func NewDcimRacksRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRacksPartialUpdateRequest calls the generic DcimRacksPartialUpdate builder with application/json body -func NewDcimRacksPartialUpdateRequest(server string, id openapi_types.UUID, body DcimRacksPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRacksPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRacksPartialUpdateRequestWithBody generates requests for DcimRacksPartialUpdate with any type of body -func NewDcimRacksPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRacksUpdateRequest calls the generic DcimRacksUpdate builder with application/json body -func NewDcimRacksUpdateRequest(server string, id openapi_types.UUID, body DcimRacksUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRacksUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRacksUpdateRequestWithBody generates requests for DcimRacksUpdate with any type of body -func NewDcimRacksUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRacksElevationListRequest generates requests for DcimRacksElevationList -func NewDcimRacksElevationListRequest(server string, id openapi_types.UUID, params *DcimRacksElevationListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/%s/elevation/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AssetTag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag", runtime.ParamLocationQuery, *params.AssetTag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ic", runtime.ParamLocationQuery, *params.AssetTagIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ie", runtime.ParamLocationQuery, *params.AssetTagIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__iew", runtime.ParamLocationQuery, *params.AssetTagIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__ire", runtime.ParamLocationQuery, *params.AssetTagIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__isw", runtime.ParamLocationQuery, *params.AssetTagIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__n", runtime.ParamLocationQuery, *params.AssetTagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nic", runtime.ParamLocationQuery, *params.AssetTagNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nie", runtime.ParamLocationQuery, *params.AssetTagNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__niew", runtime.ParamLocationQuery, *params.AssetTagNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nire", runtime.ParamLocationQuery, *params.AssetTagNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nisw", runtime.ParamLocationQuery, *params.AssetTagNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__nre", runtime.ParamLocationQuery, *params.AssetTagNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssetTagRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asset_tag__re", runtime.ParamLocationQuery, *params.AssetTagRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescUnits != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "desc_units", runtime.ParamLocationQuery, *params.DescUnits); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices", runtime.ParamLocationQuery, *params.Devices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices__n", runtime.ParamLocationQuery, *params.DevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DisplayFullname != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "display_fullname", runtime.ParamLocationQuery, *params.DisplayFullname); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Exclude != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude", runtime.ParamLocationQuery, *params.Exclude); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExpandDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expand_devices", runtime.ParamLocationQuery, *params.ExpandDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Face != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "face", runtime.ParamLocationQuery, *params.Face); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id", runtime.ParamLocationQuery, *params.FacilityId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__ic", runtime.ParamLocationQuery, *params.FacilityIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__ie", runtime.ParamLocationQuery, *params.FacilityIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__iew", runtime.ParamLocationQuery, *params.FacilityIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__ire", runtime.ParamLocationQuery, *params.FacilityIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__isw", runtime.ParamLocationQuery, *params.FacilityIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__n", runtime.ParamLocationQuery, *params.FacilityIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nic", runtime.ParamLocationQuery, *params.FacilityIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nie", runtime.ParamLocationQuery, *params.FacilityIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__niew", runtime.ParamLocationQuery, *params.FacilityIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nire", runtime.ParamLocationQuery, *params.FacilityIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nisw", runtime.ParamLocationQuery, *params.FacilityIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__nre", runtime.ParamLocationQuery, *params.FacilityIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility_id__re", runtime.ParamLocationQuery, *params.FacilityIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_devices", runtime.ParamLocationQuery, *params.HasDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerFeeds != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_feeds", runtime.ParamLocationQuery, *params.HasPowerFeeds); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasReservations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_reservations", runtime.ParamLocationQuery, *params.HasReservations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IncludeImages != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_images", runtime.ParamLocationQuery, *params.IncludeImages); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LegendWidth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "legend_width", runtime.ParamLocationQuery, *params.LegendWidth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth", runtime.ParamLocationQuery, *params.OuterDepth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__gt", runtime.ParamLocationQuery, *params.OuterDepthGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__gte", runtime.ParamLocationQuery, *params.OuterDepthGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__lt", runtime.ParamLocationQuery, *params.OuterDepthLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__lte", runtime.ParamLocationQuery, *params.OuterDepthLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterDepthN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_depth__n", runtime.ParamLocationQuery, *params.OuterDepthN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterUnit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_unit", runtime.ParamLocationQuery, *params.OuterUnit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterUnitN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_unit__n", runtime.ParamLocationQuery, *params.OuterUnitN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width", runtime.ParamLocationQuery, *params.OuterWidth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__gt", runtime.ParamLocationQuery, *params.OuterWidthGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__gte", runtime.ParamLocationQuery, *params.OuterWidthGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__lt", runtime.ParamLocationQuery, *params.OuterWidthLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__lte", runtime.ParamLocationQuery, *params.OuterWidthLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OuterWidthN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "outer_width__n", runtime.ParamLocationQuery, *params.OuterWidthN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerFeeds != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_feeds", runtime.ParamLocationQuery, *params.PowerFeeds); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerFeedsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_feeds__n", runtime.ParamLocationQuery, *params.PowerFeedsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Render != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "render", runtime.ParamLocationQuery, *params.Render); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Reservations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reservations", runtime.ParamLocationQuery, *params.Reservations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ReservationsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reservations__n", runtime.ParamLocationQuery, *params.ReservationsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id__n", runtime.ParamLocationQuery, *params.RoleIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Serial != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "serial", runtime.ParamLocationQuery, *params.Serial); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height", runtime.ParamLocationQuery, *params.UHeight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__gt", runtime.ParamLocationQuery, *params.UHeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__gte", runtime.ParamLocationQuery, *params.UHeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__lt", runtime.ParamLocationQuery, *params.UHeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__lte", runtime.ParamLocationQuery, *params.UHeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UHeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "u_height__n", runtime.ParamLocationQuery, *params.UHeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UnitHeight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unit_height", runtime.ParamLocationQuery, *params.UnitHeight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UnitWidth != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unit_width", runtime.ParamLocationQuery, *params.UnitWidth); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Width != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "width", runtime.ParamLocationQuery, *params.Width); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WidthN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "width__n", runtime.ParamLocationQuery, *params.WidthN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRacksNotesListRequest generates requests for DcimRacksNotesList -func NewDcimRacksNotesListRequest(server string, id openapi_types.UUID, params *DcimRacksNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRacksNotesCreateRequest calls the generic DcimRacksNotesCreate builder with application/json body -func NewDcimRacksNotesCreateRequest(server string, id openapi_types.UUID, body DcimRacksNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRacksNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRacksNotesCreateRequestWithBody generates requests for DcimRacksNotesCreate with any type of body -func NewDcimRacksNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/racks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortTemplatesBulkDestroyRequest calls the generic DcimRearPortTemplatesBulkDestroy builder with application/json body -func NewDcimRearPortTemplatesBulkDestroyRequest(server string, body DcimRearPortTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortTemplatesBulkDestroyRequestWithBody generates requests for DcimRearPortTemplatesBulkDestroy with any type of body -func NewDcimRearPortTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortTemplatesListRequest generates requests for DcimRearPortTemplatesList -func NewDcimRearPortTemplatesListRequest(server string, params *DcimRearPortTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id", runtime.ParamLocationQuery, *params.DevicetypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicetypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devicetype_id__n", runtime.ParamLocationQuery, *params.DevicetypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FrontPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "front_port_templates", runtime.ParamLocationQuery, *params.FrontPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FrontPortTemplatesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "front_port_templates__n", runtime.ParamLocationQuery, *params.FrontPortTemplatesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasFrontPortTemplates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_front_port_templates", runtime.ParamLocationQuery, *params.HasFrontPortTemplates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Positions != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions", runtime.ParamLocationQuery, *params.Positions); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__gt", runtime.ParamLocationQuery, *params.PositionsGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__gte", runtime.ParamLocationQuery, *params.PositionsGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__lt", runtime.ParamLocationQuery, *params.PositionsLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__lte", runtime.ParamLocationQuery, *params.PositionsLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__n", runtime.ParamLocationQuery, *params.PositionsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortTemplatesBulkPartialUpdateRequest calls the generic DcimRearPortTemplatesBulkPartialUpdate builder with application/json body -func NewDcimRearPortTemplatesBulkPartialUpdateRequest(server string, body DcimRearPortTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortTemplatesBulkPartialUpdateRequestWithBody generates requests for DcimRearPortTemplatesBulkPartialUpdate with any type of body -func NewDcimRearPortTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortTemplatesCreateRequest calls the generic DcimRearPortTemplatesCreate builder with application/json body -func NewDcimRearPortTemplatesCreateRequest(server string, body DcimRearPortTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortTemplatesCreateRequestWithBody generates requests for DcimRearPortTemplatesCreate with any type of body -func NewDcimRearPortTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortTemplatesBulkUpdateRequest calls the generic DcimRearPortTemplatesBulkUpdate builder with application/json body -func NewDcimRearPortTemplatesBulkUpdateRequest(server string, body DcimRearPortTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortTemplatesBulkUpdateRequestWithBody generates requests for DcimRearPortTemplatesBulkUpdate with any type of body -func NewDcimRearPortTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortTemplatesDestroyRequest generates requests for DcimRearPortTemplatesDestroy -func NewDcimRearPortTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortTemplatesRetrieveRequest generates requests for DcimRearPortTemplatesRetrieve -func NewDcimRearPortTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortTemplatesPartialUpdateRequest calls the generic DcimRearPortTemplatesPartialUpdate builder with application/json body -func NewDcimRearPortTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimRearPortTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRearPortTemplatesPartialUpdateRequestWithBody generates requests for DcimRearPortTemplatesPartialUpdate with any type of body -func NewDcimRearPortTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortTemplatesUpdateRequest calls the generic DcimRearPortTemplatesUpdate builder with application/json body -func NewDcimRearPortTemplatesUpdateRequest(server string, id openapi_types.UUID, body DcimRearPortTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRearPortTemplatesUpdateRequestWithBody generates requests for DcimRearPortTemplatesUpdate with any type of body -func NewDcimRearPortTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortTemplatesNotesListRequest generates requests for DcimRearPortTemplatesNotesList -func NewDcimRearPortTemplatesNotesListRequest(server string, id openapi_types.UUID, params *DcimRearPortTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortTemplatesNotesCreateRequest calls the generic DcimRearPortTemplatesNotesCreate builder with application/json body -func NewDcimRearPortTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body DcimRearPortTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRearPortTemplatesNotesCreateRequestWithBody generates requests for DcimRearPortTemplatesNotesCreate with any type of body -func NewDcimRearPortTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-port-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsBulkDestroyRequest calls the generic DcimRearPortsBulkDestroy builder with application/json body -func NewDcimRearPortsBulkDestroyRequest(server string, body DcimRearPortsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortsBulkDestroyRequestWithBody generates requests for DcimRearPortsBulkDestroy with any type of body -func NewDcimRearPortsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsListRequest generates requests for DcimRearPortsList -func NewDcimRearPortsListRequest(server string, params *DcimRearPortsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cable != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable", runtime.ParamLocationQuery, *params.Cable); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CableN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cable__n", runtime.ParamLocationQuery, *params.CableN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cabled", runtime.ParamLocationQuery, *params.Cabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FrontPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "front_ports", runtime.ParamLocationQuery, *params.FrontPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FrontPortsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "front_ports__n", runtime.ParamLocationQuery, *params.FrontPortsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasFrontPorts != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_front_ports", runtime.ParamLocationQuery, *params.HasFrontPorts); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Label != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label", runtime.ParamLocationQuery, *params.Label); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ic", runtime.ParamLocationQuery, *params.LabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ie", runtime.ParamLocationQuery, *params.LabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__iew", runtime.ParamLocationQuery, *params.LabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__ire", runtime.ParamLocationQuery, *params.LabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__isw", runtime.ParamLocationQuery, *params.LabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__n", runtime.ParamLocationQuery, *params.LabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nic", runtime.ParamLocationQuery, *params.LabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nie", runtime.ParamLocationQuery, *params.LabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__niew", runtime.ParamLocationQuery, *params.LabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nire", runtime.ParamLocationQuery, *params.LabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nisw", runtime.ParamLocationQuery, *params.LabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__nre", runtime.ParamLocationQuery, *params.LabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "label__re", runtime.ParamLocationQuery, *params.LabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Positions != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions", runtime.ParamLocationQuery, *params.Positions); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__gt", runtime.ParamLocationQuery, *params.PositionsGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__gte", runtime.ParamLocationQuery, *params.PositionsGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__lt", runtime.ParamLocationQuery, *params.PositionsLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__lte", runtime.ParamLocationQuery, *params.PositionsLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PositionsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "positions__n", runtime.ParamLocationQuery, *params.PositionsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortsBulkPartialUpdateRequest calls the generic DcimRearPortsBulkPartialUpdate builder with application/json body -func NewDcimRearPortsBulkPartialUpdateRequest(server string, body DcimRearPortsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortsBulkPartialUpdateRequestWithBody generates requests for DcimRearPortsBulkPartialUpdate with any type of body -func NewDcimRearPortsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsCreateRequest calls the generic DcimRearPortsCreate builder with application/json body -func NewDcimRearPortsCreateRequest(server string, body DcimRearPortsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortsCreateRequestWithBody generates requests for DcimRearPortsCreate with any type of body -func NewDcimRearPortsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsBulkUpdateRequest calls the generic DcimRearPortsBulkUpdate builder with application/json body -func NewDcimRearPortsBulkUpdateRequest(server string, body DcimRearPortsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRearPortsBulkUpdateRequestWithBody generates requests for DcimRearPortsBulkUpdate with any type of body -func NewDcimRearPortsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsDestroyRequest generates requests for DcimRearPortsDestroy -func NewDcimRearPortsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortsRetrieveRequest generates requests for DcimRearPortsRetrieve -func NewDcimRearPortsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortsPartialUpdateRequest calls the generic DcimRearPortsPartialUpdate builder with application/json body -func NewDcimRearPortsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimRearPortsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRearPortsPartialUpdateRequestWithBody generates requests for DcimRearPortsPartialUpdate with any type of body -func NewDcimRearPortsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsUpdateRequest calls the generic DcimRearPortsUpdate builder with application/json body -func NewDcimRearPortsUpdateRequest(server string, id openapi_types.UUID, body DcimRearPortsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRearPortsUpdateRequestWithBody generates requests for DcimRearPortsUpdate with any type of body -func NewDcimRearPortsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsNotesListRequest generates requests for DcimRearPortsNotesList -func NewDcimRearPortsNotesListRequest(server string, id openapi_types.UUID, params *DcimRearPortsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRearPortsNotesCreateRequest calls the generic DcimRearPortsNotesCreate builder with application/json body -func NewDcimRearPortsNotesCreateRequest(server string, id openapi_types.UUID, body DcimRearPortsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRearPortsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRearPortsNotesCreateRequestWithBody generates requests for DcimRearPortsNotesCreate with any type of body -func NewDcimRearPortsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRearPortsPathsRetrieveRequest generates requests for DcimRearPortsPathsRetrieve -func NewDcimRearPortsPathsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/rear-ports/%s/paths/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRegionsBulkDestroyRequest calls the generic DcimRegionsBulkDestroy builder with application/json body -func NewDcimRegionsBulkDestroyRequest(server string, body DcimRegionsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRegionsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRegionsBulkDestroyRequestWithBody generates requests for DcimRegionsBulkDestroy with any type of body -func NewDcimRegionsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRegionsListRequest generates requests for DcimRegionsList -func NewDcimRegionsListRequest(server string, params *DcimRegionsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Children != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "children", runtime.ParamLocationQuery, *params.Children); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildrenN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "children__n", runtime.ParamLocationQuery, *params.ChildrenN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasChildren != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_children", runtime.ParamLocationQuery, *params.HasChildren); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasSites != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_sites", runtime.ParamLocationQuery, *params.HasSites); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parent != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent", runtime.ParamLocationQuery, *params.Parent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent__n", runtime.ParamLocationQuery, *params.ParentN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id", runtime.ParamLocationQuery, *params.ParentId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id__n", runtime.ParamLocationQuery, *params.ParentIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Sites != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sites", runtime.ParamLocationQuery, *params.Sites); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SitesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sites__n", runtime.ParamLocationQuery, *params.SitesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRegionsBulkPartialUpdateRequest calls the generic DcimRegionsBulkPartialUpdate builder with application/json body -func NewDcimRegionsBulkPartialUpdateRequest(server string, body DcimRegionsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRegionsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRegionsBulkPartialUpdateRequestWithBody generates requests for DcimRegionsBulkPartialUpdate with any type of body -func NewDcimRegionsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRegionsCreateRequest calls the generic DcimRegionsCreate builder with application/json body -func NewDcimRegionsCreateRequest(server string, body DcimRegionsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRegionsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRegionsCreateRequestWithBody generates requests for DcimRegionsCreate with any type of body -func NewDcimRegionsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRegionsBulkUpdateRequest calls the generic DcimRegionsBulkUpdate builder with application/json body -func NewDcimRegionsBulkUpdateRequest(server string, body DcimRegionsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRegionsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimRegionsBulkUpdateRequestWithBody generates requests for DcimRegionsBulkUpdate with any type of body -func NewDcimRegionsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRegionsDestroyRequest generates requests for DcimRegionsDestroy -func NewDcimRegionsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRegionsRetrieveRequest generates requests for DcimRegionsRetrieve -func NewDcimRegionsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRegionsPartialUpdateRequest calls the generic DcimRegionsPartialUpdate builder with application/json body -func NewDcimRegionsPartialUpdateRequest(server string, id openapi_types.UUID, body DcimRegionsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRegionsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRegionsPartialUpdateRequestWithBody generates requests for DcimRegionsPartialUpdate with any type of body -func NewDcimRegionsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRegionsUpdateRequest calls the generic DcimRegionsUpdate builder with application/json body -func NewDcimRegionsUpdateRequest(server string, id openapi_types.UUID, body DcimRegionsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRegionsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRegionsUpdateRequestWithBody generates requests for DcimRegionsUpdate with any type of body -func NewDcimRegionsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimRegionsNotesListRequest generates requests for DcimRegionsNotesList -func NewDcimRegionsNotesListRequest(server string, id openapi_types.UUID, params *DcimRegionsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimRegionsNotesCreateRequest calls the generic DcimRegionsNotesCreate builder with application/json body -func NewDcimRegionsNotesCreateRequest(server string, id openapi_types.UUID, body DcimRegionsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimRegionsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimRegionsNotesCreateRequestWithBody generates requests for DcimRegionsNotesCreate with any type of body -func NewDcimRegionsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/regions/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimSitesBulkDestroyRequest calls the generic DcimSitesBulkDestroy builder with application/json body -func NewDcimSitesBulkDestroyRequest(server string, body DcimSitesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimSitesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimSitesBulkDestroyRequestWithBody generates requests for DcimSitesBulkDestroy with any type of body -func NewDcimSitesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimSitesListRequest generates requests for DcimSitesList -func NewDcimSitesListRequest(server string, params *DcimSitesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Asn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn", runtime.ParamLocationQuery, *params.Asn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__gt", runtime.ParamLocationQuery, *params.AsnGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__gte", runtime.ParamLocationQuery, *params.AsnGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__lt", runtime.ParamLocationQuery, *params.AsnLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__lte", runtime.ParamLocationQuery, *params.AsnLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__n", runtime.ParamLocationQuery, *params.AsnN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CircuitTerminations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "circuit_terminations", runtime.ParamLocationQuery, *params.CircuitTerminations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CircuitTerminationsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "circuit_terminations__n", runtime.ParamLocationQuery, *params.CircuitTerminationsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Clusters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusters", runtime.ParamLocationQuery, *params.Clusters); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClustersN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusters__n", runtime.ParamLocationQuery, *params.ClustersN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmail != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email", runtime.ParamLocationQuery, *params.ContactEmail); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__ic", runtime.ParamLocationQuery, *params.ContactEmailIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__ie", runtime.ParamLocationQuery, *params.ContactEmailIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__iew", runtime.ParamLocationQuery, *params.ContactEmailIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__ire", runtime.ParamLocationQuery, *params.ContactEmailIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__isw", runtime.ParamLocationQuery, *params.ContactEmailIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__n", runtime.ParamLocationQuery, *params.ContactEmailN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__nic", runtime.ParamLocationQuery, *params.ContactEmailNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__nie", runtime.ParamLocationQuery, *params.ContactEmailNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__niew", runtime.ParamLocationQuery, *params.ContactEmailNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__nire", runtime.ParamLocationQuery, *params.ContactEmailNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__nisw", runtime.ParamLocationQuery, *params.ContactEmailNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__nre", runtime.ParamLocationQuery, *params.ContactEmailNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactEmailRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_email__re", runtime.ParamLocationQuery, *params.ContactEmailRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name", runtime.ParamLocationQuery, *params.ContactName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__ic", runtime.ParamLocationQuery, *params.ContactNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__ie", runtime.ParamLocationQuery, *params.ContactNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__iew", runtime.ParamLocationQuery, *params.ContactNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__ire", runtime.ParamLocationQuery, *params.ContactNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__isw", runtime.ParamLocationQuery, *params.ContactNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__n", runtime.ParamLocationQuery, *params.ContactNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__nic", runtime.ParamLocationQuery, *params.ContactNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__nie", runtime.ParamLocationQuery, *params.ContactNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__niew", runtime.ParamLocationQuery, *params.ContactNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__nire", runtime.ParamLocationQuery, *params.ContactNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__nisw", runtime.ParamLocationQuery, *params.ContactNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__nre", runtime.ParamLocationQuery, *params.ContactNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_name__re", runtime.ParamLocationQuery, *params.ContactNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhone != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone", runtime.ParamLocationQuery, *params.ContactPhone); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__ic", runtime.ParamLocationQuery, *params.ContactPhoneIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__ie", runtime.ParamLocationQuery, *params.ContactPhoneIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__iew", runtime.ParamLocationQuery, *params.ContactPhoneIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__ire", runtime.ParamLocationQuery, *params.ContactPhoneIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__isw", runtime.ParamLocationQuery, *params.ContactPhoneIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__n", runtime.ParamLocationQuery, *params.ContactPhoneN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__nic", runtime.ParamLocationQuery, *params.ContactPhoneNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__nie", runtime.ParamLocationQuery, *params.ContactPhoneNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__niew", runtime.ParamLocationQuery, *params.ContactPhoneNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__nire", runtime.ParamLocationQuery, *params.ContactPhoneNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__nisw", runtime.ParamLocationQuery, *params.ContactPhoneNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__nre", runtime.ParamLocationQuery, *params.ContactPhoneNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContactPhoneRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contact_phone__re", runtime.ParamLocationQuery, *params.ContactPhoneRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices", runtime.ParamLocationQuery, *params.Devices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices__n", runtime.ParamLocationQuery, *params.DevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Facility != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility", runtime.ParamLocationQuery, *params.Facility); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__ic", runtime.ParamLocationQuery, *params.FacilityIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__ie", runtime.ParamLocationQuery, *params.FacilityIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__iew", runtime.ParamLocationQuery, *params.FacilityIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__ire", runtime.ParamLocationQuery, *params.FacilityIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__isw", runtime.ParamLocationQuery, *params.FacilityIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__n", runtime.ParamLocationQuery, *params.FacilityN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__nic", runtime.ParamLocationQuery, *params.FacilityNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__nie", runtime.ParamLocationQuery, *params.FacilityNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__niew", runtime.ParamLocationQuery, *params.FacilityNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__nire", runtime.ParamLocationQuery, *params.FacilityNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__nisw", runtime.ParamLocationQuery, *params.FacilityNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__nre", runtime.ParamLocationQuery, *params.FacilityNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FacilityRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facility__re", runtime.ParamLocationQuery, *params.FacilityRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasCircuitTerminations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_circuit_terminations", runtime.ParamLocationQuery, *params.HasCircuitTerminations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasClusters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_clusters", runtime.ParamLocationQuery, *params.HasClusters); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_devices", runtime.ParamLocationQuery, *params.HasDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasLocations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_locations", runtime.ParamLocationQuery, *params.HasLocations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPowerPanels != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_power_panels", runtime.ParamLocationQuery, *params.HasPowerPanels); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPrefixes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_prefixes", runtime.ParamLocationQuery, *params.HasPrefixes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasRackGroups != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_rack_groups", runtime.ParamLocationQuery, *params.HasRackGroups); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasRacks != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_racks", runtime.ParamLocationQuery, *params.HasRacks); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasVlanGroups != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_vlan_groups", runtime.ParamLocationQuery, *params.HasVlanGroups); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasVlans != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_vlans", runtime.ParamLocationQuery, *params.HasVlans); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Latitude != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "latitude", runtime.ParamLocationQuery, *params.Latitude); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LatitudeGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "latitude__gt", runtime.ParamLocationQuery, *params.LatitudeGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LatitudeGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "latitude__gte", runtime.ParamLocationQuery, *params.LatitudeGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LatitudeLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "latitude__lt", runtime.ParamLocationQuery, *params.LatitudeLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LatitudeLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "latitude__lte", runtime.ParamLocationQuery, *params.LatitudeLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LatitudeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "latitude__n", runtime.ParamLocationQuery, *params.LatitudeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Locations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "locations", runtime.ParamLocationQuery, *params.Locations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "locations__n", runtime.ParamLocationQuery, *params.LocationsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Longitude != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "longitude", runtime.ParamLocationQuery, *params.Longitude); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LongitudeGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "longitude__gt", runtime.ParamLocationQuery, *params.LongitudeGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LongitudeGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "longitude__gte", runtime.ParamLocationQuery, *params.LongitudeGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LongitudeLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "longitude__lt", runtime.ParamLocationQuery, *params.LongitudeLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LongitudeLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "longitude__lte", runtime.ParamLocationQuery, *params.LongitudeLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LongitudeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "longitude__n", runtime.ParamLocationQuery, *params.LongitudeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address", runtime.ParamLocationQuery, *params.PhysicalAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__ic", runtime.ParamLocationQuery, *params.PhysicalAddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__ie", runtime.ParamLocationQuery, *params.PhysicalAddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__iew", runtime.ParamLocationQuery, *params.PhysicalAddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__ire", runtime.ParamLocationQuery, *params.PhysicalAddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__isw", runtime.ParamLocationQuery, *params.PhysicalAddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__n", runtime.ParamLocationQuery, *params.PhysicalAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nic", runtime.ParamLocationQuery, *params.PhysicalAddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nie", runtime.ParamLocationQuery, *params.PhysicalAddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__niew", runtime.ParamLocationQuery, *params.PhysicalAddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nire", runtime.ParamLocationQuery, *params.PhysicalAddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nisw", runtime.ParamLocationQuery, *params.PhysicalAddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nre", runtime.ParamLocationQuery, *params.PhysicalAddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__re", runtime.ParamLocationQuery, *params.PhysicalAddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanels != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panels", runtime.ParamLocationQuery, *params.PowerPanels); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PowerPanelsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "power_panels__n", runtime.ParamLocationQuery, *params.PowerPanelsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Prefixes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prefixes", runtime.ParamLocationQuery, *params.Prefixes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PrefixesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prefixes__n", runtime.ParamLocationQuery, *params.PrefixesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroups != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_groups", runtime.ParamLocationQuery, *params.RackGroups); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_groups__n", runtime.ParamLocationQuery, *params.RackGroupsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Racks != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "racks", runtime.ParamLocationQuery, *params.Racks); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RacksN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "racks__n", runtime.ParamLocationQuery, *params.RacksN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address", runtime.ParamLocationQuery, *params.ShippingAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__ic", runtime.ParamLocationQuery, *params.ShippingAddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__ie", runtime.ParamLocationQuery, *params.ShippingAddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__iew", runtime.ParamLocationQuery, *params.ShippingAddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__ire", runtime.ParamLocationQuery, *params.ShippingAddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__isw", runtime.ParamLocationQuery, *params.ShippingAddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__n", runtime.ParamLocationQuery, *params.ShippingAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__nic", runtime.ParamLocationQuery, *params.ShippingAddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__nie", runtime.ParamLocationQuery, *params.ShippingAddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__niew", runtime.ParamLocationQuery, *params.ShippingAddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__nire", runtime.ParamLocationQuery, *params.ShippingAddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__nisw", runtime.ParamLocationQuery, *params.ShippingAddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__nre", runtime.ParamLocationQuery, *params.ShippingAddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShippingAddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shipping_address__re", runtime.ParamLocationQuery, *params.ShippingAddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeZone != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_zone", runtime.ParamLocationQuery, *params.TimeZone); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeZoneN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_zone__n", runtime.ParamLocationQuery, *params.TimeZoneN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VlanGroups != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlan_groups", runtime.ParamLocationQuery, *params.VlanGroups); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VlanGroupsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlan_groups__n", runtime.ParamLocationQuery, *params.VlanGroupsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vlans != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlans", runtime.ParamLocationQuery, *params.Vlans); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VlansN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlans__n", runtime.ParamLocationQuery, *params.VlansN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimSitesBulkPartialUpdateRequest calls the generic DcimSitesBulkPartialUpdate builder with application/json body -func NewDcimSitesBulkPartialUpdateRequest(server string, body DcimSitesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimSitesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimSitesBulkPartialUpdateRequestWithBody generates requests for DcimSitesBulkPartialUpdate with any type of body -func NewDcimSitesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimSitesCreateRequest calls the generic DcimSitesCreate builder with application/json body -func NewDcimSitesCreateRequest(server string, body DcimSitesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimSitesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimSitesCreateRequestWithBody generates requests for DcimSitesCreate with any type of body -func NewDcimSitesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimSitesBulkUpdateRequest calls the generic DcimSitesBulkUpdate builder with application/json body -func NewDcimSitesBulkUpdateRequest(server string, body DcimSitesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimSitesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimSitesBulkUpdateRequestWithBody generates requests for DcimSitesBulkUpdate with any type of body -func NewDcimSitesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimSitesDestroyRequest generates requests for DcimSitesDestroy -func NewDcimSitesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimSitesRetrieveRequest generates requests for DcimSitesRetrieve -func NewDcimSitesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimSitesPartialUpdateRequest calls the generic DcimSitesPartialUpdate builder with application/json body -func NewDcimSitesPartialUpdateRequest(server string, id openapi_types.UUID, body DcimSitesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimSitesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimSitesPartialUpdateRequestWithBody generates requests for DcimSitesPartialUpdate with any type of body -func NewDcimSitesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimSitesUpdateRequest calls the generic DcimSitesUpdate builder with application/json body -func NewDcimSitesUpdateRequest(server string, id openapi_types.UUID, body DcimSitesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimSitesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimSitesUpdateRequestWithBody generates requests for DcimSitesUpdate with any type of body -func NewDcimSitesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimSitesNotesListRequest generates requests for DcimSitesNotesList -func NewDcimSitesNotesListRequest(server string, id openapi_types.UUID, params *DcimSitesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimSitesNotesCreateRequest calls the generic DcimSitesNotesCreate builder with application/json body -func NewDcimSitesNotesCreateRequest(server string, id openapi_types.UUID, body DcimSitesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimSitesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimSitesNotesCreateRequestWithBody generates requests for DcimSitesNotesCreate with any type of body -func NewDcimSitesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/sites/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimVirtualChassisBulkDestroyRequest calls the generic DcimVirtualChassisBulkDestroy builder with application/json body -func NewDcimVirtualChassisBulkDestroyRequest(server string, body DcimVirtualChassisBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimVirtualChassisBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimVirtualChassisBulkDestroyRequestWithBody generates requests for DcimVirtualChassisBulkDestroy with any type of body -func NewDcimVirtualChassisBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimVirtualChassisListRequest generates requests for DcimVirtualChassisList -func NewDcimVirtualChassisListRequest(server string, params *DcimVirtualChassisListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Domain != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain", runtime.ParamLocationQuery, *params.Domain); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__ic", runtime.ParamLocationQuery, *params.DomainIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__ie", runtime.ParamLocationQuery, *params.DomainIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__iew", runtime.ParamLocationQuery, *params.DomainIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__ire", runtime.ParamLocationQuery, *params.DomainIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__isw", runtime.ParamLocationQuery, *params.DomainIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__n", runtime.ParamLocationQuery, *params.DomainN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__nic", runtime.ParamLocationQuery, *params.DomainNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__nie", runtime.ParamLocationQuery, *params.DomainNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__niew", runtime.ParamLocationQuery, *params.DomainNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__nire", runtime.ParamLocationQuery, *params.DomainNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__nisw", runtime.ParamLocationQuery, *params.DomainNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__nre", runtime.ParamLocationQuery, *params.DomainNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DomainRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain__re", runtime.ParamLocationQuery, *params.DomainRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasMembers != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_members", runtime.ParamLocationQuery, *params.HasMembers); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Master != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MasterN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master__n", runtime.ParamLocationQuery, *params.MasterN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MasterId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master_id", runtime.ParamLocationQuery, *params.MasterId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MasterIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master_id__n", runtime.ParamLocationQuery, *params.MasterIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Members != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "members", runtime.ParamLocationQuery, *params.Members); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MembersN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "members__n", runtime.ParamLocationQuery, *params.MembersN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimVirtualChassisBulkPartialUpdateRequest calls the generic DcimVirtualChassisBulkPartialUpdate builder with application/json body -func NewDcimVirtualChassisBulkPartialUpdateRequest(server string, body DcimVirtualChassisBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimVirtualChassisBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimVirtualChassisBulkPartialUpdateRequestWithBody generates requests for DcimVirtualChassisBulkPartialUpdate with any type of body -func NewDcimVirtualChassisBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimVirtualChassisCreateRequest calls the generic DcimVirtualChassisCreate builder with application/json body -func NewDcimVirtualChassisCreateRequest(server string, body DcimVirtualChassisCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimVirtualChassisCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimVirtualChassisCreateRequestWithBody generates requests for DcimVirtualChassisCreate with any type of body -func NewDcimVirtualChassisCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimVirtualChassisBulkUpdateRequest calls the generic DcimVirtualChassisBulkUpdate builder with application/json body -func NewDcimVirtualChassisBulkUpdateRequest(server string, body DcimVirtualChassisBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimVirtualChassisBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewDcimVirtualChassisBulkUpdateRequestWithBody generates requests for DcimVirtualChassisBulkUpdate with any type of body -func NewDcimVirtualChassisBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimVirtualChassisDestroyRequest generates requests for DcimVirtualChassisDestroy -func NewDcimVirtualChassisDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimVirtualChassisRetrieveRequest generates requests for DcimVirtualChassisRetrieve -func NewDcimVirtualChassisRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimVirtualChassisPartialUpdateRequest calls the generic DcimVirtualChassisPartialUpdate builder with application/json body -func NewDcimVirtualChassisPartialUpdateRequest(server string, id openapi_types.UUID, body DcimVirtualChassisPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimVirtualChassisPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimVirtualChassisPartialUpdateRequestWithBody generates requests for DcimVirtualChassisPartialUpdate with any type of body -func NewDcimVirtualChassisPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimVirtualChassisUpdateRequest calls the generic DcimVirtualChassisUpdate builder with application/json body -func NewDcimVirtualChassisUpdateRequest(server string, id openapi_types.UUID, body DcimVirtualChassisUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimVirtualChassisUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimVirtualChassisUpdateRequestWithBody generates requests for DcimVirtualChassisUpdate with any type of body -func NewDcimVirtualChassisUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDcimVirtualChassisNotesListRequest generates requests for DcimVirtualChassisNotesList -func NewDcimVirtualChassisNotesListRequest(server string, id openapi_types.UUID, params *DcimVirtualChassisNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDcimVirtualChassisNotesCreateRequest calls the generic DcimVirtualChassisNotesCreate builder with application/json body -func NewDcimVirtualChassisNotesCreateRequest(server string, id openapi_types.UUID, body DcimVirtualChassisNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDcimVirtualChassisNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewDcimVirtualChassisNotesCreateRequestWithBody generates requests for DcimVirtualChassisNotesCreate with any type of body -func NewDcimVirtualChassisNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/dcim/virtual-chassis/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasComputedFieldsBulkDestroyRequest calls the generic ExtrasComputedFieldsBulkDestroy builder with application/json body -func NewExtrasComputedFieldsBulkDestroyRequest(server string, body ExtrasComputedFieldsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasComputedFieldsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasComputedFieldsBulkDestroyRequestWithBody generates requests for ExtrasComputedFieldsBulkDestroy with any type of body -func NewExtrasComputedFieldsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasComputedFieldsListRequest generates requests for ExtrasComputedFieldsList -func NewExtrasComputedFieldsListRequest(server string, params *ExtrasComputedFieldsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValue != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value", runtime.ParamLocationQuery, *params.FallbackValue); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__ic", runtime.ParamLocationQuery, *params.FallbackValueIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__ie", runtime.ParamLocationQuery, *params.FallbackValueIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__iew", runtime.ParamLocationQuery, *params.FallbackValueIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__ire", runtime.ParamLocationQuery, *params.FallbackValueIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__isw", runtime.ParamLocationQuery, *params.FallbackValueIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__n", runtime.ParamLocationQuery, *params.FallbackValueN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__nic", runtime.ParamLocationQuery, *params.FallbackValueNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__nie", runtime.ParamLocationQuery, *params.FallbackValueNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__niew", runtime.ParamLocationQuery, *params.FallbackValueNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__nire", runtime.ParamLocationQuery, *params.FallbackValueNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__nisw", runtime.ParamLocationQuery, *params.FallbackValueNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__nre", runtime.ParamLocationQuery, *params.FallbackValueNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FallbackValueRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fallback_value__re", runtime.ParamLocationQuery, *params.FallbackValueRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Template != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template", runtime.ParamLocationQuery, *params.Template); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__ic", runtime.ParamLocationQuery, *params.TemplateIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__ie", runtime.ParamLocationQuery, *params.TemplateIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__iew", runtime.ParamLocationQuery, *params.TemplateIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__ire", runtime.ParamLocationQuery, *params.TemplateIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__isw", runtime.ParamLocationQuery, *params.TemplateIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__n", runtime.ParamLocationQuery, *params.TemplateN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__nic", runtime.ParamLocationQuery, *params.TemplateNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__nie", runtime.ParamLocationQuery, *params.TemplateNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__niew", runtime.ParamLocationQuery, *params.TemplateNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__nire", runtime.ParamLocationQuery, *params.TemplateNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__nisw", runtime.ParamLocationQuery, *params.TemplateNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__nre", runtime.ParamLocationQuery, *params.TemplateNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TemplateRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "template__re", runtime.ParamLocationQuery, *params.TemplateRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Weight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight", runtime.ParamLocationQuery, *params.Weight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gt", runtime.ParamLocationQuery, *params.WeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gte", runtime.ParamLocationQuery, *params.WeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lt", runtime.ParamLocationQuery, *params.WeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lte", runtime.ParamLocationQuery, *params.WeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__n", runtime.ParamLocationQuery, *params.WeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasComputedFieldsBulkPartialUpdateRequest calls the generic ExtrasComputedFieldsBulkPartialUpdate builder with application/json body -func NewExtrasComputedFieldsBulkPartialUpdateRequest(server string, body ExtrasComputedFieldsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasComputedFieldsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasComputedFieldsBulkPartialUpdateRequestWithBody generates requests for ExtrasComputedFieldsBulkPartialUpdate with any type of body -func NewExtrasComputedFieldsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasComputedFieldsCreateRequest calls the generic ExtrasComputedFieldsCreate builder with application/json body -func NewExtrasComputedFieldsCreateRequest(server string, body ExtrasComputedFieldsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasComputedFieldsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasComputedFieldsCreateRequestWithBody generates requests for ExtrasComputedFieldsCreate with any type of body -func NewExtrasComputedFieldsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasComputedFieldsBulkUpdateRequest calls the generic ExtrasComputedFieldsBulkUpdate builder with application/json body -func NewExtrasComputedFieldsBulkUpdateRequest(server string, body ExtrasComputedFieldsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasComputedFieldsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasComputedFieldsBulkUpdateRequestWithBody generates requests for ExtrasComputedFieldsBulkUpdate with any type of body -func NewExtrasComputedFieldsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasComputedFieldsDestroyRequest generates requests for ExtrasComputedFieldsDestroy -func NewExtrasComputedFieldsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasComputedFieldsRetrieveRequest generates requests for ExtrasComputedFieldsRetrieve -func NewExtrasComputedFieldsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasComputedFieldsPartialUpdateRequest calls the generic ExtrasComputedFieldsPartialUpdate builder with application/json body -func NewExtrasComputedFieldsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasComputedFieldsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasComputedFieldsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasComputedFieldsPartialUpdateRequestWithBody generates requests for ExtrasComputedFieldsPartialUpdate with any type of body -func NewExtrasComputedFieldsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasComputedFieldsUpdateRequest calls the generic ExtrasComputedFieldsUpdate builder with application/json body -func NewExtrasComputedFieldsUpdateRequest(server string, id openapi_types.UUID, body ExtrasComputedFieldsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasComputedFieldsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasComputedFieldsUpdateRequestWithBody generates requests for ExtrasComputedFieldsUpdate with any type of body -func NewExtrasComputedFieldsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasComputedFieldsNotesListRequest generates requests for ExtrasComputedFieldsNotesList -func NewExtrasComputedFieldsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasComputedFieldsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasComputedFieldsNotesCreateRequest calls the generic ExtrasComputedFieldsNotesCreate builder with application/json body -func NewExtrasComputedFieldsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasComputedFieldsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasComputedFieldsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasComputedFieldsNotesCreateRequestWithBody generates requests for ExtrasComputedFieldsNotesCreate with any type of body -func NewExtrasComputedFieldsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/computed-fields/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextSchemasBulkDestroyRequest calls the generic ExtrasConfigContextSchemasBulkDestroy builder with application/json body -func NewExtrasConfigContextSchemasBulkDestroyRequest(server string, body ExtrasConfigContextSchemasBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextSchemasBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextSchemasBulkDestroyRequestWithBody generates requests for ExtrasConfigContextSchemasBulkDestroy with any type of body -func NewExtrasConfigContextSchemasBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextSchemasListRequest generates requests for ExtrasConfigContextSchemasList -func NewExtrasConfigContextSchemasListRequest(server string, params *ExtrasConfigContextSchemasListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_content_type", runtime.ParamLocationQuery, *params.OwnerContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_content_type__n", runtime.ParamLocationQuery, *params.OwnerContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextSchemasBulkPartialUpdateRequest calls the generic ExtrasConfigContextSchemasBulkPartialUpdate builder with application/json body -func NewExtrasConfigContextSchemasBulkPartialUpdateRequest(server string, body ExtrasConfigContextSchemasBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextSchemasBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextSchemasBulkPartialUpdateRequestWithBody generates requests for ExtrasConfigContextSchemasBulkPartialUpdate with any type of body -func NewExtrasConfigContextSchemasBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextSchemasCreateRequest calls the generic ExtrasConfigContextSchemasCreate builder with application/json body -func NewExtrasConfigContextSchemasCreateRequest(server string, body ExtrasConfigContextSchemasCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextSchemasCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextSchemasCreateRequestWithBody generates requests for ExtrasConfigContextSchemasCreate with any type of body -func NewExtrasConfigContextSchemasCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextSchemasBulkUpdateRequest calls the generic ExtrasConfigContextSchemasBulkUpdate builder with application/json body -func NewExtrasConfigContextSchemasBulkUpdateRequest(server string, body ExtrasConfigContextSchemasBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextSchemasBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextSchemasBulkUpdateRequestWithBody generates requests for ExtrasConfigContextSchemasBulkUpdate with any type of body -func NewExtrasConfigContextSchemasBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextSchemasDestroyRequest generates requests for ExtrasConfigContextSchemasDestroy -func NewExtrasConfigContextSchemasDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextSchemasRetrieveRequest generates requests for ExtrasConfigContextSchemasRetrieve -func NewExtrasConfigContextSchemasRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextSchemasPartialUpdateRequest calls the generic ExtrasConfigContextSchemasPartialUpdate builder with application/json body -func NewExtrasConfigContextSchemasPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasConfigContextSchemasPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextSchemasPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasConfigContextSchemasPartialUpdateRequestWithBody generates requests for ExtrasConfigContextSchemasPartialUpdate with any type of body -func NewExtrasConfigContextSchemasPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextSchemasUpdateRequest calls the generic ExtrasConfigContextSchemasUpdate builder with application/json body -func NewExtrasConfigContextSchemasUpdateRequest(server string, id openapi_types.UUID, body ExtrasConfigContextSchemasUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextSchemasUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasConfigContextSchemasUpdateRequestWithBody generates requests for ExtrasConfigContextSchemasUpdate with any type of body -func NewExtrasConfigContextSchemasUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextSchemasNotesListRequest generates requests for ExtrasConfigContextSchemasNotesList -func NewExtrasConfigContextSchemasNotesListRequest(server string, id openapi_types.UUID, params *ExtrasConfigContextSchemasNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextSchemasNotesCreateRequest calls the generic ExtrasConfigContextSchemasNotesCreate builder with application/json body -func NewExtrasConfigContextSchemasNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasConfigContextSchemasNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextSchemasNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasConfigContextSchemasNotesCreateRequestWithBody generates requests for ExtrasConfigContextSchemasNotesCreate with any type of body -func NewExtrasConfigContextSchemasNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-context-schemas/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextsBulkDestroyRequest calls the generic ExtrasConfigContextsBulkDestroy builder with application/json body -func NewExtrasConfigContextsBulkDestroyRequest(server string, body ExtrasConfigContextsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextsBulkDestroyRequestWithBody generates requests for ExtrasConfigContextsBulkDestroy with any type of body -func NewExtrasConfigContextsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextsListRequest generates requests for ExtrasConfigContextsList -func NewExtrasConfigContextsListRequest(server string, params *ExtrasConfigContextsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ClusterGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group", runtime.ParamLocationQuery, *params.ClusterGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group__n", runtime.ParamLocationQuery, *params.ClusterGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group_id", runtime.ParamLocationQuery, *params.ClusterGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group_id__n", runtime.ParamLocationQuery, *params.ClusterGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id", runtime.ParamLocationQuery, *params.ClusterId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id__n", runtime.ParamLocationQuery, *params.ClusterIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group", runtime.ParamLocationQuery, *params.DeviceRedundancyGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRedundancyGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_redundancy_group__n", runtime.ParamLocationQuery, *params.DeviceRedundancyGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id", runtime.ParamLocationQuery, *params.DeviceTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id__n", runtime.ParamLocationQuery, *params.DeviceTypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsActive != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_active", runtime.ParamLocationQuery, *params.IsActive); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location_id", runtime.ParamLocationQuery, *params.LocationId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location_id__n", runtime.ParamLocationQuery, *params.LocationIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_content_type", runtime.ParamLocationQuery, *params.OwnerContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_content_type__n", runtime.ParamLocationQuery, *params.OwnerContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id", runtime.ParamLocationQuery, *params.OwnerObjectId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__ic", runtime.ParamLocationQuery, *params.OwnerObjectIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__ie", runtime.ParamLocationQuery, *params.OwnerObjectIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__iew", runtime.ParamLocationQuery, *params.OwnerObjectIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__ire", runtime.ParamLocationQuery, *params.OwnerObjectIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__isw", runtime.ParamLocationQuery, *params.OwnerObjectIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__n", runtime.ParamLocationQuery, *params.OwnerObjectIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nic", runtime.ParamLocationQuery, *params.OwnerObjectIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nie", runtime.ParamLocationQuery, *params.OwnerObjectIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__niew", runtime.ParamLocationQuery, *params.OwnerObjectIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nire", runtime.ParamLocationQuery, *params.OwnerObjectIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nisw", runtime.ParamLocationQuery, *params.OwnerObjectIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nre", runtime.ParamLocationQuery, *params.OwnerObjectIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__re", runtime.ParamLocationQuery, *params.OwnerObjectIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform__n", runtime.ParamLocationQuery, *params.PlatformN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id__n", runtime.ParamLocationQuery, *params.PlatformIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id__n", runtime.ParamLocationQuery, *params.RoleIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Schema != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "schema", runtime.ParamLocationQuery, *params.Schema); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SchemaN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "schema__n", runtime.ParamLocationQuery, *params.SchemaN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextsBulkPartialUpdateRequest calls the generic ExtrasConfigContextsBulkPartialUpdate builder with application/json body -func NewExtrasConfigContextsBulkPartialUpdateRequest(server string, body ExtrasConfigContextsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextsBulkPartialUpdateRequestWithBody generates requests for ExtrasConfigContextsBulkPartialUpdate with any type of body -func NewExtrasConfigContextsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextsCreateRequest calls the generic ExtrasConfigContextsCreate builder with application/json body -func NewExtrasConfigContextsCreateRequest(server string, body ExtrasConfigContextsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextsCreateRequestWithBody generates requests for ExtrasConfigContextsCreate with any type of body -func NewExtrasConfigContextsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextsBulkUpdateRequest calls the generic ExtrasConfigContextsBulkUpdate builder with application/json body -func NewExtrasConfigContextsBulkUpdateRequest(server string, body ExtrasConfigContextsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasConfigContextsBulkUpdateRequestWithBody generates requests for ExtrasConfigContextsBulkUpdate with any type of body -func NewExtrasConfigContextsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextsDestroyRequest generates requests for ExtrasConfigContextsDestroy -func NewExtrasConfigContextsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextsRetrieveRequest generates requests for ExtrasConfigContextsRetrieve -func NewExtrasConfigContextsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextsPartialUpdateRequest calls the generic ExtrasConfigContextsPartialUpdate builder with application/json body -func NewExtrasConfigContextsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasConfigContextsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasConfigContextsPartialUpdateRequestWithBody generates requests for ExtrasConfigContextsPartialUpdate with any type of body -func NewExtrasConfigContextsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextsUpdateRequest calls the generic ExtrasConfigContextsUpdate builder with application/json body -func NewExtrasConfigContextsUpdateRequest(server string, id openapi_types.UUID, body ExtrasConfigContextsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasConfigContextsUpdateRequestWithBody generates requests for ExtrasConfigContextsUpdate with any type of body -func NewExtrasConfigContextsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasConfigContextsNotesListRequest generates requests for ExtrasConfigContextsNotesList -func NewExtrasConfigContextsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasConfigContextsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasConfigContextsNotesCreateRequest calls the generic ExtrasConfigContextsNotesCreate builder with application/json body -func NewExtrasConfigContextsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasConfigContextsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasConfigContextsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasConfigContextsNotesCreateRequestWithBody generates requests for ExtrasConfigContextsNotesCreate with any type of body -func NewExtrasConfigContextsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/config-contexts/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasContentTypesListRequest generates requests for ExtrasContentTypesList -func NewExtrasContentTypesListRequest(server string, params *ExtrasContentTypesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/content-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AppLabel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label", runtime.ParamLocationQuery, *params.AppLabel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__ic", runtime.ParamLocationQuery, *params.AppLabelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__ie", runtime.ParamLocationQuery, *params.AppLabelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__iew", runtime.ParamLocationQuery, *params.AppLabelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__ire", runtime.ParamLocationQuery, *params.AppLabelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__isw", runtime.ParamLocationQuery, *params.AppLabelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__n", runtime.ParamLocationQuery, *params.AppLabelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__nic", runtime.ParamLocationQuery, *params.AppLabelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__nie", runtime.ParamLocationQuery, *params.AppLabelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__niew", runtime.ParamLocationQuery, *params.AppLabelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__nire", runtime.ParamLocationQuery, *params.AppLabelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__nisw", runtime.ParamLocationQuery, *params.AppLabelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__nre", runtime.ParamLocationQuery, *params.AppLabelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AppLabelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app_label__re", runtime.ParamLocationQuery, *params.AppLabelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gt", runtime.ParamLocationQuery, *params.IdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gte", runtime.ParamLocationQuery, *params.IdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lt", runtime.ParamLocationQuery, *params.IdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lte", runtime.ParamLocationQuery, *params.IdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Model != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model", runtime.ParamLocationQuery, *params.Model); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__ic", runtime.ParamLocationQuery, *params.ModelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__ie", runtime.ParamLocationQuery, *params.ModelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__iew", runtime.ParamLocationQuery, *params.ModelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__ire", runtime.ParamLocationQuery, *params.ModelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__isw", runtime.ParamLocationQuery, *params.ModelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__n", runtime.ParamLocationQuery, *params.ModelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nic", runtime.ParamLocationQuery, *params.ModelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nie", runtime.ParamLocationQuery, *params.ModelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__niew", runtime.ParamLocationQuery, *params.ModelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nire", runtime.ParamLocationQuery, *params.ModelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nisw", runtime.ParamLocationQuery, *params.ModelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__nre", runtime.ParamLocationQuery, *params.ModelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "model__re", runtime.ParamLocationQuery, *params.ModelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasContentTypesRetrieveRequest generates requests for ExtrasContentTypesRetrieve -func NewExtrasContentTypesRetrieveRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/content-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldChoicesBulkDestroyRequest calls the generic ExtrasCustomFieldChoicesBulkDestroy builder with application/json body -func NewExtrasCustomFieldChoicesBulkDestroyRequest(server string, body ExtrasCustomFieldChoicesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldChoicesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldChoicesBulkDestroyRequestWithBody generates requests for ExtrasCustomFieldChoicesBulkDestroy with any type of body -func NewExtrasCustomFieldChoicesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldChoicesListRequest generates requests for ExtrasCustomFieldChoicesList -func NewExtrasCustomFieldChoicesListRequest(server string, params *ExtrasCustomFieldChoicesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Field != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field", runtime.ParamLocationQuery, *params.Field); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__n", runtime.ParamLocationQuery, *params.FieldN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field_id", runtime.ParamLocationQuery, *params.FieldId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field_id__n", runtime.ParamLocationQuery, *params.FieldIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Value != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value", runtime.ParamLocationQuery, *params.Value); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__ic", runtime.ParamLocationQuery, *params.ValueIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__ie", runtime.ParamLocationQuery, *params.ValueIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__iew", runtime.ParamLocationQuery, *params.ValueIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__ire", runtime.ParamLocationQuery, *params.ValueIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__isw", runtime.ParamLocationQuery, *params.ValueIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__n", runtime.ParamLocationQuery, *params.ValueN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nic", runtime.ParamLocationQuery, *params.ValueNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nie", runtime.ParamLocationQuery, *params.ValueNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__niew", runtime.ParamLocationQuery, *params.ValueNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nire", runtime.ParamLocationQuery, *params.ValueNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nisw", runtime.ParamLocationQuery, *params.ValueNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nre", runtime.ParamLocationQuery, *params.ValueNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__re", runtime.ParamLocationQuery, *params.ValueRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Weight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight", runtime.ParamLocationQuery, *params.Weight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gt", runtime.ParamLocationQuery, *params.WeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gte", runtime.ParamLocationQuery, *params.WeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lt", runtime.ParamLocationQuery, *params.WeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lte", runtime.ParamLocationQuery, *params.WeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__n", runtime.ParamLocationQuery, *params.WeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldChoicesBulkPartialUpdateRequest calls the generic ExtrasCustomFieldChoicesBulkPartialUpdate builder with application/json body -func NewExtrasCustomFieldChoicesBulkPartialUpdateRequest(server string, body ExtrasCustomFieldChoicesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldChoicesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldChoicesBulkPartialUpdateRequestWithBody generates requests for ExtrasCustomFieldChoicesBulkPartialUpdate with any type of body -func NewExtrasCustomFieldChoicesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldChoicesCreateRequest calls the generic ExtrasCustomFieldChoicesCreate builder with application/json body -func NewExtrasCustomFieldChoicesCreateRequest(server string, body ExtrasCustomFieldChoicesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldChoicesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldChoicesCreateRequestWithBody generates requests for ExtrasCustomFieldChoicesCreate with any type of body -func NewExtrasCustomFieldChoicesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldChoicesBulkUpdateRequest calls the generic ExtrasCustomFieldChoicesBulkUpdate builder with application/json body -func NewExtrasCustomFieldChoicesBulkUpdateRequest(server string, body ExtrasCustomFieldChoicesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldChoicesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldChoicesBulkUpdateRequestWithBody generates requests for ExtrasCustomFieldChoicesBulkUpdate with any type of body -func NewExtrasCustomFieldChoicesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldChoicesDestroyRequest generates requests for ExtrasCustomFieldChoicesDestroy -func NewExtrasCustomFieldChoicesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldChoicesRetrieveRequest generates requests for ExtrasCustomFieldChoicesRetrieve -func NewExtrasCustomFieldChoicesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldChoicesPartialUpdateRequest calls the generic ExtrasCustomFieldChoicesPartialUpdate builder with application/json body -func NewExtrasCustomFieldChoicesPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasCustomFieldChoicesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldChoicesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomFieldChoicesPartialUpdateRequestWithBody generates requests for ExtrasCustomFieldChoicesPartialUpdate with any type of body -func NewExtrasCustomFieldChoicesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldChoicesUpdateRequest calls the generic ExtrasCustomFieldChoicesUpdate builder with application/json body -func NewExtrasCustomFieldChoicesUpdateRequest(server string, id openapi_types.UUID, body ExtrasCustomFieldChoicesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldChoicesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomFieldChoicesUpdateRequestWithBody generates requests for ExtrasCustomFieldChoicesUpdate with any type of body -func NewExtrasCustomFieldChoicesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-field-choices/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldsBulkDestroyRequest calls the generic ExtrasCustomFieldsBulkDestroy builder with application/json body -func NewExtrasCustomFieldsBulkDestroyRequest(server string, body ExtrasCustomFieldsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldsBulkDestroyRequestWithBody generates requests for ExtrasCustomFieldsBulkDestroy with any type of body -func NewExtrasCustomFieldsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldsListRequest generates requests for ExtrasCustomFieldsList -func NewExtrasCustomFieldsListRequest(server string, params *ExtrasCustomFieldsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types", runtime.ParamLocationQuery, *params.ContentTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types__n", runtime.ParamLocationQuery, *params.ContentTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FilterLogic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_logic", runtime.ParamLocationQuery, *params.FilterLogic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FilterLogicN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_logic__n", runtime.ParamLocationQuery, *params.FilterLogicN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Required != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "required", runtime.ParamLocationQuery, *params.Required); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Weight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight", runtime.ParamLocationQuery, *params.Weight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gt", runtime.ParamLocationQuery, *params.WeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gte", runtime.ParamLocationQuery, *params.WeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lt", runtime.ParamLocationQuery, *params.WeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lte", runtime.ParamLocationQuery, *params.WeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__n", runtime.ParamLocationQuery, *params.WeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldsBulkPartialUpdateRequest calls the generic ExtrasCustomFieldsBulkPartialUpdate builder with application/json body -func NewExtrasCustomFieldsBulkPartialUpdateRequest(server string, body ExtrasCustomFieldsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldsBulkPartialUpdateRequestWithBody generates requests for ExtrasCustomFieldsBulkPartialUpdate with any type of body -func NewExtrasCustomFieldsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldsCreateRequest calls the generic ExtrasCustomFieldsCreate builder with application/json body -func NewExtrasCustomFieldsCreateRequest(server string, body ExtrasCustomFieldsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldsCreateRequestWithBody generates requests for ExtrasCustomFieldsCreate with any type of body -func NewExtrasCustomFieldsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldsBulkUpdateRequest calls the generic ExtrasCustomFieldsBulkUpdate builder with application/json body -func NewExtrasCustomFieldsBulkUpdateRequest(server string, body ExtrasCustomFieldsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomFieldsBulkUpdateRequestWithBody generates requests for ExtrasCustomFieldsBulkUpdate with any type of body -func NewExtrasCustomFieldsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldsDestroyRequest generates requests for ExtrasCustomFieldsDestroy -func NewExtrasCustomFieldsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldsRetrieveRequest generates requests for ExtrasCustomFieldsRetrieve -func NewExtrasCustomFieldsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldsPartialUpdateRequest calls the generic ExtrasCustomFieldsPartialUpdate builder with application/json body -func NewExtrasCustomFieldsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasCustomFieldsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomFieldsPartialUpdateRequestWithBody generates requests for ExtrasCustomFieldsPartialUpdate with any type of body -func NewExtrasCustomFieldsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldsUpdateRequest calls the generic ExtrasCustomFieldsUpdate builder with application/json body -func NewExtrasCustomFieldsUpdateRequest(server string, id openapi_types.UUID, body ExtrasCustomFieldsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomFieldsUpdateRequestWithBody generates requests for ExtrasCustomFieldsUpdate with any type of body -func NewExtrasCustomFieldsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomFieldsNotesListRequest generates requests for ExtrasCustomFieldsNotesList -func NewExtrasCustomFieldsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasCustomFieldsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomFieldsNotesCreateRequest calls the generic ExtrasCustomFieldsNotesCreate builder with application/json body -func NewExtrasCustomFieldsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasCustomFieldsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomFieldsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomFieldsNotesCreateRequestWithBody generates requests for ExtrasCustomFieldsNotesCreate with any type of body -func NewExtrasCustomFieldsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-fields/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomLinksBulkDestroyRequest calls the generic ExtrasCustomLinksBulkDestroy builder with application/json body -func NewExtrasCustomLinksBulkDestroyRequest(server string, body ExtrasCustomLinksBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomLinksBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomLinksBulkDestroyRequestWithBody generates requests for ExtrasCustomLinksBulkDestroy with any type of body -func NewExtrasCustomLinksBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomLinksListRequest generates requests for ExtrasCustomLinksList -func NewExtrasCustomLinksListRequest(server string, params *ExtrasCustomLinksListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ButtonClass != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "button_class", runtime.ParamLocationQuery, *params.ButtonClass); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ButtonClassN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "button_class__n", runtime.ParamLocationQuery, *params.ButtonClassN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name", runtime.ParamLocationQuery, *params.GroupName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__ic", runtime.ParamLocationQuery, *params.GroupNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__ie", runtime.ParamLocationQuery, *params.GroupNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__iew", runtime.ParamLocationQuery, *params.GroupNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__ire", runtime.ParamLocationQuery, *params.GroupNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__isw", runtime.ParamLocationQuery, *params.GroupNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__n", runtime.ParamLocationQuery, *params.GroupNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__nic", runtime.ParamLocationQuery, *params.GroupNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__nie", runtime.ParamLocationQuery, *params.GroupNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__niew", runtime.ParamLocationQuery, *params.GroupNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__nire", runtime.ParamLocationQuery, *params.GroupNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__nisw", runtime.ParamLocationQuery, *params.GroupNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__nre", runtime.ParamLocationQuery, *params.GroupNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_name__re", runtime.ParamLocationQuery, *params.GroupNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NewWindow != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "new_window", runtime.ParamLocationQuery, *params.NewWindow); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url", runtime.ParamLocationQuery, *params.TargetUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__ic", runtime.ParamLocationQuery, *params.TargetUrlIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__ie", runtime.ParamLocationQuery, *params.TargetUrlIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__iew", runtime.ParamLocationQuery, *params.TargetUrlIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__ire", runtime.ParamLocationQuery, *params.TargetUrlIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__isw", runtime.ParamLocationQuery, *params.TargetUrlIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__n", runtime.ParamLocationQuery, *params.TargetUrlN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__nic", runtime.ParamLocationQuery, *params.TargetUrlNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__nie", runtime.ParamLocationQuery, *params.TargetUrlNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__niew", runtime.ParamLocationQuery, *params.TargetUrlNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__nire", runtime.ParamLocationQuery, *params.TargetUrlNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__nisw", runtime.ParamLocationQuery, *params.TargetUrlNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__nre", runtime.ParamLocationQuery, *params.TargetUrlNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetUrlRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_url__re", runtime.ParamLocationQuery, *params.TargetUrlRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Text != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text", runtime.ParamLocationQuery, *params.Text); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__ic", runtime.ParamLocationQuery, *params.TextIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__ie", runtime.ParamLocationQuery, *params.TextIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__iew", runtime.ParamLocationQuery, *params.TextIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__ire", runtime.ParamLocationQuery, *params.TextIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__isw", runtime.ParamLocationQuery, *params.TextIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__n", runtime.ParamLocationQuery, *params.TextN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__nic", runtime.ParamLocationQuery, *params.TextNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__nie", runtime.ParamLocationQuery, *params.TextNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__niew", runtime.ParamLocationQuery, *params.TextNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__nire", runtime.ParamLocationQuery, *params.TextNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__nisw", runtime.ParamLocationQuery, *params.TextNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__nre", runtime.ParamLocationQuery, *params.TextNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TextRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "text__re", runtime.ParamLocationQuery, *params.TextRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Weight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight", runtime.ParamLocationQuery, *params.Weight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gt", runtime.ParamLocationQuery, *params.WeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gte", runtime.ParamLocationQuery, *params.WeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lt", runtime.ParamLocationQuery, *params.WeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lte", runtime.ParamLocationQuery, *params.WeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__n", runtime.ParamLocationQuery, *params.WeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomLinksBulkPartialUpdateRequest calls the generic ExtrasCustomLinksBulkPartialUpdate builder with application/json body -func NewExtrasCustomLinksBulkPartialUpdateRequest(server string, body ExtrasCustomLinksBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomLinksBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomLinksBulkPartialUpdateRequestWithBody generates requests for ExtrasCustomLinksBulkPartialUpdate with any type of body -func NewExtrasCustomLinksBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomLinksCreateRequest calls the generic ExtrasCustomLinksCreate builder with application/json body -func NewExtrasCustomLinksCreateRequest(server string, body ExtrasCustomLinksCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomLinksCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomLinksCreateRequestWithBody generates requests for ExtrasCustomLinksCreate with any type of body -func NewExtrasCustomLinksCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomLinksBulkUpdateRequest calls the generic ExtrasCustomLinksBulkUpdate builder with application/json body -func NewExtrasCustomLinksBulkUpdateRequest(server string, body ExtrasCustomLinksBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomLinksBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasCustomLinksBulkUpdateRequestWithBody generates requests for ExtrasCustomLinksBulkUpdate with any type of body -func NewExtrasCustomLinksBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomLinksDestroyRequest generates requests for ExtrasCustomLinksDestroy -func NewExtrasCustomLinksDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomLinksRetrieveRequest generates requests for ExtrasCustomLinksRetrieve -func NewExtrasCustomLinksRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomLinksPartialUpdateRequest calls the generic ExtrasCustomLinksPartialUpdate builder with application/json body -func NewExtrasCustomLinksPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasCustomLinksPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomLinksPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomLinksPartialUpdateRequestWithBody generates requests for ExtrasCustomLinksPartialUpdate with any type of body -func NewExtrasCustomLinksPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomLinksUpdateRequest calls the generic ExtrasCustomLinksUpdate builder with application/json body -func NewExtrasCustomLinksUpdateRequest(server string, id openapi_types.UUID, body ExtrasCustomLinksUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomLinksUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomLinksUpdateRequestWithBody generates requests for ExtrasCustomLinksUpdate with any type of body -func NewExtrasCustomLinksUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasCustomLinksNotesListRequest generates requests for ExtrasCustomLinksNotesList -func NewExtrasCustomLinksNotesListRequest(server string, id openapi_types.UUID, params *ExtrasCustomLinksNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasCustomLinksNotesCreateRequest calls the generic ExtrasCustomLinksNotesCreate builder with application/json body -func NewExtrasCustomLinksNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasCustomLinksNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasCustomLinksNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasCustomLinksNotesCreateRequestWithBody generates requests for ExtrasCustomLinksNotesCreate with any type of body -func NewExtrasCustomLinksNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/custom-links/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsBulkDestroyRequest calls the generic ExtrasDynamicGroupMembershipsBulkDestroy builder with application/json body -func NewExtrasDynamicGroupMembershipsBulkDestroyRequest(server string, body ExtrasDynamicGroupMembershipsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupMembershipsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupMembershipsBulkDestroyRequestWithBody generates requests for ExtrasDynamicGroupMembershipsBulkDestroy with any type of body -func NewExtrasDynamicGroupMembershipsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsListRequest generates requests for ExtrasDynamicGroupMembershipsList -func NewExtrasDynamicGroupMembershipsListRequest(server string, params *ExtrasDynamicGroupMembershipsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Operator != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "operator", runtime.ParamLocationQuery, *params.Operator); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OperatorN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "operator__n", runtime.ParamLocationQuery, *params.OperatorN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_group", runtime.ParamLocationQuery, *params.ParentGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_group__n", runtime.ParamLocationQuery, *params.ParentGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Weight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight", runtime.ParamLocationQuery, *params.Weight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gt", runtime.ParamLocationQuery, *params.WeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gte", runtime.ParamLocationQuery, *params.WeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lt", runtime.ParamLocationQuery, *params.WeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lte", runtime.ParamLocationQuery, *params.WeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__n", runtime.ParamLocationQuery, *params.WeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsBulkPartialUpdateRequest calls the generic ExtrasDynamicGroupMembershipsBulkPartialUpdate builder with application/json body -func NewExtrasDynamicGroupMembershipsBulkPartialUpdateRequest(server string, body ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupMembershipsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupMembershipsBulkPartialUpdateRequestWithBody generates requests for ExtrasDynamicGroupMembershipsBulkPartialUpdate with any type of body -func NewExtrasDynamicGroupMembershipsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsCreateRequest calls the generic ExtrasDynamicGroupMembershipsCreate builder with application/json body -func NewExtrasDynamicGroupMembershipsCreateRequest(server string, body ExtrasDynamicGroupMembershipsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupMembershipsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupMembershipsCreateRequestWithBody generates requests for ExtrasDynamicGroupMembershipsCreate with any type of body -func NewExtrasDynamicGroupMembershipsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsBulkUpdateRequest calls the generic ExtrasDynamicGroupMembershipsBulkUpdate builder with application/json body -func NewExtrasDynamicGroupMembershipsBulkUpdateRequest(server string, body ExtrasDynamicGroupMembershipsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupMembershipsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupMembershipsBulkUpdateRequestWithBody generates requests for ExtrasDynamicGroupMembershipsBulkUpdate with any type of body -func NewExtrasDynamicGroupMembershipsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsDestroyRequest generates requests for ExtrasDynamicGroupMembershipsDestroy -func NewExtrasDynamicGroupMembershipsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsRetrieveRequest generates requests for ExtrasDynamicGroupMembershipsRetrieve -func NewExtrasDynamicGroupMembershipsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsPartialUpdateRequest calls the generic ExtrasDynamicGroupMembershipsPartialUpdate builder with application/json body -func NewExtrasDynamicGroupMembershipsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupMembershipsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupMembershipsPartialUpdateRequestWithBody generates requests for ExtrasDynamicGroupMembershipsPartialUpdate with any type of body -func NewExtrasDynamicGroupMembershipsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupMembershipsUpdateRequest calls the generic ExtrasDynamicGroupMembershipsUpdate builder with application/json body -func NewExtrasDynamicGroupMembershipsUpdateRequest(server string, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupMembershipsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupMembershipsUpdateRequestWithBody generates requests for ExtrasDynamicGroupMembershipsUpdate with any type of body -func NewExtrasDynamicGroupMembershipsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-group-memberships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupsBulkDestroyRequest calls the generic ExtrasDynamicGroupsBulkDestroy builder with application/json body -func NewExtrasDynamicGroupsBulkDestroyRequest(server string, body ExtrasDynamicGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupsBulkDestroyRequestWithBody generates requests for ExtrasDynamicGroupsBulkDestroy with any type of body -func NewExtrasDynamicGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupsListRequest generates requests for ExtrasDynamicGroupsList -func NewExtrasDynamicGroupsListRequest(server string, params *ExtrasDynamicGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupsBulkPartialUpdateRequest calls the generic ExtrasDynamicGroupsBulkPartialUpdate builder with application/json body -func NewExtrasDynamicGroupsBulkPartialUpdateRequest(server string, body ExtrasDynamicGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupsBulkPartialUpdateRequestWithBody generates requests for ExtrasDynamicGroupsBulkPartialUpdate with any type of body -func NewExtrasDynamicGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupsCreateRequest calls the generic ExtrasDynamicGroupsCreate builder with application/json body -func NewExtrasDynamicGroupsCreateRequest(server string, body ExtrasDynamicGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupsCreateRequestWithBody generates requests for ExtrasDynamicGroupsCreate with any type of body -func NewExtrasDynamicGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupsBulkUpdateRequest calls the generic ExtrasDynamicGroupsBulkUpdate builder with application/json body -func NewExtrasDynamicGroupsBulkUpdateRequest(server string, body ExtrasDynamicGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupsBulkUpdateRequestWithBody generates requests for ExtrasDynamicGroupsBulkUpdate with any type of body -func NewExtrasDynamicGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupsDestroyRequest generates requests for ExtrasDynamicGroupsDestroy -func NewExtrasDynamicGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupsRetrieveRequest generates requests for ExtrasDynamicGroupsRetrieve -func NewExtrasDynamicGroupsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupsPartialUpdateRequest calls the generic ExtrasDynamicGroupsPartialUpdate builder with application/json body -func NewExtrasDynamicGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasDynamicGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupsPartialUpdateRequestWithBody generates requests for ExtrasDynamicGroupsPartialUpdate with any type of body -func NewExtrasDynamicGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupsUpdateRequest calls the generic ExtrasDynamicGroupsUpdate builder with application/json body -func NewExtrasDynamicGroupsUpdateRequest(server string, id openapi_types.UUID, body ExtrasDynamicGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupsUpdateRequestWithBody generates requests for ExtrasDynamicGroupsUpdate with any type of body -func NewExtrasDynamicGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasDynamicGroupsMembersRetrieveRequest generates requests for ExtrasDynamicGroupsMembersRetrieve -func NewExtrasDynamicGroupsMembersRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/%s/members/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupsNotesListRequest generates requests for ExtrasDynamicGroupsNotesList -func NewExtrasDynamicGroupsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasDynamicGroupsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasDynamicGroupsNotesCreateRequest calls the generic ExtrasDynamicGroupsNotesCreate builder with application/json body -func NewExtrasDynamicGroupsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasDynamicGroupsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasDynamicGroupsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasDynamicGroupsNotesCreateRequestWithBody generates requests for ExtrasDynamicGroupsNotesCreate with any type of body -func NewExtrasDynamicGroupsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/dynamic-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasExportTemplatesBulkDestroyRequest calls the generic ExtrasExportTemplatesBulkDestroy builder with application/json body -func NewExtrasExportTemplatesBulkDestroyRequest(server string, body ExtrasExportTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasExportTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasExportTemplatesBulkDestroyRequestWithBody generates requests for ExtrasExportTemplatesBulkDestroy with any type of body -func NewExtrasExportTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasExportTemplatesListRequest generates requests for ExtrasExportTemplatesList -func NewExtrasExportTemplatesListRequest(server string, params *ExtrasExportTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_content_type", runtime.ParamLocationQuery, *params.OwnerContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_content_type__n", runtime.ParamLocationQuery, *params.OwnerContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id", runtime.ParamLocationQuery, *params.OwnerObjectId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__ic", runtime.ParamLocationQuery, *params.OwnerObjectIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__ie", runtime.ParamLocationQuery, *params.OwnerObjectIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__iew", runtime.ParamLocationQuery, *params.OwnerObjectIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__ire", runtime.ParamLocationQuery, *params.OwnerObjectIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__isw", runtime.ParamLocationQuery, *params.OwnerObjectIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__n", runtime.ParamLocationQuery, *params.OwnerObjectIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nic", runtime.ParamLocationQuery, *params.OwnerObjectIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nie", runtime.ParamLocationQuery, *params.OwnerObjectIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__niew", runtime.ParamLocationQuery, *params.OwnerObjectIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nire", runtime.ParamLocationQuery, *params.OwnerObjectIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nisw", runtime.ParamLocationQuery, *params.OwnerObjectIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__nre", runtime.ParamLocationQuery, *params.OwnerObjectIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OwnerObjectIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_object_id__re", runtime.ParamLocationQuery, *params.OwnerObjectIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasExportTemplatesBulkPartialUpdateRequest calls the generic ExtrasExportTemplatesBulkPartialUpdate builder with application/json body -func NewExtrasExportTemplatesBulkPartialUpdateRequest(server string, body ExtrasExportTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasExportTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasExportTemplatesBulkPartialUpdateRequestWithBody generates requests for ExtrasExportTemplatesBulkPartialUpdate with any type of body -func NewExtrasExportTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasExportTemplatesCreateRequest calls the generic ExtrasExportTemplatesCreate builder with application/json body -func NewExtrasExportTemplatesCreateRequest(server string, body ExtrasExportTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasExportTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasExportTemplatesCreateRequestWithBody generates requests for ExtrasExportTemplatesCreate with any type of body -func NewExtrasExportTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasExportTemplatesBulkUpdateRequest calls the generic ExtrasExportTemplatesBulkUpdate builder with application/json body -func NewExtrasExportTemplatesBulkUpdateRequest(server string, body ExtrasExportTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasExportTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasExportTemplatesBulkUpdateRequestWithBody generates requests for ExtrasExportTemplatesBulkUpdate with any type of body -func NewExtrasExportTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasExportTemplatesDestroyRequest generates requests for ExtrasExportTemplatesDestroy -func NewExtrasExportTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasExportTemplatesRetrieveRequest generates requests for ExtrasExportTemplatesRetrieve -func NewExtrasExportTemplatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasExportTemplatesPartialUpdateRequest calls the generic ExtrasExportTemplatesPartialUpdate builder with application/json body -func NewExtrasExportTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasExportTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasExportTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasExportTemplatesPartialUpdateRequestWithBody generates requests for ExtrasExportTemplatesPartialUpdate with any type of body -func NewExtrasExportTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasExportTemplatesUpdateRequest calls the generic ExtrasExportTemplatesUpdate builder with application/json body -func NewExtrasExportTemplatesUpdateRequest(server string, id openapi_types.UUID, body ExtrasExportTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasExportTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasExportTemplatesUpdateRequestWithBody generates requests for ExtrasExportTemplatesUpdate with any type of body -func NewExtrasExportTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasExportTemplatesNotesListRequest generates requests for ExtrasExportTemplatesNotesList -func NewExtrasExportTemplatesNotesListRequest(server string, id openapi_types.UUID, params *ExtrasExportTemplatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasExportTemplatesNotesCreateRequest calls the generic ExtrasExportTemplatesNotesCreate builder with application/json body -func NewExtrasExportTemplatesNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasExportTemplatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasExportTemplatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasExportTemplatesNotesCreateRequestWithBody generates requests for ExtrasExportTemplatesNotesCreate with any type of body -func NewExtrasExportTemplatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/export-templates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesBulkDestroyRequest calls the generic ExtrasGitRepositoriesBulkDestroy builder with application/json body -func NewExtrasGitRepositoriesBulkDestroyRequest(server string, body ExtrasGitRepositoriesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesBulkDestroyRequestWithBody generates requests for ExtrasGitRepositoriesBulkDestroy with any type of body -func NewExtrasGitRepositoriesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesListRequest generates requests for ExtrasGitRepositoriesList -func NewExtrasGitRepositoriesListRequest(server string, params *ExtrasGitRepositoriesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Branch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch", runtime.ParamLocationQuery, *params.Branch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__ic", runtime.ParamLocationQuery, *params.BranchIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__ie", runtime.ParamLocationQuery, *params.BranchIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__iew", runtime.ParamLocationQuery, *params.BranchIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__ire", runtime.ParamLocationQuery, *params.BranchIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__isw", runtime.ParamLocationQuery, *params.BranchIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__n", runtime.ParamLocationQuery, *params.BranchN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__nic", runtime.ParamLocationQuery, *params.BranchNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__nie", runtime.ParamLocationQuery, *params.BranchNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__niew", runtime.ParamLocationQuery, *params.BranchNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__nire", runtime.ParamLocationQuery, *params.BranchNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__nisw", runtime.ParamLocationQuery, *params.BranchNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__nre", runtime.ParamLocationQuery, *params.BranchNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BranchRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch__re", runtime.ParamLocationQuery, *params.BranchRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProvidedContents != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provided_contents", runtime.ParamLocationQuery, *params.ProvidedContents); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url", runtime.ParamLocationQuery, *params.RemoteUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__ic", runtime.ParamLocationQuery, *params.RemoteUrlIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__ie", runtime.ParamLocationQuery, *params.RemoteUrlIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__iew", runtime.ParamLocationQuery, *params.RemoteUrlIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__ire", runtime.ParamLocationQuery, *params.RemoteUrlIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__isw", runtime.ParamLocationQuery, *params.RemoteUrlIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__n", runtime.ParamLocationQuery, *params.RemoteUrlN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__nic", runtime.ParamLocationQuery, *params.RemoteUrlNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__nie", runtime.ParamLocationQuery, *params.RemoteUrlNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__niew", runtime.ParamLocationQuery, *params.RemoteUrlNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__nire", runtime.ParamLocationQuery, *params.RemoteUrlNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__nisw", runtime.ParamLocationQuery, *params.RemoteUrlNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__nre", runtime.ParamLocationQuery, *params.RemoteUrlNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RemoteUrlRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote_url__re", runtime.ParamLocationQuery, *params.RemoteUrlRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group", runtime.ParamLocationQuery, *params.SecretsGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group__n", runtime.ParamLocationQuery, *params.SecretsGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group_id", runtime.ParamLocationQuery, *params.SecretsGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretsGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secrets_group_id__n", runtime.ParamLocationQuery, *params.SecretsGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGitRepositoriesBulkPartialUpdateRequest calls the generic ExtrasGitRepositoriesBulkPartialUpdate builder with application/json body -func NewExtrasGitRepositoriesBulkPartialUpdateRequest(server string, body ExtrasGitRepositoriesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesBulkPartialUpdateRequestWithBody generates requests for ExtrasGitRepositoriesBulkPartialUpdate with any type of body -func NewExtrasGitRepositoriesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesCreateRequest calls the generic ExtrasGitRepositoriesCreate builder with application/json body -func NewExtrasGitRepositoriesCreateRequest(server string, body ExtrasGitRepositoriesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesCreateRequestWithBody generates requests for ExtrasGitRepositoriesCreate with any type of body -func NewExtrasGitRepositoriesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesBulkUpdateRequest calls the generic ExtrasGitRepositoriesBulkUpdate builder with application/json body -func NewExtrasGitRepositoriesBulkUpdateRequest(server string, body ExtrasGitRepositoriesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesBulkUpdateRequestWithBody generates requests for ExtrasGitRepositoriesBulkUpdate with any type of body -func NewExtrasGitRepositoriesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesDestroyRequest generates requests for ExtrasGitRepositoriesDestroy -func NewExtrasGitRepositoriesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGitRepositoriesRetrieveRequest generates requests for ExtrasGitRepositoriesRetrieve -func NewExtrasGitRepositoriesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGitRepositoriesPartialUpdateRequest calls the generic ExtrasGitRepositoriesPartialUpdate builder with application/json body -func NewExtrasGitRepositoriesPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasGitRepositoriesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesPartialUpdateRequestWithBody generates requests for ExtrasGitRepositoriesPartialUpdate with any type of body -func NewExtrasGitRepositoriesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesUpdateRequest calls the generic ExtrasGitRepositoriesUpdate builder with application/json body -func NewExtrasGitRepositoriesUpdateRequest(server string, id openapi_types.UUID, body ExtrasGitRepositoriesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesUpdateRequestWithBody generates requests for ExtrasGitRepositoriesUpdate with any type of body -func NewExtrasGitRepositoriesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesNotesListRequest generates requests for ExtrasGitRepositoriesNotesList -func NewExtrasGitRepositoriesNotesListRequest(server string, id openapi_types.UUID, params *ExtrasGitRepositoriesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGitRepositoriesNotesCreateRequest calls the generic ExtrasGitRepositoriesNotesCreate builder with application/json body -func NewExtrasGitRepositoriesNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasGitRepositoriesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesNotesCreateRequestWithBody generates requests for ExtrasGitRepositoriesNotesCreate with any type of body -func NewExtrasGitRepositoriesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGitRepositoriesSyncCreateRequest calls the generic ExtrasGitRepositoriesSyncCreate builder with application/json body -func NewExtrasGitRepositoriesSyncCreateRequest(server string, id openapi_types.UUID, body ExtrasGitRepositoriesSyncCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGitRepositoriesSyncCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGitRepositoriesSyncCreateRequestWithBody generates requests for ExtrasGitRepositoriesSyncCreate with any type of body -func NewExtrasGitRepositoriesSyncCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/git-repositories/%s/sync/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesBulkDestroyRequest calls the generic ExtrasGraphqlQueriesBulkDestroy builder with application/json body -func NewExtrasGraphqlQueriesBulkDestroyRequest(server string, body ExtrasGraphqlQueriesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesBulkDestroyRequestWithBody generates requests for ExtrasGraphqlQueriesBulkDestroy with any type of body -func NewExtrasGraphqlQueriesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesListRequest generates requests for ExtrasGraphqlQueriesList -func NewExtrasGraphqlQueriesListRequest(server string, params *ExtrasGraphqlQueriesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGraphqlQueriesBulkPartialUpdateRequest calls the generic ExtrasGraphqlQueriesBulkPartialUpdate builder with application/json body -func NewExtrasGraphqlQueriesBulkPartialUpdateRequest(server string, body ExtrasGraphqlQueriesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesBulkPartialUpdateRequestWithBody generates requests for ExtrasGraphqlQueriesBulkPartialUpdate with any type of body -func NewExtrasGraphqlQueriesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesCreateRequest calls the generic ExtrasGraphqlQueriesCreate builder with application/json body -func NewExtrasGraphqlQueriesCreateRequest(server string, body ExtrasGraphqlQueriesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesCreateRequestWithBody generates requests for ExtrasGraphqlQueriesCreate with any type of body -func NewExtrasGraphqlQueriesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesBulkUpdateRequest calls the generic ExtrasGraphqlQueriesBulkUpdate builder with application/json body -func NewExtrasGraphqlQueriesBulkUpdateRequest(server string, body ExtrasGraphqlQueriesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesBulkUpdateRequestWithBody generates requests for ExtrasGraphqlQueriesBulkUpdate with any type of body -func NewExtrasGraphqlQueriesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesDestroyRequest generates requests for ExtrasGraphqlQueriesDestroy -func NewExtrasGraphqlQueriesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGraphqlQueriesRetrieveRequest generates requests for ExtrasGraphqlQueriesRetrieve -func NewExtrasGraphqlQueriesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGraphqlQueriesPartialUpdateRequest calls the generic ExtrasGraphqlQueriesPartialUpdate builder with application/json body -func NewExtrasGraphqlQueriesPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasGraphqlQueriesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesPartialUpdateRequestWithBody generates requests for ExtrasGraphqlQueriesPartialUpdate with any type of body -func NewExtrasGraphqlQueriesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesUpdateRequest calls the generic ExtrasGraphqlQueriesUpdate builder with application/json body -func NewExtrasGraphqlQueriesUpdateRequest(server string, id openapi_types.UUID, body ExtrasGraphqlQueriesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesUpdateRequestWithBody generates requests for ExtrasGraphqlQueriesUpdate with any type of body -func NewExtrasGraphqlQueriesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesNotesListRequest generates requests for ExtrasGraphqlQueriesNotesList -func NewExtrasGraphqlQueriesNotesListRequest(server string, id openapi_types.UUID, params *ExtrasGraphqlQueriesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasGraphqlQueriesNotesCreateRequest calls the generic ExtrasGraphqlQueriesNotesCreate builder with application/json body -func NewExtrasGraphqlQueriesNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasGraphqlQueriesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesNotesCreateRequestWithBody generates requests for ExtrasGraphqlQueriesNotesCreate with any type of body -func NewExtrasGraphqlQueriesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasGraphqlQueriesRunCreateRequest calls the generic ExtrasGraphqlQueriesRunCreate builder with application/json body -func NewExtrasGraphqlQueriesRunCreateRequest(server string, id openapi_types.UUID, body ExtrasGraphqlQueriesRunCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasGraphqlQueriesRunCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasGraphqlQueriesRunCreateRequestWithBody generates requests for ExtrasGraphqlQueriesRunCreate with any type of body -func NewExtrasGraphqlQueriesRunCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/graphql-queries/%s/run/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasImageAttachmentsBulkDestroyRequest calls the generic ExtrasImageAttachmentsBulkDestroy builder with application/json body -func NewExtrasImageAttachmentsBulkDestroyRequest(server string, body ExtrasImageAttachmentsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasImageAttachmentsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasImageAttachmentsBulkDestroyRequestWithBody generates requests for ExtrasImageAttachmentsBulkDestroy with any type of body -func NewExtrasImageAttachmentsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasImageAttachmentsListRequest generates requests for ExtrasImageAttachmentsList -func NewExtrasImageAttachmentsListRequest(server string, params *ExtrasImageAttachmentsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type_id", runtime.ParamLocationQuery, *params.ContentTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type_id__n", runtime.ParamLocationQuery, *params.ContentTypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id", runtime.ParamLocationQuery, *params.ObjectId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__ic", runtime.ParamLocationQuery, *params.ObjectIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__ie", runtime.ParamLocationQuery, *params.ObjectIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__iew", runtime.ParamLocationQuery, *params.ObjectIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__ire", runtime.ParamLocationQuery, *params.ObjectIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__isw", runtime.ParamLocationQuery, *params.ObjectIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__n", runtime.ParamLocationQuery, *params.ObjectIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__nic", runtime.ParamLocationQuery, *params.ObjectIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__nie", runtime.ParamLocationQuery, *params.ObjectIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__niew", runtime.ParamLocationQuery, *params.ObjectIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__nire", runtime.ParamLocationQuery, *params.ObjectIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__nisw", runtime.ParamLocationQuery, *params.ObjectIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__nre", runtime.ParamLocationQuery, *params.ObjectIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_id__re", runtime.ParamLocationQuery, *params.ObjectIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasImageAttachmentsBulkPartialUpdateRequest calls the generic ExtrasImageAttachmentsBulkPartialUpdate builder with application/json body -func NewExtrasImageAttachmentsBulkPartialUpdateRequest(server string, body ExtrasImageAttachmentsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasImageAttachmentsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasImageAttachmentsBulkPartialUpdateRequestWithBody generates requests for ExtrasImageAttachmentsBulkPartialUpdate with any type of body -func NewExtrasImageAttachmentsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasImageAttachmentsCreateRequest calls the generic ExtrasImageAttachmentsCreate builder with application/json body -func NewExtrasImageAttachmentsCreateRequest(server string, body ExtrasImageAttachmentsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasImageAttachmentsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasImageAttachmentsCreateRequestWithBody generates requests for ExtrasImageAttachmentsCreate with any type of body -func NewExtrasImageAttachmentsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasImageAttachmentsBulkUpdateRequest calls the generic ExtrasImageAttachmentsBulkUpdate builder with application/json body -func NewExtrasImageAttachmentsBulkUpdateRequest(server string, body ExtrasImageAttachmentsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasImageAttachmentsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasImageAttachmentsBulkUpdateRequestWithBody generates requests for ExtrasImageAttachmentsBulkUpdate with any type of body -func NewExtrasImageAttachmentsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasImageAttachmentsDestroyRequest generates requests for ExtrasImageAttachmentsDestroy -func NewExtrasImageAttachmentsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasImageAttachmentsRetrieveRequest generates requests for ExtrasImageAttachmentsRetrieve -func NewExtrasImageAttachmentsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasImageAttachmentsPartialUpdateRequest calls the generic ExtrasImageAttachmentsPartialUpdate builder with application/json body -func NewExtrasImageAttachmentsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasImageAttachmentsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasImageAttachmentsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasImageAttachmentsPartialUpdateRequestWithBody generates requests for ExtrasImageAttachmentsPartialUpdate with any type of body -func NewExtrasImageAttachmentsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasImageAttachmentsUpdateRequest calls the generic ExtrasImageAttachmentsUpdate builder with application/json body -func NewExtrasImageAttachmentsUpdateRequest(server string, id openapi_types.UUID, body ExtrasImageAttachmentsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasImageAttachmentsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasImageAttachmentsUpdateRequestWithBody generates requests for ExtrasImageAttachmentsUpdate with any type of body -func NewExtrasImageAttachmentsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/image-attachments/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobHooksBulkDestroyRequest calls the generic ExtrasJobHooksBulkDestroy builder with application/json body -func NewExtrasJobHooksBulkDestroyRequest(server string, body ExtrasJobHooksBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobHooksBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobHooksBulkDestroyRequestWithBody generates requests for ExtrasJobHooksBulkDestroy with any type of body -func NewExtrasJobHooksBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobHooksListRequest generates requests for ExtrasJobHooksList -func NewExtrasJobHooksListRequest(server string, params *ExtrasJobHooksListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types", runtime.ParamLocationQuery, *params.ContentTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types__n", runtime.ParamLocationQuery, *params.ContentTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Job != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job", runtime.ParamLocationQuery, *params.Job); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job__n", runtime.ParamLocationQuery, *params.JobN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeCreate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_create", runtime.ParamLocationQuery, *params.TypeCreate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeDelete != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_delete", runtime.ParamLocationQuery, *params.TypeDelete); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeUpdate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_update", runtime.ParamLocationQuery, *params.TypeUpdate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobHooksBulkPartialUpdateRequest calls the generic ExtrasJobHooksBulkPartialUpdate builder with application/json body -func NewExtrasJobHooksBulkPartialUpdateRequest(server string, body ExtrasJobHooksBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobHooksBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobHooksBulkPartialUpdateRequestWithBody generates requests for ExtrasJobHooksBulkPartialUpdate with any type of body -func NewExtrasJobHooksBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobHooksCreateRequest calls the generic ExtrasJobHooksCreate builder with application/json body -func NewExtrasJobHooksCreateRequest(server string, body ExtrasJobHooksCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobHooksCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobHooksCreateRequestWithBody generates requests for ExtrasJobHooksCreate with any type of body -func NewExtrasJobHooksCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobHooksBulkUpdateRequest calls the generic ExtrasJobHooksBulkUpdate builder with application/json body -func NewExtrasJobHooksBulkUpdateRequest(server string, body ExtrasJobHooksBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobHooksBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobHooksBulkUpdateRequestWithBody generates requests for ExtrasJobHooksBulkUpdate with any type of body -func NewExtrasJobHooksBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobHooksDestroyRequest generates requests for ExtrasJobHooksDestroy -func NewExtrasJobHooksDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobHooksRetrieveRequest generates requests for ExtrasJobHooksRetrieve -func NewExtrasJobHooksRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobHooksPartialUpdateRequest calls the generic ExtrasJobHooksPartialUpdate builder with application/json body -func NewExtrasJobHooksPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasJobHooksPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobHooksPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasJobHooksPartialUpdateRequestWithBody generates requests for ExtrasJobHooksPartialUpdate with any type of body -func NewExtrasJobHooksPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobHooksUpdateRequest calls the generic ExtrasJobHooksUpdate builder with application/json body -func NewExtrasJobHooksUpdateRequest(server string, id openapi_types.UUID, body ExtrasJobHooksUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobHooksUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasJobHooksUpdateRequestWithBody generates requests for ExtrasJobHooksUpdate with any type of body -func NewExtrasJobHooksUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobHooksNotesListRequest generates requests for ExtrasJobHooksNotesList -func NewExtrasJobHooksNotesListRequest(server string, id openapi_types.UUID, params *ExtrasJobHooksNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobHooksNotesCreateRequest calls the generic ExtrasJobHooksNotesCreate builder with application/json body -func NewExtrasJobHooksNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasJobHooksNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobHooksNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasJobHooksNotesCreateRequestWithBody generates requests for ExtrasJobHooksNotesCreate with any type of body -func NewExtrasJobHooksNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-hooks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobLogsListRequest generates requests for ExtrasJobLogsList -func NewExtrasJobLogsListRequest(server string, params *ExtrasJobLogsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-logs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AbsoluteUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url", runtime.ParamLocationQuery, *params.AbsoluteUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__ic", runtime.ParamLocationQuery, *params.AbsoluteUrlIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__ie", runtime.ParamLocationQuery, *params.AbsoluteUrlIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__iew", runtime.ParamLocationQuery, *params.AbsoluteUrlIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__ire", runtime.ParamLocationQuery, *params.AbsoluteUrlIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__isw", runtime.ParamLocationQuery, *params.AbsoluteUrlIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__n", runtime.ParamLocationQuery, *params.AbsoluteUrlN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__nic", runtime.ParamLocationQuery, *params.AbsoluteUrlNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__nie", runtime.ParamLocationQuery, *params.AbsoluteUrlNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__niew", runtime.ParamLocationQuery, *params.AbsoluteUrlNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__nire", runtime.ParamLocationQuery, *params.AbsoluteUrlNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__nisw", runtime.ParamLocationQuery, *params.AbsoluteUrlNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__nre", runtime.ParamLocationQuery, *params.AbsoluteUrlNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AbsoluteUrlRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "absolute_url__re", runtime.ParamLocationQuery, *params.AbsoluteUrlRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gt", runtime.ParamLocationQuery, *params.CreatedGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lt", runtime.ParamLocationQuery, *params.CreatedLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__n", runtime.ParamLocationQuery, *params.CreatedN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Grouping != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping", runtime.ParamLocationQuery, *params.Grouping); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__ic", runtime.ParamLocationQuery, *params.GroupingIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__ie", runtime.ParamLocationQuery, *params.GroupingIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__iew", runtime.ParamLocationQuery, *params.GroupingIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__ire", runtime.ParamLocationQuery, *params.GroupingIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__isw", runtime.ParamLocationQuery, *params.GroupingIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__n", runtime.ParamLocationQuery, *params.GroupingN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nic", runtime.ParamLocationQuery, *params.GroupingNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nie", runtime.ParamLocationQuery, *params.GroupingNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__niew", runtime.ParamLocationQuery, *params.GroupingNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nire", runtime.ParamLocationQuery, *params.GroupingNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nisw", runtime.ParamLocationQuery, *params.GroupingNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nre", runtime.ParamLocationQuery, *params.GroupingNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__re", runtime.ParamLocationQuery, *params.GroupingRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobResult != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_result", runtime.ParamLocationQuery, *params.JobResult); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobResultN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_result__n", runtime.ParamLocationQuery, *params.JobResultN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogLevel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_level", runtime.ParamLocationQuery, *params.LogLevel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogLevelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_level__n", runtime.ParamLocationQuery, *params.LogLevelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object", runtime.ParamLocationQuery, *params.LogObject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__ic", runtime.ParamLocationQuery, *params.LogObjectIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__ie", runtime.ParamLocationQuery, *params.LogObjectIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__iew", runtime.ParamLocationQuery, *params.LogObjectIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__ire", runtime.ParamLocationQuery, *params.LogObjectIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__isw", runtime.ParamLocationQuery, *params.LogObjectIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__n", runtime.ParamLocationQuery, *params.LogObjectN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__nic", runtime.ParamLocationQuery, *params.LogObjectNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__nie", runtime.ParamLocationQuery, *params.LogObjectNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__niew", runtime.ParamLocationQuery, *params.LogObjectNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__nire", runtime.ParamLocationQuery, *params.LogObjectNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__nisw", runtime.ParamLocationQuery, *params.LogObjectNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__nre", runtime.ParamLocationQuery, *params.LogObjectNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LogObjectRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log_object__re", runtime.ParamLocationQuery, *params.LogObjectRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Message != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message", runtime.ParamLocationQuery, *params.Message); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__ic", runtime.ParamLocationQuery, *params.MessageIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__ie", runtime.ParamLocationQuery, *params.MessageIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__iew", runtime.ParamLocationQuery, *params.MessageIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__ire", runtime.ParamLocationQuery, *params.MessageIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__isw", runtime.ParamLocationQuery, *params.MessageIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__n", runtime.ParamLocationQuery, *params.MessageN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__nic", runtime.ParamLocationQuery, *params.MessageNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__nie", runtime.ParamLocationQuery, *params.MessageNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__niew", runtime.ParamLocationQuery, *params.MessageNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__nire", runtime.ParamLocationQuery, *params.MessageNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__nisw", runtime.ParamLocationQuery, *params.MessageNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__nre", runtime.ParamLocationQuery, *params.MessageNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MessageRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message__re", runtime.ParamLocationQuery, *params.MessageRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobLogsRetrieveRequest generates requests for ExtrasJobLogsRetrieve -func NewExtrasJobLogsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-logs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobResultsBulkDestroyRequest calls the generic ExtrasJobResultsBulkDestroy builder with application/json body -func NewExtrasJobResultsBulkDestroyRequest(server string, body ExtrasJobResultsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobResultsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobResultsBulkDestroyRequestWithBody generates requests for ExtrasJobResultsBulkDestroy with any type of body -func NewExtrasJobResultsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-results/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobResultsListRequest generates requests for ExtrasJobResultsList -func NewExtrasJobResultsListRequest(server string, params *ExtrasJobResultsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-results/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Completed != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "completed", runtime.ParamLocationQuery, *params.Completed); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model", runtime.ParamLocationQuery, *params.JobModel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model__n", runtime.ParamLocationQuery, *params.JobModelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModelId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model_id", runtime.ParamLocationQuery, *params.JobModelId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModelIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model_id__n", runtime.ParamLocationQuery, *params.JobModelIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "obj_type", runtime.ParamLocationQuery, *params.ObjType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "obj_type__n", runtime.ParamLocationQuery, *params.ObjTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user__n", runtime.ParamLocationQuery, *params.UserN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobResultsDestroyRequest generates requests for ExtrasJobResultsDestroy -func NewExtrasJobResultsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-results/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobResultsRetrieveRequest generates requests for ExtrasJobResultsRetrieve -func NewExtrasJobResultsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-results/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobResultsLogsRetrieveRequest generates requests for ExtrasJobResultsLogsRetrieve -func NewExtrasJobResultsLogsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/job-results/%s/logs/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobsBulkDestroyRequest calls the generic ExtrasJobsBulkDestroy builder with application/json body -func NewExtrasJobsBulkDestroyRequest(server string, body ExtrasJobsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobsBulkDestroyRequestWithBody generates requests for ExtrasJobsBulkDestroy with any type of body -func NewExtrasJobsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsListRequest generates requests for ExtrasJobsList -func NewExtrasJobsListRequest(server string, params *ExtrasJobsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ApprovalRequired != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "approval_required", runtime.ParamLocationQuery, *params.ApprovalRequired); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ApprovalRequiredOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "approval_required_override", runtime.ParamLocationQuery, *params.ApprovalRequiredOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitDefault != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_default", runtime.ParamLocationQuery, *params.CommitDefault); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommitDefaultOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "commit_default_override", runtime.ParamLocationQuery, *params.CommitDefaultOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description_override", runtime.ParamLocationQuery, *params.DescriptionOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Grouping != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping", runtime.ParamLocationQuery, *params.Grouping); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__ic", runtime.ParamLocationQuery, *params.GroupingIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__ie", runtime.ParamLocationQuery, *params.GroupingIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__iew", runtime.ParamLocationQuery, *params.GroupingIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__ire", runtime.ParamLocationQuery, *params.GroupingIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__isw", runtime.ParamLocationQuery, *params.GroupingIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__n", runtime.ParamLocationQuery, *params.GroupingN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nic", runtime.ParamLocationQuery, *params.GroupingNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nie", runtime.ParamLocationQuery, *params.GroupingNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__niew", runtime.ParamLocationQuery, *params.GroupingNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nire", runtime.ParamLocationQuery, *params.GroupingNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nisw", runtime.ParamLocationQuery, *params.GroupingNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__nre", runtime.ParamLocationQuery, *params.GroupingNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping__re", runtime.ParamLocationQuery, *params.GroupingRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupingOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grouping_override", runtime.ParamLocationQuery, *params.GroupingOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasSensitiveVariables != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_sensitive_variables", runtime.ParamLocationQuery, *params.HasSensitiveVariables); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasSensitiveVariablesOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_sensitive_variables_override", runtime.ParamLocationQuery, *params.HasSensitiveVariablesOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Hidden != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hidden", runtime.ParamLocationQuery, *params.Hidden); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HiddenOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hidden_override", runtime.ParamLocationQuery, *params.HiddenOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Installed != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "installed", runtime.ParamLocationQuery, *params.Installed); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsJobHookReceiver != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_job_hook_receiver", runtime.ParamLocationQuery, *params.IsJobHookReceiver); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name", runtime.ParamLocationQuery, *params.JobClassName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__ic", runtime.ParamLocationQuery, *params.JobClassNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__ie", runtime.ParamLocationQuery, *params.JobClassNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__iew", runtime.ParamLocationQuery, *params.JobClassNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__ire", runtime.ParamLocationQuery, *params.JobClassNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__isw", runtime.ParamLocationQuery, *params.JobClassNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__n", runtime.ParamLocationQuery, *params.JobClassNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__nic", runtime.ParamLocationQuery, *params.JobClassNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__nie", runtime.ParamLocationQuery, *params.JobClassNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__niew", runtime.ParamLocationQuery, *params.JobClassNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__nire", runtime.ParamLocationQuery, *params.JobClassNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__nisw", runtime.ParamLocationQuery, *params.JobClassNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__nre", runtime.ParamLocationQuery, *params.JobClassNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobClassNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_class_name__re", runtime.ParamLocationQuery, *params.JobClassNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name", runtime.ParamLocationQuery, *params.ModuleName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__ic", runtime.ParamLocationQuery, *params.ModuleNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__ie", runtime.ParamLocationQuery, *params.ModuleNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__iew", runtime.ParamLocationQuery, *params.ModuleNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__ire", runtime.ParamLocationQuery, *params.ModuleNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__isw", runtime.ParamLocationQuery, *params.ModuleNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__n", runtime.ParamLocationQuery, *params.ModuleNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__nic", runtime.ParamLocationQuery, *params.ModuleNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__nie", runtime.ParamLocationQuery, *params.ModuleNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__niew", runtime.ParamLocationQuery, *params.ModuleNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__nire", runtime.ParamLocationQuery, *params.ModuleNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__nisw", runtime.ParamLocationQuery, *params.ModuleNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__nre", runtime.ParamLocationQuery, *params.ModuleNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModuleNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "module_name__re", runtime.ParamLocationQuery, *params.ModuleNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name_override", runtime.ParamLocationQuery, *params.NameOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ReadOnly != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "read_only", runtime.ParamLocationQuery, *params.ReadOnly); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ReadOnlyOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "read_only_override", runtime.ParamLocationQuery, *params.ReadOnlyOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftTimeLimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "soft_time_limit", runtime.ParamLocationQuery, *params.SoftTimeLimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftTimeLimitGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "soft_time_limit__gt", runtime.ParamLocationQuery, *params.SoftTimeLimitGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftTimeLimitGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "soft_time_limit__gte", runtime.ParamLocationQuery, *params.SoftTimeLimitGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftTimeLimitLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "soft_time_limit__lt", runtime.ParamLocationQuery, *params.SoftTimeLimitLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftTimeLimitLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "soft_time_limit__lte", runtime.ParamLocationQuery, *params.SoftTimeLimitLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftTimeLimitN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "soft_time_limit__n", runtime.ParamLocationQuery, *params.SoftTimeLimitN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftTimeLimitOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "soft_time_limit_override", runtime.ParamLocationQuery, *params.SoftTimeLimitOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Source != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, *params.Source); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source__n", runtime.ParamLocationQuery, *params.SourceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_limit", runtime.ParamLocationQuery, *params.TimeLimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLimitGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_limit__gt", runtime.ParamLocationQuery, *params.TimeLimitGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLimitGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_limit__gte", runtime.ParamLocationQuery, *params.TimeLimitGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLimitLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_limit__lt", runtime.ParamLocationQuery, *params.TimeLimitLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLimitLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_limit__lte", runtime.ParamLocationQuery, *params.TimeLimitLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLimitN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_limit__n", runtime.ParamLocationQuery, *params.TimeLimitN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLimitOverride != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time_limit_override", runtime.ParamLocationQuery, *params.TimeLimitOverride); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobsBulkPartialUpdateRequest calls the generic ExtrasJobsBulkPartialUpdate builder with application/json body -func NewExtrasJobsBulkPartialUpdateRequest(server string, body ExtrasJobsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobsBulkPartialUpdateRequestWithBody generates requests for ExtrasJobsBulkPartialUpdate with any type of body -func NewExtrasJobsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsBulkUpdateRequest calls the generic ExtrasJobsBulkUpdate builder with application/json body -func NewExtrasJobsBulkUpdateRequest(server string, body ExtrasJobsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasJobsBulkUpdateRequestWithBody generates requests for ExtrasJobsBulkUpdate with any type of body -func NewExtrasJobsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsReadDeprecatedRequest generates requests for ExtrasJobsReadDeprecated -func NewExtrasJobsReadDeprecatedRequest(server string, classPath string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "class_path", runtime.ParamLocationPath, classPath) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobsRunDeprecatedRequest calls the generic ExtrasJobsRunDeprecated builder with application/json body -func NewExtrasJobsRunDeprecatedRequest(server string, classPath string, body ExtrasJobsRunDeprecatedJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsRunDeprecatedRequestWithBody(server, classPath, "application/json", bodyReader) -} - -// NewExtrasJobsRunDeprecatedRequestWithBody generates requests for ExtrasJobsRunDeprecated with any type of body -func NewExtrasJobsRunDeprecatedRequestWithBody(server string, classPath string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "class_path", runtime.ParamLocationPath, classPath) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/run/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsDestroyRequest generates requests for ExtrasJobsDestroy -func NewExtrasJobsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobsRetrieveRequest generates requests for ExtrasJobsRetrieve -func NewExtrasJobsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobsPartialUpdateRequest calls the generic ExtrasJobsPartialUpdate builder with application/json body -func NewExtrasJobsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasJobsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasJobsPartialUpdateRequestWithBody generates requests for ExtrasJobsPartialUpdate with any type of body -func NewExtrasJobsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsUpdateRequest calls the generic ExtrasJobsUpdate builder with application/json body -func NewExtrasJobsUpdateRequest(server string, id openapi_types.UUID, body ExtrasJobsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasJobsUpdateRequestWithBody generates requests for ExtrasJobsUpdate with any type of body -func NewExtrasJobsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsNotesListRequest generates requests for ExtrasJobsNotesList -func NewExtrasJobsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasJobsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasJobsNotesCreateRequest calls the generic ExtrasJobsNotesCreate builder with application/json body -func NewExtrasJobsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasJobsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasJobsNotesCreateRequestWithBody generates requests for ExtrasJobsNotesCreate with any type of body -func NewExtrasJobsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsRunCreateRequest calls the generic ExtrasJobsRunCreate builder with application/json body -func NewExtrasJobsRunCreateRequest(server string, id openapi_types.UUID, body ExtrasJobsRunCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasJobsRunCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasJobsRunCreateRequestWithBody generates requests for ExtrasJobsRunCreate with any type of body -func NewExtrasJobsRunCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/run/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasJobsVariablesListRequest generates requests for ExtrasJobsVariablesList -func NewExtrasJobsVariablesListRequest(server string, id openapi_types.UUID, params *ExtrasJobsVariablesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/jobs/%s/variables/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasNotesBulkDestroyRequest calls the generic ExtrasNotesBulkDestroy builder with application/json body -func NewExtrasNotesBulkDestroyRequest(server string, body ExtrasNotesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasNotesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasNotesBulkDestroyRequestWithBody generates requests for ExtrasNotesBulkDestroy with any type of body -func NewExtrasNotesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasNotesListRequest generates requests for ExtrasNotesList -func NewExtrasNotesListRequest(server string, params *ExtrasNotesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AssignedObjectId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id", runtime.ParamLocationQuery, *params.AssignedObjectId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__ic", runtime.ParamLocationQuery, *params.AssignedObjectIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__ie", runtime.ParamLocationQuery, *params.AssignedObjectIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__iew", runtime.ParamLocationQuery, *params.AssignedObjectIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__ire", runtime.ParamLocationQuery, *params.AssignedObjectIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__isw", runtime.ParamLocationQuery, *params.AssignedObjectIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__n", runtime.ParamLocationQuery, *params.AssignedObjectIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__nic", runtime.ParamLocationQuery, *params.AssignedObjectIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__nie", runtime.ParamLocationQuery, *params.AssignedObjectIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__niew", runtime.ParamLocationQuery, *params.AssignedObjectIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__nire", runtime.ParamLocationQuery, *params.AssignedObjectIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__nisw", runtime.ParamLocationQuery, *params.AssignedObjectIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__nre", runtime.ParamLocationQuery, *params.AssignedObjectIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_id__re", runtime.ParamLocationQuery, *params.AssignedObjectIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_type", runtime.ParamLocationQuery, *params.AssignedObjectType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_type__n", runtime.ParamLocationQuery, *params.AssignedObjectTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_type_id", runtime.ParamLocationQuery, *params.AssignedObjectTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedObjectTypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_object_type_id__n", runtime.ParamLocationQuery, *params.AssignedObjectTypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Note != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note", runtime.ParamLocationQuery, *params.Note); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__ic", runtime.ParamLocationQuery, *params.NoteIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__ie", runtime.ParamLocationQuery, *params.NoteIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__iew", runtime.ParamLocationQuery, *params.NoteIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__ire", runtime.ParamLocationQuery, *params.NoteIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__isw", runtime.ParamLocationQuery, *params.NoteIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__n", runtime.ParamLocationQuery, *params.NoteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__nic", runtime.ParamLocationQuery, *params.NoteNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__nie", runtime.ParamLocationQuery, *params.NoteNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__niew", runtime.ParamLocationQuery, *params.NoteNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__nire", runtime.ParamLocationQuery, *params.NoteNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__nisw", runtime.ParamLocationQuery, *params.NoteNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__nre", runtime.ParamLocationQuery, *params.NoteNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NoteRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "note__re", runtime.ParamLocationQuery, *params.NoteRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user__n", runtime.ParamLocationQuery, *params.UserN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name", runtime.ParamLocationQuery, *params.UserName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__ic", runtime.ParamLocationQuery, *params.UserNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__ie", runtime.ParamLocationQuery, *params.UserNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__iew", runtime.ParamLocationQuery, *params.UserNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__ire", runtime.ParamLocationQuery, *params.UserNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__isw", runtime.ParamLocationQuery, *params.UserNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__n", runtime.ParamLocationQuery, *params.UserNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nic", runtime.ParamLocationQuery, *params.UserNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nie", runtime.ParamLocationQuery, *params.UserNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__niew", runtime.ParamLocationQuery, *params.UserNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nire", runtime.ParamLocationQuery, *params.UserNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nisw", runtime.ParamLocationQuery, *params.UserNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nre", runtime.ParamLocationQuery, *params.UserNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__re", runtime.ParamLocationQuery, *params.UserNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasNotesBulkPartialUpdateRequest calls the generic ExtrasNotesBulkPartialUpdate builder with application/json body -func NewExtrasNotesBulkPartialUpdateRequest(server string, body ExtrasNotesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasNotesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasNotesBulkPartialUpdateRequestWithBody generates requests for ExtrasNotesBulkPartialUpdate with any type of body -func NewExtrasNotesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasNotesCreateRequest calls the generic ExtrasNotesCreate builder with application/json body -func NewExtrasNotesCreateRequest(server string, body ExtrasNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasNotesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasNotesCreateRequestWithBody generates requests for ExtrasNotesCreate with any type of body -func NewExtrasNotesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasNotesBulkUpdateRequest calls the generic ExtrasNotesBulkUpdate builder with application/json body -func NewExtrasNotesBulkUpdateRequest(server string, body ExtrasNotesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasNotesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasNotesBulkUpdateRequestWithBody generates requests for ExtrasNotesBulkUpdate with any type of body -func NewExtrasNotesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasNotesDestroyRequest generates requests for ExtrasNotesDestroy -func NewExtrasNotesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasNotesRetrieveRequest generates requests for ExtrasNotesRetrieve -func NewExtrasNotesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasNotesPartialUpdateRequest calls the generic ExtrasNotesPartialUpdate builder with application/json body -func NewExtrasNotesPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasNotesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasNotesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasNotesPartialUpdateRequestWithBody generates requests for ExtrasNotesPartialUpdate with any type of body -func NewExtrasNotesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasNotesUpdateRequest calls the generic ExtrasNotesUpdate builder with application/json body -func NewExtrasNotesUpdateRequest(server string, id openapi_types.UUID, body ExtrasNotesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasNotesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasNotesUpdateRequestWithBody generates requests for ExtrasNotesUpdate with any type of body -func NewExtrasNotesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/notes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasObjectChangesListRequest generates requests for ExtrasObjectChangesList -func NewExtrasObjectChangesListRequest(server string, params *ExtrasObjectChangesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/object-changes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Action != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "action", runtime.ParamLocationQuery, *params.Action); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ActionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "action__n", runtime.ParamLocationQuery, *params.ActionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id", runtime.ParamLocationQuery, *params.ChangedObjectId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__ic", runtime.ParamLocationQuery, *params.ChangedObjectIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__ie", runtime.ParamLocationQuery, *params.ChangedObjectIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__iew", runtime.ParamLocationQuery, *params.ChangedObjectIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__ire", runtime.ParamLocationQuery, *params.ChangedObjectIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__isw", runtime.ParamLocationQuery, *params.ChangedObjectIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__n", runtime.ParamLocationQuery, *params.ChangedObjectIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__nic", runtime.ParamLocationQuery, *params.ChangedObjectIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__nie", runtime.ParamLocationQuery, *params.ChangedObjectIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__niew", runtime.ParamLocationQuery, *params.ChangedObjectIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__nire", runtime.ParamLocationQuery, *params.ChangedObjectIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__nisw", runtime.ParamLocationQuery, *params.ChangedObjectIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__nre", runtime.ParamLocationQuery, *params.ChangedObjectIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_id__re", runtime.ParamLocationQuery, *params.ChangedObjectIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_type", runtime.ParamLocationQuery, *params.ChangedObjectType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_type__n", runtime.ParamLocationQuery, *params.ChangedObjectTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_type_id", runtime.ParamLocationQuery, *params.ChangedObjectTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChangedObjectTypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "changed_object_type_id__n", runtime.ParamLocationQuery, *params.ChangedObjectTypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectRepr != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr", runtime.ParamLocationQuery, *params.ObjectRepr); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__ic", runtime.ParamLocationQuery, *params.ObjectReprIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__ie", runtime.ParamLocationQuery, *params.ObjectReprIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__iew", runtime.ParamLocationQuery, *params.ObjectReprIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__ire", runtime.ParamLocationQuery, *params.ObjectReprIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__isw", runtime.ParamLocationQuery, *params.ObjectReprIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__n", runtime.ParamLocationQuery, *params.ObjectReprN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__nic", runtime.ParamLocationQuery, *params.ObjectReprNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__nie", runtime.ParamLocationQuery, *params.ObjectReprNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__niew", runtime.ParamLocationQuery, *params.ObjectReprNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__nire", runtime.ParamLocationQuery, *params.ObjectReprNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__nisw", runtime.ParamLocationQuery, *params.ObjectReprNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__nre", runtime.ParamLocationQuery, *params.ObjectReprNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectReprRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_repr__re", runtime.ParamLocationQuery, *params.ObjectReprRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id", runtime.ParamLocationQuery, *params.RequestId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ic", runtime.ParamLocationQuery, *params.RequestIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ie", runtime.ParamLocationQuery, *params.RequestIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__iew", runtime.ParamLocationQuery, *params.RequestIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ire", runtime.ParamLocationQuery, *params.RequestIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__isw", runtime.ParamLocationQuery, *params.RequestIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__n", runtime.ParamLocationQuery, *params.RequestIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nic", runtime.ParamLocationQuery, *params.RequestIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nie", runtime.ParamLocationQuery, *params.RequestIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__niew", runtime.ParamLocationQuery, *params.RequestIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nire", runtime.ParamLocationQuery, *params.RequestIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nisw", runtime.ParamLocationQuery, *params.RequestIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nre", runtime.ParamLocationQuery, *params.RequestIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__re", runtime.ParamLocationQuery, *params.RequestIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Time != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time", runtime.ParamLocationQuery, *params.Time); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time__gt", runtime.ParamLocationQuery, *params.TimeGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time__gte", runtime.ParamLocationQuery, *params.TimeGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time__lt", runtime.ParamLocationQuery, *params.TimeLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time__lte", runtime.ParamLocationQuery, *params.TimeLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TimeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time__n", runtime.ParamLocationQuery, *params.TimeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user__n", runtime.ParamLocationQuery, *params.UserN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_id", runtime.ParamLocationQuery, *params.UserId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_id__n", runtime.ParamLocationQuery, *params.UserIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name", runtime.ParamLocationQuery, *params.UserName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__ic", runtime.ParamLocationQuery, *params.UserNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__ie", runtime.ParamLocationQuery, *params.UserNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__iew", runtime.ParamLocationQuery, *params.UserNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__ire", runtime.ParamLocationQuery, *params.UserNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__isw", runtime.ParamLocationQuery, *params.UserNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__n", runtime.ParamLocationQuery, *params.UserNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nic", runtime.ParamLocationQuery, *params.UserNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nie", runtime.ParamLocationQuery, *params.UserNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__niew", runtime.ParamLocationQuery, *params.UserNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nire", runtime.ParamLocationQuery, *params.UserNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nisw", runtime.ParamLocationQuery, *params.UserNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__nre", runtime.ParamLocationQuery, *params.UserNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_name__re", runtime.ParamLocationQuery, *params.UserNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasObjectChangesRetrieveRequest generates requests for ExtrasObjectChangesRetrieve -func NewExtrasObjectChangesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/object-changes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipAssociationsBulkDestroyRequest calls the generic ExtrasRelationshipAssociationsBulkDestroy builder with application/json body -func NewExtrasRelationshipAssociationsBulkDestroyRequest(server string, body ExtrasRelationshipAssociationsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipAssociationsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipAssociationsBulkDestroyRequestWithBody generates requests for ExtrasRelationshipAssociationsBulkDestroy with any type of body -func NewExtrasRelationshipAssociationsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipAssociationsListRequest generates requests for ExtrasRelationshipAssociationsList -func NewExtrasRelationshipAssociationsListRequest(server string, params *ExtrasRelationshipAssociationsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.DestinationId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id", runtime.ParamLocationQuery, *params.DestinationId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__ic", runtime.ParamLocationQuery, *params.DestinationIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__ie", runtime.ParamLocationQuery, *params.DestinationIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__iew", runtime.ParamLocationQuery, *params.DestinationIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__ire", runtime.ParamLocationQuery, *params.DestinationIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__isw", runtime.ParamLocationQuery, *params.DestinationIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__n", runtime.ParamLocationQuery, *params.DestinationIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__nic", runtime.ParamLocationQuery, *params.DestinationIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__nie", runtime.ParamLocationQuery, *params.DestinationIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__niew", runtime.ParamLocationQuery, *params.DestinationIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__nire", runtime.ParamLocationQuery, *params.DestinationIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__nisw", runtime.ParamLocationQuery, *params.DestinationIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__nre", runtime.ParamLocationQuery, *params.DestinationIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_id__re", runtime.ParamLocationQuery, *params.DestinationIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_type", runtime.ParamLocationQuery, *params.DestinationType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_type__n", runtime.ParamLocationQuery, *params.DestinationTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PeerId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "peer_id", runtime.ParamLocationQuery, *params.PeerId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Relationship != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "relationship", runtime.ParamLocationQuery, *params.Relationship); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RelationshipN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "relationship__n", runtime.ParamLocationQuery, *params.RelationshipN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id", runtime.ParamLocationQuery, *params.SourceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__ic", runtime.ParamLocationQuery, *params.SourceIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__ie", runtime.ParamLocationQuery, *params.SourceIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__iew", runtime.ParamLocationQuery, *params.SourceIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__ire", runtime.ParamLocationQuery, *params.SourceIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__isw", runtime.ParamLocationQuery, *params.SourceIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__n", runtime.ParamLocationQuery, *params.SourceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__nic", runtime.ParamLocationQuery, *params.SourceIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__nie", runtime.ParamLocationQuery, *params.SourceIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__niew", runtime.ParamLocationQuery, *params.SourceIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__nire", runtime.ParamLocationQuery, *params.SourceIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__nisw", runtime.ParamLocationQuery, *params.SourceIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__nre", runtime.ParamLocationQuery, *params.SourceIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_id__re", runtime.ParamLocationQuery, *params.SourceIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_type", runtime.ParamLocationQuery, *params.SourceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_type__n", runtime.ParamLocationQuery, *params.SourceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipAssociationsBulkPartialUpdateRequest calls the generic ExtrasRelationshipAssociationsBulkPartialUpdate builder with application/json body -func NewExtrasRelationshipAssociationsBulkPartialUpdateRequest(server string, body ExtrasRelationshipAssociationsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipAssociationsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipAssociationsBulkPartialUpdateRequestWithBody generates requests for ExtrasRelationshipAssociationsBulkPartialUpdate with any type of body -func NewExtrasRelationshipAssociationsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipAssociationsCreateRequest calls the generic ExtrasRelationshipAssociationsCreate builder with application/json body -func NewExtrasRelationshipAssociationsCreateRequest(server string, body ExtrasRelationshipAssociationsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipAssociationsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipAssociationsCreateRequestWithBody generates requests for ExtrasRelationshipAssociationsCreate with any type of body -func NewExtrasRelationshipAssociationsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipAssociationsBulkUpdateRequest calls the generic ExtrasRelationshipAssociationsBulkUpdate builder with application/json body -func NewExtrasRelationshipAssociationsBulkUpdateRequest(server string, body ExtrasRelationshipAssociationsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipAssociationsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipAssociationsBulkUpdateRequestWithBody generates requests for ExtrasRelationshipAssociationsBulkUpdate with any type of body -func NewExtrasRelationshipAssociationsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipAssociationsDestroyRequest generates requests for ExtrasRelationshipAssociationsDestroy -func NewExtrasRelationshipAssociationsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipAssociationsRetrieveRequest generates requests for ExtrasRelationshipAssociationsRetrieve -func NewExtrasRelationshipAssociationsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipAssociationsPartialUpdateRequest calls the generic ExtrasRelationshipAssociationsPartialUpdate builder with application/json body -func NewExtrasRelationshipAssociationsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasRelationshipAssociationsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipAssociationsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasRelationshipAssociationsPartialUpdateRequestWithBody generates requests for ExtrasRelationshipAssociationsPartialUpdate with any type of body -func NewExtrasRelationshipAssociationsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipAssociationsUpdateRequest calls the generic ExtrasRelationshipAssociationsUpdate builder with application/json body -func NewExtrasRelationshipAssociationsUpdateRequest(server string, id openapi_types.UUID, body ExtrasRelationshipAssociationsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipAssociationsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasRelationshipAssociationsUpdateRequestWithBody generates requests for ExtrasRelationshipAssociationsUpdate with any type of body -func NewExtrasRelationshipAssociationsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationship-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipsBulkDestroyRequest calls the generic ExtrasRelationshipsBulkDestroy builder with application/json body -func NewExtrasRelationshipsBulkDestroyRequest(server string, body ExtrasRelationshipsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipsBulkDestroyRequestWithBody generates requests for ExtrasRelationshipsBulkDestroy with any type of body -func NewExtrasRelationshipsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipsListRequest generates requests for ExtrasRelationshipsList -func NewExtrasRelationshipsListRequest(server string, params *ExtrasRelationshipsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.DestinationType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_type", runtime.ParamLocationQuery, *params.DestinationType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DestinationTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "destination_type__n", runtime.ParamLocationQuery, *params.DestinationTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_type", runtime.ParamLocationQuery, *params.SourceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SourceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_type__n", runtime.ParamLocationQuery, *params.SourceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipsBulkPartialUpdateRequest calls the generic ExtrasRelationshipsBulkPartialUpdate builder with application/json body -func NewExtrasRelationshipsBulkPartialUpdateRequest(server string, body ExtrasRelationshipsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipsBulkPartialUpdateRequestWithBody generates requests for ExtrasRelationshipsBulkPartialUpdate with any type of body -func NewExtrasRelationshipsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipsCreateRequest calls the generic ExtrasRelationshipsCreate builder with application/json body -func NewExtrasRelationshipsCreateRequest(server string, body ExtrasRelationshipsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipsCreateRequestWithBody generates requests for ExtrasRelationshipsCreate with any type of body -func NewExtrasRelationshipsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipsBulkUpdateRequest calls the generic ExtrasRelationshipsBulkUpdate builder with application/json body -func NewExtrasRelationshipsBulkUpdateRequest(server string, body ExtrasRelationshipsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasRelationshipsBulkUpdateRequestWithBody generates requests for ExtrasRelationshipsBulkUpdate with any type of body -func NewExtrasRelationshipsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipsDestroyRequest generates requests for ExtrasRelationshipsDestroy -func NewExtrasRelationshipsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipsRetrieveRequest generates requests for ExtrasRelationshipsRetrieve -func NewExtrasRelationshipsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipsPartialUpdateRequest calls the generic ExtrasRelationshipsPartialUpdate builder with application/json body -func NewExtrasRelationshipsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasRelationshipsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasRelationshipsPartialUpdateRequestWithBody generates requests for ExtrasRelationshipsPartialUpdate with any type of body -func NewExtrasRelationshipsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipsUpdateRequest calls the generic ExtrasRelationshipsUpdate builder with application/json body -func NewExtrasRelationshipsUpdateRequest(server string, id openapi_types.UUID, body ExtrasRelationshipsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasRelationshipsUpdateRequestWithBody generates requests for ExtrasRelationshipsUpdate with any type of body -func NewExtrasRelationshipsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasRelationshipsNotesListRequest generates requests for ExtrasRelationshipsNotesList -func NewExtrasRelationshipsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasRelationshipsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasRelationshipsNotesCreateRequest calls the generic ExtrasRelationshipsNotesCreate builder with application/json body -func NewExtrasRelationshipsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasRelationshipsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasRelationshipsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasRelationshipsNotesCreateRequestWithBody generates requests for ExtrasRelationshipsNotesCreate with any type of body -func NewExtrasRelationshipsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/relationships/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasScheduledJobsListRequest generates requests for ExtrasScheduledJobsList -func NewExtrasScheduledJobsListRequest(server string, params *ExtrasScheduledJobsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/scheduled-jobs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.FirstRun != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_run", runtime.ParamLocationQuery, *params.FirstRun); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model", runtime.ParamLocationQuery, *params.JobModel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model__n", runtime.ParamLocationQuery, *params.JobModelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModelId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model_id", runtime.ParamLocationQuery, *params.JobModelId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JobModelIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "job_model_id__n", runtime.ParamLocationQuery, *params.JobModelIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastRun != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_run", runtime.ParamLocationQuery, *params.LastRun); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TotalRunCount != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "total_run_count", runtime.ParamLocationQuery, *params.TotalRunCount); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TotalRunCountGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "total_run_count__gt", runtime.ParamLocationQuery, *params.TotalRunCountGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TotalRunCountGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "total_run_count__gte", runtime.ParamLocationQuery, *params.TotalRunCountGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TotalRunCountLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "total_run_count__lt", runtime.ParamLocationQuery, *params.TotalRunCountLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TotalRunCountLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "total_run_count__lte", runtime.ParamLocationQuery, *params.TotalRunCountLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TotalRunCountN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "total_run_count__n", runtime.ParamLocationQuery, *params.TotalRunCountN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasScheduledJobsRetrieveRequest generates requests for ExtrasScheduledJobsRetrieve -func NewExtrasScheduledJobsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/scheduled-jobs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasScheduledJobsApproveCreateRequest generates requests for ExtrasScheduledJobsApproveCreate -func NewExtrasScheduledJobsApproveCreateRequest(server string, id openapi_types.UUID, params *ExtrasScheduledJobsApproveCreateParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/scheduled-jobs/%s/approve/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasScheduledJobsDenyCreateRequest generates requests for ExtrasScheduledJobsDenyCreate -func NewExtrasScheduledJobsDenyCreateRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/scheduled-jobs/%s/deny/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasScheduledJobsDryRunCreateRequest generates requests for ExtrasScheduledJobsDryRunCreate -func NewExtrasScheduledJobsDryRunCreateRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/scheduled-jobs/%s/dry-run/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsBulkDestroyRequest calls the generic ExtrasSecretsGroupsAssociationsBulkDestroy builder with application/json body -func NewExtrasSecretsGroupsAssociationsBulkDestroyRequest(server string, body ExtrasSecretsGroupsAssociationsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsAssociationsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsAssociationsBulkDestroyRequestWithBody generates requests for ExtrasSecretsGroupsAssociationsBulkDestroy with any type of body -func NewExtrasSecretsGroupsAssociationsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsListRequest generates requests for ExtrasSecretsGroupsAssociationsList -func NewExtrasSecretsGroupsAssociationsListRequest(server string, params *ExtrasSecretsGroupsAssociationsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AccessType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "access_type", runtime.ParamLocationQuery, *params.AccessType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AccessTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "access_type__n", runtime.ParamLocationQuery, *params.AccessTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Secret != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secret", runtime.ParamLocationQuery, *params.Secret); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secret__n", runtime.ParamLocationQuery, *params.SecretN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secret_id", runtime.ParamLocationQuery, *params.SecretId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secret_id__n", runtime.ParamLocationQuery, *params.SecretIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secret_type", runtime.ParamLocationQuery, *params.SecretType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SecretTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "secret_type__n", runtime.ParamLocationQuery, *params.SecretTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsBulkPartialUpdateRequest calls the generic ExtrasSecretsGroupsAssociationsBulkPartialUpdate builder with application/json body -func NewExtrasSecretsGroupsAssociationsBulkPartialUpdateRequest(server string, body ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsAssociationsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsAssociationsBulkPartialUpdateRequestWithBody generates requests for ExtrasSecretsGroupsAssociationsBulkPartialUpdate with any type of body -func NewExtrasSecretsGroupsAssociationsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsCreateRequest calls the generic ExtrasSecretsGroupsAssociationsCreate builder with application/json body -func NewExtrasSecretsGroupsAssociationsCreateRequest(server string, body ExtrasSecretsGroupsAssociationsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsAssociationsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsAssociationsCreateRequestWithBody generates requests for ExtrasSecretsGroupsAssociationsCreate with any type of body -func NewExtrasSecretsGroupsAssociationsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsBulkUpdateRequest calls the generic ExtrasSecretsGroupsAssociationsBulkUpdate builder with application/json body -func NewExtrasSecretsGroupsAssociationsBulkUpdateRequest(server string, body ExtrasSecretsGroupsAssociationsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsAssociationsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsAssociationsBulkUpdateRequestWithBody generates requests for ExtrasSecretsGroupsAssociationsBulkUpdate with any type of body -func NewExtrasSecretsGroupsAssociationsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsDestroyRequest generates requests for ExtrasSecretsGroupsAssociationsDestroy -func NewExtrasSecretsGroupsAssociationsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsRetrieveRequest generates requests for ExtrasSecretsGroupsAssociationsRetrieve -func NewExtrasSecretsGroupsAssociationsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsPartialUpdateRequest calls the generic ExtrasSecretsGroupsAssociationsPartialUpdate builder with application/json body -func NewExtrasSecretsGroupsAssociationsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsAssociationsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsAssociationsPartialUpdateRequestWithBody generates requests for ExtrasSecretsGroupsAssociationsPartialUpdate with any type of body -func NewExtrasSecretsGroupsAssociationsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsAssociationsUpdateRequest calls the generic ExtrasSecretsGroupsAssociationsUpdate builder with application/json body -func NewExtrasSecretsGroupsAssociationsUpdateRequest(server string, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsAssociationsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsAssociationsUpdateRequestWithBody generates requests for ExtrasSecretsGroupsAssociationsUpdate with any type of body -func NewExtrasSecretsGroupsAssociationsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups-associations/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsBulkDestroyRequest calls the generic ExtrasSecretsGroupsBulkDestroy builder with application/json body -func NewExtrasSecretsGroupsBulkDestroyRequest(server string, body ExtrasSecretsGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsBulkDestroyRequestWithBody generates requests for ExtrasSecretsGroupsBulkDestroy with any type of body -func NewExtrasSecretsGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsListRequest generates requests for ExtrasSecretsGroupsList -func NewExtrasSecretsGroupsListRequest(server string, params *ExtrasSecretsGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsBulkPartialUpdateRequest calls the generic ExtrasSecretsGroupsBulkPartialUpdate builder with application/json body -func NewExtrasSecretsGroupsBulkPartialUpdateRequest(server string, body ExtrasSecretsGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsBulkPartialUpdateRequestWithBody generates requests for ExtrasSecretsGroupsBulkPartialUpdate with any type of body -func NewExtrasSecretsGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsCreateRequest calls the generic ExtrasSecretsGroupsCreate builder with application/json body -func NewExtrasSecretsGroupsCreateRequest(server string, body ExtrasSecretsGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsCreateRequestWithBody generates requests for ExtrasSecretsGroupsCreate with any type of body -func NewExtrasSecretsGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsBulkUpdateRequest calls the generic ExtrasSecretsGroupsBulkUpdate builder with application/json body -func NewExtrasSecretsGroupsBulkUpdateRequest(server string, body ExtrasSecretsGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsBulkUpdateRequestWithBody generates requests for ExtrasSecretsGroupsBulkUpdate with any type of body -func NewExtrasSecretsGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsDestroyRequest generates requests for ExtrasSecretsGroupsDestroy -func NewExtrasSecretsGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsRetrieveRequest generates requests for ExtrasSecretsGroupsRetrieve -func NewExtrasSecretsGroupsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsPartialUpdateRequest calls the generic ExtrasSecretsGroupsPartialUpdate builder with application/json body -func NewExtrasSecretsGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasSecretsGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsPartialUpdateRequestWithBody generates requests for ExtrasSecretsGroupsPartialUpdate with any type of body -func NewExtrasSecretsGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsUpdateRequest calls the generic ExtrasSecretsGroupsUpdate builder with application/json body -func NewExtrasSecretsGroupsUpdateRequest(server string, id openapi_types.UUID, body ExtrasSecretsGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsUpdateRequestWithBody generates requests for ExtrasSecretsGroupsUpdate with any type of body -func NewExtrasSecretsGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsGroupsNotesListRequest generates requests for ExtrasSecretsGroupsNotesList -func NewExtrasSecretsGroupsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasSecretsGroupsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsGroupsNotesCreateRequest calls the generic ExtrasSecretsGroupsNotesCreate builder with application/json body -func NewExtrasSecretsGroupsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasSecretsGroupsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsGroupsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsGroupsNotesCreateRequestWithBody generates requests for ExtrasSecretsGroupsNotesCreate with any type of body -func NewExtrasSecretsGroupsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsBulkDestroyRequest calls the generic ExtrasSecretsBulkDestroy builder with application/json body -func NewExtrasSecretsBulkDestroyRequest(server string, body ExtrasSecretsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsBulkDestroyRequestWithBody generates requests for ExtrasSecretsBulkDestroy with any type of body -func NewExtrasSecretsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsListRequest generates requests for ExtrasSecretsList -func NewExtrasSecretsListRequest(server string, params *ExtrasSecretsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Provider != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider", runtime.ParamLocationQuery, *params.Provider); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__ic", runtime.ParamLocationQuery, *params.ProviderIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__ie", runtime.ParamLocationQuery, *params.ProviderIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__iew", runtime.ParamLocationQuery, *params.ProviderIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__ire", runtime.ParamLocationQuery, *params.ProviderIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__isw", runtime.ParamLocationQuery, *params.ProviderIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__n", runtime.ParamLocationQuery, *params.ProviderN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__nic", runtime.ParamLocationQuery, *params.ProviderNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__nie", runtime.ParamLocationQuery, *params.ProviderNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__niew", runtime.ParamLocationQuery, *params.ProviderNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__nire", runtime.ParamLocationQuery, *params.ProviderNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__nisw", runtime.ParamLocationQuery, *params.ProviderNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__nre", runtime.ParamLocationQuery, *params.ProviderNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__re", runtime.ParamLocationQuery, *params.ProviderRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsBulkPartialUpdateRequest calls the generic ExtrasSecretsBulkPartialUpdate builder with application/json body -func NewExtrasSecretsBulkPartialUpdateRequest(server string, body ExtrasSecretsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsBulkPartialUpdateRequestWithBody generates requests for ExtrasSecretsBulkPartialUpdate with any type of body -func NewExtrasSecretsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsCreateRequest calls the generic ExtrasSecretsCreate builder with application/json body -func NewExtrasSecretsCreateRequest(server string, body ExtrasSecretsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsCreateRequestWithBody generates requests for ExtrasSecretsCreate with any type of body -func NewExtrasSecretsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsBulkUpdateRequest calls the generic ExtrasSecretsBulkUpdate builder with application/json body -func NewExtrasSecretsBulkUpdateRequest(server string, body ExtrasSecretsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasSecretsBulkUpdateRequestWithBody generates requests for ExtrasSecretsBulkUpdate with any type of body -func NewExtrasSecretsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsDestroyRequest generates requests for ExtrasSecretsDestroy -func NewExtrasSecretsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsRetrieveRequest generates requests for ExtrasSecretsRetrieve -func NewExtrasSecretsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsPartialUpdateRequest calls the generic ExtrasSecretsPartialUpdate builder with application/json body -func NewExtrasSecretsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasSecretsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsPartialUpdateRequestWithBody generates requests for ExtrasSecretsPartialUpdate with any type of body -func NewExtrasSecretsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsUpdateRequest calls the generic ExtrasSecretsUpdate builder with application/json body -func NewExtrasSecretsUpdateRequest(server string, id openapi_types.UUID, body ExtrasSecretsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsUpdateRequestWithBody generates requests for ExtrasSecretsUpdate with any type of body -func NewExtrasSecretsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasSecretsNotesListRequest generates requests for ExtrasSecretsNotesList -func NewExtrasSecretsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasSecretsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasSecretsNotesCreateRequest calls the generic ExtrasSecretsNotesCreate builder with application/json body -func NewExtrasSecretsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasSecretsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasSecretsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasSecretsNotesCreateRequestWithBody generates requests for ExtrasSecretsNotesCreate with any type of body -func NewExtrasSecretsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/secrets/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasStatusesBulkDestroyRequest calls the generic ExtrasStatusesBulkDestroy builder with application/json body -func NewExtrasStatusesBulkDestroyRequest(server string, body ExtrasStatusesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasStatusesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasStatusesBulkDestroyRequestWithBody generates requests for ExtrasStatusesBulkDestroy with any type of body -func NewExtrasStatusesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasStatusesListRequest generates requests for ExtrasStatusesList -func NewExtrasStatusesListRequest(server string, params *ExtrasStatusesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Color != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color", runtime.ParamLocationQuery, *params.Color); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ic", runtime.ParamLocationQuery, *params.ColorIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ie", runtime.ParamLocationQuery, *params.ColorIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__iew", runtime.ParamLocationQuery, *params.ColorIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ire", runtime.ParamLocationQuery, *params.ColorIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__isw", runtime.ParamLocationQuery, *params.ColorIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__n", runtime.ParamLocationQuery, *params.ColorN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nic", runtime.ParamLocationQuery, *params.ColorNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nie", runtime.ParamLocationQuery, *params.ColorNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__niew", runtime.ParamLocationQuery, *params.ColorNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nire", runtime.ParamLocationQuery, *params.ColorNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nisw", runtime.ParamLocationQuery, *params.ColorNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nre", runtime.ParamLocationQuery, *params.ColorNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__re", runtime.ParamLocationQuery, *params.ColorRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types", runtime.ParamLocationQuery, *params.ContentTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types__n", runtime.ParamLocationQuery, *params.ContentTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasStatusesBulkPartialUpdateRequest calls the generic ExtrasStatusesBulkPartialUpdate builder with application/json body -func NewExtrasStatusesBulkPartialUpdateRequest(server string, body ExtrasStatusesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasStatusesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasStatusesBulkPartialUpdateRequestWithBody generates requests for ExtrasStatusesBulkPartialUpdate with any type of body -func NewExtrasStatusesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasStatusesCreateRequest calls the generic ExtrasStatusesCreate builder with application/json body -func NewExtrasStatusesCreateRequest(server string, body ExtrasStatusesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasStatusesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasStatusesCreateRequestWithBody generates requests for ExtrasStatusesCreate with any type of body -func NewExtrasStatusesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasStatusesBulkUpdateRequest calls the generic ExtrasStatusesBulkUpdate builder with application/json body -func NewExtrasStatusesBulkUpdateRequest(server string, body ExtrasStatusesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasStatusesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasStatusesBulkUpdateRequestWithBody generates requests for ExtrasStatusesBulkUpdate with any type of body -func NewExtrasStatusesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasStatusesDestroyRequest generates requests for ExtrasStatusesDestroy -func NewExtrasStatusesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasStatusesRetrieveRequest generates requests for ExtrasStatusesRetrieve -func NewExtrasStatusesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasStatusesPartialUpdateRequest calls the generic ExtrasStatusesPartialUpdate builder with application/json body -func NewExtrasStatusesPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasStatusesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasStatusesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasStatusesPartialUpdateRequestWithBody generates requests for ExtrasStatusesPartialUpdate with any type of body -func NewExtrasStatusesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasStatusesUpdateRequest calls the generic ExtrasStatusesUpdate builder with application/json body -func NewExtrasStatusesUpdateRequest(server string, id openapi_types.UUID, body ExtrasStatusesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasStatusesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasStatusesUpdateRequestWithBody generates requests for ExtrasStatusesUpdate with any type of body -func NewExtrasStatusesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasStatusesNotesListRequest generates requests for ExtrasStatusesNotesList -func NewExtrasStatusesNotesListRequest(server string, id openapi_types.UUID, params *ExtrasStatusesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasStatusesNotesCreateRequest calls the generic ExtrasStatusesNotesCreate builder with application/json body -func NewExtrasStatusesNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasStatusesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasStatusesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasStatusesNotesCreateRequestWithBody generates requests for ExtrasStatusesNotesCreate with any type of body -func NewExtrasStatusesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/statuses/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasTagsBulkDestroyRequest calls the generic ExtrasTagsBulkDestroy builder with application/json body -func NewExtrasTagsBulkDestroyRequest(server string, body ExtrasTagsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasTagsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasTagsBulkDestroyRequestWithBody generates requests for ExtrasTagsBulkDestroy with any type of body -func NewExtrasTagsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasTagsListRequest generates requests for ExtrasTagsList -func NewExtrasTagsListRequest(server string, params *ExtrasTagsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Color != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color", runtime.ParamLocationQuery, *params.Color); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ic", runtime.ParamLocationQuery, *params.ColorIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ie", runtime.ParamLocationQuery, *params.ColorIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__iew", runtime.ParamLocationQuery, *params.ColorIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ire", runtime.ParamLocationQuery, *params.ColorIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__isw", runtime.ParamLocationQuery, *params.ColorIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__n", runtime.ParamLocationQuery, *params.ColorN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nic", runtime.ParamLocationQuery, *params.ColorNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nie", runtime.ParamLocationQuery, *params.ColorNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__niew", runtime.ParamLocationQuery, *params.ColorNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nire", runtime.ParamLocationQuery, *params.ColorNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nisw", runtime.ParamLocationQuery, *params.ColorNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nre", runtime.ParamLocationQuery, *params.ColorNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__re", runtime.ParamLocationQuery, *params.ColorRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types", runtime.ParamLocationQuery, *params.ContentTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types__n", runtime.ParamLocationQuery, *params.ContentTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasTagsBulkPartialUpdateRequest calls the generic ExtrasTagsBulkPartialUpdate builder with application/json body -func NewExtrasTagsBulkPartialUpdateRequest(server string, body ExtrasTagsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasTagsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasTagsBulkPartialUpdateRequestWithBody generates requests for ExtrasTagsBulkPartialUpdate with any type of body -func NewExtrasTagsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasTagsCreateRequest calls the generic ExtrasTagsCreate builder with application/json body -func NewExtrasTagsCreateRequest(server string, body ExtrasTagsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasTagsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasTagsCreateRequestWithBody generates requests for ExtrasTagsCreate with any type of body -func NewExtrasTagsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasTagsBulkUpdateRequest calls the generic ExtrasTagsBulkUpdate builder with application/json body -func NewExtrasTagsBulkUpdateRequest(server string, body ExtrasTagsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasTagsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasTagsBulkUpdateRequestWithBody generates requests for ExtrasTagsBulkUpdate with any type of body -func NewExtrasTagsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasTagsDestroyRequest generates requests for ExtrasTagsDestroy -func NewExtrasTagsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasTagsRetrieveRequest generates requests for ExtrasTagsRetrieve -func NewExtrasTagsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasTagsPartialUpdateRequest calls the generic ExtrasTagsPartialUpdate builder with application/json body -func NewExtrasTagsPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasTagsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasTagsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasTagsPartialUpdateRequestWithBody generates requests for ExtrasTagsPartialUpdate with any type of body -func NewExtrasTagsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasTagsUpdateRequest calls the generic ExtrasTagsUpdate builder with application/json body -func NewExtrasTagsUpdateRequest(server string, id openapi_types.UUID, body ExtrasTagsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasTagsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasTagsUpdateRequestWithBody generates requests for ExtrasTagsUpdate with any type of body -func NewExtrasTagsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasTagsNotesListRequest generates requests for ExtrasTagsNotesList -func NewExtrasTagsNotesListRequest(server string, id openapi_types.UUID, params *ExtrasTagsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasTagsNotesCreateRequest calls the generic ExtrasTagsNotesCreate builder with application/json body -func NewExtrasTagsNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasTagsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasTagsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasTagsNotesCreateRequestWithBody generates requests for ExtrasTagsNotesCreate with any type of body -func NewExtrasTagsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/tags/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasWebhooksBulkDestroyRequest calls the generic ExtrasWebhooksBulkDestroy builder with application/json body -func NewExtrasWebhooksBulkDestroyRequest(server string, body ExtrasWebhooksBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasWebhooksBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasWebhooksBulkDestroyRequestWithBody generates requests for ExtrasWebhooksBulkDestroy with any type of body -func NewExtrasWebhooksBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasWebhooksListRequest generates requests for ExtrasWebhooksList -func NewExtrasWebhooksListRequest(server string, params *ExtrasWebhooksListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types", runtime.ParamLocationQuery, *params.ContentTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_types__n", runtime.ParamLocationQuery, *params.ContentTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url", runtime.ParamLocationQuery, *params.PayloadUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__ic", runtime.ParamLocationQuery, *params.PayloadUrlIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__ie", runtime.ParamLocationQuery, *params.PayloadUrlIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__iew", runtime.ParamLocationQuery, *params.PayloadUrlIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__ire", runtime.ParamLocationQuery, *params.PayloadUrlIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__isw", runtime.ParamLocationQuery, *params.PayloadUrlIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__n", runtime.ParamLocationQuery, *params.PayloadUrlN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__nic", runtime.ParamLocationQuery, *params.PayloadUrlNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__nie", runtime.ParamLocationQuery, *params.PayloadUrlNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__niew", runtime.ParamLocationQuery, *params.PayloadUrlNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__nire", runtime.ParamLocationQuery, *params.PayloadUrlNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__nisw", runtime.ParamLocationQuery, *params.PayloadUrlNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__nre", runtime.ParamLocationQuery, *params.PayloadUrlNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PayloadUrlRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "payload_url__re", runtime.ParamLocationQuery, *params.PayloadUrlRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeCreate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_create", runtime.ParamLocationQuery, *params.TypeCreate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeDelete != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_delete", runtime.ParamLocationQuery, *params.TypeDelete); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeUpdate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_update", runtime.ParamLocationQuery, *params.TypeUpdate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasWebhooksBulkPartialUpdateRequest calls the generic ExtrasWebhooksBulkPartialUpdate builder with application/json body -func NewExtrasWebhooksBulkPartialUpdateRequest(server string, body ExtrasWebhooksBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasWebhooksBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasWebhooksBulkPartialUpdateRequestWithBody generates requests for ExtrasWebhooksBulkPartialUpdate with any type of body -func NewExtrasWebhooksBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasWebhooksCreateRequest calls the generic ExtrasWebhooksCreate builder with application/json body -func NewExtrasWebhooksCreateRequest(server string, body ExtrasWebhooksCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasWebhooksCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasWebhooksCreateRequestWithBody generates requests for ExtrasWebhooksCreate with any type of body -func NewExtrasWebhooksCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasWebhooksBulkUpdateRequest calls the generic ExtrasWebhooksBulkUpdate builder with application/json body -func NewExtrasWebhooksBulkUpdateRequest(server string, body ExtrasWebhooksBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasWebhooksBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewExtrasWebhooksBulkUpdateRequestWithBody generates requests for ExtrasWebhooksBulkUpdate with any type of body -func NewExtrasWebhooksBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasWebhooksDestroyRequest generates requests for ExtrasWebhooksDestroy -func NewExtrasWebhooksDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasWebhooksRetrieveRequest generates requests for ExtrasWebhooksRetrieve -func NewExtrasWebhooksRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasWebhooksPartialUpdateRequest calls the generic ExtrasWebhooksPartialUpdate builder with application/json body -func NewExtrasWebhooksPartialUpdateRequest(server string, id openapi_types.UUID, body ExtrasWebhooksPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasWebhooksPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasWebhooksPartialUpdateRequestWithBody generates requests for ExtrasWebhooksPartialUpdate with any type of body -func NewExtrasWebhooksPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasWebhooksUpdateRequest calls the generic ExtrasWebhooksUpdate builder with application/json body -func NewExtrasWebhooksUpdateRequest(server string, id openapi_types.UUID, body ExtrasWebhooksUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasWebhooksUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasWebhooksUpdateRequestWithBody generates requests for ExtrasWebhooksUpdate with any type of body -func NewExtrasWebhooksUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExtrasWebhooksNotesListRequest generates requests for ExtrasWebhooksNotesList -func NewExtrasWebhooksNotesListRequest(server string, id openapi_types.UUID, params *ExtrasWebhooksNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExtrasWebhooksNotesCreateRequest calls the generic ExtrasWebhooksNotesCreate builder with application/json body -func NewExtrasWebhooksNotesCreateRequest(server string, id openapi_types.UUID, body ExtrasWebhooksNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExtrasWebhooksNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewExtrasWebhooksNotesCreateRequestWithBody generates requests for ExtrasWebhooksNotesCreate with any type of body -func NewExtrasWebhooksNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/extras/webhooks/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGraphqlCreateRequest calls the generic GraphqlCreate builder with application/json body -func NewGraphqlCreateRequest(server string, body GraphqlCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewGraphqlCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewGraphqlCreateRequestWithBody generates requests for GraphqlCreate with any type of body -func NewGraphqlCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/graphql/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamAggregatesBulkDestroyRequest calls the generic IpamAggregatesBulkDestroy builder with application/json body -func NewIpamAggregatesBulkDestroyRequest(server string, body IpamAggregatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamAggregatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamAggregatesBulkDestroyRequestWithBody generates requests for IpamAggregatesBulkDestroy with any type of body -func NewIpamAggregatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamAggregatesListRequest generates requests for IpamAggregatesList -func NewIpamAggregatesListRequest(server string, params *IpamAggregatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DateAdded != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "date_added", runtime.ParamLocationQuery, *params.DateAdded); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DateAddedGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "date_added__gt", runtime.ParamLocationQuery, *params.DateAddedGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DateAddedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "date_added__gte", runtime.ParamLocationQuery, *params.DateAddedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DateAddedLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "date_added__lt", runtime.ParamLocationQuery, *params.DateAddedLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DateAddedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "date_added__lte", runtime.ParamLocationQuery, *params.DateAddedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DateAddedN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "date_added__n", runtime.ParamLocationQuery, *params.DateAddedN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Family != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "family", runtime.ParamLocationQuery, *params.Family); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Prefix != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prefix", runtime.ParamLocationQuery, *params.Prefix); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rir != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rir", runtime.ParamLocationQuery, *params.Rir); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RirN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rir__n", runtime.ParamLocationQuery, *params.RirN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RirId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rir_id", runtime.ParamLocationQuery, *params.RirId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RirIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rir_id__n", runtime.ParamLocationQuery, *params.RirIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamAggregatesBulkPartialUpdateRequest calls the generic IpamAggregatesBulkPartialUpdate builder with application/json body -func NewIpamAggregatesBulkPartialUpdateRequest(server string, body IpamAggregatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamAggregatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamAggregatesBulkPartialUpdateRequestWithBody generates requests for IpamAggregatesBulkPartialUpdate with any type of body -func NewIpamAggregatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamAggregatesCreateRequest calls the generic IpamAggregatesCreate builder with application/json body -func NewIpamAggregatesCreateRequest(server string, body IpamAggregatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamAggregatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamAggregatesCreateRequestWithBody generates requests for IpamAggregatesCreate with any type of body -func NewIpamAggregatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamAggregatesBulkUpdateRequest calls the generic IpamAggregatesBulkUpdate builder with application/json body -func NewIpamAggregatesBulkUpdateRequest(server string, body IpamAggregatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamAggregatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamAggregatesBulkUpdateRequestWithBody generates requests for IpamAggregatesBulkUpdate with any type of body -func NewIpamAggregatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamAggregatesDestroyRequest generates requests for IpamAggregatesDestroy -func NewIpamAggregatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamAggregatesRetrieveRequest generates requests for IpamAggregatesRetrieve -func NewIpamAggregatesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamAggregatesPartialUpdateRequest calls the generic IpamAggregatesPartialUpdate builder with application/json body -func NewIpamAggregatesPartialUpdateRequest(server string, id openapi_types.UUID, body IpamAggregatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamAggregatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamAggregatesPartialUpdateRequestWithBody generates requests for IpamAggregatesPartialUpdate with any type of body -func NewIpamAggregatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamAggregatesUpdateRequest calls the generic IpamAggregatesUpdate builder with application/json body -func NewIpamAggregatesUpdateRequest(server string, id openapi_types.UUID, body IpamAggregatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamAggregatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamAggregatesUpdateRequestWithBody generates requests for IpamAggregatesUpdate with any type of body -func NewIpamAggregatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamAggregatesNotesListRequest generates requests for IpamAggregatesNotesList -func NewIpamAggregatesNotesListRequest(server string, id openapi_types.UUID, params *IpamAggregatesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamAggregatesNotesCreateRequest calls the generic IpamAggregatesNotesCreate builder with application/json body -func NewIpamAggregatesNotesCreateRequest(server string, id openapi_types.UUID, body IpamAggregatesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamAggregatesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamAggregatesNotesCreateRequestWithBody generates requests for IpamAggregatesNotesCreate with any type of body -func NewIpamAggregatesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/aggregates/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamIpAddressesBulkDestroyRequest calls the generic IpamIpAddressesBulkDestroy builder with application/json body -func NewIpamIpAddressesBulkDestroyRequest(server string, body IpamIpAddressesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamIpAddressesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamIpAddressesBulkDestroyRequestWithBody generates requests for IpamIpAddressesBulkDestroy with any type of body -func NewIpamIpAddressesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamIpAddressesListRequest generates requests for IpamIpAddressesList -func NewIpamIpAddressesListRequest(server string, params *IpamIpAddressesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Address != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address", runtime.ParamLocationQuery, *params.Address); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedToInterface != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_to_interface", runtime.ParamLocationQuery, *params.AssignedToInterface); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name", runtime.ParamLocationQuery, *params.DnsName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__ic", runtime.ParamLocationQuery, *params.DnsNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__ie", runtime.ParamLocationQuery, *params.DnsNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__iew", runtime.ParamLocationQuery, *params.DnsNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__ire", runtime.ParamLocationQuery, *params.DnsNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__isw", runtime.ParamLocationQuery, *params.DnsNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__n", runtime.ParamLocationQuery, *params.DnsNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__nic", runtime.ParamLocationQuery, *params.DnsNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__nie", runtime.ParamLocationQuery, *params.DnsNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__niew", runtime.ParamLocationQuery, *params.DnsNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__nire", runtime.ParamLocationQuery, *params.DnsNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__nisw", runtime.ParamLocationQuery, *params.DnsNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__nre", runtime.ParamLocationQuery, *params.DnsNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DnsNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dns_name__re", runtime.ParamLocationQuery, *params.DnsNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Family != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "family", runtime.ParamLocationQuery, *params.Family); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Interface != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interface", runtime.ParamLocationQuery, *params.Interface); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InterfaceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interface__n", runtime.ParamLocationQuery, *params.InterfaceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InterfaceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interface_id", runtime.ParamLocationQuery, *params.InterfaceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InterfaceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interface_id__n", runtime.ParamLocationQuery, *params.InterfaceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaskLength != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mask_length", runtime.ParamLocationQuery, *params.MaskLength); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__ic", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__ie", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__iew", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__ire", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__isw", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__n", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__nic", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__nie", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__niew", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__nire", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__nisw", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__nre", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NautobotBgpModelsIpsBgpRoutingInstanceRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nautobot_bgp_models_ips_bgp_routing_instance__re", runtime.ParamLocationQuery, *params.NautobotBgpModelsIpsBgpRoutingInstanceRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parent != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent", runtime.ParamLocationQuery, *params.Parent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PresentInVrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "present_in_vrf", runtime.ParamLocationQuery, *params.PresentInVrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PresentInVrfId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "present_in_vrf_id", runtime.ParamLocationQuery, *params.PresentInVrfId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachine != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine", runtime.ParamLocationQuery, *params.VirtualMachine); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachineId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine_id", runtime.ParamLocationQuery, *params.VirtualMachineId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vminterface != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vminterface", runtime.ParamLocationQuery, *params.Vminterface); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VminterfaceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vminterface__n", runtime.ParamLocationQuery, *params.VminterfaceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VminterfaceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vminterface_id", runtime.ParamLocationQuery, *params.VminterfaceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VminterfaceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vminterface_id__n", runtime.ParamLocationQuery, *params.VminterfaceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf", runtime.ParamLocationQuery, *params.Vrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf__n", runtime.ParamLocationQuery, *params.VrfN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf_id", runtime.ParamLocationQuery, *params.VrfId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf_id__n", runtime.ParamLocationQuery, *params.VrfIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamIpAddressesBulkPartialUpdateRequest calls the generic IpamIpAddressesBulkPartialUpdate builder with application/json body -func NewIpamIpAddressesBulkPartialUpdateRequest(server string, body IpamIpAddressesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamIpAddressesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamIpAddressesBulkPartialUpdateRequestWithBody generates requests for IpamIpAddressesBulkPartialUpdate with any type of body -func NewIpamIpAddressesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamIpAddressesCreateRequest calls the generic IpamIpAddressesCreate builder with application/json body -func NewIpamIpAddressesCreateRequest(server string, body IpamIpAddressesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamIpAddressesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamIpAddressesCreateRequestWithBody generates requests for IpamIpAddressesCreate with any type of body -func NewIpamIpAddressesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamIpAddressesBulkUpdateRequest calls the generic IpamIpAddressesBulkUpdate builder with application/json body -func NewIpamIpAddressesBulkUpdateRequest(server string, body IpamIpAddressesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamIpAddressesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamIpAddressesBulkUpdateRequestWithBody generates requests for IpamIpAddressesBulkUpdate with any type of body -func NewIpamIpAddressesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamIpAddressesDestroyRequest generates requests for IpamIpAddressesDestroy -func NewIpamIpAddressesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamIpAddressesRetrieveRequest generates requests for IpamIpAddressesRetrieve -func NewIpamIpAddressesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamIpAddressesPartialUpdateRequest calls the generic IpamIpAddressesPartialUpdate builder with application/json body -func NewIpamIpAddressesPartialUpdateRequest(server string, id openapi_types.UUID, body IpamIpAddressesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamIpAddressesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamIpAddressesPartialUpdateRequestWithBody generates requests for IpamIpAddressesPartialUpdate with any type of body -func NewIpamIpAddressesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamIpAddressesUpdateRequest calls the generic IpamIpAddressesUpdate builder with application/json body -func NewIpamIpAddressesUpdateRequest(server string, id openapi_types.UUID, body IpamIpAddressesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamIpAddressesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamIpAddressesUpdateRequestWithBody generates requests for IpamIpAddressesUpdate with any type of body -func NewIpamIpAddressesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamIpAddressesNotesListRequest generates requests for IpamIpAddressesNotesList -func NewIpamIpAddressesNotesListRequest(server string, id openapi_types.UUID, params *IpamIpAddressesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamIpAddressesNotesCreateRequest calls the generic IpamIpAddressesNotesCreate builder with application/json body -func NewIpamIpAddressesNotesCreateRequest(server string, id openapi_types.UUID, body IpamIpAddressesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamIpAddressesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamIpAddressesNotesCreateRequestWithBody generates requests for IpamIpAddressesNotesCreate with any type of body -func NewIpamIpAddressesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/ip-addresses/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesBulkDestroyRequest calls the generic IpamPrefixesBulkDestroy builder with application/json body -func NewIpamPrefixesBulkDestroyRequest(server string, body IpamPrefixesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamPrefixesBulkDestroyRequestWithBody generates requests for IpamPrefixesBulkDestroy with any type of body -func NewIpamPrefixesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesListRequest generates requests for IpamPrefixesList -func NewIpamPrefixesListRequest(server string, params *IpamPrefixesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Contains != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains", runtime.ParamLocationQuery, *params.Contains); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Family != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "family", runtime.ParamLocationQuery, *params.Family); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsPool != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_pool", runtime.ParamLocationQuery, *params.IsPool); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaskLength != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mask_length", runtime.ParamLocationQuery, *params.MaskLength); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaskLengthGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mask_length__gte", runtime.ParamLocationQuery, *params.MaskLengthGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaskLengthLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mask_length__lte", runtime.ParamLocationQuery, *params.MaskLengthLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Prefix != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prefix", runtime.ParamLocationQuery, *params.Prefix); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PresentInVrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "present_in_vrf", runtime.ParamLocationQuery, *params.PresentInVrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PresentInVrfId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "present_in_vrf_id", runtime.ParamLocationQuery, *params.PresentInVrfId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id__n", runtime.ParamLocationQuery, *params.RoleIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VlanId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlan_id", runtime.ParamLocationQuery, *params.VlanId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VlanIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlan_id__n", runtime.ParamLocationQuery, *params.VlanIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VlanVid != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vlan_vid", runtime.ParamLocationQuery, *params.VlanVid); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf", runtime.ParamLocationQuery, *params.Vrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf__n", runtime.ParamLocationQuery, *params.VrfN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf_id", runtime.ParamLocationQuery, *params.VrfId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf_id__n", runtime.ParamLocationQuery, *params.VrfIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Within != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "within", runtime.ParamLocationQuery, *params.Within); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WithinInclude != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "within_include", runtime.ParamLocationQuery, *params.WithinInclude); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamPrefixesBulkPartialUpdateRequest calls the generic IpamPrefixesBulkPartialUpdate builder with application/json body -func NewIpamPrefixesBulkPartialUpdateRequest(server string, body IpamPrefixesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamPrefixesBulkPartialUpdateRequestWithBody generates requests for IpamPrefixesBulkPartialUpdate with any type of body -func NewIpamPrefixesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesCreateRequest calls the generic IpamPrefixesCreate builder with application/json body -func NewIpamPrefixesCreateRequest(server string, body IpamPrefixesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamPrefixesCreateRequestWithBody generates requests for IpamPrefixesCreate with any type of body -func NewIpamPrefixesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesBulkUpdateRequest calls the generic IpamPrefixesBulkUpdate builder with application/json body -func NewIpamPrefixesBulkUpdateRequest(server string, body IpamPrefixesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamPrefixesBulkUpdateRequestWithBody generates requests for IpamPrefixesBulkUpdate with any type of body -func NewIpamPrefixesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesDestroyRequest generates requests for IpamPrefixesDestroy -func NewIpamPrefixesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamPrefixesRetrieveRequest generates requests for IpamPrefixesRetrieve -func NewIpamPrefixesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamPrefixesPartialUpdateRequest calls the generic IpamPrefixesPartialUpdate builder with application/json body -func NewIpamPrefixesPartialUpdateRequest(server string, id openapi_types.UUID, body IpamPrefixesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamPrefixesPartialUpdateRequestWithBody generates requests for IpamPrefixesPartialUpdate with any type of body -func NewIpamPrefixesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesUpdateRequest calls the generic IpamPrefixesUpdate builder with application/json body -func NewIpamPrefixesUpdateRequest(server string, id openapi_types.UUID, body IpamPrefixesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamPrefixesUpdateRequestWithBody generates requests for IpamPrefixesUpdate with any type of body -func NewIpamPrefixesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesAvailableIpsListRequest generates requests for IpamPrefixesAvailableIpsList -func NewIpamPrefixesAvailableIpsListRequest(server string, id openapi_types.UUID, params *IpamPrefixesAvailableIpsListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/available-ips/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamPrefixesAvailableIpsCreateRequest generates requests for IpamPrefixesAvailableIpsCreate -func NewIpamPrefixesAvailableIpsCreateRequest(server string, id openapi_types.UUID, params *IpamPrefixesAvailableIpsCreateParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/available-ips/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamPrefixesAvailablePrefixesListRequest generates requests for IpamPrefixesAvailablePrefixesList -func NewIpamPrefixesAvailablePrefixesListRequest(server string, id openapi_types.UUID, params *IpamPrefixesAvailablePrefixesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/available-prefixes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamPrefixesAvailablePrefixesCreateRequest calls the generic IpamPrefixesAvailablePrefixesCreate builder with application/json body -func NewIpamPrefixesAvailablePrefixesCreateRequest(server string, id openapi_types.UUID, body IpamPrefixesAvailablePrefixesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesAvailablePrefixesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamPrefixesAvailablePrefixesCreateRequestWithBody generates requests for IpamPrefixesAvailablePrefixesCreate with any type of body -func NewIpamPrefixesAvailablePrefixesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/available-prefixes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamPrefixesNotesListRequest generates requests for IpamPrefixesNotesList -func NewIpamPrefixesNotesListRequest(server string, id openapi_types.UUID, params *IpamPrefixesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamPrefixesNotesCreateRequest calls the generic IpamPrefixesNotesCreate builder with application/json body -func NewIpamPrefixesNotesCreateRequest(server string, id openapi_types.UUID, body IpamPrefixesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamPrefixesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamPrefixesNotesCreateRequestWithBody generates requests for IpamPrefixesNotesCreate with any type of body -func NewIpamPrefixesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/prefixes/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRirsBulkDestroyRequest calls the generic IpamRirsBulkDestroy builder with application/json body -func NewIpamRirsBulkDestroyRequest(server string, body IpamRirsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRirsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRirsBulkDestroyRequestWithBody generates requests for IpamRirsBulkDestroy with any type of body -func NewIpamRirsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRirsListRequest generates requests for IpamRirsList -func NewIpamRirsListRequest(server string, params *IpamRirsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsPrivate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_private", runtime.ParamLocationQuery, *params.IsPrivate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRirsBulkPartialUpdateRequest calls the generic IpamRirsBulkPartialUpdate builder with application/json body -func NewIpamRirsBulkPartialUpdateRequest(server string, body IpamRirsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRirsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRirsBulkPartialUpdateRequestWithBody generates requests for IpamRirsBulkPartialUpdate with any type of body -func NewIpamRirsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRirsCreateRequest calls the generic IpamRirsCreate builder with application/json body -func NewIpamRirsCreateRequest(server string, body IpamRirsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRirsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRirsCreateRequestWithBody generates requests for IpamRirsCreate with any type of body -func NewIpamRirsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRirsBulkUpdateRequest calls the generic IpamRirsBulkUpdate builder with application/json body -func NewIpamRirsBulkUpdateRequest(server string, body IpamRirsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRirsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRirsBulkUpdateRequestWithBody generates requests for IpamRirsBulkUpdate with any type of body -func NewIpamRirsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRirsDestroyRequest generates requests for IpamRirsDestroy -func NewIpamRirsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRirsRetrieveRequest generates requests for IpamRirsRetrieve -func NewIpamRirsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRirsPartialUpdateRequest calls the generic IpamRirsPartialUpdate builder with application/json body -func NewIpamRirsPartialUpdateRequest(server string, id openapi_types.UUID, body IpamRirsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRirsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRirsPartialUpdateRequestWithBody generates requests for IpamRirsPartialUpdate with any type of body -func NewIpamRirsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRirsUpdateRequest calls the generic IpamRirsUpdate builder with application/json body -func NewIpamRirsUpdateRequest(server string, id openapi_types.UUID, body IpamRirsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRirsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRirsUpdateRequestWithBody generates requests for IpamRirsUpdate with any type of body -func NewIpamRirsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRirsNotesListRequest generates requests for IpamRirsNotesList -func NewIpamRirsNotesListRequest(server string, id openapi_types.UUID, params *IpamRirsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRirsNotesCreateRequest calls the generic IpamRirsNotesCreate builder with application/json body -func NewIpamRirsNotesCreateRequest(server string, id openapi_types.UUID, body IpamRirsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRirsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRirsNotesCreateRequestWithBody generates requests for IpamRirsNotesCreate with any type of body -func NewIpamRirsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/rirs/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRolesBulkDestroyRequest calls the generic IpamRolesBulkDestroy builder with application/json body -func NewIpamRolesBulkDestroyRequest(server string, body IpamRolesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRolesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRolesBulkDestroyRequestWithBody generates requests for IpamRolesBulkDestroy with any type of body -func NewIpamRolesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRolesListRequest generates requests for IpamRolesList -func NewIpamRolesListRequest(server string, params *IpamRolesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRolesBulkPartialUpdateRequest calls the generic IpamRolesBulkPartialUpdate builder with application/json body -func NewIpamRolesBulkPartialUpdateRequest(server string, body IpamRolesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRolesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRolesBulkPartialUpdateRequestWithBody generates requests for IpamRolesBulkPartialUpdate with any type of body -func NewIpamRolesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRolesCreateRequest calls the generic IpamRolesCreate builder with application/json body -func NewIpamRolesCreateRequest(server string, body IpamRolesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRolesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRolesCreateRequestWithBody generates requests for IpamRolesCreate with any type of body -func NewIpamRolesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRolesBulkUpdateRequest calls the generic IpamRolesBulkUpdate builder with application/json body -func NewIpamRolesBulkUpdateRequest(server string, body IpamRolesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRolesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRolesBulkUpdateRequestWithBody generates requests for IpamRolesBulkUpdate with any type of body -func NewIpamRolesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRolesDestroyRequest generates requests for IpamRolesDestroy -func NewIpamRolesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRolesRetrieveRequest generates requests for IpamRolesRetrieve -func NewIpamRolesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRolesPartialUpdateRequest calls the generic IpamRolesPartialUpdate builder with application/json body -func NewIpamRolesPartialUpdateRequest(server string, id openapi_types.UUID, body IpamRolesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRolesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRolesPartialUpdateRequestWithBody generates requests for IpamRolesPartialUpdate with any type of body -func NewIpamRolesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRolesUpdateRequest calls the generic IpamRolesUpdate builder with application/json body -func NewIpamRolesUpdateRequest(server string, id openapi_types.UUID, body IpamRolesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRolesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRolesUpdateRequestWithBody generates requests for IpamRolesUpdate with any type of body -func NewIpamRolesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRolesNotesListRequest generates requests for IpamRolesNotesList -func NewIpamRolesNotesListRequest(server string, id openapi_types.UUID, params *IpamRolesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRolesNotesCreateRequest calls the generic IpamRolesNotesCreate builder with application/json body -func NewIpamRolesNotesCreateRequest(server string, id openapi_types.UUID, body IpamRolesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRolesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRolesNotesCreateRequestWithBody generates requests for IpamRolesNotesCreate with any type of body -func NewIpamRolesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/roles/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRouteTargetsBulkDestroyRequest calls the generic IpamRouteTargetsBulkDestroy builder with application/json body -func NewIpamRouteTargetsBulkDestroyRequest(server string, body IpamRouteTargetsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRouteTargetsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRouteTargetsBulkDestroyRequestWithBody generates requests for IpamRouteTargetsBulkDestroy with any type of body -func NewIpamRouteTargetsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRouteTargetsListRequest generates requests for IpamRouteTargetsList -func NewIpamRouteTargetsListRequest(server string, params *IpamRouteTargetsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportingVrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exporting_vrf", runtime.ParamLocationQuery, *params.ExportingVrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportingVrfN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exporting_vrf__n", runtime.ParamLocationQuery, *params.ExportingVrfN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportingVrfId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exporting_vrf_id", runtime.ParamLocationQuery, *params.ExportingVrfId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportingVrfIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exporting_vrf_id__n", runtime.ParamLocationQuery, *params.ExportingVrfIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportingVrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "importing_vrf", runtime.ParamLocationQuery, *params.ImportingVrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportingVrfN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "importing_vrf__n", runtime.ParamLocationQuery, *params.ImportingVrfN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportingVrfId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "importing_vrf_id", runtime.ParamLocationQuery, *params.ImportingVrfId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportingVrfIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "importing_vrf_id__n", runtime.ParamLocationQuery, *params.ImportingVrfIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRouteTargetsBulkPartialUpdateRequest calls the generic IpamRouteTargetsBulkPartialUpdate builder with application/json body -func NewIpamRouteTargetsBulkPartialUpdateRequest(server string, body IpamRouteTargetsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRouteTargetsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRouteTargetsBulkPartialUpdateRequestWithBody generates requests for IpamRouteTargetsBulkPartialUpdate with any type of body -func NewIpamRouteTargetsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRouteTargetsCreateRequest calls the generic IpamRouteTargetsCreate builder with application/json body -func NewIpamRouteTargetsCreateRequest(server string, body IpamRouteTargetsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRouteTargetsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRouteTargetsCreateRequestWithBody generates requests for IpamRouteTargetsCreate with any type of body -func NewIpamRouteTargetsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRouteTargetsBulkUpdateRequest calls the generic IpamRouteTargetsBulkUpdate builder with application/json body -func NewIpamRouteTargetsBulkUpdateRequest(server string, body IpamRouteTargetsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRouteTargetsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamRouteTargetsBulkUpdateRequestWithBody generates requests for IpamRouteTargetsBulkUpdate with any type of body -func NewIpamRouteTargetsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRouteTargetsDestroyRequest generates requests for IpamRouteTargetsDestroy -func NewIpamRouteTargetsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRouteTargetsRetrieveRequest generates requests for IpamRouteTargetsRetrieve -func NewIpamRouteTargetsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRouteTargetsPartialUpdateRequest calls the generic IpamRouteTargetsPartialUpdate builder with application/json body -func NewIpamRouteTargetsPartialUpdateRequest(server string, id openapi_types.UUID, body IpamRouteTargetsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRouteTargetsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRouteTargetsPartialUpdateRequestWithBody generates requests for IpamRouteTargetsPartialUpdate with any type of body -func NewIpamRouteTargetsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRouteTargetsUpdateRequest calls the generic IpamRouteTargetsUpdate builder with application/json body -func NewIpamRouteTargetsUpdateRequest(server string, id openapi_types.UUID, body IpamRouteTargetsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRouteTargetsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRouteTargetsUpdateRequestWithBody generates requests for IpamRouteTargetsUpdate with any type of body -func NewIpamRouteTargetsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamRouteTargetsNotesListRequest generates requests for IpamRouteTargetsNotesList -func NewIpamRouteTargetsNotesListRequest(server string, id openapi_types.UUID, params *IpamRouteTargetsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamRouteTargetsNotesCreateRequest calls the generic IpamRouteTargetsNotesCreate builder with application/json body -func NewIpamRouteTargetsNotesCreateRequest(server string, id openapi_types.UUID, body IpamRouteTargetsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamRouteTargetsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamRouteTargetsNotesCreateRequestWithBody generates requests for IpamRouteTargetsNotesCreate with any type of body -func NewIpamRouteTargetsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/route-targets/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamServicesBulkDestroyRequest calls the generic IpamServicesBulkDestroy builder with application/json body -func NewIpamServicesBulkDestroyRequest(server string, body IpamServicesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamServicesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamServicesBulkDestroyRequestWithBody generates requests for IpamServicesBulkDestroy with any type of body -func NewIpamServicesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamServicesListRequest generates requests for IpamServicesList -func NewIpamServicesListRequest(server string, params *IpamServicesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Port != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port", runtime.ParamLocationQuery, *params.Port); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Protocol != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "protocol", runtime.ParamLocationQuery, *params.Protocol); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProtocolN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "protocol__n", runtime.ParamLocationQuery, *params.ProtocolN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachine != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine", runtime.ParamLocationQuery, *params.VirtualMachine); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachineN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine__n", runtime.ParamLocationQuery, *params.VirtualMachineN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachineId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine_id", runtime.ParamLocationQuery, *params.VirtualMachineId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachineIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine_id__n", runtime.ParamLocationQuery, *params.VirtualMachineIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamServicesBulkPartialUpdateRequest calls the generic IpamServicesBulkPartialUpdate builder with application/json body -func NewIpamServicesBulkPartialUpdateRequest(server string, body IpamServicesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamServicesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamServicesBulkPartialUpdateRequestWithBody generates requests for IpamServicesBulkPartialUpdate with any type of body -func NewIpamServicesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamServicesCreateRequest calls the generic IpamServicesCreate builder with application/json body -func NewIpamServicesCreateRequest(server string, body IpamServicesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamServicesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamServicesCreateRequestWithBody generates requests for IpamServicesCreate with any type of body -func NewIpamServicesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamServicesBulkUpdateRequest calls the generic IpamServicesBulkUpdate builder with application/json body -func NewIpamServicesBulkUpdateRequest(server string, body IpamServicesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamServicesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamServicesBulkUpdateRequestWithBody generates requests for IpamServicesBulkUpdate with any type of body -func NewIpamServicesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamServicesDestroyRequest generates requests for IpamServicesDestroy -func NewIpamServicesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamServicesRetrieveRequest generates requests for IpamServicesRetrieve -func NewIpamServicesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamServicesPartialUpdateRequest calls the generic IpamServicesPartialUpdate builder with application/json body -func NewIpamServicesPartialUpdateRequest(server string, id openapi_types.UUID, body IpamServicesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamServicesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamServicesPartialUpdateRequestWithBody generates requests for IpamServicesPartialUpdate with any type of body -func NewIpamServicesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamServicesUpdateRequest calls the generic IpamServicesUpdate builder with application/json body -func NewIpamServicesUpdateRequest(server string, id openapi_types.UUID, body IpamServicesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamServicesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamServicesUpdateRequestWithBody generates requests for IpamServicesUpdate with any type of body -func NewIpamServicesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamServicesNotesListRequest generates requests for IpamServicesNotesList -func NewIpamServicesNotesListRequest(server string, id openapi_types.UUID, params *IpamServicesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamServicesNotesCreateRequest calls the generic IpamServicesNotesCreate builder with application/json body -func NewIpamServicesNotesCreateRequest(server string, id openapi_types.UUID, body IpamServicesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamServicesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamServicesNotesCreateRequestWithBody generates requests for IpamServicesNotesCreate with any type of body -func NewIpamServicesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/services/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlanGroupsBulkDestroyRequest calls the generic IpamVlanGroupsBulkDestroy builder with application/json body -func NewIpamVlanGroupsBulkDestroyRequest(server string, body IpamVlanGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlanGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlanGroupsBulkDestroyRequestWithBody generates requests for IpamVlanGroupsBulkDestroy with any type of body -func NewIpamVlanGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlanGroupsListRequest generates requests for IpamVlanGroupsList -func NewIpamVlanGroupsListRequest(server string, params *IpamVlanGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlanGroupsBulkPartialUpdateRequest calls the generic IpamVlanGroupsBulkPartialUpdate builder with application/json body -func NewIpamVlanGroupsBulkPartialUpdateRequest(server string, body IpamVlanGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlanGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlanGroupsBulkPartialUpdateRequestWithBody generates requests for IpamVlanGroupsBulkPartialUpdate with any type of body -func NewIpamVlanGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlanGroupsCreateRequest calls the generic IpamVlanGroupsCreate builder with application/json body -func NewIpamVlanGroupsCreateRequest(server string, body IpamVlanGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlanGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlanGroupsCreateRequestWithBody generates requests for IpamVlanGroupsCreate with any type of body -func NewIpamVlanGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlanGroupsBulkUpdateRequest calls the generic IpamVlanGroupsBulkUpdate builder with application/json body -func NewIpamVlanGroupsBulkUpdateRequest(server string, body IpamVlanGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlanGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlanGroupsBulkUpdateRequestWithBody generates requests for IpamVlanGroupsBulkUpdate with any type of body -func NewIpamVlanGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlanGroupsDestroyRequest generates requests for IpamVlanGroupsDestroy -func NewIpamVlanGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlanGroupsRetrieveRequest generates requests for IpamVlanGroupsRetrieve -func NewIpamVlanGroupsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlanGroupsPartialUpdateRequest calls the generic IpamVlanGroupsPartialUpdate builder with application/json body -func NewIpamVlanGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body IpamVlanGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlanGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVlanGroupsPartialUpdateRequestWithBody generates requests for IpamVlanGroupsPartialUpdate with any type of body -func NewIpamVlanGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlanGroupsUpdateRequest calls the generic IpamVlanGroupsUpdate builder with application/json body -func NewIpamVlanGroupsUpdateRequest(server string, id openapi_types.UUID, body IpamVlanGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlanGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVlanGroupsUpdateRequestWithBody generates requests for IpamVlanGroupsUpdate with any type of body -func NewIpamVlanGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlanGroupsNotesListRequest generates requests for IpamVlanGroupsNotesList -func NewIpamVlanGroupsNotesListRequest(server string, id openapi_types.UUID, params *IpamVlanGroupsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlanGroupsNotesCreateRequest calls the generic IpamVlanGroupsNotesCreate builder with application/json body -func NewIpamVlanGroupsNotesCreateRequest(server string, id openapi_types.UUID, body IpamVlanGroupsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlanGroupsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVlanGroupsNotesCreateRequestWithBody generates requests for IpamVlanGroupsNotesCreate with any type of body -func NewIpamVlanGroupsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlan-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlansBulkDestroyRequest calls the generic IpamVlansBulkDestroy builder with application/json body -func NewIpamVlansBulkDestroyRequest(server string, body IpamVlansBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlansBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlansBulkDestroyRequestWithBody generates requests for IpamVlansBulkDestroy with any type of body -func NewIpamVlansBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlansListRequest generates requests for IpamVlansList -func NewIpamVlansListRequest(server string, params *IpamVlansListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AvailableOnDevice != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "available_on_device", runtime.ParamLocationQuery, *params.AvailableOnDevice); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id__n", runtime.ParamLocationQuery, *params.RoleIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vid != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vid", runtime.ParamLocationQuery, *params.Vid); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VidGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vid__gt", runtime.ParamLocationQuery, *params.VidGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VidGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vid__gte", runtime.ParamLocationQuery, *params.VidGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VidLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vid__lt", runtime.ParamLocationQuery, *params.VidLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VidLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vid__lte", runtime.ParamLocationQuery, *params.VidLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VidN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vid__n", runtime.ParamLocationQuery, *params.VidN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlansBulkPartialUpdateRequest calls the generic IpamVlansBulkPartialUpdate builder with application/json body -func NewIpamVlansBulkPartialUpdateRequest(server string, body IpamVlansBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlansBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlansBulkPartialUpdateRequestWithBody generates requests for IpamVlansBulkPartialUpdate with any type of body -func NewIpamVlansBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlansCreateRequest calls the generic IpamVlansCreate builder with application/json body -func NewIpamVlansCreateRequest(server string, body IpamVlansCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlansCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlansCreateRequestWithBody generates requests for IpamVlansCreate with any type of body -func NewIpamVlansCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlansBulkUpdateRequest calls the generic IpamVlansBulkUpdate builder with application/json body -func NewIpamVlansBulkUpdateRequest(server string, body IpamVlansBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlansBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVlansBulkUpdateRequestWithBody generates requests for IpamVlansBulkUpdate with any type of body -func NewIpamVlansBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlansDestroyRequest generates requests for IpamVlansDestroy -func NewIpamVlansDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlansRetrieveRequest generates requests for IpamVlansRetrieve -func NewIpamVlansRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlansPartialUpdateRequest calls the generic IpamVlansPartialUpdate builder with application/json body -func NewIpamVlansPartialUpdateRequest(server string, id openapi_types.UUID, body IpamVlansPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlansPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVlansPartialUpdateRequestWithBody generates requests for IpamVlansPartialUpdate with any type of body -func NewIpamVlansPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlansUpdateRequest calls the generic IpamVlansUpdate builder with application/json body -func NewIpamVlansUpdateRequest(server string, id openapi_types.UUID, body IpamVlansUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlansUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVlansUpdateRequestWithBody generates requests for IpamVlansUpdate with any type of body -func NewIpamVlansUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVlansNotesListRequest generates requests for IpamVlansNotesList -func NewIpamVlansNotesListRequest(server string, id openapi_types.UUID, params *IpamVlansNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVlansNotesCreateRequest calls the generic IpamVlansNotesCreate builder with application/json body -func NewIpamVlansNotesCreateRequest(server string, id openapi_types.UUID, body IpamVlansNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVlansNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVlansNotesCreateRequestWithBody generates requests for IpamVlansNotesCreate with any type of body -func NewIpamVlansNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vlans/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVrfsBulkDestroyRequest calls the generic IpamVrfsBulkDestroy builder with application/json body -func NewIpamVrfsBulkDestroyRequest(server string, body IpamVrfsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVrfsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVrfsBulkDestroyRequestWithBody generates requests for IpamVrfsBulkDestroy with any type of body -func NewIpamVrfsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVrfsListRequest generates requests for IpamVrfsList -func NewIpamVrfsListRequest(server string, params *IpamVrfsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EnforceUnique != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enforce_unique", runtime.ParamLocationQuery, *params.EnforceUnique); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportTarget != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "export_target", runtime.ParamLocationQuery, *params.ExportTarget); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportTargetN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "export_target__n", runtime.ParamLocationQuery, *params.ExportTargetN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportTargetId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "export_target_id", runtime.ParamLocationQuery, *params.ExportTargetId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExportTargetIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "export_target_id__n", runtime.ParamLocationQuery, *params.ExportTargetIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportTarget != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_target", runtime.ParamLocationQuery, *params.ImportTarget); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportTargetN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_target__n", runtime.ParamLocationQuery, *params.ImportTargetN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportTargetId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_target_id", runtime.ParamLocationQuery, *params.ImportTargetId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImportTargetIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_target_id__n", runtime.ParamLocationQuery, *params.ImportTargetIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rd != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd", runtime.ParamLocationQuery, *params.Rd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__ic", runtime.ParamLocationQuery, *params.RdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__ie", runtime.ParamLocationQuery, *params.RdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__iew", runtime.ParamLocationQuery, *params.RdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__ire", runtime.ParamLocationQuery, *params.RdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__isw", runtime.ParamLocationQuery, *params.RdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__n", runtime.ParamLocationQuery, *params.RdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__nic", runtime.ParamLocationQuery, *params.RdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__nie", runtime.ParamLocationQuery, *params.RdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__niew", runtime.ParamLocationQuery, *params.RdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__nire", runtime.ParamLocationQuery, *params.RdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__nisw", runtime.ParamLocationQuery, *params.RdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__nre", runtime.ParamLocationQuery, *params.RdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rd__re", runtime.ParamLocationQuery, *params.RdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVrfsBulkPartialUpdateRequest calls the generic IpamVrfsBulkPartialUpdate builder with application/json body -func NewIpamVrfsBulkPartialUpdateRequest(server string, body IpamVrfsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVrfsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVrfsBulkPartialUpdateRequestWithBody generates requests for IpamVrfsBulkPartialUpdate with any type of body -func NewIpamVrfsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVrfsCreateRequest calls the generic IpamVrfsCreate builder with application/json body -func NewIpamVrfsCreateRequest(server string, body IpamVrfsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVrfsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVrfsCreateRequestWithBody generates requests for IpamVrfsCreate with any type of body -func NewIpamVrfsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVrfsBulkUpdateRequest calls the generic IpamVrfsBulkUpdate builder with application/json body -func NewIpamVrfsBulkUpdateRequest(server string, body IpamVrfsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVrfsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewIpamVrfsBulkUpdateRequestWithBody generates requests for IpamVrfsBulkUpdate with any type of body -func NewIpamVrfsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVrfsDestroyRequest generates requests for IpamVrfsDestroy -func NewIpamVrfsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVrfsRetrieveRequest generates requests for IpamVrfsRetrieve -func NewIpamVrfsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVrfsPartialUpdateRequest calls the generic IpamVrfsPartialUpdate builder with application/json body -func NewIpamVrfsPartialUpdateRequest(server string, id openapi_types.UUID, body IpamVrfsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVrfsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVrfsPartialUpdateRequestWithBody generates requests for IpamVrfsPartialUpdate with any type of body -func NewIpamVrfsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVrfsUpdateRequest calls the generic IpamVrfsUpdate builder with application/json body -func NewIpamVrfsUpdateRequest(server string, id openapi_types.UUID, body IpamVrfsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVrfsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVrfsUpdateRequestWithBody generates requests for IpamVrfsUpdate with any type of body -func NewIpamVrfsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIpamVrfsNotesListRequest generates requests for IpamVrfsNotesList -func NewIpamVrfsNotesListRequest(server string, id openapi_types.UUID, params *IpamVrfsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIpamVrfsNotesCreateRequest calls the generic IpamVrfsNotesCreate builder with application/json body -func NewIpamVrfsNotesCreateRequest(server string, id openapi_types.UUID, body IpamVrfsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIpamVrfsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIpamVrfsNotesCreateRequestWithBody generates requests for IpamVrfsNotesCreate with any type of body -func NewIpamVrfsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/ipam/vrfs/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAddressFamiliesBulkDestroyRequest calls the generic PluginsBgpAddressFamiliesBulkDestroy builder with application/json body -func NewPluginsBgpAddressFamiliesBulkDestroyRequest(server string, body PluginsBgpAddressFamiliesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAddressFamiliesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAddressFamiliesBulkDestroyRequestWithBody generates requests for PluginsBgpAddressFamiliesBulkDestroy with any type of body -func NewPluginsBgpAddressFamiliesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAddressFamiliesListRequest generates requests for PluginsBgpAddressFamiliesList -func NewPluginsBgpAddressFamiliesListRequest(server string, params *PluginsBgpAddressFamiliesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AfiSafi != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "afi_safi", runtime.ParamLocationQuery, *params.AfiSafi); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AfiSafiN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "afi_safi__n", runtime.ParamLocationQuery, *params.AfiSafiN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoutingInstance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "routing_instance", runtime.ParamLocationQuery, *params.RoutingInstance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoutingInstanceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "routing_instance__n", runtime.ParamLocationQuery, *params.RoutingInstanceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf", runtime.ParamLocationQuery, *params.Vrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf__n", runtime.ParamLocationQuery, *params.VrfN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpAddressFamiliesBulkPartialUpdateRequest calls the generic PluginsBgpAddressFamiliesBulkPartialUpdate builder with application/json body -func NewPluginsBgpAddressFamiliesBulkPartialUpdateRequest(server string, body PluginsBgpAddressFamiliesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAddressFamiliesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAddressFamiliesBulkPartialUpdateRequestWithBody generates requests for PluginsBgpAddressFamiliesBulkPartialUpdate with any type of body -func NewPluginsBgpAddressFamiliesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAddressFamiliesCreateRequest calls the generic PluginsBgpAddressFamiliesCreate builder with application/json body -func NewPluginsBgpAddressFamiliesCreateRequest(server string, body PluginsBgpAddressFamiliesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAddressFamiliesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAddressFamiliesCreateRequestWithBody generates requests for PluginsBgpAddressFamiliesCreate with any type of body -func NewPluginsBgpAddressFamiliesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAddressFamiliesBulkUpdateRequest calls the generic PluginsBgpAddressFamiliesBulkUpdate builder with application/json body -func NewPluginsBgpAddressFamiliesBulkUpdateRequest(server string, body PluginsBgpAddressFamiliesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAddressFamiliesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAddressFamiliesBulkUpdateRequestWithBody generates requests for PluginsBgpAddressFamiliesBulkUpdate with any type of body -func NewPluginsBgpAddressFamiliesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAddressFamiliesDestroyRequest generates requests for PluginsBgpAddressFamiliesDestroy -func NewPluginsBgpAddressFamiliesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpAddressFamiliesRetrieveRequest generates requests for PluginsBgpAddressFamiliesRetrieve -func NewPluginsBgpAddressFamiliesRetrieveRequest(server string, id openapi_types.UUID, params *PluginsBgpAddressFamiliesRetrieveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpAddressFamiliesPartialUpdateRequest calls the generic PluginsBgpAddressFamiliesPartialUpdate builder with application/json body -func NewPluginsBgpAddressFamiliesPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpAddressFamiliesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAddressFamiliesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpAddressFamiliesPartialUpdateRequestWithBody generates requests for PluginsBgpAddressFamiliesPartialUpdate with any type of body -func NewPluginsBgpAddressFamiliesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAddressFamiliesUpdateRequest calls the generic PluginsBgpAddressFamiliesUpdate builder with application/json body -func NewPluginsBgpAddressFamiliesUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpAddressFamiliesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAddressFamiliesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpAddressFamiliesUpdateRequestWithBody generates requests for PluginsBgpAddressFamiliesUpdate with any type of body -func NewPluginsBgpAddressFamiliesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/address-families/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsBulkDestroyRequest calls the generic PluginsBgpAutonomousSystemsBulkDestroy builder with application/json body -func NewPluginsBgpAutonomousSystemsBulkDestroyRequest(server string, body PluginsBgpAutonomousSystemsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAutonomousSystemsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAutonomousSystemsBulkDestroyRequestWithBody generates requests for PluginsBgpAutonomousSystemsBulkDestroy with any type of body -func NewPluginsBgpAutonomousSystemsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsListRequest generates requests for PluginsBgpAutonomousSystemsList -func NewPluginsBgpAutonomousSystemsListRequest(server string, params *PluginsBgpAutonomousSystemsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Asn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn", runtime.ParamLocationQuery, *params.Asn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__gt", runtime.ParamLocationQuery, *params.AsnGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__gte", runtime.ParamLocationQuery, *params.AsnGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__lt", runtime.ParamLocationQuery, *params.AsnLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__lte", runtime.ParamLocationQuery, *params.AsnLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AsnN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "asn__n", runtime.ParamLocationQuery, *params.AsnN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsBulkPartialUpdateRequest calls the generic PluginsBgpAutonomousSystemsBulkPartialUpdate builder with application/json body -func NewPluginsBgpAutonomousSystemsBulkPartialUpdateRequest(server string, body PluginsBgpAutonomousSystemsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAutonomousSystemsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAutonomousSystemsBulkPartialUpdateRequestWithBody generates requests for PluginsBgpAutonomousSystemsBulkPartialUpdate with any type of body -func NewPluginsBgpAutonomousSystemsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsCreateRequest calls the generic PluginsBgpAutonomousSystemsCreate builder with application/json body -func NewPluginsBgpAutonomousSystemsCreateRequest(server string, body PluginsBgpAutonomousSystemsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAutonomousSystemsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAutonomousSystemsCreateRequestWithBody generates requests for PluginsBgpAutonomousSystemsCreate with any type of body -func NewPluginsBgpAutonomousSystemsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsBulkUpdateRequest calls the generic PluginsBgpAutonomousSystemsBulkUpdate builder with application/json body -func NewPluginsBgpAutonomousSystemsBulkUpdateRequest(server string, body PluginsBgpAutonomousSystemsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAutonomousSystemsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpAutonomousSystemsBulkUpdateRequestWithBody generates requests for PluginsBgpAutonomousSystemsBulkUpdate with any type of body -func NewPluginsBgpAutonomousSystemsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsDestroyRequest generates requests for PluginsBgpAutonomousSystemsDestroy -func NewPluginsBgpAutonomousSystemsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsRetrieveRequest generates requests for PluginsBgpAutonomousSystemsRetrieve -func NewPluginsBgpAutonomousSystemsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsPartialUpdateRequest calls the generic PluginsBgpAutonomousSystemsPartialUpdate builder with application/json body -func NewPluginsBgpAutonomousSystemsPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpAutonomousSystemsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAutonomousSystemsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpAutonomousSystemsPartialUpdateRequestWithBody generates requests for PluginsBgpAutonomousSystemsPartialUpdate with any type of body -func NewPluginsBgpAutonomousSystemsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpAutonomousSystemsUpdateRequest calls the generic PluginsBgpAutonomousSystemsUpdate builder with application/json body -func NewPluginsBgpAutonomousSystemsUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpAutonomousSystemsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpAutonomousSystemsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpAutonomousSystemsUpdateRequestWithBody generates requests for PluginsBgpAutonomousSystemsUpdate with any type of body -func NewPluginsBgpAutonomousSystemsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/autonomous-systems/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerEndpointsBulkDestroyRequest calls the generic PluginsBgpPeerEndpointsBulkDestroy builder with application/json body -func NewPluginsBgpPeerEndpointsBulkDestroyRequest(server string, body PluginsBgpPeerEndpointsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerEndpointsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerEndpointsBulkDestroyRequestWithBody generates requests for PluginsBgpPeerEndpointsBulkDestroy with any type of body -func NewPluginsBgpPeerEndpointsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerEndpointsListRequest generates requests for PluginsBgpPeerEndpointsList -func NewPluginsBgpPeerEndpointsListRequest(server string, params *PluginsBgpPeerEndpointsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AutonomousSystem != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system", runtime.ParamLocationQuery, *params.AutonomousSystem); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AutonomousSystemN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system__n", runtime.ParamLocationQuery, *params.AutonomousSystemN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PeerGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "peer_group", runtime.ParamLocationQuery, *params.PeerGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PeerGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "peer_group__n", runtime.ParamLocationQuery, *params.PeerGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerEndpointsBulkPartialUpdateRequest calls the generic PluginsBgpPeerEndpointsBulkPartialUpdate builder with application/json body -func NewPluginsBgpPeerEndpointsBulkPartialUpdateRequest(server string, body PluginsBgpPeerEndpointsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerEndpointsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerEndpointsBulkPartialUpdateRequestWithBody generates requests for PluginsBgpPeerEndpointsBulkPartialUpdate with any type of body -func NewPluginsBgpPeerEndpointsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerEndpointsCreateRequest calls the generic PluginsBgpPeerEndpointsCreate builder with application/json body -func NewPluginsBgpPeerEndpointsCreateRequest(server string, body PluginsBgpPeerEndpointsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerEndpointsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerEndpointsCreateRequestWithBody generates requests for PluginsBgpPeerEndpointsCreate with any type of body -func NewPluginsBgpPeerEndpointsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerEndpointsBulkUpdateRequest calls the generic PluginsBgpPeerEndpointsBulkUpdate builder with application/json body -func NewPluginsBgpPeerEndpointsBulkUpdateRequest(server string, body PluginsBgpPeerEndpointsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerEndpointsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerEndpointsBulkUpdateRequestWithBody generates requests for PluginsBgpPeerEndpointsBulkUpdate with any type of body -func NewPluginsBgpPeerEndpointsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerEndpointsDestroyRequest generates requests for PluginsBgpPeerEndpointsDestroy -func NewPluginsBgpPeerEndpointsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerEndpointsRetrieveRequest generates requests for PluginsBgpPeerEndpointsRetrieve -func NewPluginsBgpPeerEndpointsRetrieveRequest(server string, id openapi_types.UUID, params *PluginsBgpPeerEndpointsRetrieveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerEndpointsPartialUpdateRequest calls the generic PluginsBgpPeerEndpointsPartialUpdate builder with application/json body -func NewPluginsBgpPeerEndpointsPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeerEndpointsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerEndpointsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeerEndpointsPartialUpdateRequestWithBody generates requests for PluginsBgpPeerEndpointsPartialUpdate with any type of body -func NewPluginsBgpPeerEndpointsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerEndpointsUpdateRequest calls the generic PluginsBgpPeerEndpointsUpdate builder with application/json body -func NewPluginsBgpPeerEndpointsUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeerEndpointsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerEndpointsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeerEndpointsUpdateRequestWithBody generates requests for PluginsBgpPeerEndpointsUpdate with any type of body -func NewPluginsBgpPeerEndpointsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-endpoints/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesBulkDestroyRequest calls the generic PluginsBgpPeerGroupTemplatesBulkDestroy builder with application/json body -func NewPluginsBgpPeerGroupTemplatesBulkDestroyRequest(server string, body PluginsBgpPeerGroupTemplatesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupTemplatesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupTemplatesBulkDestroyRequestWithBody generates requests for PluginsBgpPeerGroupTemplatesBulkDestroy with any type of body -func NewPluginsBgpPeerGroupTemplatesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesListRequest generates requests for PluginsBgpPeerGroupTemplatesList -func NewPluginsBgpPeerGroupTemplatesListRequest(server string, params *PluginsBgpPeerGroupTemplatesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AutonomousSystem != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system", runtime.ParamLocationQuery, *params.AutonomousSystem); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AutonomousSystemN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system__n", runtime.ParamLocationQuery, *params.AutonomousSystemN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesBulkPartialUpdateRequest calls the generic PluginsBgpPeerGroupTemplatesBulkPartialUpdate builder with application/json body -func NewPluginsBgpPeerGroupTemplatesBulkPartialUpdateRequest(server string, body PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupTemplatesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupTemplatesBulkPartialUpdateRequestWithBody generates requests for PluginsBgpPeerGroupTemplatesBulkPartialUpdate with any type of body -func NewPluginsBgpPeerGroupTemplatesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesCreateRequest calls the generic PluginsBgpPeerGroupTemplatesCreate builder with application/json body -func NewPluginsBgpPeerGroupTemplatesCreateRequest(server string, body PluginsBgpPeerGroupTemplatesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupTemplatesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupTemplatesCreateRequestWithBody generates requests for PluginsBgpPeerGroupTemplatesCreate with any type of body -func NewPluginsBgpPeerGroupTemplatesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesBulkUpdateRequest calls the generic PluginsBgpPeerGroupTemplatesBulkUpdate builder with application/json body -func NewPluginsBgpPeerGroupTemplatesBulkUpdateRequest(server string, body PluginsBgpPeerGroupTemplatesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupTemplatesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupTemplatesBulkUpdateRequestWithBody generates requests for PluginsBgpPeerGroupTemplatesBulkUpdate with any type of body -func NewPluginsBgpPeerGroupTemplatesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesDestroyRequest generates requests for PluginsBgpPeerGroupTemplatesDestroy -func NewPluginsBgpPeerGroupTemplatesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesRetrieveRequest generates requests for PluginsBgpPeerGroupTemplatesRetrieve -func NewPluginsBgpPeerGroupTemplatesRetrieveRequest(server string, id openapi_types.UUID, params *PluginsBgpPeerGroupTemplatesRetrieveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesPartialUpdateRequest calls the generic PluginsBgpPeerGroupTemplatesPartialUpdate builder with application/json body -func NewPluginsBgpPeerGroupTemplatesPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupTemplatesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupTemplatesPartialUpdateRequestWithBody generates requests for PluginsBgpPeerGroupTemplatesPartialUpdate with any type of body -func NewPluginsBgpPeerGroupTemplatesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupTemplatesUpdateRequest calls the generic PluginsBgpPeerGroupTemplatesUpdate builder with application/json body -func NewPluginsBgpPeerGroupTemplatesUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupTemplatesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupTemplatesUpdateRequestWithBody generates requests for PluginsBgpPeerGroupTemplatesUpdate with any type of body -func NewPluginsBgpPeerGroupTemplatesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-group-templates/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupsBulkDestroyRequest calls the generic PluginsBgpPeerGroupsBulkDestroy builder with application/json body -func NewPluginsBgpPeerGroupsBulkDestroyRequest(server string, body PluginsBgpPeerGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupsBulkDestroyRequestWithBody generates requests for PluginsBgpPeerGroupsBulkDestroy with any type of body -func NewPluginsBgpPeerGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupsListRequest generates requests for PluginsBgpPeerGroupsList -func NewPluginsBgpPeerGroupsListRequest(server string, params *PluginsBgpPeerGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AutonomousSystem != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system", runtime.ParamLocationQuery, *params.AutonomousSystem); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AutonomousSystemN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system__n", runtime.ParamLocationQuery, *params.AutonomousSystemN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoutingInstance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "routing_instance", runtime.ParamLocationQuery, *params.RoutingInstance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoutingInstanceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "routing_instance__n", runtime.ParamLocationQuery, *params.RoutingInstanceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerGroupsBulkPartialUpdateRequest calls the generic PluginsBgpPeerGroupsBulkPartialUpdate builder with application/json body -func NewPluginsBgpPeerGroupsBulkPartialUpdateRequest(server string, body PluginsBgpPeerGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupsBulkPartialUpdateRequestWithBody generates requests for PluginsBgpPeerGroupsBulkPartialUpdate with any type of body -func NewPluginsBgpPeerGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupsCreateRequest calls the generic PluginsBgpPeerGroupsCreate builder with application/json body -func NewPluginsBgpPeerGroupsCreateRequest(server string, body PluginsBgpPeerGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupsCreateRequestWithBody generates requests for PluginsBgpPeerGroupsCreate with any type of body -func NewPluginsBgpPeerGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupsBulkUpdateRequest calls the generic PluginsBgpPeerGroupsBulkUpdate builder with application/json body -func NewPluginsBgpPeerGroupsBulkUpdateRequest(server string, body PluginsBgpPeerGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupsBulkUpdateRequestWithBody generates requests for PluginsBgpPeerGroupsBulkUpdate with any type of body -func NewPluginsBgpPeerGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupsDestroyRequest generates requests for PluginsBgpPeerGroupsDestroy -func NewPluginsBgpPeerGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerGroupsRetrieveRequest generates requests for PluginsBgpPeerGroupsRetrieve -func NewPluginsBgpPeerGroupsRetrieveRequest(server string, id openapi_types.UUID, params *PluginsBgpPeerGroupsRetrieveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.IncludeInherited != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_inherited", runtime.ParamLocationQuery, *params.IncludeInherited); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeerGroupsPartialUpdateRequest calls the generic PluginsBgpPeerGroupsPartialUpdate builder with application/json body -func NewPluginsBgpPeerGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeerGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupsPartialUpdateRequestWithBody generates requests for PluginsBgpPeerGroupsPartialUpdate with any type of body -func NewPluginsBgpPeerGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeerGroupsUpdateRequest calls the generic PluginsBgpPeerGroupsUpdate builder with application/json body -func NewPluginsBgpPeerGroupsUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeerGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeerGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeerGroupsUpdateRequestWithBody generates requests for PluginsBgpPeerGroupsUpdate with any type of body -func NewPluginsBgpPeerGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peer-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringRolesBulkDestroyRequest calls the generic PluginsBgpPeeringRolesBulkDestroy builder with application/json body -func NewPluginsBgpPeeringRolesBulkDestroyRequest(server string, body PluginsBgpPeeringRolesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringRolesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringRolesBulkDestroyRequestWithBody generates requests for PluginsBgpPeeringRolesBulkDestroy with any type of body -func NewPluginsBgpPeeringRolesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringRolesListRequest generates requests for PluginsBgpPeeringRolesList -func NewPluginsBgpPeeringRolesListRequest(server string, params *PluginsBgpPeeringRolesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Color != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color", runtime.ParamLocationQuery, *params.Color); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ic", runtime.ParamLocationQuery, *params.ColorIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ie", runtime.ParamLocationQuery, *params.ColorIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__iew", runtime.ParamLocationQuery, *params.ColorIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__ire", runtime.ParamLocationQuery, *params.ColorIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__isw", runtime.ParamLocationQuery, *params.ColorIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__n", runtime.ParamLocationQuery, *params.ColorN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nic", runtime.ParamLocationQuery, *params.ColorNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nie", runtime.ParamLocationQuery, *params.ColorNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__niew", runtime.ParamLocationQuery, *params.ColorNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nire", runtime.ParamLocationQuery, *params.ColorNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nisw", runtime.ParamLocationQuery, *params.ColorNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__nre", runtime.ParamLocationQuery, *params.ColorNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ColorRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "color__re", runtime.ParamLocationQuery, *params.ColorRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeeringRolesBulkPartialUpdateRequest calls the generic PluginsBgpPeeringRolesBulkPartialUpdate builder with application/json body -func NewPluginsBgpPeeringRolesBulkPartialUpdateRequest(server string, body PluginsBgpPeeringRolesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringRolesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringRolesBulkPartialUpdateRequestWithBody generates requests for PluginsBgpPeeringRolesBulkPartialUpdate with any type of body -func NewPluginsBgpPeeringRolesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringRolesCreateRequest calls the generic PluginsBgpPeeringRolesCreate builder with application/json body -func NewPluginsBgpPeeringRolesCreateRequest(server string, body PluginsBgpPeeringRolesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringRolesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringRolesCreateRequestWithBody generates requests for PluginsBgpPeeringRolesCreate with any type of body -func NewPluginsBgpPeeringRolesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringRolesBulkUpdateRequest calls the generic PluginsBgpPeeringRolesBulkUpdate builder with application/json body -func NewPluginsBgpPeeringRolesBulkUpdateRequest(server string, body PluginsBgpPeeringRolesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringRolesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringRolesBulkUpdateRequestWithBody generates requests for PluginsBgpPeeringRolesBulkUpdate with any type of body -func NewPluginsBgpPeeringRolesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringRolesDestroyRequest generates requests for PluginsBgpPeeringRolesDestroy -func NewPluginsBgpPeeringRolesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeeringRolesRetrieveRequest generates requests for PluginsBgpPeeringRolesRetrieve -func NewPluginsBgpPeeringRolesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeeringRolesPartialUpdateRequest calls the generic PluginsBgpPeeringRolesPartialUpdate builder with application/json body -func NewPluginsBgpPeeringRolesPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeeringRolesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringRolesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringRolesPartialUpdateRequestWithBody generates requests for PluginsBgpPeeringRolesPartialUpdate with any type of body -func NewPluginsBgpPeeringRolesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringRolesUpdateRequest calls the generic PluginsBgpPeeringRolesUpdate builder with application/json body -func NewPluginsBgpPeeringRolesUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeeringRolesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringRolesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringRolesUpdateRequestWithBody generates requests for PluginsBgpPeeringRolesUpdate with any type of body -func NewPluginsBgpPeeringRolesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peering-roles/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringsBulkDestroyRequest calls the generic PluginsBgpPeeringsBulkDestroy builder with application/json body -func NewPluginsBgpPeeringsBulkDestroyRequest(server string, body PluginsBgpPeeringsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringsBulkDestroyRequestWithBody generates requests for PluginsBgpPeeringsBulkDestroy with any type of body -func NewPluginsBgpPeeringsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringsListRequest generates requests for PluginsBgpPeeringsList -func NewPluginsBgpPeeringsListRequest(server string, params *PluginsBgpPeeringsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeeringsBulkPartialUpdateRequest calls the generic PluginsBgpPeeringsBulkPartialUpdate builder with application/json body -func NewPluginsBgpPeeringsBulkPartialUpdateRequest(server string, body PluginsBgpPeeringsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringsBulkPartialUpdateRequestWithBody generates requests for PluginsBgpPeeringsBulkPartialUpdate with any type of body -func NewPluginsBgpPeeringsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringsCreateRequest calls the generic PluginsBgpPeeringsCreate builder with application/json body -func NewPluginsBgpPeeringsCreateRequest(server string, body PluginsBgpPeeringsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringsCreateRequestWithBody generates requests for PluginsBgpPeeringsCreate with any type of body -func NewPluginsBgpPeeringsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringsBulkUpdateRequest calls the generic PluginsBgpPeeringsBulkUpdate builder with application/json body -func NewPluginsBgpPeeringsBulkUpdateRequest(server string, body PluginsBgpPeeringsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringsBulkUpdateRequestWithBody generates requests for PluginsBgpPeeringsBulkUpdate with any type of body -func NewPluginsBgpPeeringsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringsDestroyRequest generates requests for PluginsBgpPeeringsDestroy -func NewPluginsBgpPeeringsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeeringsRetrieveRequest generates requests for PluginsBgpPeeringsRetrieve -func NewPluginsBgpPeeringsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpPeeringsPartialUpdateRequest calls the generic PluginsBgpPeeringsPartialUpdate builder with application/json body -func NewPluginsBgpPeeringsPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeeringsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringsPartialUpdateRequestWithBody generates requests for PluginsBgpPeeringsPartialUpdate with any type of body -func NewPluginsBgpPeeringsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpPeeringsUpdateRequest calls the generic PluginsBgpPeeringsUpdate builder with application/json body -func NewPluginsBgpPeeringsUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpPeeringsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpPeeringsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpPeeringsUpdateRequestWithBody generates requests for PluginsBgpPeeringsUpdate with any type of body -func NewPluginsBgpPeeringsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/peerings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpRoutingInstancesBulkDestroyRequest calls the generic PluginsBgpRoutingInstancesBulkDestroy builder with application/json body -func NewPluginsBgpRoutingInstancesBulkDestroyRequest(server string, body PluginsBgpRoutingInstancesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpRoutingInstancesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpRoutingInstancesBulkDestroyRequestWithBody generates requests for PluginsBgpRoutingInstancesBulkDestroy with any type of body -func NewPluginsBgpRoutingInstancesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpRoutingInstancesListRequest generates requests for PluginsBgpRoutingInstancesList -func NewPluginsBgpRoutingInstancesListRequest(server string, params *PluginsBgpRoutingInstancesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AutonomousSystem != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system", runtime.ParamLocationQuery, *params.AutonomousSystem); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AutonomousSystemN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autonomous_system__n", runtime.ParamLocationQuery, *params.AutonomousSystemN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpRoutingInstancesBulkPartialUpdateRequest calls the generic PluginsBgpRoutingInstancesBulkPartialUpdate builder with application/json body -func NewPluginsBgpRoutingInstancesBulkPartialUpdateRequest(server string, body PluginsBgpRoutingInstancesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpRoutingInstancesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpRoutingInstancesBulkPartialUpdateRequestWithBody generates requests for PluginsBgpRoutingInstancesBulkPartialUpdate with any type of body -func NewPluginsBgpRoutingInstancesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpRoutingInstancesCreateRequest calls the generic PluginsBgpRoutingInstancesCreate builder with application/json body -func NewPluginsBgpRoutingInstancesCreateRequest(server string, body PluginsBgpRoutingInstancesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpRoutingInstancesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpRoutingInstancesCreateRequestWithBody generates requests for PluginsBgpRoutingInstancesCreate with any type of body -func NewPluginsBgpRoutingInstancesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpRoutingInstancesBulkUpdateRequest calls the generic PluginsBgpRoutingInstancesBulkUpdate builder with application/json body -func NewPluginsBgpRoutingInstancesBulkUpdateRequest(server string, body PluginsBgpRoutingInstancesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpRoutingInstancesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsBgpRoutingInstancesBulkUpdateRequestWithBody generates requests for PluginsBgpRoutingInstancesBulkUpdate with any type of body -func NewPluginsBgpRoutingInstancesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpRoutingInstancesDestroyRequest generates requests for PluginsBgpRoutingInstancesDestroy -func NewPluginsBgpRoutingInstancesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpRoutingInstancesRetrieveRequest generates requests for PluginsBgpRoutingInstancesRetrieve -func NewPluginsBgpRoutingInstancesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsBgpRoutingInstancesPartialUpdateRequest calls the generic PluginsBgpRoutingInstancesPartialUpdate builder with application/json body -func NewPluginsBgpRoutingInstancesPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpRoutingInstancesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpRoutingInstancesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpRoutingInstancesPartialUpdateRequestWithBody generates requests for PluginsBgpRoutingInstancesPartialUpdate with any type of body -func NewPluginsBgpRoutingInstancesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsBgpRoutingInstancesUpdateRequest calls the generic PluginsBgpRoutingInstancesUpdate builder with application/json body -func NewPluginsBgpRoutingInstancesUpdateRequest(server string, id openapi_types.UUID, body PluginsBgpRoutingInstancesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsBgpRoutingInstancesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsBgpRoutingInstancesUpdateRequestWithBody generates requests for PluginsBgpRoutingInstancesUpdate with any type of body -func NewPluginsBgpRoutingInstancesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/bgp/routing-instances/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsAccessgrantBulkDestroyRequest calls the generic PluginsChatopsAccessgrantBulkDestroy builder with application/json body -func NewPluginsChatopsAccessgrantBulkDestroyRequest(server string, body PluginsChatopsAccessgrantBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsAccessgrantBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsAccessgrantBulkDestroyRequestWithBody generates requests for PluginsChatopsAccessgrantBulkDestroy with any type of body -func NewPluginsChatopsAccessgrantBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsAccessgrantListRequest generates requests for PluginsChatopsAccessgrantList -func NewPluginsChatopsAccessgrantListRequest(server string, params *PluginsChatopsAccessgrantListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Command != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command", runtime.ParamLocationQuery, *params.Command); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__ic", runtime.ParamLocationQuery, *params.CommandIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__ie", runtime.ParamLocationQuery, *params.CommandIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__iew", runtime.ParamLocationQuery, *params.CommandIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__ire", runtime.ParamLocationQuery, *params.CommandIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__isw", runtime.ParamLocationQuery, *params.CommandIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__n", runtime.ParamLocationQuery, *params.CommandN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__nic", runtime.ParamLocationQuery, *params.CommandNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__nie", runtime.ParamLocationQuery, *params.CommandNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__niew", runtime.ParamLocationQuery, *params.CommandNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__nire", runtime.ParamLocationQuery, *params.CommandNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__nisw", runtime.ParamLocationQuery, *params.CommandNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__nre", runtime.ParamLocationQuery, *params.CommandNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommandRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "command__re", runtime.ParamLocationQuery, *params.CommandRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GrantType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grant_type", runtime.ParamLocationQuery, *params.GrantType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GrantTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grant_type__n", runtime.ParamLocationQuery, *params.GrantTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Subcommand != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand", runtime.ParamLocationQuery, *params.Subcommand); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__ic", runtime.ParamLocationQuery, *params.SubcommandIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__ie", runtime.ParamLocationQuery, *params.SubcommandIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__iew", runtime.ParamLocationQuery, *params.SubcommandIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__ire", runtime.ParamLocationQuery, *params.SubcommandIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__isw", runtime.ParamLocationQuery, *params.SubcommandIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__n", runtime.ParamLocationQuery, *params.SubcommandN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__nic", runtime.ParamLocationQuery, *params.SubcommandNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__nie", runtime.ParamLocationQuery, *params.SubcommandNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__niew", runtime.ParamLocationQuery, *params.SubcommandNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__nire", runtime.ParamLocationQuery, *params.SubcommandNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__nisw", runtime.ParamLocationQuery, *params.SubcommandNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__nre", runtime.ParamLocationQuery, *params.SubcommandNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SubcommandRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subcommand__re", runtime.ParamLocationQuery, *params.SubcommandRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Value != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value", runtime.ParamLocationQuery, *params.Value); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__ic", runtime.ParamLocationQuery, *params.ValueIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__ie", runtime.ParamLocationQuery, *params.ValueIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__iew", runtime.ParamLocationQuery, *params.ValueIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__ire", runtime.ParamLocationQuery, *params.ValueIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__isw", runtime.ParamLocationQuery, *params.ValueIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__n", runtime.ParamLocationQuery, *params.ValueN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nic", runtime.ParamLocationQuery, *params.ValueNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nie", runtime.ParamLocationQuery, *params.ValueNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__niew", runtime.ParamLocationQuery, *params.ValueNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nire", runtime.ParamLocationQuery, *params.ValueNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nisw", runtime.ParamLocationQuery, *params.ValueNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__nre", runtime.ParamLocationQuery, *params.ValueNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ValueRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "value__re", runtime.ParamLocationQuery, *params.ValueRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsChatopsAccessgrantBulkPartialUpdateRequest calls the generic PluginsChatopsAccessgrantBulkPartialUpdate builder with application/json body -func NewPluginsChatopsAccessgrantBulkPartialUpdateRequest(server string, body PluginsChatopsAccessgrantBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsAccessgrantBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsAccessgrantBulkPartialUpdateRequestWithBody generates requests for PluginsChatopsAccessgrantBulkPartialUpdate with any type of body -func NewPluginsChatopsAccessgrantBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsAccessgrantCreateRequest calls the generic PluginsChatopsAccessgrantCreate builder with application/json body -func NewPluginsChatopsAccessgrantCreateRequest(server string, body PluginsChatopsAccessgrantCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsAccessgrantCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsAccessgrantCreateRequestWithBody generates requests for PluginsChatopsAccessgrantCreate with any type of body -func NewPluginsChatopsAccessgrantCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsAccessgrantBulkUpdateRequest calls the generic PluginsChatopsAccessgrantBulkUpdate builder with application/json body -func NewPluginsChatopsAccessgrantBulkUpdateRequest(server string, body PluginsChatopsAccessgrantBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsAccessgrantBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsAccessgrantBulkUpdateRequestWithBody generates requests for PluginsChatopsAccessgrantBulkUpdate with any type of body -func NewPluginsChatopsAccessgrantBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsAccessgrantDestroyRequest generates requests for PluginsChatopsAccessgrantDestroy -func NewPluginsChatopsAccessgrantDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsChatopsAccessgrantRetrieveRequest generates requests for PluginsChatopsAccessgrantRetrieve -func NewPluginsChatopsAccessgrantRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsChatopsAccessgrantPartialUpdateRequest calls the generic PluginsChatopsAccessgrantPartialUpdate builder with application/json body -func NewPluginsChatopsAccessgrantPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsChatopsAccessgrantPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsAccessgrantPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsChatopsAccessgrantPartialUpdateRequestWithBody generates requests for PluginsChatopsAccessgrantPartialUpdate with any type of body -func NewPluginsChatopsAccessgrantPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsAccessgrantUpdateRequest calls the generic PluginsChatopsAccessgrantUpdate builder with application/json body -func NewPluginsChatopsAccessgrantUpdateRequest(server string, id openapi_types.UUID, body PluginsChatopsAccessgrantUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsAccessgrantUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsChatopsAccessgrantUpdateRequestWithBody generates requests for PluginsChatopsAccessgrantUpdate with any type of body -func NewPluginsChatopsAccessgrantUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/accessgrant/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsCommandtokenBulkDestroyRequest calls the generic PluginsChatopsCommandtokenBulkDestroy builder with application/json body -func NewPluginsChatopsCommandtokenBulkDestroyRequest(server string, body PluginsChatopsCommandtokenBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsCommandtokenBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsCommandtokenBulkDestroyRequestWithBody generates requests for PluginsChatopsCommandtokenBulkDestroy with any type of body -func NewPluginsChatopsCommandtokenBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsCommandtokenListRequest generates requests for PluginsChatopsCommandtokenList -func NewPluginsChatopsCommandtokenListRequest(server string, params *PluginsChatopsCommandtokenListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__ic", runtime.ParamLocationQuery, *params.CommentIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__ie", runtime.ParamLocationQuery, *params.CommentIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__iew", runtime.ParamLocationQuery, *params.CommentIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__ire", runtime.ParamLocationQuery, *params.CommentIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__isw", runtime.ParamLocationQuery, *params.CommentIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__n", runtime.ParamLocationQuery, *params.CommentN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__nic", runtime.ParamLocationQuery, *params.CommentNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__nie", runtime.ParamLocationQuery, *params.CommentNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__niew", runtime.ParamLocationQuery, *params.CommentNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__nire", runtime.ParamLocationQuery, *params.CommentNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__nisw", runtime.ParamLocationQuery, *params.CommentNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__nre", runtime.ParamLocationQuery, *params.CommentNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment__re", runtime.ParamLocationQuery, *params.CommentRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform__n", runtime.ParamLocationQuery, *params.PlatformN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsChatopsCommandtokenBulkPartialUpdateRequest calls the generic PluginsChatopsCommandtokenBulkPartialUpdate builder with application/json body -func NewPluginsChatopsCommandtokenBulkPartialUpdateRequest(server string, body PluginsChatopsCommandtokenBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsCommandtokenBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsCommandtokenBulkPartialUpdateRequestWithBody generates requests for PluginsChatopsCommandtokenBulkPartialUpdate with any type of body -func NewPluginsChatopsCommandtokenBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsCommandtokenCreateRequest calls the generic PluginsChatopsCommandtokenCreate builder with application/json body -func NewPluginsChatopsCommandtokenCreateRequest(server string, body PluginsChatopsCommandtokenCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsCommandtokenCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsCommandtokenCreateRequestWithBody generates requests for PluginsChatopsCommandtokenCreate with any type of body -func NewPluginsChatopsCommandtokenCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsCommandtokenBulkUpdateRequest calls the generic PluginsChatopsCommandtokenBulkUpdate builder with application/json body -func NewPluginsChatopsCommandtokenBulkUpdateRequest(server string, body PluginsChatopsCommandtokenBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsCommandtokenBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsChatopsCommandtokenBulkUpdateRequestWithBody generates requests for PluginsChatopsCommandtokenBulkUpdate with any type of body -func NewPluginsChatopsCommandtokenBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsCommandtokenDestroyRequest generates requests for PluginsChatopsCommandtokenDestroy -func NewPluginsChatopsCommandtokenDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsChatopsCommandtokenRetrieveRequest generates requests for PluginsChatopsCommandtokenRetrieve -func NewPluginsChatopsCommandtokenRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsChatopsCommandtokenPartialUpdateRequest calls the generic PluginsChatopsCommandtokenPartialUpdate builder with application/json body -func NewPluginsChatopsCommandtokenPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsChatopsCommandtokenPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsCommandtokenPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsChatopsCommandtokenPartialUpdateRequestWithBody generates requests for PluginsChatopsCommandtokenPartialUpdate with any type of body -func NewPluginsChatopsCommandtokenPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsChatopsCommandtokenUpdateRequest calls the generic PluginsChatopsCommandtokenUpdate builder with application/json body -func NewPluginsChatopsCommandtokenUpdateRequest(server string, id openapi_types.UUID, body PluginsChatopsCommandtokenUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsChatopsCommandtokenUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsChatopsCommandtokenUpdateRequestWithBody generates requests for PluginsChatopsCommandtokenUpdate with any type of body -func NewPluginsChatopsCommandtokenUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/chatops/commandtoken/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactBulkDestroyRequest calls the generic PluginsCircuitMaintenanceCircuitimpactBulkDestroy builder with application/json body -func NewPluginsCircuitMaintenanceCircuitimpactBulkDestroyRequest(server string, body PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceCircuitimpactBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceCircuitimpactBulkDestroyRequestWithBody generates requests for PluginsCircuitMaintenanceCircuitimpactBulkDestroy with any type of body -func NewPluginsCircuitMaintenanceCircuitimpactBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactListRequest generates requests for PluginsCircuitMaintenanceCircuitimpactList -func NewPluginsCircuitMaintenanceCircuitimpactListRequest(server string, params *PluginsCircuitMaintenanceCircuitimpactListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Circuit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "circuit", runtime.ParamLocationQuery, *params.Circuit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CircuitN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "circuit__n", runtime.ParamLocationQuery, *params.CircuitN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Impact != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "impact", runtime.ParamLocationQuery, *params.Impact); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImpactN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "impact__n", runtime.ParamLocationQuery, *params.ImpactN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Maintenance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maintenance", runtime.ParamLocationQuery, *params.Maintenance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaintenanceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maintenance__n", runtime.ParamLocationQuery, *params.MaintenanceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateRequest calls the generic PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate builder with application/json body -func NewPluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateRequest(server string, body PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate with any type of body -func NewPluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactCreateRequest calls the generic PluginsCircuitMaintenanceCircuitimpactCreate builder with application/json body -func NewPluginsCircuitMaintenanceCircuitimpactCreateRequest(server string, body PluginsCircuitMaintenanceCircuitimpactCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceCircuitimpactCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceCircuitimpactCreateRequestWithBody generates requests for PluginsCircuitMaintenanceCircuitimpactCreate with any type of body -func NewPluginsCircuitMaintenanceCircuitimpactCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactBulkUpdateRequest calls the generic PluginsCircuitMaintenanceCircuitimpactBulkUpdate builder with application/json body -func NewPluginsCircuitMaintenanceCircuitimpactBulkUpdateRequest(server string, body PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceCircuitimpactBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceCircuitimpactBulkUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceCircuitimpactBulkUpdate with any type of body -func NewPluginsCircuitMaintenanceCircuitimpactBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactDestroyRequest generates requests for PluginsCircuitMaintenanceCircuitimpactDestroy -func NewPluginsCircuitMaintenanceCircuitimpactDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactRetrieveRequest generates requests for PluginsCircuitMaintenanceCircuitimpactRetrieve -func NewPluginsCircuitMaintenanceCircuitimpactRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactPartialUpdateRequest calls the generic PluginsCircuitMaintenanceCircuitimpactPartialUpdate builder with application/json body -func NewPluginsCircuitMaintenanceCircuitimpactPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceCircuitimpactPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceCircuitimpactPartialUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceCircuitimpactPartialUpdate with any type of body -func NewPluginsCircuitMaintenanceCircuitimpactPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceCircuitimpactUpdateRequest calls the generic PluginsCircuitMaintenanceCircuitimpactUpdate builder with application/json body -func NewPluginsCircuitMaintenanceCircuitimpactUpdateRequest(server string, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceCircuitimpactUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceCircuitimpactUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceCircuitimpactUpdate with any type of body -func NewPluginsCircuitMaintenanceCircuitimpactUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/circuitimpact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceBulkDestroyRequest calls the generic PluginsCircuitMaintenanceMaintenanceBulkDestroy builder with application/json body -func NewPluginsCircuitMaintenanceMaintenanceBulkDestroyRequest(server string, body PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceMaintenanceBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceMaintenanceBulkDestroyRequestWithBody generates requests for PluginsCircuitMaintenanceMaintenanceBulkDestroy with any type of body -func NewPluginsCircuitMaintenanceMaintenanceBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceListRequest generates requests for PluginsCircuitMaintenanceMaintenanceList -func NewPluginsCircuitMaintenanceMaintenanceListRequest(server string, params *PluginsCircuitMaintenanceMaintenanceListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Ack != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ack", runtime.ParamLocationQuery, *params.Ack); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Circuit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "circuit", runtime.ParamLocationQuery, *params.Circuit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndTime != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_time", runtime.ParamLocationQuery, *params.EndTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Provider != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider", runtime.ParamLocationQuery, *params.Provider); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartTime != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_time", runtime.ParamLocationQuery, *params.StartTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceBulkPartialUpdateRequest calls the generic PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate builder with application/json body -func NewPluginsCircuitMaintenanceMaintenanceBulkPartialUpdateRequest(server string, body PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceMaintenanceBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceMaintenanceBulkPartialUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate with any type of body -func NewPluginsCircuitMaintenanceMaintenanceBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceCreateRequest calls the generic PluginsCircuitMaintenanceMaintenanceCreate builder with application/json body -func NewPluginsCircuitMaintenanceMaintenanceCreateRequest(server string, body PluginsCircuitMaintenanceMaintenanceCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceMaintenanceCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceMaintenanceCreateRequestWithBody generates requests for PluginsCircuitMaintenanceMaintenanceCreate with any type of body -func NewPluginsCircuitMaintenanceMaintenanceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceBulkUpdateRequest calls the generic PluginsCircuitMaintenanceMaintenanceBulkUpdate builder with application/json body -func NewPluginsCircuitMaintenanceMaintenanceBulkUpdateRequest(server string, body PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceMaintenanceBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceMaintenanceBulkUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceMaintenanceBulkUpdate with any type of body -func NewPluginsCircuitMaintenanceMaintenanceBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceDestroyRequest generates requests for PluginsCircuitMaintenanceMaintenanceDestroy -func NewPluginsCircuitMaintenanceMaintenanceDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceRetrieveRequest generates requests for PluginsCircuitMaintenanceMaintenanceRetrieve -func NewPluginsCircuitMaintenanceMaintenanceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenancePartialUpdateRequest calls the generic PluginsCircuitMaintenanceMaintenancePartialUpdate builder with application/json body -func NewPluginsCircuitMaintenanceMaintenancePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenancePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceMaintenancePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceMaintenancePartialUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceMaintenancePartialUpdate with any type of body -func NewPluginsCircuitMaintenanceMaintenancePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceMaintenanceUpdateRequest calls the generic PluginsCircuitMaintenanceMaintenanceUpdate builder with application/json body -func NewPluginsCircuitMaintenanceMaintenanceUpdateRequest(server string, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenanceUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceMaintenanceUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceMaintenanceUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceMaintenanceUpdate with any type of body -func NewPluginsCircuitMaintenanceMaintenanceUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/maintenance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteBulkDestroyRequest calls the generic PluginsCircuitMaintenanceNoteBulkDestroy builder with application/json body -func NewPluginsCircuitMaintenanceNoteBulkDestroyRequest(server string, body PluginsCircuitMaintenanceNoteBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceNoteBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceNoteBulkDestroyRequestWithBody generates requests for PluginsCircuitMaintenanceNoteBulkDestroy with any type of body -func NewPluginsCircuitMaintenanceNoteBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteListRequest generates requests for PluginsCircuitMaintenanceNoteList -func NewPluginsCircuitMaintenanceNoteListRequest(server string, params *PluginsCircuitMaintenanceNoteListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteBulkPartialUpdateRequest calls the generic PluginsCircuitMaintenanceNoteBulkPartialUpdate builder with application/json body -func NewPluginsCircuitMaintenanceNoteBulkPartialUpdateRequest(server string, body PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceNoteBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceNoteBulkPartialUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceNoteBulkPartialUpdate with any type of body -func NewPluginsCircuitMaintenanceNoteBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteCreateRequest calls the generic PluginsCircuitMaintenanceNoteCreate builder with application/json body -func NewPluginsCircuitMaintenanceNoteCreateRequest(server string, body PluginsCircuitMaintenanceNoteCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceNoteCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceNoteCreateRequestWithBody generates requests for PluginsCircuitMaintenanceNoteCreate with any type of body -func NewPluginsCircuitMaintenanceNoteCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteBulkUpdateRequest calls the generic PluginsCircuitMaintenanceNoteBulkUpdate builder with application/json body -func NewPluginsCircuitMaintenanceNoteBulkUpdateRequest(server string, body PluginsCircuitMaintenanceNoteBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceNoteBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceNoteBulkUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceNoteBulkUpdate with any type of body -func NewPluginsCircuitMaintenanceNoteBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteDestroyRequest generates requests for PluginsCircuitMaintenanceNoteDestroy -func NewPluginsCircuitMaintenanceNoteDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteRetrieveRequest generates requests for PluginsCircuitMaintenanceNoteRetrieve -func NewPluginsCircuitMaintenanceNoteRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceNotePartialUpdateRequest calls the generic PluginsCircuitMaintenanceNotePartialUpdate builder with application/json body -func NewPluginsCircuitMaintenanceNotePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsCircuitMaintenanceNotePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceNotePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceNotePartialUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceNotePartialUpdate with any type of body -func NewPluginsCircuitMaintenanceNotePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceNoteUpdateRequest calls the generic PluginsCircuitMaintenanceNoteUpdate builder with application/json body -func NewPluginsCircuitMaintenanceNoteUpdateRequest(server string, id openapi_types.UUID, body PluginsCircuitMaintenanceNoteUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsCircuitMaintenanceNoteUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsCircuitMaintenanceNoteUpdateRequestWithBody generates requests for PluginsCircuitMaintenanceNoteUpdate with any type of body -func NewPluginsCircuitMaintenanceNoteUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/note/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsCircuitMaintenanceNotificationsourceListRequest generates requests for PluginsCircuitMaintenanceNotificationsourceList -func NewPluginsCircuitMaintenanceNotificationsourceListRequest(server string, params *PluginsCircuitMaintenanceNotificationsourceListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/notificationsource/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AttachAllProviders != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "attach_all_providers", runtime.ParamLocationQuery, *params.AttachAllProviders); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsCircuitMaintenanceNotificationsourceRetrieveRequest generates requests for PluginsCircuitMaintenanceNotificationsourceRetrieve -func NewPluginsCircuitMaintenanceNotificationsourceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/circuit-maintenance/notificationsource/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxBulkDestroyRequest calls the generic PluginsDataValidationEngineRulesMinMaxBulkDestroy builder with application/json body -func NewPluginsDataValidationEngineRulesMinMaxBulkDestroyRequest(server string, body PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesMinMaxBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesMinMaxBulkDestroyRequestWithBody generates requests for PluginsDataValidationEngineRulesMinMaxBulkDestroy with any type of body -func NewPluginsDataValidationEngineRulesMinMaxBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxListRequest generates requests for PluginsDataValidationEngineRulesMinMaxList -func NewPluginsDataValidationEngineRulesMinMaxListRequest(server string, params *PluginsDataValidationEngineRulesMinMaxListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message", runtime.ParamLocationQuery, *params.ErrorMessage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__ic", runtime.ParamLocationQuery, *params.ErrorMessageIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__ie", runtime.ParamLocationQuery, *params.ErrorMessageIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__iew", runtime.ParamLocationQuery, *params.ErrorMessageIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__ire", runtime.ParamLocationQuery, *params.ErrorMessageIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__isw", runtime.ParamLocationQuery, *params.ErrorMessageIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__n", runtime.ParamLocationQuery, *params.ErrorMessageN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nic", runtime.ParamLocationQuery, *params.ErrorMessageNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nie", runtime.ParamLocationQuery, *params.ErrorMessageNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__niew", runtime.ParamLocationQuery, *params.ErrorMessageNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nire", runtime.ParamLocationQuery, *params.ErrorMessageNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nisw", runtime.ParamLocationQuery, *params.ErrorMessageNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nre", runtime.ParamLocationQuery, *params.ErrorMessageNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__re", runtime.ParamLocationQuery, *params.ErrorMessageRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Field != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field", runtime.ParamLocationQuery, *params.Field); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__ic", runtime.ParamLocationQuery, *params.FieldIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__ie", runtime.ParamLocationQuery, *params.FieldIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__iew", runtime.ParamLocationQuery, *params.FieldIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__ire", runtime.ParamLocationQuery, *params.FieldIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__isw", runtime.ParamLocationQuery, *params.FieldIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__n", runtime.ParamLocationQuery, *params.FieldN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nic", runtime.ParamLocationQuery, *params.FieldNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nie", runtime.ParamLocationQuery, *params.FieldNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__niew", runtime.ParamLocationQuery, *params.FieldNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nire", runtime.ParamLocationQuery, *params.FieldNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nisw", runtime.ParamLocationQuery, *params.FieldNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nre", runtime.ParamLocationQuery, *params.FieldNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__re", runtime.ParamLocationQuery, *params.FieldRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Max != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max", runtime.ParamLocationQuery, *params.Max); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max__gt", runtime.ParamLocationQuery, *params.MaxGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max__gte", runtime.ParamLocationQuery, *params.MaxGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max__lt", runtime.ParamLocationQuery, *params.MaxLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max__lte", runtime.ParamLocationQuery, *params.MaxLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MaxN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "max__n", runtime.ParamLocationQuery, *params.MaxN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Min != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "min", runtime.ParamLocationQuery, *params.Min); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MinGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "min__gt", runtime.ParamLocationQuery, *params.MinGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MinGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "min__gte", runtime.ParamLocationQuery, *params.MinGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MinLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "min__lt", runtime.ParamLocationQuery, *params.MinLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MinLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "min__lte", runtime.ParamLocationQuery, *params.MinLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MinN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "min__n", runtime.ParamLocationQuery, *params.MinN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxBulkPartialUpdateRequest calls the generic PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesMinMaxBulkPartialUpdateRequest(server string, body PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesMinMaxBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesMinMaxBulkPartialUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate with any type of body -func NewPluginsDataValidationEngineRulesMinMaxBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxCreateRequest calls the generic PluginsDataValidationEngineRulesMinMaxCreate builder with application/json body -func NewPluginsDataValidationEngineRulesMinMaxCreateRequest(server string, body PluginsDataValidationEngineRulesMinMaxCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesMinMaxCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesMinMaxCreateRequestWithBody generates requests for PluginsDataValidationEngineRulesMinMaxCreate with any type of body -func NewPluginsDataValidationEngineRulesMinMaxCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxBulkUpdateRequest calls the generic PluginsDataValidationEngineRulesMinMaxBulkUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesMinMaxBulkUpdateRequest(server string, body PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesMinMaxBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesMinMaxBulkUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesMinMaxBulkUpdate with any type of body -func NewPluginsDataValidationEngineRulesMinMaxBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxDestroyRequest generates requests for PluginsDataValidationEngineRulesMinMaxDestroy -func NewPluginsDataValidationEngineRulesMinMaxDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxRetrieveRequest generates requests for PluginsDataValidationEngineRulesMinMaxRetrieve -func NewPluginsDataValidationEngineRulesMinMaxRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxPartialUpdateRequest calls the generic PluginsDataValidationEngineRulesMinMaxPartialUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesMinMaxPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesMinMaxPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesMinMaxPartialUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesMinMaxPartialUpdate with any type of body -func NewPluginsDataValidationEngineRulesMinMaxPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesMinMaxUpdateRequest calls the generic PluginsDataValidationEngineRulesMinMaxUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesMinMaxUpdateRequest(server string, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesMinMaxUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesMinMaxUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesMinMaxUpdate with any type of body -func NewPluginsDataValidationEngineRulesMinMaxUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/min-max/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexBulkDestroyRequest calls the generic PluginsDataValidationEngineRulesRegexBulkDestroy builder with application/json body -func NewPluginsDataValidationEngineRulesRegexBulkDestroyRequest(server string, body PluginsDataValidationEngineRulesRegexBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesRegexBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesRegexBulkDestroyRequestWithBody generates requests for PluginsDataValidationEngineRulesRegexBulkDestroy with any type of body -func NewPluginsDataValidationEngineRulesRegexBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexListRequest generates requests for PluginsDataValidationEngineRulesRegexList -func NewPluginsDataValidationEngineRulesRegexListRequest(server string, params *PluginsDataValidationEngineRulesRegexListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContentType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type", runtime.ParamLocationQuery, *params.ContentType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContentTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "content_type__n", runtime.ParamLocationQuery, *params.ContentTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message", runtime.ParamLocationQuery, *params.ErrorMessage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__ic", runtime.ParamLocationQuery, *params.ErrorMessageIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__ie", runtime.ParamLocationQuery, *params.ErrorMessageIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__iew", runtime.ParamLocationQuery, *params.ErrorMessageIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__ire", runtime.ParamLocationQuery, *params.ErrorMessageIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__isw", runtime.ParamLocationQuery, *params.ErrorMessageIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__n", runtime.ParamLocationQuery, *params.ErrorMessageN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nic", runtime.ParamLocationQuery, *params.ErrorMessageNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nie", runtime.ParamLocationQuery, *params.ErrorMessageNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__niew", runtime.ParamLocationQuery, *params.ErrorMessageNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nire", runtime.ParamLocationQuery, *params.ErrorMessageNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nisw", runtime.ParamLocationQuery, *params.ErrorMessageNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__nre", runtime.ParamLocationQuery, *params.ErrorMessageNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ErrorMessageRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "error_message__re", runtime.ParamLocationQuery, *params.ErrorMessageRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Field != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field", runtime.ParamLocationQuery, *params.Field); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__ic", runtime.ParamLocationQuery, *params.FieldIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__ie", runtime.ParamLocationQuery, *params.FieldIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__iew", runtime.ParamLocationQuery, *params.FieldIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__ire", runtime.ParamLocationQuery, *params.FieldIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__isw", runtime.ParamLocationQuery, *params.FieldIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__n", runtime.ParamLocationQuery, *params.FieldN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nic", runtime.ParamLocationQuery, *params.FieldNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nie", runtime.ParamLocationQuery, *params.FieldNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__niew", runtime.ParamLocationQuery, *params.FieldNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nire", runtime.ParamLocationQuery, *params.FieldNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nisw", runtime.ParamLocationQuery, *params.FieldNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__nre", runtime.ParamLocationQuery, *params.FieldNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FieldRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "field__re", runtime.ParamLocationQuery, *params.FieldRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpression != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression", runtime.ParamLocationQuery, *params.RegularExpression); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__ic", runtime.ParamLocationQuery, *params.RegularExpressionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__ie", runtime.ParamLocationQuery, *params.RegularExpressionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__iew", runtime.ParamLocationQuery, *params.RegularExpressionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__ire", runtime.ParamLocationQuery, *params.RegularExpressionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__isw", runtime.ParamLocationQuery, *params.RegularExpressionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__n", runtime.ParamLocationQuery, *params.RegularExpressionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__nic", runtime.ParamLocationQuery, *params.RegularExpressionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__nie", runtime.ParamLocationQuery, *params.RegularExpressionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__niew", runtime.ParamLocationQuery, *params.RegularExpressionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__nire", runtime.ParamLocationQuery, *params.RegularExpressionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__nisw", runtime.ParamLocationQuery, *params.RegularExpressionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__nre", runtime.ParamLocationQuery, *params.RegularExpressionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegularExpressionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regular_expression__re", runtime.ParamLocationQuery, *params.RegularExpressionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexBulkPartialUpdateRequest calls the generic PluginsDataValidationEngineRulesRegexBulkPartialUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesRegexBulkPartialUpdateRequest(server string, body PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesRegexBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesRegexBulkPartialUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesRegexBulkPartialUpdate with any type of body -func NewPluginsDataValidationEngineRulesRegexBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexCreateRequest calls the generic PluginsDataValidationEngineRulesRegexCreate builder with application/json body -func NewPluginsDataValidationEngineRulesRegexCreateRequest(server string, body PluginsDataValidationEngineRulesRegexCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesRegexCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesRegexCreateRequestWithBody generates requests for PluginsDataValidationEngineRulesRegexCreate with any type of body -func NewPluginsDataValidationEngineRulesRegexCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexBulkUpdateRequest calls the generic PluginsDataValidationEngineRulesRegexBulkUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesRegexBulkUpdateRequest(server string, body PluginsDataValidationEngineRulesRegexBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesRegexBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesRegexBulkUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesRegexBulkUpdate with any type of body -func NewPluginsDataValidationEngineRulesRegexBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexDestroyRequest generates requests for PluginsDataValidationEngineRulesRegexDestroy -func NewPluginsDataValidationEngineRulesRegexDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexRetrieveRequest generates requests for PluginsDataValidationEngineRulesRegexRetrieve -func NewPluginsDataValidationEngineRulesRegexRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexPartialUpdateRequest calls the generic PluginsDataValidationEngineRulesRegexPartialUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesRegexPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesRegexPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesRegexPartialUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesRegexPartialUpdate with any type of body -func NewPluginsDataValidationEngineRulesRegexPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDataValidationEngineRulesRegexUpdateRequest calls the generic PluginsDataValidationEngineRulesRegexUpdate builder with application/json body -func NewPluginsDataValidationEngineRulesRegexUpdateRequest(server string, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDataValidationEngineRulesRegexUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsDataValidationEngineRulesRegexUpdateRequestWithBody generates requests for PluginsDataValidationEngineRulesRegexUpdate with any type of body -func NewPluginsDataValidationEngineRulesRegexUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/data-validation-engine/rules/regex/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDeviceOnboardingOnboardingListRequest generates requests for PluginsDeviceOnboardingOnboardingList -func NewPluginsDeviceOnboardingOnboardingListRequest(server string, params *PluginsDeviceOnboardingOnboardingListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/device-onboarding/onboarding/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.FailedReason != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "failed_reason", runtime.ParamLocationQuery, *params.FailedReason); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDeviceOnboardingOnboardingCreateRequest calls the generic PluginsDeviceOnboardingOnboardingCreate builder with application/json body -func NewPluginsDeviceOnboardingOnboardingCreateRequest(server string, body PluginsDeviceOnboardingOnboardingCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsDeviceOnboardingOnboardingCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsDeviceOnboardingOnboardingCreateRequestWithBody generates requests for PluginsDeviceOnboardingOnboardingCreate with any type of body -func NewPluginsDeviceOnboardingOnboardingCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/device-onboarding/onboarding/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsDeviceOnboardingOnboardingDestroyRequest generates requests for PluginsDeviceOnboardingOnboardingDestroy -func NewPluginsDeviceOnboardingOnboardingDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/device-onboarding/onboarding/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsDeviceOnboardingOnboardingRetrieveRequest generates requests for PluginsDeviceOnboardingOnboardingRetrieve -func NewPluginsDeviceOnboardingOnboardingRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/device-onboarding/onboarding/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupBulkDestroyRequest calls the generic PluginsFirewallAddressObjectGroupBulkDestroy builder with application/json body -func NewPluginsFirewallAddressObjectGroupBulkDestroyRequest(server string, body PluginsFirewallAddressObjectGroupBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectGroupBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectGroupBulkDestroyRequestWithBody generates requests for PluginsFirewallAddressObjectGroupBulkDestroy with any type of body -func NewPluginsFirewallAddressObjectGroupBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupListRequest generates requests for PluginsFirewallAddressObjectGroupList -func NewPluginsFirewallAddressObjectGroupListRequest(server string, params *PluginsFirewallAddressObjectGroupListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AddressObjects != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address_objects", runtime.ParamLocationQuery, *params.AddressObjects); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressObjectsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address_objects__n", runtime.ParamLocationQuery, *params.AddressObjectsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupBulkPartialUpdateRequest calls the generic PluginsFirewallAddressObjectGroupBulkPartialUpdate builder with application/json body -func NewPluginsFirewallAddressObjectGroupBulkPartialUpdateRequest(server string, body PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectGroupBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectGroupBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectGroupBulkPartialUpdate with any type of body -func NewPluginsFirewallAddressObjectGroupBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupCreateRequest calls the generic PluginsFirewallAddressObjectGroupCreate builder with application/json body -func NewPluginsFirewallAddressObjectGroupCreateRequest(server string, body PluginsFirewallAddressObjectGroupCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectGroupCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectGroupCreateRequestWithBody generates requests for PluginsFirewallAddressObjectGroupCreate with any type of body -func NewPluginsFirewallAddressObjectGroupCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupBulkUpdateRequest calls the generic PluginsFirewallAddressObjectGroupBulkUpdate builder with application/json body -func NewPluginsFirewallAddressObjectGroupBulkUpdateRequest(server string, body PluginsFirewallAddressObjectGroupBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectGroupBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectGroupBulkUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectGroupBulkUpdate with any type of body -func NewPluginsFirewallAddressObjectGroupBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupDestroyRequest generates requests for PluginsFirewallAddressObjectGroupDestroy -func NewPluginsFirewallAddressObjectGroupDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupRetrieveRequest generates requests for PluginsFirewallAddressObjectGroupRetrieve -func NewPluginsFirewallAddressObjectGroupRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupPartialUpdateRequest calls the generic PluginsFirewallAddressObjectGroupPartialUpdate builder with application/json body -func NewPluginsFirewallAddressObjectGroupPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectGroupPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectGroupPartialUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectGroupPartialUpdate with any type of body -func NewPluginsFirewallAddressObjectGroupPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupUpdateRequest calls the generic PluginsFirewallAddressObjectGroupUpdate builder with application/json body -func NewPluginsFirewallAddressObjectGroupUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectGroupUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectGroupUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectGroupUpdate with any type of body -func NewPluginsFirewallAddressObjectGroupUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupNotesListRequest generates requests for PluginsFirewallAddressObjectGroupNotesList -func NewPluginsFirewallAddressObjectGroupNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallAddressObjectGroupNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectGroupNotesCreateRequest calls the generic PluginsFirewallAddressObjectGroupNotesCreate builder with application/json body -func NewPluginsFirewallAddressObjectGroupNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectGroupNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectGroupNotesCreateRequestWithBody generates requests for PluginsFirewallAddressObjectGroupNotesCreate with any type of body -func NewPluginsFirewallAddressObjectGroupNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object-group/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectBulkDestroyRequest calls the generic PluginsFirewallAddressObjectBulkDestroy builder with application/json body -func NewPluginsFirewallAddressObjectBulkDestroyRequest(server string, body PluginsFirewallAddressObjectBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectBulkDestroyRequestWithBody generates requests for PluginsFirewallAddressObjectBulkDestroy with any type of body -func NewPluginsFirewallAddressObjectBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectListRequest generates requests for PluginsFirewallAddressObjectList -func NewPluginsFirewallAddressObjectListRequest(server string, params *PluginsFirewallAddressObjectListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Fqdn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fqdn", runtime.ParamLocationQuery, *params.Fqdn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FqdnN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fqdn__n", runtime.ParamLocationQuery, *params.FqdnN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IpAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ip_address", runtime.ParamLocationQuery, *params.IpAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IpAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ip_address__n", runtime.ParamLocationQuery, *params.IpAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IpRange != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ip_range", runtime.ParamLocationQuery, *params.IpRange); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IpRangeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ip_range__n", runtime.ParamLocationQuery, *params.IpRangeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Prefix != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prefix", runtime.ParamLocationQuery, *params.Prefix); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PrefixN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prefix__n", runtime.ParamLocationQuery, *params.PrefixN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectBulkPartialUpdateRequest calls the generic PluginsFirewallAddressObjectBulkPartialUpdate builder with application/json body -func NewPluginsFirewallAddressObjectBulkPartialUpdateRequest(server string, body PluginsFirewallAddressObjectBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectBulkPartialUpdate with any type of body -func NewPluginsFirewallAddressObjectBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectCreateRequest calls the generic PluginsFirewallAddressObjectCreate builder with application/json body -func NewPluginsFirewallAddressObjectCreateRequest(server string, body PluginsFirewallAddressObjectCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectCreateRequestWithBody generates requests for PluginsFirewallAddressObjectCreate with any type of body -func NewPluginsFirewallAddressObjectCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectBulkUpdateRequest calls the generic PluginsFirewallAddressObjectBulkUpdate builder with application/json body -func NewPluginsFirewallAddressObjectBulkUpdateRequest(server string, body PluginsFirewallAddressObjectBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectBulkUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectBulkUpdate with any type of body -func NewPluginsFirewallAddressObjectBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectDestroyRequest generates requests for PluginsFirewallAddressObjectDestroy -func NewPluginsFirewallAddressObjectDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectRetrieveRequest generates requests for PluginsFirewallAddressObjectRetrieve -func NewPluginsFirewallAddressObjectRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectPartialUpdateRequest calls the generic PluginsFirewallAddressObjectPartialUpdate builder with application/json body -func NewPluginsFirewallAddressObjectPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallAddressObjectPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectPartialUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectPartialUpdate with any type of body -func NewPluginsFirewallAddressObjectPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectUpdateRequest calls the generic PluginsFirewallAddressObjectUpdate builder with application/json body -func NewPluginsFirewallAddressObjectUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallAddressObjectUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectUpdateRequestWithBody generates requests for PluginsFirewallAddressObjectUpdate with any type of body -func NewPluginsFirewallAddressObjectUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallAddressObjectNotesListRequest generates requests for PluginsFirewallAddressObjectNotesList -func NewPluginsFirewallAddressObjectNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallAddressObjectNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallAddressObjectNotesCreateRequest calls the generic PluginsFirewallAddressObjectNotesCreate builder with application/json body -func NewPluginsFirewallAddressObjectNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallAddressObjectNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallAddressObjectNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallAddressObjectNotesCreateRequestWithBody generates requests for PluginsFirewallAddressObjectNotesCreate with any type of body -func NewPluginsFirewallAddressObjectNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/address-object/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyBulkDestroyRequest calls the generic PluginsFirewallCapircaPolicyBulkDestroy builder with application/json body -func NewPluginsFirewallCapircaPolicyBulkDestroyRequest(server string, body PluginsFirewallCapircaPolicyBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallCapircaPolicyBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallCapircaPolicyBulkDestroyRequestWithBody generates requests for PluginsFirewallCapircaPolicyBulkDestroy with any type of body -func NewPluginsFirewallCapircaPolicyBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyListRequest generates requests for PluginsFirewallCapircaPolicyList -func NewPluginsFirewallCapircaPolicyListRequest(server string, params *PluginsFirewallCapircaPolicyListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id__n", runtime.ParamLocationQuery, *params.DeviceIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyBulkPartialUpdateRequest calls the generic PluginsFirewallCapircaPolicyBulkPartialUpdate builder with application/json body -func NewPluginsFirewallCapircaPolicyBulkPartialUpdateRequest(server string, body PluginsFirewallCapircaPolicyBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallCapircaPolicyBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallCapircaPolicyBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallCapircaPolicyBulkPartialUpdate with any type of body -func NewPluginsFirewallCapircaPolicyBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyCreateRequest calls the generic PluginsFirewallCapircaPolicyCreate builder with application/json body -func NewPluginsFirewallCapircaPolicyCreateRequest(server string, body PluginsFirewallCapircaPolicyCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallCapircaPolicyCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallCapircaPolicyCreateRequestWithBody generates requests for PluginsFirewallCapircaPolicyCreate with any type of body -func NewPluginsFirewallCapircaPolicyCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyBulkUpdateRequest calls the generic PluginsFirewallCapircaPolicyBulkUpdate builder with application/json body -func NewPluginsFirewallCapircaPolicyBulkUpdateRequest(server string, body PluginsFirewallCapircaPolicyBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallCapircaPolicyBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallCapircaPolicyBulkUpdateRequestWithBody generates requests for PluginsFirewallCapircaPolicyBulkUpdate with any type of body -func NewPluginsFirewallCapircaPolicyBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyDestroyRequest generates requests for PluginsFirewallCapircaPolicyDestroy -func NewPluginsFirewallCapircaPolicyDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyRetrieveRequest generates requests for PluginsFirewallCapircaPolicyRetrieve -func NewPluginsFirewallCapircaPolicyRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyPartialUpdateRequest calls the generic PluginsFirewallCapircaPolicyPartialUpdate builder with application/json body -func NewPluginsFirewallCapircaPolicyPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallCapircaPolicyPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallCapircaPolicyPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallCapircaPolicyPartialUpdateRequestWithBody generates requests for PluginsFirewallCapircaPolicyPartialUpdate with any type of body -func NewPluginsFirewallCapircaPolicyPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallCapircaPolicyUpdateRequest calls the generic PluginsFirewallCapircaPolicyUpdate builder with application/json body -func NewPluginsFirewallCapircaPolicyUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallCapircaPolicyUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallCapircaPolicyUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallCapircaPolicyUpdateRequestWithBody generates requests for PluginsFirewallCapircaPolicyUpdate with any type of body -func NewPluginsFirewallCapircaPolicyUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/capirca-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallFqdnBulkDestroyRequest calls the generic PluginsFirewallFqdnBulkDestroy builder with application/json body -func NewPluginsFirewallFqdnBulkDestroyRequest(server string, body PluginsFirewallFqdnBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallFqdnBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallFqdnBulkDestroyRequestWithBody generates requests for PluginsFirewallFqdnBulkDestroy with any type of body -func NewPluginsFirewallFqdnBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallFqdnListRequest generates requests for PluginsFirewallFqdnList -func NewPluginsFirewallFqdnListRequest(server string, params *PluginsFirewallFqdnListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallFqdnBulkPartialUpdateRequest calls the generic PluginsFirewallFqdnBulkPartialUpdate builder with application/json body -func NewPluginsFirewallFqdnBulkPartialUpdateRequest(server string, body PluginsFirewallFqdnBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallFqdnBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallFqdnBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallFqdnBulkPartialUpdate with any type of body -func NewPluginsFirewallFqdnBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallFqdnCreateRequest calls the generic PluginsFirewallFqdnCreate builder with application/json body -func NewPluginsFirewallFqdnCreateRequest(server string, body PluginsFirewallFqdnCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallFqdnCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallFqdnCreateRequestWithBody generates requests for PluginsFirewallFqdnCreate with any type of body -func NewPluginsFirewallFqdnCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallFqdnBulkUpdateRequest calls the generic PluginsFirewallFqdnBulkUpdate builder with application/json body -func NewPluginsFirewallFqdnBulkUpdateRequest(server string, body PluginsFirewallFqdnBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallFqdnBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallFqdnBulkUpdateRequestWithBody generates requests for PluginsFirewallFqdnBulkUpdate with any type of body -func NewPluginsFirewallFqdnBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallFqdnDestroyRequest generates requests for PluginsFirewallFqdnDestroy -func NewPluginsFirewallFqdnDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallFqdnRetrieveRequest generates requests for PluginsFirewallFqdnRetrieve -func NewPluginsFirewallFqdnRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallFqdnPartialUpdateRequest calls the generic PluginsFirewallFqdnPartialUpdate builder with application/json body -func NewPluginsFirewallFqdnPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallFqdnPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallFqdnPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallFqdnPartialUpdateRequestWithBody generates requests for PluginsFirewallFqdnPartialUpdate with any type of body -func NewPluginsFirewallFqdnPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallFqdnUpdateRequest calls the generic PluginsFirewallFqdnUpdate builder with application/json body -func NewPluginsFirewallFqdnUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallFqdnUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallFqdnUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallFqdnUpdateRequestWithBody generates requests for PluginsFirewallFqdnUpdate with any type of body -func NewPluginsFirewallFqdnUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallFqdnNotesListRequest generates requests for PluginsFirewallFqdnNotesList -func NewPluginsFirewallFqdnNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallFqdnNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallFqdnNotesCreateRequest calls the generic PluginsFirewallFqdnNotesCreate builder with application/json body -func NewPluginsFirewallFqdnNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallFqdnNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallFqdnNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallFqdnNotesCreateRequestWithBody generates requests for PluginsFirewallFqdnNotesCreate with any type of body -func NewPluginsFirewallFqdnNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/fqdn/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallIpRangeBulkDestroyRequest calls the generic PluginsFirewallIpRangeBulkDestroy builder with application/json body -func NewPluginsFirewallIpRangeBulkDestroyRequest(server string, body PluginsFirewallIpRangeBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallIpRangeBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallIpRangeBulkDestroyRequestWithBody generates requests for PluginsFirewallIpRangeBulkDestroy with any type of body -func NewPluginsFirewallIpRangeBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallIpRangeListRequest generates requests for PluginsFirewallIpRangeList -func NewPluginsFirewallIpRangeListRequest(server string, params *PluginsFirewallIpRangeListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Size != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size", runtime.ParamLocationQuery, *params.Size); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SizeGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size__gt", runtime.ParamLocationQuery, *params.SizeGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SizeGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size__gte", runtime.ParamLocationQuery, *params.SizeGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SizeLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size__lt", runtime.ParamLocationQuery, *params.SizeLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SizeLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size__lte", runtime.ParamLocationQuery, *params.SizeLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SizeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size__n", runtime.ParamLocationQuery, *params.SizeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vrf != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf", runtime.ParamLocationQuery, *params.Vrf); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrf__n", runtime.ParamLocationQuery, *params.VrfN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallIpRangeBulkPartialUpdateRequest calls the generic PluginsFirewallIpRangeBulkPartialUpdate builder with application/json body -func NewPluginsFirewallIpRangeBulkPartialUpdateRequest(server string, body PluginsFirewallIpRangeBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallIpRangeBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallIpRangeBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallIpRangeBulkPartialUpdate with any type of body -func NewPluginsFirewallIpRangeBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallIpRangeCreateRequest calls the generic PluginsFirewallIpRangeCreate builder with application/json body -func NewPluginsFirewallIpRangeCreateRequest(server string, body PluginsFirewallIpRangeCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallIpRangeCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallIpRangeCreateRequestWithBody generates requests for PluginsFirewallIpRangeCreate with any type of body -func NewPluginsFirewallIpRangeCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallIpRangeBulkUpdateRequest calls the generic PluginsFirewallIpRangeBulkUpdate builder with application/json body -func NewPluginsFirewallIpRangeBulkUpdateRequest(server string, body PluginsFirewallIpRangeBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallIpRangeBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallIpRangeBulkUpdateRequestWithBody generates requests for PluginsFirewallIpRangeBulkUpdate with any type of body -func NewPluginsFirewallIpRangeBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallIpRangeDestroyRequest generates requests for PluginsFirewallIpRangeDestroy -func NewPluginsFirewallIpRangeDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallIpRangeRetrieveRequest generates requests for PluginsFirewallIpRangeRetrieve -func NewPluginsFirewallIpRangeRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallIpRangePartialUpdateRequest calls the generic PluginsFirewallIpRangePartialUpdate builder with application/json body -func NewPluginsFirewallIpRangePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallIpRangePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallIpRangePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallIpRangePartialUpdateRequestWithBody generates requests for PluginsFirewallIpRangePartialUpdate with any type of body -func NewPluginsFirewallIpRangePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallIpRangeUpdateRequest calls the generic PluginsFirewallIpRangeUpdate builder with application/json body -func NewPluginsFirewallIpRangeUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallIpRangeUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallIpRangeUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallIpRangeUpdateRequestWithBody generates requests for PluginsFirewallIpRangeUpdate with any type of body -func NewPluginsFirewallIpRangeUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallIpRangeNotesListRequest generates requests for PluginsFirewallIpRangeNotesList -func NewPluginsFirewallIpRangeNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallIpRangeNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallIpRangeNotesCreateRequest calls the generic PluginsFirewallIpRangeNotesCreate builder with application/json body -func NewPluginsFirewallIpRangeNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallIpRangeNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallIpRangeNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallIpRangeNotesCreateRequestWithBody generates requests for PluginsFirewallIpRangeNotesCreate with any type of body -func NewPluginsFirewallIpRangeNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/ip-range/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleBulkDestroyRequest calls the generic PluginsFirewallNatPolicyRuleBulkDestroy builder with application/json body -func NewPluginsFirewallNatPolicyRuleBulkDestroyRequest(server string, body PluginsFirewallNatPolicyRuleBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyRuleBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyRuleBulkDestroyRequestWithBody generates requests for PluginsFirewallNatPolicyRuleBulkDestroy with any type of body -func NewPluginsFirewallNatPolicyRuleBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleListRequest generates requests for PluginsFirewallNatPolicyRuleList -func NewPluginsFirewallNatPolicyRuleListRequest(server string, params *PluginsFirewallNatPolicyRuleListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Log != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log", runtime.ParamLocationQuery, *params.Log); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Remark != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remark", runtime.ParamLocationQuery, *params.Remark); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id", runtime.ParamLocationQuery, *params.RequestId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ic", runtime.ParamLocationQuery, *params.RequestIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ie", runtime.ParamLocationQuery, *params.RequestIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__iew", runtime.ParamLocationQuery, *params.RequestIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ire", runtime.ParamLocationQuery, *params.RequestIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__isw", runtime.ParamLocationQuery, *params.RequestIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__n", runtime.ParamLocationQuery, *params.RequestIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nic", runtime.ParamLocationQuery, *params.RequestIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nie", runtime.ParamLocationQuery, *params.RequestIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__niew", runtime.ParamLocationQuery, *params.RequestIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nire", runtime.ParamLocationQuery, *params.RequestIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nisw", runtime.ParamLocationQuery, *params.RequestIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nre", runtime.ParamLocationQuery, *params.RequestIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__re", runtime.ParamLocationQuery, *params.RequestIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleBulkPartialUpdateRequest calls the generic PluginsFirewallNatPolicyRuleBulkPartialUpdate builder with application/json body -func NewPluginsFirewallNatPolicyRuleBulkPartialUpdateRequest(server string, body PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyRuleBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyRuleBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyRuleBulkPartialUpdate with any type of body -func NewPluginsFirewallNatPolicyRuleBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleCreateRequest calls the generic PluginsFirewallNatPolicyRuleCreate builder with application/json body -func NewPluginsFirewallNatPolicyRuleCreateRequest(server string, body PluginsFirewallNatPolicyRuleCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyRuleCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyRuleCreateRequestWithBody generates requests for PluginsFirewallNatPolicyRuleCreate with any type of body -func NewPluginsFirewallNatPolicyRuleCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleBulkUpdateRequest calls the generic PluginsFirewallNatPolicyRuleBulkUpdate builder with application/json body -func NewPluginsFirewallNatPolicyRuleBulkUpdateRequest(server string, body PluginsFirewallNatPolicyRuleBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyRuleBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyRuleBulkUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyRuleBulkUpdate with any type of body -func NewPluginsFirewallNatPolicyRuleBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleDestroyRequest generates requests for PluginsFirewallNatPolicyRuleDestroy -func NewPluginsFirewallNatPolicyRuleDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleRetrieveRequest generates requests for PluginsFirewallNatPolicyRuleRetrieve -func NewPluginsFirewallNatPolicyRuleRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyRulePartialUpdateRequest calls the generic PluginsFirewallNatPolicyRulePartialUpdate builder with application/json body -func NewPluginsFirewallNatPolicyRulePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallNatPolicyRulePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyRulePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyRulePartialUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyRulePartialUpdate with any type of body -func NewPluginsFirewallNatPolicyRulePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleUpdateRequest calls the generic PluginsFirewallNatPolicyRuleUpdate builder with application/json body -func NewPluginsFirewallNatPolicyRuleUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyRuleUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyRuleUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyRuleUpdate with any type of body -func NewPluginsFirewallNatPolicyRuleUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleNotesListRequest generates requests for PluginsFirewallNatPolicyRuleNotesList -func NewPluginsFirewallNatPolicyRuleNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallNatPolicyRuleNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyRuleNotesCreateRequest calls the generic PluginsFirewallNatPolicyRuleNotesCreate builder with application/json body -func NewPluginsFirewallNatPolicyRuleNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyRuleNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyRuleNotesCreateRequestWithBody generates requests for PluginsFirewallNatPolicyRuleNotesCreate with any type of body -func NewPluginsFirewallNatPolicyRuleNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy-rule/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyBulkDestroyRequest calls the generic PluginsFirewallNatPolicyBulkDestroy builder with application/json body -func NewPluginsFirewallNatPolicyBulkDestroyRequest(server string, body PluginsFirewallNatPolicyBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyBulkDestroyRequestWithBody generates requests for PluginsFirewallNatPolicyBulkDestroy with any type of body -func NewPluginsFirewallNatPolicyBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyListRequest generates requests for PluginsFirewallNatPolicyList -func NewPluginsFirewallNatPolicyListRequest(server string, params *PluginsFirewallNatPolicyListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AssignedDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_devices", runtime.ParamLocationQuery, *params.AssignedDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedDevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_devices__n", runtime.ParamLocationQuery, *params.AssignedDevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedDynamicGroups != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_dynamic_groups", runtime.ParamLocationQuery, *params.AssignedDynamicGroups); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedDynamicGroupsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_dynamic_groups__n", runtime.ParamLocationQuery, *params.AssignedDynamicGroupsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NatPolicyRules != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nat_policy_rules", runtime.ParamLocationQuery, *params.NatPolicyRules); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NatPolicyRulesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nat_policy_rules__n", runtime.ParamLocationQuery, *params.NatPolicyRulesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyBulkPartialUpdateRequest calls the generic PluginsFirewallNatPolicyBulkPartialUpdate builder with application/json body -func NewPluginsFirewallNatPolicyBulkPartialUpdateRequest(server string, body PluginsFirewallNatPolicyBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyBulkPartialUpdate with any type of body -func NewPluginsFirewallNatPolicyBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyCreateRequest calls the generic PluginsFirewallNatPolicyCreate builder with application/json body -func NewPluginsFirewallNatPolicyCreateRequest(server string, body PluginsFirewallNatPolicyCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyCreateRequestWithBody generates requests for PluginsFirewallNatPolicyCreate with any type of body -func NewPluginsFirewallNatPolicyCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyBulkUpdateRequest calls the generic PluginsFirewallNatPolicyBulkUpdate builder with application/json body -func NewPluginsFirewallNatPolicyBulkUpdateRequest(server string, body PluginsFirewallNatPolicyBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyBulkUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyBulkUpdate with any type of body -func NewPluginsFirewallNatPolicyBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyDestroyRequest generates requests for PluginsFirewallNatPolicyDestroy -func NewPluginsFirewallNatPolicyDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyRetrieveRequest generates requests for PluginsFirewallNatPolicyRetrieve -func NewPluginsFirewallNatPolicyRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyPartialUpdateRequest calls the generic PluginsFirewallNatPolicyPartialUpdate builder with application/json body -func NewPluginsFirewallNatPolicyPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallNatPolicyPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyPartialUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyPartialUpdate with any type of body -func NewPluginsFirewallNatPolicyPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyUpdateRequest calls the generic PluginsFirewallNatPolicyUpdate builder with application/json body -func NewPluginsFirewallNatPolicyUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallNatPolicyUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyUpdateRequestWithBody generates requests for PluginsFirewallNatPolicyUpdate with any type of body -func NewPluginsFirewallNatPolicyUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallNatPolicyNotesListRequest generates requests for PluginsFirewallNatPolicyNotesList -func NewPluginsFirewallNatPolicyNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallNatPolicyNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallNatPolicyNotesCreateRequest calls the generic PluginsFirewallNatPolicyNotesCreate builder with application/json body -func NewPluginsFirewallNatPolicyNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallNatPolicyNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallNatPolicyNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallNatPolicyNotesCreateRequestWithBody generates requests for PluginsFirewallNatPolicyNotesCreate with any type of body -func NewPluginsFirewallNatPolicyNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/nat-policy/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyRuleBulkDestroyRequest calls the generic PluginsFirewallPolicyRuleBulkDestroy builder with application/json body -func NewPluginsFirewallPolicyRuleBulkDestroyRequest(server string, body PluginsFirewallPolicyRuleBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyRuleBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyRuleBulkDestroyRequestWithBody generates requests for PluginsFirewallPolicyRuleBulkDestroy with any type of body -func NewPluginsFirewallPolicyRuleBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyRuleListRequest generates requests for PluginsFirewallPolicyRuleList -func NewPluginsFirewallPolicyRuleListRequest(server string, params *PluginsFirewallPolicyRuleListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Action != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "action", runtime.ParamLocationQuery, *params.Action); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ActionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "action__n", runtime.ParamLocationQuery, *params.ActionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Log != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "log", runtime.ParamLocationQuery, *params.Log); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id", runtime.ParamLocationQuery, *params.RequestId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ic", runtime.ParamLocationQuery, *params.RequestIdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ie", runtime.ParamLocationQuery, *params.RequestIdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__iew", runtime.ParamLocationQuery, *params.RequestIdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__ire", runtime.ParamLocationQuery, *params.RequestIdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__isw", runtime.ParamLocationQuery, *params.RequestIdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__n", runtime.ParamLocationQuery, *params.RequestIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nic", runtime.ParamLocationQuery, *params.RequestIdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nie", runtime.ParamLocationQuery, *params.RequestIdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__niew", runtime.ParamLocationQuery, *params.RequestIdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nire", runtime.ParamLocationQuery, *params.RequestIdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nisw", runtime.ParamLocationQuery, *params.RequestIdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__nre", runtime.ParamLocationQuery, *params.RequestIdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RequestIdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id__re", runtime.ParamLocationQuery, *params.RequestIdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyRuleBulkPartialUpdateRequest calls the generic PluginsFirewallPolicyRuleBulkPartialUpdate builder with application/json body -func NewPluginsFirewallPolicyRuleBulkPartialUpdateRequest(server string, body PluginsFirewallPolicyRuleBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyRuleBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyRuleBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallPolicyRuleBulkPartialUpdate with any type of body -func NewPluginsFirewallPolicyRuleBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyRuleCreateRequest calls the generic PluginsFirewallPolicyRuleCreate builder with application/json body -func NewPluginsFirewallPolicyRuleCreateRequest(server string, body PluginsFirewallPolicyRuleCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyRuleCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyRuleCreateRequestWithBody generates requests for PluginsFirewallPolicyRuleCreate with any type of body -func NewPluginsFirewallPolicyRuleCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyRuleBulkUpdateRequest calls the generic PluginsFirewallPolicyRuleBulkUpdate builder with application/json body -func NewPluginsFirewallPolicyRuleBulkUpdateRequest(server string, body PluginsFirewallPolicyRuleBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyRuleBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyRuleBulkUpdateRequestWithBody generates requests for PluginsFirewallPolicyRuleBulkUpdate with any type of body -func NewPluginsFirewallPolicyRuleBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyRuleDestroyRequest generates requests for PluginsFirewallPolicyRuleDestroy -func NewPluginsFirewallPolicyRuleDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyRuleRetrieveRequest generates requests for PluginsFirewallPolicyRuleRetrieve -func NewPluginsFirewallPolicyRuleRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyRulePartialUpdateRequest calls the generic PluginsFirewallPolicyRulePartialUpdate builder with application/json body -func NewPluginsFirewallPolicyRulePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallPolicyRulePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyRulePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyRulePartialUpdateRequestWithBody generates requests for PluginsFirewallPolicyRulePartialUpdate with any type of body -func NewPluginsFirewallPolicyRulePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyRuleUpdateRequest calls the generic PluginsFirewallPolicyRuleUpdate builder with application/json body -func NewPluginsFirewallPolicyRuleUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallPolicyRuleUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyRuleUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyRuleUpdateRequestWithBody generates requests for PluginsFirewallPolicyRuleUpdate with any type of body -func NewPluginsFirewallPolicyRuleUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyRuleNotesListRequest generates requests for PluginsFirewallPolicyRuleNotesList -func NewPluginsFirewallPolicyRuleNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallPolicyRuleNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyRuleNotesCreateRequest calls the generic PluginsFirewallPolicyRuleNotesCreate builder with application/json body -func NewPluginsFirewallPolicyRuleNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallPolicyRuleNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyRuleNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyRuleNotesCreateRequestWithBody generates requests for PluginsFirewallPolicyRuleNotesCreate with any type of body -func NewPluginsFirewallPolicyRuleNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy-rule/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyBulkDestroyRequest calls the generic PluginsFirewallPolicyBulkDestroy builder with application/json body -func NewPluginsFirewallPolicyBulkDestroyRequest(server string, body PluginsFirewallPolicyBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyBulkDestroyRequestWithBody generates requests for PluginsFirewallPolicyBulkDestroy with any type of body -func NewPluginsFirewallPolicyBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyListRequest generates requests for PluginsFirewallPolicyList -func NewPluginsFirewallPolicyListRequest(server string, params *PluginsFirewallPolicyListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.AssignedDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_devices", runtime.ParamLocationQuery, *params.AssignedDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedDevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_devices__n", runtime.ParamLocationQuery, *params.AssignedDevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedDynamicGroups != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_dynamic_groups", runtime.ParamLocationQuery, *params.AssignedDynamicGroups); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AssignedDynamicGroupsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assigned_dynamic_groups__n", runtime.ParamLocationQuery, *params.AssignedDynamicGroupsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PolicyRules != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "policy_rules", runtime.ParamLocationQuery, *params.PolicyRules); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PolicyRulesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "policy_rules__n", runtime.ParamLocationQuery, *params.PolicyRulesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyBulkPartialUpdateRequest calls the generic PluginsFirewallPolicyBulkPartialUpdate builder with application/json body -func NewPluginsFirewallPolicyBulkPartialUpdateRequest(server string, body PluginsFirewallPolicyBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallPolicyBulkPartialUpdate with any type of body -func NewPluginsFirewallPolicyBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyCreateRequest calls the generic PluginsFirewallPolicyCreate builder with application/json body -func NewPluginsFirewallPolicyCreateRequest(server string, body PluginsFirewallPolicyCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyCreateRequestWithBody generates requests for PluginsFirewallPolicyCreate with any type of body -func NewPluginsFirewallPolicyCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyBulkUpdateRequest calls the generic PluginsFirewallPolicyBulkUpdate builder with application/json body -func NewPluginsFirewallPolicyBulkUpdateRequest(server string, body PluginsFirewallPolicyBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyBulkUpdateRequestWithBody generates requests for PluginsFirewallPolicyBulkUpdate with any type of body -func NewPluginsFirewallPolicyBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyDestroyRequest generates requests for PluginsFirewallPolicyDestroy -func NewPluginsFirewallPolicyDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyRetrieveRequest generates requests for PluginsFirewallPolicyRetrieve -func NewPluginsFirewallPolicyRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyPartialUpdateRequest calls the generic PluginsFirewallPolicyPartialUpdate builder with application/json body -func NewPluginsFirewallPolicyPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallPolicyPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyPartialUpdateRequestWithBody generates requests for PluginsFirewallPolicyPartialUpdate with any type of body -func NewPluginsFirewallPolicyPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyUpdateRequest calls the generic PluginsFirewallPolicyUpdate builder with application/json body -func NewPluginsFirewallPolicyUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallPolicyUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyUpdateRequestWithBody generates requests for PluginsFirewallPolicyUpdate with any type of body -func NewPluginsFirewallPolicyUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallPolicyNotesListRequest generates requests for PluginsFirewallPolicyNotesList -func NewPluginsFirewallPolicyNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallPolicyNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallPolicyNotesCreateRequest calls the generic PluginsFirewallPolicyNotesCreate builder with application/json body -func NewPluginsFirewallPolicyNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallPolicyNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallPolicyNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallPolicyNotesCreateRequestWithBody generates requests for PluginsFirewallPolicyNotesCreate with any type of body -func NewPluginsFirewallPolicyNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/policy/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupBulkDestroyRequest calls the generic PluginsFirewallServiceObjectGroupBulkDestroy builder with application/json body -func NewPluginsFirewallServiceObjectGroupBulkDestroyRequest(server string, body PluginsFirewallServiceObjectGroupBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectGroupBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectGroupBulkDestroyRequestWithBody generates requests for PluginsFirewallServiceObjectGroupBulkDestroy with any type of body -func NewPluginsFirewallServiceObjectGroupBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupListRequest generates requests for PluginsFirewallServiceObjectGroupList -func NewPluginsFirewallServiceObjectGroupListRequest(server string, params *PluginsFirewallServiceObjectGroupListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ServiceObjects != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "service_objects", runtime.ParamLocationQuery, *params.ServiceObjects); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ServiceObjectsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "service_objects__n", runtime.ParamLocationQuery, *params.ServiceObjectsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupBulkPartialUpdateRequest calls the generic PluginsFirewallServiceObjectGroupBulkPartialUpdate builder with application/json body -func NewPluginsFirewallServiceObjectGroupBulkPartialUpdateRequest(server string, body PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectGroupBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectGroupBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectGroupBulkPartialUpdate with any type of body -func NewPluginsFirewallServiceObjectGroupBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupCreateRequest calls the generic PluginsFirewallServiceObjectGroupCreate builder with application/json body -func NewPluginsFirewallServiceObjectGroupCreateRequest(server string, body PluginsFirewallServiceObjectGroupCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectGroupCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectGroupCreateRequestWithBody generates requests for PluginsFirewallServiceObjectGroupCreate with any type of body -func NewPluginsFirewallServiceObjectGroupCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupBulkUpdateRequest calls the generic PluginsFirewallServiceObjectGroupBulkUpdate builder with application/json body -func NewPluginsFirewallServiceObjectGroupBulkUpdateRequest(server string, body PluginsFirewallServiceObjectGroupBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectGroupBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectGroupBulkUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectGroupBulkUpdate with any type of body -func NewPluginsFirewallServiceObjectGroupBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupDestroyRequest generates requests for PluginsFirewallServiceObjectGroupDestroy -func NewPluginsFirewallServiceObjectGroupDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupRetrieveRequest generates requests for PluginsFirewallServiceObjectGroupRetrieve -func NewPluginsFirewallServiceObjectGroupRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupPartialUpdateRequest calls the generic PluginsFirewallServiceObjectGroupPartialUpdate builder with application/json body -func NewPluginsFirewallServiceObjectGroupPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectGroupPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectGroupPartialUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectGroupPartialUpdate with any type of body -func NewPluginsFirewallServiceObjectGroupPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupUpdateRequest calls the generic PluginsFirewallServiceObjectGroupUpdate builder with application/json body -func NewPluginsFirewallServiceObjectGroupUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectGroupUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectGroupUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectGroupUpdate with any type of body -func NewPluginsFirewallServiceObjectGroupUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupNotesListRequest generates requests for PluginsFirewallServiceObjectGroupNotesList -func NewPluginsFirewallServiceObjectGroupNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallServiceObjectGroupNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectGroupNotesCreateRequest calls the generic PluginsFirewallServiceObjectGroupNotesCreate builder with application/json body -func NewPluginsFirewallServiceObjectGroupNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectGroupNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectGroupNotesCreateRequestWithBody generates requests for PluginsFirewallServiceObjectGroupNotesCreate with any type of body -func NewPluginsFirewallServiceObjectGroupNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object-group/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectBulkDestroyRequest calls the generic PluginsFirewallServiceObjectBulkDestroy builder with application/json body -func NewPluginsFirewallServiceObjectBulkDestroyRequest(server string, body PluginsFirewallServiceObjectBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectBulkDestroyRequestWithBody generates requests for PluginsFirewallServiceObjectBulkDestroy with any type of body -func NewPluginsFirewallServiceObjectBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectListRequest generates requests for PluginsFirewallServiceObjectList -func NewPluginsFirewallServiceObjectListRequest(server string, params *PluginsFirewallServiceObjectListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IpProtocol != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ip_protocol", runtime.ParamLocationQuery, *params.IpProtocol); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IpProtocolN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ip_protocol__n", runtime.ParamLocationQuery, *params.IpProtocolN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Port != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port", runtime.ParamLocationQuery, *params.Port); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__ic", runtime.ParamLocationQuery, *params.PortIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__ie", runtime.ParamLocationQuery, *params.PortIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__iew", runtime.ParamLocationQuery, *params.PortIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__ire", runtime.ParamLocationQuery, *params.PortIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__isw", runtime.ParamLocationQuery, *params.PortIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__n", runtime.ParamLocationQuery, *params.PortN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__nic", runtime.ParamLocationQuery, *params.PortNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__nie", runtime.ParamLocationQuery, *params.PortNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__niew", runtime.ParamLocationQuery, *params.PortNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__nire", runtime.ParamLocationQuery, *params.PortNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__nisw", runtime.ParamLocationQuery, *params.PortNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__nre", runtime.ParamLocationQuery, *params.PortNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "port__re", runtime.ParamLocationQuery, *params.PortRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectBulkPartialUpdateRequest calls the generic PluginsFirewallServiceObjectBulkPartialUpdate builder with application/json body -func NewPluginsFirewallServiceObjectBulkPartialUpdateRequest(server string, body PluginsFirewallServiceObjectBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectBulkPartialUpdate with any type of body -func NewPluginsFirewallServiceObjectBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectCreateRequest calls the generic PluginsFirewallServiceObjectCreate builder with application/json body -func NewPluginsFirewallServiceObjectCreateRequest(server string, body PluginsFirewallServiceObjectCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectCreateRequestWithBody generates requests for PluginsFirewallServiceObjectCreate with any type of body -func NewPluginsFirewallServiceObjectCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectBulkUpdateRequest calls the generic PluginsFirewallServiceObjectBulkUpdate builder with application/json body -func NewPluginsFirewallServiceObjectBulkUpdateRequest(server string, body PluginsFirewallServiceObjectBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectBulkUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectBulkUpdate with any type of body -func NewPluginsFirewallServiceObjectBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectDestroyRequest generates requests for PluginsFirewallServiceObjectDestroy -func NewPluginsFirewallServiceObjectDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectRetrieveRequest generates requests for PluginsFirewallServiceObjectRetrieve -func NewPluginsFirewallServiceObjectRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectPartialUpdateRequest calls the generic PluginsFirewallServiceObjectPartialUpdate builder with application/json body -func NewPluginsFirewallServiceObjectPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallServiceObjectPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectPartialUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectPartialUpdate with any type of body -func NewPluginsFirewallServiceObjectPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectUpdateRequest calls the generic PluginsFirewallServiceObjectUpdate builder with application/json body -func NewPluginsFirewallServiceObjectUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallServiceObjectUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectUpdateRequestWithBody generates requests for PluginsFirewallServiceObjectUpdate with any type of body -func NewPluginsFirewallServiceObjectUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallServiceObjectNotesListRequest generates requests for PluginsFirewallServiceObjectNotesList -func NewPluginsFirewallServiceObjectNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallServiceObjectNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallServiceObjectNotesCreateRequest calls the generic PluginsFirewallServiceObjectNotesCreate builder with application/json body -func NewPluginsFirewallServiceObjectNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallServiceObjectNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallServiceObjectNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallServiceObjectNotesCreateRequestWithBody generates requests for PluginsFirewallServiceObjectNotesCreate with any type of body -func NewPluginsFirewallServiceObjectNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/service-object/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupBulkDestroyRequest calls the generic PluginsFirewallUserObjectGroupBulkDestroy builder with application/json body -func NewPluginsFirewallUserObjectGroupBulkDestroyRequest(server string, body PluginsFirewallUserObjectGroupBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectGroupBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectGroupBulkDestroyRequestWithBody generates requests for PluginsFirewallUserObjectGroupBulkDestroy with any type of body -func NewPluginsFirewallUserObjectGroupBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupListRequest generates requests for PluginsFirewallUserObjectGroupList -func NewPluginsFirewallUserObjectGroupListRequest(server string, params *PluginsFirewallUserObjectGroupListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserObjects != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_objects", runtime.ParamLocationQuery, *params.UserObjects); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserObjectsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_objects__n", runtime.ParamLocationQuery, *params.UserObjectsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupBulkPartialUpdateRequest calls the generic PluginsFirewallUserObjectGroupBulkPartialUpdate builder with application/json body -func NewPluginsFirewallUserObjectGroupBulkPartialUpdateRequest(server string, body PluginsFirewallUserObjectGroupBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectGroupBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectGroupBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallUserObjectGroupBulkPartialUpdate with any type of body -func NewPluginsFirewallUserObjectGroupBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupCreateRequest calls the generic PluginsFirewallUserObjectGroupCreate builder with application/json body -func NewPluginsFirewallUserObjectGroupCreateRequest(server string, body PluginsFirewallUserObjectGroupCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectGroupCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectGroupCreateRequestWithBody generates requests for PluginsFirewallUserObjectGroupCreate with any type of body -func NewPluginsFirewallUserObjectGroupCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupBulkUpdateRequest calls the generic PluginsFirewallUserObjectGroupBulkUpdate builder with application/json body -func NewPluginsFirewallUserObjectGroupBulkUpdateRequest(server string, body PluginsFirewallUserObjectGroupBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectGroupBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectGroupBulkUpdateRequestWithBody generates requests for PluginsFirewallUserObjectGroupBulkUpdate with any type of body -func NewPluginsFirewallUserObjectGroupBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupDestroyRequest generates requests for PluginsFirewallUserObjectGroupDestroy -func NewPluginsFirewallUserObjectGroupDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupRetrieveRequest generates requests for PluginsFirewallUserObjectGroupRetrieve -func NewPluginsFirewallUserObjectGroupRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupPartialUpdateRequest calls the generic PluginsFirewallUserObjectGroupPartialUpdate builder with application/json body -func NewPluginsFirewallUserObjectGroupPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallUserObjectGroupPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectGroupPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectGroupPartialUpdateRequestWithBody generates requests for PluginsFirewallUserObjectGroupPartialUpdate with any type of body -func NewPluginsFirewallUserObjectGroupPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupUpdateRequest calls the generic PluginsFirewallUserObjectGroupUpdate builder with application/json body -func NewPluginsFirewallUserObjectGroupUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallUserObjectGroupUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectGroupUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectGroupUpdateRequestWithBody generates requests for PluginsFirewallUserObjectGroupUpdate with any type of body -func NewPluginsFirewallUserObjectGroupUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupNotesListRequest generates requests for PluginsFirewallUserObjectGroupNotesList -func NewPluginsFirewallUserObjectGroupNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallUserObjectGroupNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectGroupNotesCreateRequest calls the generic PluginsFirewallUserObjectGroupNotesCreate builder with application/json body -func NewPluginsFirewallUserObjectGroupNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallUserObjectGroupNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectGroupNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectGroupNotesCreateRequestWithBody generates requests for PluginsFirewallUserObjectGroupNotesCreate with any type of body -func NewPluginsFirewallUserObjectGroupNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object-group/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectBulkDestroyRequest calls the generic PluginsFirewallUserObjectBulkDestroy builder with application/json body -func NewPluginsFirewallUserObjectBulkDestroyRequest(server string, body PluginsFirewallUserObjectBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectBulkDestroyRequestWithBody generates requests for PluginsFirewallUserObjectBulkDestroy with any type of body -func NewPluginsFirewallUserObjectBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectListRequest generates requests for PluginsFirewallUserObjectList -func NewPluginsFirewallUserObjectListRequest(server string, params *PluginsFirewallUserObjectListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Username != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username", runtime.ParamLocationQuery, *params.Username); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__ic", runtime.ParamLocationQuery, *params.UsernameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__ie", runtime.ParamLocationQuery, *params.UsernameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__iew", runtime.ParamLocationQuery, *params.UsernameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__ire", runtime.ParamLocationQuery, *params.UsernameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__isw", runtime.ParamLocationQuery, *params.UsernameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__n", runtime.ParamLocationQuery, *params.UsernameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nic", runtime.ParamLocationQuery, *params.UsernameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nie", runtime.ParamLocationQuery, *params.UsernameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__niew", runtime.ParamLocationQuery, *params.UsernameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nire", runtime.ParamLocationQuery, *params.UsernameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nisw", runtime.ParamLocationQuery, *params.UsernameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nre", runtime.ParamLocationQuery, *params.UsernameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__re", runtime.ParamLocationQuery, *params.UsernameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectBulkPartialUpdateRequest calls the generic PluginsFirewallUserObjectBulkPartialUpdate builder with application/json body -func NewPluginsFirewallUserObjectBulkPartialUpdateRequest(server string, body PluginsFirewallUserObjectBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallUserObjectBulkPartialUpdate with any type of body -func NewPluginsFirewallUserObjectBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectCreateRequest calls the generic PluginsFirewallUserObjectCreate builder with application/json body -func NewPluginsFirewallUserObjectCreateRequest(server string, body PluginsFirewallUserObjectCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectCreateRequestWithBody generates requests for PluginsFirewallUserObjectCreate with any type of body -func NewPluginsFirewallUserObjectCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectBulkUpdateRequest calls the generic PluginsFirewallUserObjectBulkUpdate builder with application/json body -func NewPluginsFirewallUserObjectBulkUpdateRequest(server string, body PluginsFirewallUserObjectBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectBulkUpdateRequestWithBody generates requests for PluginsFirewallUserObjectBulkUpdate with any type of body -func NewPluginsFirewallUserObjectBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectDestroyRequest generates requests for PluginsFirewallUserObjectDestroy -func NewPluginsFirewallUserObjectDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectRetrieveRequest generates requests for PluginsFirewallUserObjectRetrieve -func NewPluginsFirewallUserObjectRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectPartialUpdateRequest calls the generic PluginsFirewallUserObjectPartialUpdate builder with application/json body -func NewPluginsFirewallUserObjectPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallUserObjectPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectPartialUpdateRequestWithBody generates requests for PluginsFirewallUserObjectPartialUpdate with any type of body -func NewPluginsFirewallUserObjectPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectUpdateRequest calls the generic PluginsFirewallUserObjectUpdate builder with application/json body -func NewPluginsFirewallUserObjectUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallUserObjectUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectUpdateRequestWithBody generates requests for PluginsFirewallUserObjectUpdate with any type of body -func NewPluginsFirewallUserObjectUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallUserObjectNotesListRequest generates requests for PluginsFirewallUserObjectNotesList -func NewPluginsFirewallUserObjectNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallUserObjectNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallUserObjectNotesCreateRequest calls the generic PluginsFirewallUserObjectNotesCreate builder with application/json body -func NewPluginsFirewallUserObjectNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallUserObjectNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallUserObjectNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallUserObjectNotesCreateRequestWithBody generates requests for PluginsFirewallUserObjectNotesCreate with any type of body -func NewPluginsFirewallUserObjectNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/user-object/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallZoneBulkDestroyRequest calls the generic PluginsFirewallZoneBulkDestroy builder with application/json body -func NewPluginsFirewallZoneBulkDestroyRequest(server string, body PluginsFirewallZoneBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallZoneBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallZoneBulkDestroyRequestWithBody generates requests for PluginsFirewallZoneBulkDestroy with any type of body -func NewPluginsFirewallZoneBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallZoneListRequest generates requests for PluginsFirewallZoneList -func NewPluginsFirewallZoneListRequest(server string, params *PluginsFirewallZoneListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Interfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interfaces", runtime.ParamLocationQuery, *params.Interfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InterfacesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interfaces__n", runtime.ParamLocationQuery, *params.InterfacesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vrfs != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrfs", runtime.ParamLocationQuery, *params.Vrfs); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VrfsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vrfs__n", runtime.ParamLocationQuery, *params.VrfsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallZoneBulkPartialUpdateRequest calls the generic PluginsFirewallZoneBulkPartialUpdate builder with application/json body -func NewPluginsFirewallZoneBulkPartialUpdateRequest(server string, body PluginsFirewallZoneBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallZoneBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallZoneBulkPartialUpdateRequestWithBody generates requests for PluginsFirewallZoneBulkPartialUpdate with any type of body -func NewPluginsFirewallZoneBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallZoneCreateRequest calls the generic PluginsFirewallZoneCreate builder with application/json body -func NewPluginsFirewallZoneCreateRequest(server string, body PluginsFirewallZoneCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallZoneCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallZoneCreateRequestWithBody generates requests for PluginsFirewallZoneCreate with any type of body -func NewPluginsFirewallZoneCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallZoneBulkUpdateRequest calls the generic PluginsFirewallZoneBulkUpdate builder with application/json body -func NewPluginsFirewallZoneBulkUpdateRequest(server string, body PluginsFirewallZoneBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallZoneBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsFirewallZoneBulkUpdateRequestWithBody generates requests for PluginsFirewallZoneBulkUpdate with any type of body -func NewPluginsFirewallZoneBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallZoneDestroyRequest generates requests for PluginsFirewallZoneDestroy -func NewPluginsFirewallZoneDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallZoneRetrieveRequest generates requests for PluginsFirewallZoneRetrieve -func NewPluginsFirewallZoneRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallZonePartialUpdateRequest calls the generic PluginsFirewallZonePartialUpdate builder with application/json body -func NewPluginsFirewallZonePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallZonePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallZonePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallZonePartialUpdateRequestWithBody generates requests for PluginsFirewallZonePartialUpdate with any type of body -func NewPluginsFirewallZonePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallZoneUpdateRequest calls the generic PluginsFirewallZoneUpdate builder with application/json body -func NewPluginsFirewallZoneUpdateRequest(server string, id openapi_types.UUID, body PluginsFirewallZoneUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallZoneUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallZoneUpdateRequestWithBody generates requests for PluginsFirewallZoneUpdate with any type of body -func NewPluginsFirewallZoneUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsFirewallZoneNotesListRequest generates requests for PluginsFirewallZoneNotesList -func NewPluginsFirewallZoneNotesListRequest(server string, id openapi_types.UUID, params *PluginsFirewallZoneNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsFirewallZoneNotesCreateRequest calls the generic PluginsFirewallZoneNotesCreate builder with application/json body -func NewPluginsFirewallZoneNotesCreateRequest(server string, id openapi_types.UUID, body PluginsFirewallZoneNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsFirewallZoneNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsFirewallZoneNotesCreateRequestWithBody generates requests for PluginsFirewallZoneNotesCreate with any type of body -func NewPluginsFirewallZoneNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/firewall/zone/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureBulkDestroyRequest calls the generic PluginsGoldenConfigComplianceFeatureBulkDestroy builder with application/json body -func NewPluginsGoldenConfigComplianceFeatureBulkDestroyRequest(server string, body PluginsGoldenConfigComplianceFeatureBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceFeatureBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceFeatureBulkDestroyRequestWithBody generates requests for PluginsGoldenConfigComplianceFeatureBulkDestroy with any type of body -func NewPluginsGoldenConfigComplianceFeatureBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureListRequest generates requests for PluginsGoldenConfigComplianceFeatureList -func NewPluginsGoldenConfigComplianceFeatureListRequest(server string, params *PluginsGoldenConfigComplianceFeatureListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureBulkPartialUpdateRequest calls the generic PluginsGoldenConfigComplianceFeatureBulkPartialUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceFeatureBulkPartialUpdateRequest(server string, body PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceFeatureBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceFeatureBulkPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceFeatureBulkPartialUpdate with any type of body -func NewPluginsGoldenConfigComplianceFeatureBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureCreateRequest calls the generic PluginsGoldenConfigComplianceFeatureCreate builder with application/json body -func NewPluginsGoldenConfigComplianceFeatureCreateRequest(server string, body PluginsGoldenConfigComplianceFeatureCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceFeatureCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceFeatureCreateRequestWithBody generates requests for PluginsGoldenConfigComplianceFeatureCreate with any type of body -func NewPluginsGoldenConfigComplianceFeatureCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureBulkUpdateRequest calls the generic PluginsGoldenConfigComplianceFeatureBulkUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceFeatureBulkUpdateRequest(server string, body PluginsGoldenConfigComplianceFeatureBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceFeatureBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceFeatureBulkUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceFeatureBulkUpdate with any type of body -func NewPluginsGoldenConfigComplianceFeatureBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureDestroyRequest generates requests for PluginsGoldenConfigComplianceFeatureDestroy -func NewPluginsGoldenConfigComplianceFeatureDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureRetrieveRequest generates requests for PluginsGoldenConfigComplianceFeatureRetrieve -func NewPluginsGoldenConfigComplianceFeatureRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeaturePartialUpdateRequest calls the generic PluginsGoldenConfigComplianceFeaturePartialUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceFeaturePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeaturePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceFeaturePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceFeaturePartialUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceFeaturePartialUpdate with any type of body -func NewPluginsGoldenConfigComplianceFeaturePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceFeatureUpdateRequest calls the generic PluginsGoldenConfigComplianceFeatureUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceFeatureUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeatureUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceFeatureUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceFeatureUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceFeatureUpdate with any type of body -func NewPluginsGoldenConfigComplianceFeatureUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-feature/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleBulkDestroyRequest calls the generic PluginsGoldenConfigComplianceRuleBulkDestroy builder with application/json body -func NewPluginsGoldenConfigComplianceRuleBulkDestroyRequest(server string, body PluginsGoldenConfigComplianceRuleBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceRuleBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceRuleBulkDestroyRequestWithBody generates requests for PluginsGoldenConfigComplianceRuleBulkDestroy with any type of body -func NewPluginsGoldenConfigComplianceRuleBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleListRequest generates requests for PluginsGoldenConfigComplianceRuleList -func NewPluginsGoldenConfigComplianceRuleListRequest(server string, params *PluginsGoldenConfigComplianceRuleListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Feature != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "feature", runtime.ParamLocationQuery, *params.Feature); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleBulkPartialUpdateRequest calls the generic PluginsGoldenConfigComplianceRuleBulkPartialUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceRuleBulkPartialUpdateRequest(server string, body PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceRuleBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceRuleBulkPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceRuleBulkPartialUpdate with any type of body -func NewPluginsGoldenConfigComplianceRuleBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleCreateRequest calls the generic PluginsGoldenConfigComplianceRuleCreate builder with application/json body -func NewPluginsGoldenConfigComplianceRuleCreateRequest(server string, body PluginsGoldenConfigComplianceRuleCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceRuleCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceRuleCreateRequestWithBody generates requests for PluginsGoldenConfigComplianceRuleCreate with any type of body -func NewPluginsGoldenConfigComplianceRuleCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleBulkUpdateRequest calls the generic PluginsGoldenConfigComplianceRuleBulkUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceRuleBulkUpdateRequest(server string, body PluginsGoldenConfigComplianceRuleBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceRuleBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceRuleBulkUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceRuleBulkUpdate with any type of body -func NewPluginsGoldenConfigComplianceRuleBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleDestroyRequest generates requests for PluginsGoldenConfigComplianceRuleDestroy -func NewPluginsGoldenConfigComplianceRuleDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleRetrieveRequest generates requests for PluginsGoldenConfigComplianceRuleRetrieve -func NewPluginsGoldenConfigComplianceRuleRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRulePartialUpdateRequest calls the generic PluginsGoldenConfigComplianceRulePartialUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceRulePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigComplianceRulePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceRulePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceRulePartialUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceRulePartialUpdate with any type of body -func NewPluginsGoldenConfigComplianceRulePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigComplianceRuleUpdateRequest calls the generic PluginsGoldenConfigComplianceRuleUpdate builder with application/json body -func NewPluginsGoldenConfigComplianceRuleUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigComplianceRuleUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigComplianceRuleUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigComplianceRuleUpdateRequestWithBody generates requests for PluginsGoldenConfigComplianceRuleUpdate with any type of body -func NewPluginsGoldenConfigComplianceRuleUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/compliance-rule/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceBulkDestroyRequest calls the generic PluginsGoldenConfigConfigComplianceBulkDestroy builder with application/json body -func NewPluginsGoldenConfigConfigComplianceBulkDestroyRequest(server string, body PluginsGoldenConfigConfigComplianceBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigComplianceBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigComplianceBulkDestroyRequestWithBody generates requests for PluginsGoldenConfigConfigComplianceBulkDestroy with any type of body -func NewPluginsGoldenConfigConfigComplianceBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceListRequest generates requests for PluginsGoldenConfigConfigComplianceList -func NewPluginsGoldenConfigConfigComplianceListRequest(server string, params *PluginsGoldenConfigConfigComplianceListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceStatus != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_status", runtime.ParamLocationQuery, *params.DeviceStatus); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceStatusId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_status_id", runtime.ParamLocationQuery, *params.DeviceStatusId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id", runtime.ParamLocationQuery, *params.DeviceTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Manufacturer != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer", runtime.ParamLocationQuery, *params.Manufacturer); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id", runtime.ParamLocationQuery, *params.ManufacturerId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rack != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack", runtime.ParamLocationQuery, *params.Rack); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group", runtime.ParamLocationQuery, *params.RackGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group_id", runtime.ParamLocationQuery, *params.RackGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id", runtime.ParamLocationQuery, *params.RackId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceBulkPartialUpdateRequest calls the generic PluginsGoldenConfigConfigComplianceBulkPartialUpdate builder with application/json body -func NewPluginsGoldenConfigConfigComplianceBulkPartialUpdateRequest(server string, body PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigComplianceBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigComplianceBulkPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigComplianceBulkPartialUpdate with any type of body -func NewPluginsGoldenConfigConfigComplianceBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceCreateRequest calls the generic PluginsGoldenConfigConfigComplianceCreate builder with application/json body -func NewPluginsGoldenConfigConfigComplianceCreateRequest(server string, body PluginsGoldenConfigConfigComplianceCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigComplianceCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigComplianceCreateRequestWithBody generates requests for PluginsGoldenConfigConfigComplianceCreate with any type of body -func NewPluginsGoldenConfigConfigComplianceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceBulkUpdateRequest calls the generic PluginsGoldenConfigConfigComplianceBulkUpdate builder with application/json body -func NewPluginsGoldenConfigConfigComplianceBulkUpdateRequest(server string, body PluginsGoldenConfigConfigComplianceBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigComplianceBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigComplianceBulkUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigComplianceBulkUpdate with any type of body -func NewPluginsGoldenConfigConfigComplianceBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceDestroyRequest generates requests for PluginsGoldenConfigConfigComplianceDestroy -func NewPluginsGoldenConfigConfigComplianceDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceRetrieveRequest generates requests for PluginsGoldenConfigConfigComplianceRetrieve -func NewPluginsGoldenConfigConfigComplianceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigCompliancePartialUpdateRequest calls the generic PluginsGoldenConfigConfigCompliancePartialUpdate builder with application/json body -func NewPluginsGoldenConfigConfigCompliancePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigConfigCompliancePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigCompliancePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigCompliancePartialUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigCompliancePartialUpdate with any type of body -func NewPluginsGoldenConfigConfigCompliancePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigComplianceUpdateRequest calls the generic PluginsGoldenConfigConfigComplianceUpdate builder with application/json body -func NewPluginsGoldenConfigConfigComplianceUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigConfigComplianceUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigComplianceUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigComplianceUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigComplianceUpdate with any type of body -func NewPluginsGoldenConfigConfigComplianceUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-compliance/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigPostprocessingRetrieveRequest generates requests for PluginsGoldenConfigConfigPostprocessingRetrieve -func NewPluginsGoldenConfigConfigPostprocessingRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-postprocessing/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveBulkDestroyRequest calls the generic PluginsGoldenConfigConfigRemoveBulkDestroy builder with application/json body -func NewPluginsGoldenConfigConfigRemoveBulkDestroyRequest(server string, body PluginsGoldenConfigConfigRemoveBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigRemoveBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigRemoveBulkDestroyRequestWithBody generates requests for PluginsGoldenConfigConfigRemoveBulkDestroy with any type of body -func NewPluginsGoldenConfigConfigRemoveBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveListRequest generates requests for PluginsGoldenConfigConfigRemoveList -func NewPluginsGoldenConfigConfigRemoveListRequest(server string, params *PluginsGoldenConfigConfigRemoveListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveBulkPartialUpdateRequest calls the generic PluginsGoldenConfigConfigRemoveBulkPartialUpdate builder with application/json body -func NewPluginsGoldenConfigConfigRemoveBulkPartialUpdateRequest(server string, body PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigRemoveBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigRemoveBulkPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigRemoveBulkPartialUpdate with any type of body -func NewPluginsGoldenConfigConfigRemoveBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveCreateRequest calls the generic PluginsGoldenConfigConfigRemoveCreate builder with application/json body -func NewPluginsGoldenConfigConfigRemoveCreateRequest(server string, body PluginsGoldenConfigConfigRemoveCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigRemoveCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigRemoveCreateRequestWithBody generates requests for PluginsGoldenConfigConfigRemoveCreate with any type of body -func NewPluginsGoldenConfigConfigRemoveCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveBulkUpdateRequest calls the generic PluginsGoldenConfigConfigRemoveBulkUpdate builder with application/json body -func NewPluginsGoldenConfigConfigRemoveBulkUpdateRequest(server string, body PluginsGoldenConfigConfigRemoveBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigRemoveBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigRemoveBulkUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigRemoveBulkUpdate with any type of body -func NewPluginsGoldenConfigConfigRemoveBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveDestroyRequest generates requests for PluginsGoldenConfigConfigRemoveDestroy -func NewPluginsGoldenConfigConfigRemoveDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveRetrieveRequest generates requests for PluginsGoldenConfigConfigRemoveRetrieve -func NewPluginsGoldenConfigConfigRemoveRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemovePartialUpdateRequest calls the generic PluginsGoldenConfigConfigRemovePartialUpdate builder with application/json body -func NewPluginsGoldenConfigConfigRemovePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigConfigRemovePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigRemovePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigRemovePartialUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigRemovePartialUpdate with any type of body -func NewPluginsGoldenConfigConfigRemovePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigRemoveUpdateRequest calls the generic PluginsGoldenConfigConfigRemoveUpdate builder with application/json body -func NewPluginsGoldenConfigConfigRemoveUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigConfigRemoveUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigRemoveUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigRemoveUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigRemoveUpdate with any type of body -func NewPluginsGoldenConfigConfigRemoveUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-remove/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceBulkDestroyRequest calls the generic PluginsGoldenConfigConfigReplaceBulkDestroy builder with application/json body -func NewPluginsGoldenConfigConfigReplaceBulkDestroyRequest(server string, body PluginsGoldenConfigConfigReplaceBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigReplaceBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigReplaceBulkDestroyRequestWithBody generates requests for PluginsGoldenConfigConfigReplaceBulkDestroy with any type of body -func NewPluginsGoldenConfigConfigReplaceBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceListRequest generates requests for PluginsGoldenConfigConfigReplaceList -func NewPluginsGoldenConfigConfigReplaceListRequest(server string, params *PluginsGoldenConfigConfigReplaceListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceBulkPartialUpdateRequest calls the generic PluginsGoldenConfigConfigReplaceBulkPartialUpdate builder with application/json body -func NewPluginsGoldenConfigConfigReplaceBulkPartialUpdateRequest(server string, body PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigReplaceBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigReplaceBulkPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigReplaceBulkPartialUpdate with any type of body -func NewPluginsGoldenConfigConfigReplaceBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceCreateRequest calls the generic PluginsGoldenConfigConfigReplaceCreate builder with application/json body -func NewPluginsGoldenConfigConfigReplaceCreateRequest(server string, body PluginsGoldenConfigConfigReplaceCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigReplaceCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigReplaceCreateRequestWithBody generates requests for PluginsGoldenConfigConfigReplaceCreate with any type of body -func NewPluginsGoldenConfigConfigReplaceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceBulkUpdateRequest calls the generic PluginsGoldenConfigConfigReplaceBulkUpdate builder with application/json body -func NewPluginsGoldenConfigConfigReplaceBulkUpdateRequest(server string, body PluginsGoldenConfigConfigReplaceBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigReplaceBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigReplaceBulkUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigReplaceBulkUpdate with any type of body -func NewPluginsGoldenConfigConfigReplaceBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceDestroyRequest generates requests for PluginsGoldenConfigConfigReplaceDestroy -func NewPluginsGoldenConfigConfigReplaceDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceRetrieveRequest generates requests for PluginsGoldenConfigConfigReplaceRetrieve -func NewPluginsGoldenConfigConfigReplaceRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplacePartialUpdateRequest calls the generic PluginsGoldenConfigConfigReplacePartialUpdate builder with application/json body -func NewPluginsGoldenConfigConfigReplacePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigConfigReplacePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigReplacePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigReplacePartialUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigReplacePartialUpdate with any type of body -func NewPluginsGoldenConfigConfigReplacePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigConfigReplaceUpdateRequest calls the generic PluginsGoldenConfigConfigReplaceUpdate builder with application/json body -func NewPluginsGoldenConfigConfigReplaceUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigConfigReplaceUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigConfigReplaceUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigConfigReplaceUpdateRequestWithBody generates requests for PluginsGoldenConfigConfigReplaceUpdate with any type of body -func NewPluginsGoldenConfigConfigReplaceUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/config-replace/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsBulkDestroyRequest calls the generic PluginsGoldenConfigGoldenConfigSettingsBulkDestroy builder with application/json body -func NewPluginsGoldenConfigGoldenConfigSettingsBulkDestroyRequest(server string, body PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigSettingsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigSettingsBulkDestroyRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigSettingsBulkDestroy with any type of body -func NewPluginsGoldenConfigGoldenConfigSettingsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsListRequest generates requests for PluginsGoldenConfigGoldenConfigSettingsList -func NewPluginsGoldenConfigGoldenConfigSettingsListRequest(server string, params *PluginsGoldenConfigGoldenConfigSettingsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.BackupRepository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "backup_repository", runtime.ParamLocationQuery, *params.BackupRepository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BackupRepositoryN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "backup_repository__n", runtime.ParamLocationQuery, *params.BackupRepositoryN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IntendedRepository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "intended_repository", runtime.ParamLocationQuery, *params.IntendedRepository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IntendedRepositoryN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "intended_repository__n", runtime.ParamLocationQuery, *params.IntendedRepositoryN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JinjaRepository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "jinja_repository", runtime.ParamLocationQuery, *params.JinjaRepository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.JinjaRepositoryN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "jinja_repository__n", runtime.ParamLocationQuery, *params.JinjaRepositoryN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Weight != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight", runtime.ParamLocationQuery, *params.Weight); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gt", runtime.ParamLocationQuery, *params.WeightGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__gte", runtime.ParamLocationQuery, *params.WeightGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lt", runtime.ParamLocationQuery, *params.WeightLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__lte", runtime.ParamLocationQuery, *params.WeightLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WeightN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "weight__n", runtime.ParamLocationQuery, *params.WeightN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateRequest(server string, body PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsCreateRequest calls the generic PluginsGoldenConfigGoldenConfigSettingsCreate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigSettingsCreateRequest(server string, body PluginsGoldenConfigGoldenConfigSettingsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigSettingsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigSettingsCreateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigSettingsCreate with any type of body -func NewPluginsGoldenConfigGoldenConfigSettingsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsBulkUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigSettingsBulkUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigSettingsBulkUpdateRequest(server string, body PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigSettingsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigSettingsBulkUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigSettingsBulkUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigSettingsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsDestroyRequest generates requests for PluginsGoldenConfigGoldenConfigSettingsDestroy -func NewPluginsGoldenConfigGoldenConfigSettingsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsRetrieveRequest generates requests for PluginsGoldenConfigGoldenConfigSettingsRetrieve -func NewPluginsGoldenConfigGoldenConfigSettingsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsPartialUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigSettingsPartialUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigSettingsPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigSettingsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigSettingsPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigSettingsPartialUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigSettingsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigSettingsUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigSettingsUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigSettingsUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigSettingsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigSettingsUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigSettingsUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigSettingsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config-settings/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigBulkDestroyRequest calls the generic PluginsGoldenConfigGoldenConfigBulkDestroy builder with application/json body -func NewPluginsGoldenConfigGoldenConfigBulkDestroyRequest(server string, body PluginsGoldenConfigGoldenConfigBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigBulkDestroyRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigBulkDestroy with any type of body -func NewPluginsGoldenConfigGoldenConfigBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigListRequest generates requests for PluginsGoldenConfigGoldenConfigList -func NewPluginsGoldenConfigGoldenConfigListRequest(server string, params *PluginsGoldenConfigGoldenConfigListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceStatus != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_status", runtime.ParamLocationQuery, *params.DeviceStatus); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceStatusId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_status_id", runtime.ParamLocationQuery, *params.DeviceStatusId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id", runtime.ParamLocationQuery, *params.DeviceTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Manufacturer != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer", runtime.ParamLocationQuery, *params.Manufacturer); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ManufacturerId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "manufacturer_id", runtime.ParamLocationQuery, *params.ManufacturerId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rack != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack", runtime.ParamLocationQuery, *params.Rack); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group", runtime.ParamLocationQuery, *params.RackGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_group_id", runtime.ParamLocationQuery, *params.RackGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RackId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rack_id", runtime.ParamLocationQuery, *params.RackId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigBulkPartialUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigBulkPartialUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigBulkPartialUpdateRequest(server string, body PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigBulkPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigBulkPartialUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigCreateRequest calls the generic PluginsGoldenConfigGoldenConfigCreate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigCreateRequest(server string, body PluginsGoldenConfigGoldenConfigCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigCreateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigCreate with any type of body -func NewPluginsGoldenConfigGoldenConfigCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigBulkUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigBulkUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigBulkUpdateRequest(server string, body PluginsGoldenConfigGoldenConfigBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigBulkUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigBulkUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigDestroyRequest generates requests for PluginsGoldenConfigGoldenConfigDestroy -func NewPluginsGoldenConfigGoldenConfigDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigRetrieveRequest generates requests for PluginsGoldenConfigGoldenConfigRetrieve -func NewPluginsGoldenConfigGoldenConfigRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigPartialUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigPartialUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigPartialUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigPartialUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigGoldenConfigUpdateRequest calls the generic PluginsGoldenConfigGoldenConfigUpdate builder with application/json body -func NewPluginsGoldenConfigGoldenConfigUpdateRequest(server string, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsGoldenConfigGoldenConfigUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsGoldenConfigGoldenConfigUpdateRequestWithBody generates requests for PluginsGoldenConfigGoldenConfigUpdate with any type of body -func NewPluginsGoldenConfigGoldenConfigUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/golden-config/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsGoldenConfigSotaggRetrieveRequest generates requests for PluginsGoldenConfigSotaggRetrieve -func NewPluginsGoldenConfigSotaggRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/golden-config/sotagg/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContactBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContactBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContactBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtContactList -func NewPluginsNautobotDeviceLifecycleMgmtContactListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtContactListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Address != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address", runtime.ParamLocationQuery, *params.Address); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__ic", runtime.ParamLocationQuery, *params.AddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__ie", runtime.ParamLocationQuery, *params.AddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__iew", runtime.ParamLocationQuery, *params.AddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__ire", runtime.ParamLocationQuery, *params.AddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__isw", runtime.ParamLocationQuery, *params.AddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__n", runtime.ParamLocationQuery, *params.AddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__nic", runtime.ParamLocationQuery, *params.AddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__nie", runtime.ParamLocationQuery, *params.AddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__niew", runtime.ParamLocationQuery, *params.AddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__nire", runtime.ParamLocationQuery, *params.AddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__nisw", runtime.ParamLocationQuery, *params.AddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__nre", runtime.ParamLocationQuery, *params.AddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "address__re", runtime.ParamLocationQuery, *params.AddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Contract != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract", runtime.ParamLocationQuery, *params.Contract); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract__n", runtime.ParamLocationQuery, *params.ContractN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Email != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ic", runtime.ParamLocationQuery, *params.EmailIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ie", runtime.ParamLocationQuery, *params.EmailIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__iew", runtime.ParamLocationQuery, *params.EmailIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ire", runtime.ParamLocationQuery, *params.EmailIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__isw", runtime.ParamLocationQuery, *params.EmailIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__n", runtime.ParamLocationQuery, *params.EmailN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nic", runtime.ParamLocationQuery, *params.EmailNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nie", runtime.ParamLocationQuery, *params.EmailNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__niew", runtime.ParamLocationQuery, *params.EmailNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nire", runtime.ParamLocationQuery, *params.EmailNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nisw", runtime.ParamLocationQuery, *params.EmailNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nre", runtime.ParamLocationQuery, *params.EmailNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__re", runtime.ParamLocationQuery, *params.EmailRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Phone != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone", runtime.ParamLocationQuery, *params.Phone); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__ic", runtime.ParamLocationQuery, *params.PhoneIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__ie", runtime.ParamLocationQuery, *params.PhoneIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__iew", runtime.ParamLocationQuery, *params.PhoneIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__ire", runtime.ParamLocationQuery, *params.PhoneIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__isw", runtime.ParamLocationQuery, *params.PhoneIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__n", runtime.ParamLocationQuery, *params.PhoneN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nic", runtime.ParamLocationQuery, *params.PhoneNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nie", runtime.ParamLocationQuery, *params.PhoneNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__niew", runtime.ParamLocationQuery, *params.PhoneNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nire", runtime.ParamLocationQuery, *params.PhoneNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nisw", runtime.ParamLocationQuery, *params.PhoneNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nre", runtime.ParamLocationQuery, *params.PhoneNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__re", runtime.ParamLocationQuery, *params.PhoneRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Priority != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PriorityGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority__gt", runtime.ParamLocationQuery, *params.PriorityGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PriorityGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority__gte", runtime.ParamLocationQuery, *params.PriorityGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PriorityLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority__lt", runtime.ParamLocationQuery, *params.PriorityLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PriorityLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority__lte", runtime.ParamLocationQuery, *params.PriorityLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PriorityN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority__n", runtime.ParamLocationQuery, *params.PriorityN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__ic", runtime.ParamLocationQuery, *params.TypeIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__ie", runtime.ParamLocationQuery, *params.TypeIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__iew", runtime.ParamLocationQuery, *params.TypeIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__ire", runtime.ParamLocationQuery, *params.TypeIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__isw", runtime.ParamLocationQuery, *params.TypeIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__nic", runtime.ParamLocationQuery, *params.TypeNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__nie", runtime.ParamLocationQuery, *params.TypeNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__niew", runtime.ParamLocationQuery, *params.TypeNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__nire", runtime.ParamLocationQuery, *params.TypeNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__nisw", runtime.ParamLocationQuery, *params.TypeNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__nre", runtime.ParamLocationQuery, *params.TypeNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__re", runtime.ParamLocationQuery, *params.TypeRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContactCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContactCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContactCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContactCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContactCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContactCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContactBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContactBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContactBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtContactDestroy -func NewPluginsNautobotDeviceLifecycleMgmtContactDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtContactRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtContactRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContactPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContactPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContactPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContactUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContactUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContactUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContactUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContactUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContactUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contact/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContractBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContractBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContractBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtContractList -func NewPluginsNautobotDeviceLifecycleMgmtContractListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtContractListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.ContractType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type", runtime.ParamLocationQuery, *params.ContractType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__ic", runtime.ParamLocationQuery, *params.ContractTypeIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__ie", runtime.ParamLocationQuery, *params.ContractTypeIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__iew", runtime.ParamLocationQuery, *params.ContractTypeIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__ire", runtime.ParamLocationQuery, *params.ContractTypeIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__isw", runtime.ParamLocationQuery, *params.ContractTypeIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__n", runtime.ParamLocationQuery, *params.ContractTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__nic", runtime.ParamLocationQuery, *params.ContractTypeNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__nie", runtime.ParamLocationQuery, *params.ContractTypeNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__niew", runtime.ParamLocationQuery, *params.ContractTypeNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__nire", runtime.ParamLocationQuery, *params.ContractTypeNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__nisw", runtime.ParamLocationQuery, *params.ContractTypeNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__nre", runtime.ParamLocationQuery, *params.ContractTypeNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ContractTypeRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contract_type__re", runtime.ParamLocationQuery, *params.ContractTypeRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cost != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cost", runtime.ParamLocationQuery, *params.Cost); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CostGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cost__gt", runtime.ParamLocationQuery, *params.CostGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CostGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cost__gte", runtime.ParamLocationQuery, *params.CostGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CostLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cost__lt", runtime.ParamLocationQuery, *params.CostLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CostLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cost__lte", runtime.ParamLocationQuery, *params.CostLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CostN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cost__n", runtime.ParamLocationQuery, *params.CostN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.End != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end__gte", runtime.ParamLocationQuery, *params.EndGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end__lte", runtime.ParamLocationQuery, *params.EndLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Expired != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expired", runtime.ParamLocationQuery, *params.Expired); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Provider != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider", runtime.ParamLocationQuery, *params.Provider); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ProviderN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider__n", runtime.ParamLocationQuery, *params.ProviderN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Start != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start__gte", runtime.ParamLocationQuery, *params.StartGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start__lte", runtime.ParamLocationQuery, *params.StartLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level", runtime.ParamLocationQuery, *params.SupportLevel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__ic", runtime.ParamLocationQuery, *params.SupportLevelIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__ie", runtime.ParamLocationQuery, *params.SupportLevelIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__iew", runtime.ParamLocationQuery, *params.SupportLevelIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__ire", runtime.ParamLocationQuery, *params.SupportLevelIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__isw", runtime.ParamLocationQuery, *params.SupportLevelIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__n", runtime.ParamLocationQuery, *params.SupportLevelN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__nic", runtime.ParamLocationQuery, *params.SupportLevelNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__nie", runtime.ParamLocationQuery, *params.SupportLevelNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__niew", runtime.ParamLocationQuery, *params.SupportLevelNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__nire", runtime.ParamLocationQuery, *params.SupportLevelNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__nisw", runtime.ParamLocationQuery, *params.SupportLevelNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__nre", runtime.ParamLocationQuery, *params.SupportLevelNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupportLevelRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "support_level__re", runtime.ParamLocationQuery, *params.SupportLevelRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContractCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContractCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContractCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContractCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContractCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContractCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContractBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContractBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContractBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtContractDestroy -func NewPluginsNautobotDeviceLifecycleMgmtContractDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtContractRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtContractRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContractPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContractPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContractPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtContractUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtContractUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtContractUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtContractUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtContractUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtContractUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/contract/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtCveBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtCveBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtCveBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtCveList -func NewPluginsNautobotDeviceLifecycleMgmtCveListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtCveListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cvss != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss", runtime.ParamLocationQuery, *params.Cvss); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss__gt", runtime.ParamLocationQuery, *params.CvssGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss__gte", runtime.ParamLocationQuery, *params.CvssGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss__lt", runtime.ParamLocationQuery, *params.CvssLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss__lte", runtime.ParamLocationQuery, *params.CvssLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss__n", runtime.ParamLocationQuery, *params.CvssN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV2 != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v2", runtime.ParamLocationQuery, *params.CvssV2); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV2Gt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v2__gt", runtime.ParamLocationQuery, *params.CvssV2Gt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV2Gte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v2__gte", runtime.ParamLocationQuery, *params.CvssV2Gte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV2Lt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v2__lt", runtime.ParamLocationQuery, *params.CvssV2Lt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV2Lte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v2__lte", runtime.ParamLocationQuery, *params.CvssV2Lte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV2N != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v2__n", runtime.ParamLocationQuery, *params.CvssV2N); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV3 != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v3", runtime.ParamLocationQuery, *params.CvssV3); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV3Gt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v3__gt", runtime.ParamLocationQuery, *params.CvssV3Gt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV3Gte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v3__gte", runtime.ParamLocationQuery, *params.CvssV3Gte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV3Lt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v3__lt", runtime.ParamLocationQuery, *params.CvssV3Lt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV3Lte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v3__lte", runtime.ParamLocationQuery, *params.CvssV3Lte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvssV3N != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cvss_v3__n", runtime.ParamLocationQuery, *params.CvssV3N); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExcludeStatus != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude_status", runtime.ParamLocationQuery, *params.ExcludeStatus); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExcludeStatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude_status__n", runtime.ParamLocationQuery, *params.ExcludeStatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Fix != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix", runtime.ParamLocationQuery, *params.Fix); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__ic", runtime.ParamLocationQuery, *params.FixIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__ie", runtime.ParamLocationQuery, *params.FixIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__iew", runtime.ParamLocationQuery, *params.FixIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__ire", runtime.ParamLocationQuery, *params.FixIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__isw", runtime.ParamLocationQuery, *params.FixIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__n", runtime.ParamLocationQuery, *params.FixN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__nic", runtime.ParamLocationQuery, *params.FixNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__nie", runtime.ParamLocationQuery, *params.FixNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__niew", runtime.ParamLocationQuery, *params.FixNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__nire", runtime.ParamLocationQuery, *params.FixNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__nisw", runtime.ParamLocationQuery, *params.FixNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__nre", runtime.ParamLocationQuery, *params.FixNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FixRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fix__re", runtime.ParamLocationQuery, *params.FixRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Link != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link", runtime.ParamLocationQuery, *params.Link); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__ic", runtime.ParamLocationQuery, *params.LinkIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__ie", runtime.ParamLocationQuery, *params.LinkIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__iew", runtime.ParamLocationQuery, *params.LinkIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__ire", runtime.ParamLocationQuery, *params.LinkIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__isw", runtime.ParamLocationQuery, *params.LinkIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__n", runtime.ParamLocationQuery, *params.LinkN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__nic", runtime.ParamLocationQuery, *params.LinkNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__nie", runtime.ParamLocationQuery, *params.LinkNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__niew", runtime.ParamLocationQuery, *params.LinkNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__nire", runtime.ParamLocationQuery, *params.LinkNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__nisw", runtime.ParamLocationQuery, *params.LinkNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__nre", runtime.ParamLocationQuery, *params.LinkNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LinkRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link__re", runtime.ParamLocationQuery, *params.LinkRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PublishedDateGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "published_date__gte", runtime.ParamLocationQuery, *params.PublishedDateGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PublishedDateLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "published_date__lte", runtime.ParamLocationQuery, *params.PublishedDateLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PublishedDateAfter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "published_date_after", runtime.ParamLocationQuery, *params.PublishedDateAfter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PublishedDateBefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "published_date_before", runtime.ParamLocationQuery, *params.PublishedDateBefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Severity != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severity", runtime.ParamLocationQuery, *params.Severity); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeverityN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severity__n", runtime.ParamLocationQuery, *params.SeverityN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtCveCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtCveCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtCveCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtCveCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtCveCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtCveCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtCveBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtCveBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtCveBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtCveDestroy -func NewPluginsNautobotDeviceLifecycleMgmtCveDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtCveRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtCveRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCvePartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtCvePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtCvePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtCvePartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtCvePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtCveUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtCveUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCveUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtCveUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtCveUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtCveUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtCveUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/cve/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareList -func NewPluginsNautobotDeviceLifecycleMgmtHardwareListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtHardwareListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type", runtime.ParamLocationQuery, *params.DeviceType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type__n", runtime.ParamLocationQuery, *params.DeviceTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id", runtime.ParamLocationQuery, *params.DeviceTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_type_id__n", runtime.ParamLocationQuery, *params.DeviceTypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DocumentationUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "documentation_url", runtime.ParamLocationQuery, *params.DocumentationUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSale != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_sale", runtime.ParamLocationQuery, *params.EndOfSale); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSaleGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_sale__gte", runtime.ParamLocationQuery, *params.EndOfSaleGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSaleLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_sale__lte", runtime.ParamLocationQuery, *params.EndOfSaleLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSecurityPatches != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_security_patches", runtime.ParamLocationQuery, *params.EndOfSecurityPatches); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSecurityPatchesGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_security_patches__gte", runtime.ParamLocationQuery, *params.EndOfSecurityPatchesGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSecurityPatchesLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_security_patches__lte", runtime.ParamLocationQuery, *params.EndOfSecurityPatchesLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSupport != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_support", runtime.ParamLocationQuery, *params.EndOfSupport); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSupportGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_support__gte", runtime.ParamLocationQuery, *params.EndOfSupportGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSupportLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_support__lte", runtime.ParamLocationQuery, *params.EndOfSupportLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSwReleases != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_sw_releases", runtime.ParamLocationQuery, *params.EndOfSwReleases); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSwReleasesGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_sw_releases__gte", runtime.ParamLocationQuery, *params.EndOfSwReleasesGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSwReleasesLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_sw_releases__lte", runtime.ParamLocationQuery, *params.EndOfSwReleasesLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Expired != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expired", runtime.ParamLocationQuery, *params.Expired); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItem != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_item", runtime.ParamLocationQuery, *params.InventoryItem); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_item__n", runtime.ParamLocationQuery, *params.InventoryItemN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtHardwareCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtHardwareCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtHardwareCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareDestroy -func NewPluginsNautobotDeviceLifecycleMgmtHardwareDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtHardwareRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtHardwareUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwareUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtHardwareUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtHardwareUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtHardwareUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtHardwareUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/hardware/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtProviderList -func NewPluginsNautobotDeviceLifecycleMgmtProviderListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtProviderListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Country != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country", runtime.ParamLocationQuery, *params.Country); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__ic", runtime.ParamLocationQuery, *params.CountryIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__ie", runtime.ParamLocationQuery, *params.CountryIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__iew", runtime.ParamLocationQuery, *params.CountryIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__ire", runtime.ParamLocationQuery, *params.CountryIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__isw", runtime.ParamLocationQuery, *params.CountryIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__n", runtime.ParamLocationQuery, *params.CountryN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__nic", runtime.ParamLocationQuery, *params.CountryNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__nie", runtime.ParamLocationQuery, *params.CountryNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__niew", runtime.ParamLocationQuery, *params.CountryNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__nire", runtime.ParamLocationQuery, *params.CountryNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__nisw", runtime.ParamLocationQuery, *params.CountryNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__nre", runtime.ParamLocationQuery, *params.CountryNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CountryRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "country__re", runtime.ParamLocationQuery, *params.CountryRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Email != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ic", runtime.ParamLocationQuery, *params.EmailIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ie", runtime.ParamLocationQuery, *params.EmailIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__iew", runtime.ParamLocationQuery, *params.EmailIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ire", runtime.ParamLocationQuery, *params.EmailIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__isw", runtime.ParamLocationQuery, *params.EmailIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__n", runtime.ParamLocationQuery, *params.EmailN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nic", runtime.ParamLocationQuery, *params.EmailNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nie", runtime.ParamLocationQuery, *params.EmailNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__niew", runtime.ParamLocationQuery, *params.EmailNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nire", runtime.ParamLocationQuery, *params.EmailNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nisw", runtime.ParamLocationQuery, *params.EmailNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nre", runtime.ParamLocationQuery, *params.EmailNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__re", runtime.ParamLocationQuery, *params.EmailRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Phone != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone", runtime.ParamLocationQuery, *params.Phone); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__ic", runtime.ParamLocationQuery, *params.PhoneIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__ie", runtime.ParamLocationQuery, *params.PhoneIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__iew", runtime.ParamLocationQuery, *params.PhoneIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__ire", runtime.ParamLocationQuery, *params.PhoneIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__isw", runtime.ParamLocationQuery, *params.PhoneIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__n", runtime.ParamLocationQuery, *params.PhoneN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nic", runtime.ParamLocationQuery, *params.PhoneNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nie", runtime.ParamLocationQuery, *params.PhoneNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__niew", runtime.ParamLocationQuery, *params.PhoneNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nire", runtime.ParamLocationQuery, *params.PhoneNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nisw", runtime.ParamLocationQuery, *params.PhoneNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__nre", runtime.ParamLocationQuery, *params.PhoneNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhoneRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "phone__re", runtime.ParamLocationQuery, *params.PhoneRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address", runtime.ParamLocationQuery, *params.PhysicalAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__ic", runtime.ParamLocationQuery, *params.PhysicalAddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__ie", runtime.ParamLocationQuery, *params.PhysicalAddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__iew", runtime.ParamLocationQuery, *params.PhysicalAddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__ire", runtime.ParamLocationQuery, *params.PhysicalAddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__isw", runtime.ParamLocationQuery, *params.PhysicalAddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__n", runtime.ParamLocationQuery, *params.PhysicalAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nic", runtime.ParamLocationQuery, *params.PhysicalAddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nie", runtime.ParamLocationQuery, *params.PhysicalAddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__niew", runtime.ParamLocationQuery, *params.PhysicalAddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nire", runtime.ParamLocationQuery, *params.PhysicalAddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nisw", runtime.ParamLocationQuery, *params.PhysicalAddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__nre", runtime.ParamLocationQuery, *params.PhysicalAddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PhysicalAddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "physical_address__re", runtime.ParamLocationQuery, *params.PhysicalAddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url", runtime.ParamLocationQuery, *params.PortalUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__ic", runtime.ParamLocationQuery, *params.PortalUrlIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__ie", runtime.ParamLocationQuery, *params.PortalUrlIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__iew", runtime.ParamLocationQuery, *params.PortalUrlIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__ire", runtime.ParamLocationQuery, *params.PortalUrlIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__isw", runtime.ParamLocationQuery, *params.PortalUrlIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__n", runtime.ParamLocationQuery, *params.PortalUrlN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__nic", runtime.ParamLocationQuery, *params.PortalUrlNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__nie", runtime.ParamLocationQuery, *params.PortalUrlNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__niew", runtime.ParamLocationQuery, *params.PortalUrlNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__nire", runtime.ParamLocationQuery, *params.PortalUrlNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__nisw", runtime.ParamLocationQuery, *params.PortalUrlNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__nre", runtime.ParamLocationQuery, *params.PortalUrlNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PortalUrlRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "portal_url__re", runtime.ParamLocationQuery, *params.PortalUrlRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtProviderCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtProviderCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtProviderCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtProviderCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtProviderCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtProviderCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtProviderDestroy -func NewPluginsNautobotDeviceLifecycleMgmtProviderDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtProviderRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtProviderRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtProviderUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtProviderUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtProviderUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtProviderUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtProviderUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtProviderUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/provider/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageList -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtSoftwareImageListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DefaultImage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "default_image", runtime.ParamLocationQuery, *params.DefaultImage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_name", runtime.ParamLocationQuery, *params.DeviceName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types", runtime.ParamLocationQuery, *params.DeviceTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types__n", runtime.ParamLocationQuery, *params.DeviceTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypesId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types_id", runtime.ParamLocationQuery, *params.DeviceTypesId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypesIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types_id__n", runtime.ParamLocationQuery, *params.DeviceTypesIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url", runtime.ParamLocationQuery, *params.DownloadUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__ic", runtime.ParamLocationQuery, *params.DownloadUrlIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__ie", runtime.ParamLocationQuery, *params.DownloadUrlIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__iew", runtime.ParamLocationQuery, *params.DownloadUrlIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__ire", runtime.ParamLocationQuery, *params.DownloadUrlIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__isw", runtime.ParamLocationQuery, *params.DownloadUrlIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__n", runtime.ParamLocationQuery, *params.DownloadUrlN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__nic", runtime.ParamLocationQuery, *params.DownloadUrlNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__nie", runtime.ParamLocationQuery, *params.DownloadUrlNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__niew", runtime.ParamLocationQuery, *params.DownloadUrlNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__nire", runtime.ParamLocationQuery, *params.DownloadUrlNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__nisw", runtime.ParamLocationQuery, *params.DownloadUrlNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__nre", runtime.ParamLocationQuery, *params.DownloadUrlNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DownloadUrlRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download_url__re", runtime.ParamLocationQuery, *params.DownloadUrlRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksum != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum", runtime.ParamLocationQuery, *params.ImageFileChecksum); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__ic", runtime.ParamLocationQuery, *params.ImageFileChecksumIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__ie", runtime.ParamLocationQuery, *params.ImageFileChecksumIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__iew", runtime.ParamLocationQuery, *params.ImageFileChecksumIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__ire", runtime.ParamLocationQuery, *params.ImageFileChecksumIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__isw", runtime.ParamLocationQuery, *params.ImageFileChecksumIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__n", runtime.ParamLocationQuery, *params.ImageFileChecksumN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__nic", runtime.ParamLocationQuery, *params.ImageFileChecksumNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__nie", runtime.ParamLocationQuery, *params.ImageFileChecksumNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__niew", runtime.ParamLocationQuery, *params.ImageFileChecksumNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__nire", runtime.ParamLocationQuery, *params.ImageFileChecksumNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__nisw", runtime.ParamLocationQuery, *params.ImageFileChecksumNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__nre", runtime.ParamLocationQuery, *params.ImageFileChecksumNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileChecksumRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_checksum__re", runtime.ParamLocationQuery, *params.ImageFileChecksumRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name", runtime.ParamLocationQuery, *params.ImageFileName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__ic", runtime.ParamLocationQuery, *params.ImageFileNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__ie", runtime.ParamLocationQuery, *params.ImageFileNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__iew", runtime.ParamLocationQuery, *params.ImageFileNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__ire", runtime.ParamLocationQuery, *params.ImageFileNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__isw", runtime.ParamLocationQuery, *params.ImageFileNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__n", runtime.ParamLocationQuery, *params.ImageFileNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__nic", runtime.ParamLocationQuery, *params.ImageFileNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__nie", runtime.ParamLocationQuery, *params.ImageFileNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__niew", runtime.ParamLocationQuery, *params.ImageFileNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__nire", runtime.ParamLocationQuery, *params.ImageFileNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__nisw", runtime.ParamLocationQuery, *params.ImageFileNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__nre", runtime.ParamLocationQuery, *params.ImageFileNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ImageFileNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image_file_name__re", runtime.ParamLocationQuery, *params.ImageFileNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_item_id", runtime.ParamLocationQuery, *params.InventoryItemId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItems != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items", runtime.ParamLocationQuery, *params.InventoryItems); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items__n", runtime.ParamLocationQuery, *params.InventoryItemsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemsId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items_id", runtime.ParamLocationQuery, *params.InventoryItemsId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemsIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items_id__n", runtime.ParamLocationQuery, *params.InventoryItemsIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTags != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags", runtime.ParamLocationQuery, *params.ObjectTags); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTagsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags__n", runtime.ParamLocationQuery, *params.ObjectTagsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTagsId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags_id", runtime.ParamLocationQuery, *params.ObjectTagsId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTagsIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags_id__n", runtime.ParamLocationQuery, *params.ObjectTagsIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Software != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software", runtime.ParamLocationQuery, *params.Software); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftwareN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software__n", runtime.ParamLocationQuery, *params.SoftwareN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftwareVersion != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software_version", runtime.ParamLocationQuery, *params.SoftwareVersion); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftwareVersionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software_version__n", runtime.ParamLocationQuery, *params.SoftwareVersionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroy -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software-image/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareList -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtSoftwareListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Alias != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias", runtime.ParamLocationQuery, *params.Alias); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__ic", runtime.ParamLocationQuery, *params.AliasIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__ie", runtime.ParamLocationQuery, *params.AliasIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__iew", runtime.ParamLocationQuery, *params.AliasIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__ire", runtime.ParamLocationQuery, *params.AliasIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__isw", runtime.ParamLocationQuery, *params.AliasIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__n", runtime.ParamLocationQuery, *params.AliasN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__nic", runtime.ParamLocationQuery, *params.AliasNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__nie", runtime.ParamLocationQuery, *params.AliasNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__niew", runtime.ParamLocationQuery, *params.AliasNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__nire", runtime.ParamLocationQuery, *params.AliasNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__nisw", runtime.ParamLocationQuery, *params.AliasNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__nre", runtime.ParamLocationQuery, *params.AliasNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AliasRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alias__re", runtime.ParamLocationQuery, *params.AliasRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicePlatform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_platform", runtime.ParamLocationQuery, *params.DevicePlatform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicePlatformN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_platform__n", runtime.ParamLocationQuery, *params.DevicePlatformN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DocumentationUrl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "documentation_url", runtime.ParamLocationQuery, *params.DocumentationUrl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSupportAfter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_support_after", runtime.ParamLocationQuery, *params.EndOfSupportAfter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndOfSupportBefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_of_support_before", runtime.ParamLocationQuery, *params.EndOfSupportBefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LongTermSupport != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "long_term_support", runtime.ParamLocationQuery, *params.LongTermSupport); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PreRelease != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pre_release", runtime.ParamLocationQuery, *params.PreRelease); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ReleaseDateAfter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "release_date_after", runtime.ParamLocationQuery, *params.ReleaseDateAfter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ReleaseDateBefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "release_date_before", runtime.ParamLocationQuery, *params.ReleaseDateBefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Version != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version", runtime.ParamLocationQuery, *params.Version); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__ic", runtime.ParamLocationQuery, *params.VersionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__ie", runtime.ParamLocationQuery, *params.VersionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__iew", runtime.ParamLocationQuery, *params.VersionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__ire", runtime.ParamLocationQuery, *params.VersionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__isw", runtime.ParamLocationQuery, *params.VersionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__n", runtime.ParamLocationQuery, *params.VersionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__nic", runtime.ParamLocationQuery, *params.VersionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__nie", runtime.ParamLocationQuery, *params.VersionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__niew", runtime.ParamLocationQuery, *params.VersionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__nire", runtime.ParamLocationQuery, *params.VersionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__nisw", runtime.ParamLocationQuery, *params.VersionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__nre", runtime.ParamLocationQuery, *params.VersionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VersionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version__re", runtime.ParamLocationQuery, *params.VersionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareDestroy -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtSoftwareUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtSoftwareUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtSoftwareUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareList -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_id", runtime.ParamLocationQuery, *params.DeviceId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_name", runtime.ParamLocationQuery, *params.DeviceName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRoles != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_roles", runtime.ParamLocationQuery, *params.DeviceRoles); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRolesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_roles__n", runtime.ParamLocationQuery, *params.DeviceRolesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRolesId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_roles_id", runtime.ParamLocationQuery, *params.DeviceRolesId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceRolesIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_roles_id__n", runtime.ParamLocationQuery, *params.DeviceRolesIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types", runtime.ParamLocationQuery, *params.DeviceTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types__n", runtime.ParamLocationQuery, *params.DeviceTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypesId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types_id", runtime.ParamLocationQuery, *params.DeviceTypesId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceTypesIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device_types_id__n", runtime.ParamLocationQuery, *params.DeviceTypesIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices", runtime.ParamLocationQuery, *params.Devices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices__n", runtime.ParamLocationQuery, *params.DevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices_id", runtime.ParamLocationQuery, *params.DevicesId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices_id__n", runtime.ParamLocationQuery, *params.DevicesIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndAfter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_after", runtime.ParamLocationQuery, *params.EndAfter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndBefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_before", runtime.ParamLocationQuery, *params.EndBefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_item_id", runtime.ParamLocationQuery, *params.InventoryItemId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItems != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items", runtime.ParamLocationQuery, *params.InventoryItems); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items__n", runtime.ParamLocationQuery, *params.InventoryItemsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemsId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items_id", runtime.ParamLocationQuery, *params.InventoryItemsId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemsIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_items_id__n", runtime.ParamLocationQuery, *params.InventoryItemsIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTags != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags", runtime.ParamLocationQuery, *params.ObjectTags); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTagsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags__n", runtime.ParamLocationQuery, *params.ObjectTagsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTagsId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags_id", runtime.ParamLocationQuery, *params.ObjectTagsId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTagsIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_tags_id__n", runtime.ParamLocationQuery, *params.ObjectTagsIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Preferred != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "preferred", runtime.ParamLocationQuery, *params.Preferred); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Software != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software", runtime.ParamLocationQuery, *params.Software); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftwareN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software__n", runtime.ParamLocationQuery, *params.SoftwareN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartAfter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_after", runtime.ParamLocationQuery, *params.StartAfter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartBefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_before", runtime.ParamLocationQuery, *params.StartBefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Valid != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "valid", runtime.ParamLocationQuery, *params.Valid); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroy -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/validated-software/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyRequest calls the generic PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyRequest(server string, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityListRequest generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityList -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityListRequest(server string, params *PluginsNautobotDeviceLifecycleMgmtVulnerabilityListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cve != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cve", runtime.ParamLocationQuery, *params.Cve); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CveN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cve__n", runtime.ParamLocationQuery, *params.CveN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvePublishedDateGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cve__published_date__gte", runtime.ParamLocationQuery, *params.CvePublishedDateGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvePublishedDateLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cve__published_date__lte", runtime.ParamLocationQuery, *params.CvePublishedDateLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvePublishedDateAfter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cve__published_date_after", runtime.ParamLocationQuery, *params.CvePublishedDateAfter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CvePublishedDateBefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cve__published_date_before", runtime.ParamLocationQuery, *params.CvePublishedDateBefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Device != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device", runtime.ParamLocationQuery, *params.Device); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeviceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "device__n", runtime.ParamLocationQuery, *params.DeviceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExcludeStatus != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude_status", runtime.ParamLocationQuery, *params.ExcludeStatus); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExcludeStatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude_status__n", runtime.ParamLocationQuery, *params.ExcludeStatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItem != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_item", runtime.ParamLocationQuery, *params.InventoryItem); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InventoryItemN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inventory_item__n", runtime.ParamLocationQuery, *params.InventoryItemN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Software != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software", runtime.ParamLocationQuery, *params.Software); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SoftwareN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "software__n", runtime.ParamLocationQuery, *params.SoftwareN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateRequest(server string, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyRequest generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroy -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveRequest generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieve -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateRequest calls the generic PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate builder with application/json body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateRequest(server string, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateRequestWithBody generates requests for PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate with any type of body -func NewPluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/nautobot-device-lifecycle-mgmt/vulnerability/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewStatusRetrieveRequest generates requests for StatusRetrieve -func NewStatusRetrieveRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSwaggerJsonRetrieveRequest generates requests for SwaggerJsonRetrieve -func NewSwaggerJsonRetrieveRequest(server string, params *SwaggerJsonRetrieveParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/swagger.json") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Lang != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lang", runtime.ParamLocationQuery, *params.Lang); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSwaggerYamlRetrieveRequest generates requests for SwaggerYamlRetrieve -func NewSwaggerYamlRetrieveRequest(server string, params *SwaggerYamlRetrieveParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/swagger.yaml") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Lang != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lang", runtime.ParamLocationQuery, *params.Lang); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSwaggerRetrieveRequest generates requests for SwaggerRetrieve -func NewSwaggerRetrieveRequest(server string, params *SwaggerRetrieveParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/swagger/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Format != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "format", runtime.ParamLocationQuery, *params.Format); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Lang != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lang", runtime.ParamLocationQuery, *params.Lang); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantGroupsBulkDestroyRequest calls the generic TenancyTenantGroupsBulkDestroy builder with application/json body -func NewTenancyTenantGroupsBulkDestroyRequest(server string, body TenancyTenantGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantGroupsBulkDestroyRequestWithBody generates requests for TenancyTenantGroupsBulkDestroy with any type of body -func NewTenancyTenantGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantGroupsListRequest generates requests for TenancyTenantGroupsList -func NewTenancyTenantGroupsListRequest(server string, params *TenancyTenantGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parent != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent", runtime.ParamLocationQuery, *params.Parent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent__n", runtime.ParamLocationQuery, *params.ParentN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id", runtime.ParamLocationQuery, *params.ParentId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id__n", runtime.ParamLocationQuery, *params.ParentIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantGroupsBulkPartialUpdateRequest calls the generic TenancyTenantGroupsBulkPartialUpdate builder with application/json body -func NewTenancyTenantGroupsBulkPartialUpdateRequest(server string, body TenancyTenantGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantGroupsBulkPartialUpdateRequestWithBody generates requests for TenancyTenantGroupsBulkPartialUpdate with any type of body -func NewTenancyTenantGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantGroupsCreateRequest calls the generic TenancyTenantGroupsCreate builder with application/json body -func NewTenancyTenantGroupsCreateRequest(server string, body TenancyTenantGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantGroupsCreateRequestWithBody generates requests for TenancyTenantGroupsCreate with any type of body -func NewTenancyTenantGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantGroupsBulkUpdateRequest calls the generic TenancyTenantGroupsBulkUpdate builder with application/json body -func NewTenancyTenantGroupsBulkUpdateRequest(server string, body TenancyTenantGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantGroupsBulkUpdateRequestWithBody generates requests for TenancyTenantGroupsBulkUpdate with any type of body -func NewTenancyTenantGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantGroupsDestroyRequest generates requests for TenancyTenantGroupsDestroy -func NewTenancyTenantGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantGroupsRetrieveRequest generates requests for TenancyTenantGroupsRetrieve -func NewTenancyTenantGroupsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantGroupsPartialUpdateRequest calls the generic TenancyTenantGroupsPartialUpdate builder with application/json body -func NewTenancyTenantGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body TenancyTenantGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewTenancyTenantGroupsPartialUpdateRequestWithBody generates requests for TenancyTenantGroupsPartialUpdate with any type of body -func NewTenancyTenantGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantGroupsUpdateRequest calls the generic TenancyTenantGroupsUpdate builder with application/json body -func NewTenancyTenantGroupsUpdateRequest(server string, id openapi_types.UUID, body TenancyTenantGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewTenancyTenantGroupsUpdateRequestWithBody generates requests for TenancyTenantGroupsUpdate with any type of body -func NewTenancyTenantGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantGroupsNotesListRequest generates requests for TenancyTenantGroupsNotesList -func NewTenancyTenantGroupsNotesListRequest(server string, id openapi_types.UUID, params *TenancyTenantGroupsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantGroupsNotesCreateRequest calls the generic TenancyTenantGroupsNotesCreate builder with application/json body -func NewTenancyTenantGroupsNotesCreateRequest(server string, id openapi_types.UUID, body TenancyTenantGroupsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantGroupsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewTenancyTenantGroupsNotesCreateRequestWithBody generates requests for TenancyTenantGroupsNotesCreate with any type of body -func NewTenancyTenantGroupsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenant-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantsBulkDestroyRequest calls the generic TenancyTenantsBulkDestroy builder with application/json body -func NewTenancyTenantsBulkDestroyRequest(server string, body TenancyTenantsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantsBulkDestroyRequestWithBody generates requests for TenancyTenantsBulkDestroy with any type of body -func NewTenancyTenantsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantsListRequest generates requests for TenancyTenantsList -func NewTenancyTenantsListRequest(server string, params *TenancyTenantsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasLocations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_locations", runtime.ParamLocationQuery, *params.HasLocations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Locations != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "locations", runtime.ParamLocationQuery, *params.Locations); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "locations__n", runtime.ParamLocationQuery, *params.LocationsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantsBulkPartialUpdateRequest calls the generic TenancyTenantsBulkPartialUpdate builder with application/json body -func NewTenancyTenantsBulkPartialUpdateRequest(server string, body TenancyTenantsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantsBulkPartialUpdateRequestWithBody generates requests for TenancyTenantsBulkPartialUpdate with any type of body -func NewTenancyTenantsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantsCreateRequest calls the generic TenancyTenantsCreate builder with application/json body -func NewTenancyTenantsCreateRequest(server string, body TenancyTenantsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantsCreateRequestWithBody generates requests for TenancyTenantsCreate with any type of body -func NewTenancyTenantsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantsBulkUpdateRequest calls the generic TenancyTenantsBulkUpdate builder with application/json body -func NewTenancyTenantsBulkUpdateRequest(server string, body TenancyTenantsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewTenancyTenantsBulkUpdateRequestWithBody generates requests for TenancyTenantsBulkUpdate with any type of body -func NewTenancyTenantsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantsDestroyRequest generates requests for TenancyTenantsDestroy -func NewTenancyTenantsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantsRetrieveRequest generates requests for TenancyTenantsRetrieve -func NewTenancyTenantsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantsPartialUpdateRequest calls the generic TenancyTenantsPartialUpdate builder with application/json body -func NewTenancyTenantsPartialUpdateRequest(server string, id openapi_types.UUID, body TenancyTenantsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewTenancyTenantsPartialUpdateRequestWithBody generates requests for TenancyTenantsPartialUpdate with any type of body -func NewTenancyTenantsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantsUpdateRequest calls the generic TenancyTenantsUpdate builder with application/json body -func NewTenancyTenantsUpdateRequest(server string, id openapi_types.UUID, body TenancyTenantsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewTenancyTenantsUpdateRequestWithBody generates requests for TenancyTenantsUpdate with any type of body -func NewTenancyTenantsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTenancyTenantsNotesListRequest generates requests for TenancyTenantsNotesList -func NewTenancyTenantsNotesListRequest(server string, id openapi_types.UUID, params *TenancyTenantsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTenancyTenantsNotesCreateRequest calls the generic TenancyTenantsNotesCreate builder with application/json body -func NewTenancyTenantsNotesCreateRequest(server string, id openapi_types.UUID, body TenancyTenantsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTenancyTenantsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewTenancyTenantsNotesCreateRequestWithBody generates requests for TenancyTenantsNotesCreate with any type of body -func NewTenancyTenantsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/tenancy/tenants/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersConfigRetrieveRequest generates requests for UsersConfigRetrieve -func NewUsersConfigRetrieveRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/config/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersGroupsBulkDestroyRequest calls the generic UsersGroupsBulkDestroy builder with application/json body -func NewUsersGroupsBulkDestroyRequest(server string, body UsersGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersGroupsBulkDestroyRequestWithBody generates requests for UsersGroupsBulkDestroy with any type of body -func NewUsersGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersGroupsListRequest generates requests for UsersGroupsList -func NewUsersGroupsListRequest(server string, params *UsersGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gt", runtime.ParamLocationQuery, *params.IdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gte", runtime.ParamLocationQuery, *params.IdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lt", runtime.ParamLocationQuery, *params.IdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lte", runtime.ParamLocationQuery, *params.IdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersGroupsBulkPartialUpdateRequest calls the generic UsersGroupsBulkPartialUpdate builder with application/json body -func NewUsersGroupsBulkPartialUpdateRequest(server string, body UsersGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersGroupsBulkPartialUpdateRequestWithBody generates requests for UsersGroupsBulkPartialUpdate with any type of body -func NewUsersGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersGroupsCreateRequest calls the generic UsersGroupsCreate builder with application/json body -func NewUsersGroupsCreateRequest(server string, body UsersGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersGroupsCreateRequestWithBody generates requests for UsersGroupsCreate with any type of body -func NewUsersGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersGroupsBulkUpdateRequest calls the generic UsersGroupsBulkUpdate builder with application/json body -func NewUsersGroupsBulkUpdateRequest(server string, body UsersGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersGroupsBulkUpdateRequestWithBody generates requests for UsersGroupsBulkUpdate with any type of body -func NewUsersGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersGroupsDestroyRequest generates requests for UsersGroupsDestroy -func NewUsersGroupsDestroyRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersGroupsRetrieveRequest generates requests for UsersGroupsRetrieve -func NewUsersGroupsRetrieveRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersGroupsPartialUpdateRequest calls the generic UsersGroupsPartialUpdate builder with application/json body -func NewUsersGroupsPartialUpdateRequest(server string, id int, body UsersGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersGroupsPartialUpdateRequestWithBody generates requests for UsersGroupsPartialUpdate with any type of body -func NewUsersGroupsPartialUpdateRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersGroupsUpdateRequest calls the generic UsersGroupsUpdate builder with application/json body -func NewUsersGroupsUpdateRequest(server string, id int, body UsersGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersGroupsUpdateRequestWithBody generates requests for UsersGroupsUpdate with any type of body -func NewUsersGroupsUpdateRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersPermissionsBulkDestroyRequest calls the generic UsersPermissionsBulkDestroy builder with application/json body -func NewUsersPermissionsBulkDestroyRequest(server string, body UsersPermissionsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersPermissionsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersPermissionsBulkDestroyRequestWithBody generates requests for UsersPermissionsBulkDestroy with any type of body -func NewUsersPermissionsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersPermissionsListRequest generates requests for UsersPermissionsList -func NewUsersPermissionsListRequest(server string, params *UsersPermissionsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_types", runtime.ParamLocationQuery, *params.ObjectTypes); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ObjectTypesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "object_types__n", runtime.ParamLocationQuery, *params.ObjectTypesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user__n", runtime.ParamLocationQuery, *params.UserN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_id", runtime.ParamLocationQuery, *params.UserId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UserIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_id__n", runtime.ParamLocationQuery, *params.UserIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersPermissionsBulkPartialUpdateRequest calls the generic UsersPermissionsBulkPartialUpdate builder with application/json body -func NewUsersPermissionsBulkPartialUpdateRequest(server string, body UsersPermissionsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersPermissionsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersPermissionsBulkPartialUpdateRequestWithBody generates requests for UsersPermissionsBulkPartialUpdate with any type of body -func NewUsersPermissionsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersPermissionsCreateRequest calls the generic UsersPermissionsCreate builder with application/json body -func NewUsersPermissionsCreateRequest(server string, body UsersPermissionsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersPermissionsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersPermissionsCreateRequestWithBody generates requests for UsersPermissionsCreate with any type of body -func NewUsersPermissionsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersPermissionsBulkUpdateRequest calls the generic UsersPermissionsBulkUpdate builder with application/json body -func NewUsersPermissionsBulkUpdateRequest(server string, body UsersPermissionsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersPermissionsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersPermissionsBulkUpdateRequestWithBody generates requests for UsersPermissionsBulkUpdate with any type of body -func NewUsersPermissionsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersPermissionsDestroyRequest generates requests for UsersPermissionsDestroy -func NewUsersPermissionsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersPermissionsRetrieveRequest generates requests for UsersPermissionsRetrieve -func NewUsersPermissionsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersPermissionsPartialUpdateRequest calls the generic UsersPermissionsPartialUpdate builder with application/json body -func NewUsersPermissionsPartialUpdateRequest(server string, id openapi_types.UUID, body UsersPermissionsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersPermissionsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersPermissionsPartialUpdateRequestWithBody generates requests for UsersPermissionsPartialUpdate with any type of body -func NewUsersPermissionsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersPermissionsUpdateRequest calls the generic UsersPermissionsUpdate builder with application/json body -func NewUsersPermissionsUpdateRequest(server string, id openapi_types.UUID, body UsersPermissionsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersPermissionsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersPermissionsUpdateRequestWithBody generates requests for UsersPermissionsUpdate with any type of body -func NewUsersPermissionsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/permissions/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersTokensBulkDestroyRequest calls the generic UsersTokensBulkDestroy builder with application/json body -func NewUsersTokensBulkDestroyRequest(server string, body UsersTokensBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersTokensBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersTokensBulkDestroyRequestWithBody generates requests for UsersTokensBulkDestroy with any type of body -func NewUsersTokensBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersTokensListRequest generates requests for UsersTokensList -func NewUsersTokensListRequest(server string, params *UsersTokensListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gt", runtime.ParamLocationQuery, *params.CreatedGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lt", runtime.ParamLocationQuery, *params.CreatedLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__n", runtime.ParamLocationQuery, *params.CreatedN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Expires != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires", runtime.ParamLocationQuery, *params.Expires); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExpiresGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires__gt", runtime.ParamLocationQuery, *params.ExpiresGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExpiresGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires__gte", runtime.ParamLocationQuery, *params.ExpiresGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExpiresLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires__lt", runtime.ParamLocationQuery, *params.ExpiresLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExpiresLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires__lte", runtime.ParamLocationQuery, *params.ExpiresLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExpiresN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires__n", runtime.ParamLocationQuery, *params.ExpiresN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Key != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key", runtime.ParamLocationQuery, *params.Key); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__ic", runtime.ParamLocationQuery, *params.KeyIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__ie", runtime.ParamLocationQuery, *params.KeyIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__iew", runtime.ParamLocationQuery, *params.KeyIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__ire", runtime.ParamLocationQuery, *params.KeyIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__isw", runtime.ParamLocationQuery, *params.KeyIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__n", runtime.ParamLocationQuery, *params.KeyN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__nic", runtime.ParamLocationQuery, *params.KeyNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__nie", runtime.ParamLocationQuery, *params.KeyNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__niew", runtime.ParamLocationQuery, *params.KeyNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__nire", runtime.ParamLocationQuery, *params.KeyNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__nisw", runtime.ParamLocationQuery, *params.KeyNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__nre", runtime.ParamLocationQuery, *params.KeyNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.KeyRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key__re", runtime.ParamLocationQuery, *params.KeyRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WriteEnabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "write_enabled", runtime.ParamLocationQuery, *params.WriteEnabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersTokensBulkPartialUpdateRequest calls the generic UsersTokensBulkPartialUpdate builder with application/json body -func NewUsersTokensBulkPartialUpdateRequest(server string, body UsersTokensBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersTokensBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersTokensBulkPartialUpdateRequestWithBody generates requests for UsersTokensBulkPartialUpdate with any type of body -func NewUsersTokensBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersTokensCreateRequest calls the generic UsersTokensCreate builder with application/json body -func NewUsersTokensCreateRequest(server string, body UsersTokensCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersTokensCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersTokensCreateRequestWithBody generates requests for UsersTokensCreate with any type of body -func NewUsersTokensCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersTokensBulkUpdateRequest calls the generic UsersTokensBulkUpdate builder with application/json body -func NewUsersTokensBulkUpdateRequest(server string, body UsersTokensBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersTokensBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersTokensBulkUpdateRequestWithBody generates requests for UsersTokensBulkUpdate with any type of body -func NewUsersTokensBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersTokensDestroyRequest generates requests for UsersTokensDestroy -func NewUsersTokensDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersTokensRetrieveRequest generates requests for UsersTokensRetrieve -func NewUsersTokensRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersTokensPartialUpdateRequest calls the generic UsersTokensPartialUpdate builder with application/json body -func NewUsersTokensPartialUpdateRequest(server string, id openapi_types.UUID, body UsersTokensPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersTokensPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersTokensPartialUpdateRequestWithBody generates requests for UsersTokensPartialUpdate with any type of body -func NewUsersTokensPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersTokensUpdateRequest calls the generic UsersTokensUpdate builder with application/json body -func NewUsersTokensUpdateRequest(server string, id openapi_types.UUID, body UsersTokensUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersTokensUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersTokensUpdateRequestWithBody generates requests for UsersTokensUpdate with any type of body -func NewUsersTokensUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/tokens/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersUsersBulkDestroyRequest calls the generic UsersUsersBulkDestroy builder with application/json body -func NewUsersUsersBulkDestroyRequest(server string, body UsersUsersBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersUsersBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersUsersBulkDestroyRequestWithBody generates requests for UsersUsersBulkDestroy with any type of body -func NewUsersUsersBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersUsersListRequest generates requests for UsersUsersList -func NewUsersUsersListRequest(server string, params *UsersUsersListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Email != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ic", runtime.ParamLocationQuery, *params.EmailIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ie", runtime.ParamLocationQuery, *params.EmailIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__iew", runtime.ParamLocationQuery, *params.EmailIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__ire", runtime.ParamLocationQuery, *params.EmailIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__isw", runtime.ParamLocationQuery, *params.EmailIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__n", runtime.ParamLocationQuery, *params.EmailN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nic", runtime.ParamLocationQuery, *params.EmailNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nie", runtime.ParamLocationQuery, *params.EmailNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__niew", runtime.ParamLocationQuery, *params.EmailNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nire", runtime.ParamLocationQuery, *params.EmailNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nisw", runtime.ParamLocationQuery, *params.EmailNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__nre", runtime.ParamLocationQuery, *params.EmailNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EmailRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email__re", runtime.ParamLocationQuery, *params.EmailRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name", runtime.ParamLocationQuery, *params.FirstName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__ic", runtime.ParamLocationQuery, *params.FirstNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__ie", runtime.ParamLocationQuery, *params.FirstNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__iew", runtime.ParamLocationQuery, *params.FirstNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__ire", runtime.ParamLocationQuery, *params.FirstNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__isw", runtime.ParamLocationQuery, *params.FirstNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__n", runtime.ParamLocationQuery, *params.FirstNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__nic", runtime.ParamLocationQuery, *params.FirstNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__nie", runtime.ParamLocationQuery, *params.FirstNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__niew", runtime.ParamLocationQuery, *params.FirstNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__nire", runtime.ParamLocationQuery, *params.FirstNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__nisw", runtime.ParamLocationQuery, *params.FirstNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__nre", runtime.ParamLocationQuery, *params.FirstNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FirstNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "first_name__re", runtime.ParamLocationQuery, *params.FirstNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsActive != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_active", runtime.ParamLocationQuery, *params.IsActive); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IsStaff != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_staff", runtime.ParamLocationQuery, *params.IsStaff); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name", runtime.ParamLocationQuery, *params.LastName); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__ic", runtime.ParamLocationQuery, *params.LastNameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__ie", runtime.ParamLocationQuery, *params.LastNameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__iew", runtime.ParamLocationQuery, *params.LastNameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__ire", runtime.ParamLocationQuery, *params.LastNameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__isw", runtime.ParamLocationQuery, *params.LastNameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__n", runtime.ParamLocationQuery, *params.LastNameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__nic", runtime.ParamLocationQuery, *params.LastNameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__nie", runtime.ParamLocationQuery, *params.LastNameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__niew", runtime.ParamLocationQuery, *params.LastNameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__nire", runtime.ParamLocationQuery, *params.LastNameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__nisw", runtime.ParamLocationQuery, *params.LastNameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__nre", runtime.ParamLocationQuery, *params.LastNameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastNameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_name__re", runtime.ParamLocationQuery, *params.LastNameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Username != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username", runtime.ParamLocationQuery, *params.Username); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__ic", runtime.ParamLocationQuery, *params.UsernameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__ie", runtime.ParamLocationQuery, *params.UsernameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__iew", runtime.ParamLocationQuery, *params.UsernameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__ire", runtime.ParamLocationQuery, *params.UsernameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__isw", runtime.ParamLocationQuery, *params.UsernameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__n", runtime.ParamLocationQuery, *params.UsernameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nic", runtime.ParamLocationQuery, *params.UsernameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nie", runtime.ParamLocationQuery, *params.UsernameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__niew", runtime.ParamLocationQuery, *params.UsernameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nire", runtime.ParamLocationQuery, *params.UsernameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nisw", runtime.ParamLocationQuery, *params.UsernameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__nre", runtime.ParamLocationQuery, *params.UsernameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UsernameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username__re", runtime.ParamLocationQuery, *params.UsernameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersUsersBulkPartialUpdateRequest calls the generic UsersUsersBulkPartialUpdate builder with application/json body -func NewUsersUsersBulkPartialUpdateRequest(server string, body UsersUsersBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersUsersBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersUsersBulkPartialUpdateRequestWithBody generates requests for UsersUsersBulkPartialUpdate with any type of body -func NewUsersUsersBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersUsersCreateRequest calls the generic UsersUsersCreate builder with application/json body -func NewUsersUsersCreateRequest(server string, body UsersUsersCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersUsersCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersUsersCreateRequestWithBody generates requests for UsersUsersCreate with any type of body -func NewUsersUsersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersUsersBulkUpdateRequest calls the generic UsersUsersBulkUpdate builder with application/json body -func NewUsersUsersBulkUpdateRequest(server string, body UsersUsersBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersUsersBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsersUsersBulkUpdateRequestWithBody generates requests for UsersUsersBulkUpdate with any type of body -func NewUsersUsersBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersUsersDestroyRequest generates requests for UsersUsersDestroy -func NewUsersUsersDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersUsersRetrieveRequest generates requests for UsersUsersRetrieve -func NewUsersUsersRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsersUsersPartialUpdateRequest calls the generic UsersUsersPartialUpdate builder with application/json body -func NewUsersUsersPartialUpdateRequest(server string, id openapi_types.UUID, body UsersUsersPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersUsersPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersUsersPartialUpdateRequestWithBody generates requests for UsersUsersPartialUpdate with any type of body -func NewUsersUsersPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsersUsersUpdateRequest calls the generic UsersUsersUpdate builder with application/json body -func NewUsersUsersUpdateRequest(server string, id openapi_types.UUID, body UsersUsersUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsersUsersUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUsersUsersUpdateRequestWithBody generates requests for UsersUsersUpdate with any type of body -func NewUsersUsersUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/users/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterGroupsBulkDestroyRequest calls the generic VirtualizationClusterGroupsBulkDestroy builder with application/json body -func NewVirtualizationClusterGroupsBulkDestroyRequest(server string, body VirtualizationClusterGroupsBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterGroupsBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterGroupsBulkDestroyRequestWithBody generates requests for VirtualizationClusterGroupsBulkDestroy with any type of body -func NewVirtualizationClusterGroupsBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterGroupsListRequest generates requests for VirtualizationClusterGroupsList -func NewVirtualizationClusterGroupsListRequest(server string, params *VirtualizationClusterGroupsListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Clusters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusters", runtime.ParamLocationQuery, *params.Clusters); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClustersN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusters__n", runtime.ParamLocationQuery, *params.ClustersN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasClusters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_clusters", runtime.ParamLocationQuery, *params.HasClusters); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterGroupsBulkPartialUpdateRequest calls the generic VirtualizationClusterGroupsBulkPartialUpdate builder with application/json body -func NewVirtualizationClusterGroupsBulkPartialUpdateRequest(server string, body VirtualizationClusterGroupsBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterGroupsBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterGroupsBulkPartialUpdateRequestWithBody generates requests for VirtualizationClusterGroupsBulkPartialUpdate with any type of body -func NewVirtualizationClusterGroupsBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterGroupsCreateRequest calls the generic VirtualizationClusterGroupsCreate builder with application/json body -func NewVirtualizationClusterGroupsCreateRequest(server string, body VirtualizationClusterGroupsCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterGroupsCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterGroupsCreateRequestWithBody generates requests for VirtualizationClusterGroupsCreate with any type of body -func NewVirtualizationClusterGroupsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterGroupsBulkUpdateRequest calls the generic VirtualizationClusterGroupsBulkUpdate builder with application/json body -func NewVirtualizationClusterGroupsBulkUpdateRequest(server string, body VirtualizationClusterGroupsBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterGroupsBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterGroupsBulkUpdateRequestWithBody generates requests for VirtualizationClusterGroupsBulkUpdate with any type of body -func NewVirtualizationClusterGroupsBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterGroupsDestroyRequest generates requests for VirtualizationClusterGroupsDestroy -func NewVirtualizationClusterGroupsDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterGroupsRetrieveRequest generates requests for VirtualizationClusterGroupsRetrieve -func NewVirtualizationClusterGroupsRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterGroupsPartialUpdateRequest calls the generic VirtualizationClusterGroupsPartialUpdate builder with application/json body -func NewVirtualizationClusterGroupsPartialUpdateRequest(server string, id openapi_types.UUID, body VirtualizationClusterGroupsPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterGroupsPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClusterGroupsPartialUpdateRequestWithBody generates requests for VirtualizationClusterGroupsPartialUpdate with any type of body -func NewVirtualizationClusterGroupsPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterGroupsUpdateRequest calls the generic VirtualizationClusterGroupsUpdate builder with application/json body -func NewVirtualizationClusterGroupsUpdateRequest(server string, id openapi_types.UUID, body VirtualizationClusterGroupsUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterGroupsUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClusterGroupsUpdateRequestWithBody generates requests for VirtualizationClusterGroupsUpdate with any type of body -func NewVirtualizationClusterGroupsUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterGroupsNotesListRequest generates requests for VirtualizationClusterGroupsNotesList -func NewVirtualizationClusterGroupsNotesListRequest(server string, id openapi_types.UUID, params *VirtualizationClusterGroupsNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterGroupsNotesCreateRequest calls the generic VirtualizationClusterGroupsNotesCreate builder with application/json body -func NewVirtualizationClusterGroupsNotesCreateRequest(server string, id openapi_types.UUID, body VirtualizationClusterGroupsNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterGroupsNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClusterGroupsNotesCreateRequestWithBody generates requests for VirtualizationClusterGroupsNotesCreate with any type of body -func NewVirtualizationClusterGroupsNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-groups/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterTypesBulkDestroyRequest calls the generic VirtualizationClusterTypesBulkDestroy builder with application/json body -func NewVirtualizationClusterTypesBulkDestroyRequest(server string, body VirtualizationClusterTypesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterTypesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterTypesBulkDestroyRequestWithBody generates requests for VirtualizationClusterTypesBulkDestroy with any type of body -func NewVirtualizationClusterTypesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterTypesListRequest generates requests for VirtualizationClusterTypesList -func NewVirtualizationClusterTypesListRequest(server string, params *VirtualizationClusterTypesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Clusters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusters", runtime.ParamLocationQuery, *params.Clusters); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClustersN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusters__n", runtime.ParamLocationQuery, *params.ClustersN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasClusters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_clusters", runtime.ParamLocationQuery, *params.HasClusters); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ic", runtime.ParamLocationQuery, *params.SlugIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ie", runtime.ParamLocationQuery, *params.SlugIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__iew", runtime.ParamLocationQuery, *params.SlugIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__ire", runtime.ParamLocationQuery, *params.SlugIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__isw", runtime.ParamLocationQuery, *params.SlugIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__n", runtime.ParamLocationQuery, *params.SlugN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nic", runtime.ParamLocationQuery, *params.SlugNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nie", runtime.ParamLocationQuery, *params.SlugNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__niew", runtime.ParamLocationQuery, *params.SlugNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nire", runtime.ParamLocationQuery, *params.SlugNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nisw", runtime.ParamLocationQuery, *params.SlugNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__nre", runtime.ParamLocationQuery, *params.SlugNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SlugRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug__re", runtime.ParamLocationQuery, *params.SlugRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterTypesBulkPartialUpdateRequest calls the generic VirtualizationClusterTypesBulkPartialUpdate builder with application/json body -func NewVirtualizationClusterTypesBulkPartialUpdateRequest(server string, body VirtualizationClusterTypesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterTypesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterTypesBulkPartialUpdateRequestWithBody generates requests for VirtualizationClusterTypesBulkPartialUpdate with any type of body -func NewVirtualizationClusterTypesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterTypesCreateRequest calls the generic VirtualizationClusterTypesCreate builder with application/json body -func NewVirtualizationClusterTypesCreateRequest(server string, body VirtualizationClusterTypesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterTypesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterTypesCreateRequestWithBody generates requests for VirtualizationClusterTypesCreate with any type of body -func NewVirtualizationClusterTypesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterTypesBulkUpdateRequest calls the generic VirtualizationClusterTypesBulkUpdate builder with application/json body -func NewVirtualizationClusterTypesBulkUpdateRequest(server string, body VirtualizationClusterTypesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterTypesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClusterTypesBulkUpdateRequestWithBody generates requests for VirtualizationClusterTypesBulkUpdate with any type of body -func NewVirtualizationClusterTypesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterTypesDestroyRequest generates requests for VirtualizationClusterTypesDestroy -func NewVirtualizationClusterTypesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterTypesRetrieveRequest generates requests for VirtualizationClusterTypesRetrieve -func NewVirtualizationClusterTypesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterTypesPartialUpdateRequest calls the generic VirtualizationClusterTypesPartialUpdate builder with application/json body -func NewVirtualizationClusterTypesPartialUpdateRequest(server string, id openapi_types.UUID, body VirtualizationClusterTypesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterTypesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClusterTypesPartialUpdateRequestWithBody generates requests for VirtualizationClusterTypesPartialUpdate with any type of body -func NewVirtualizationClusterTypesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterTypesUpdateRequest calls the generic VirtualizationClusterTypesUpdate builder with application/json body -func NewVirtualizationClusterTypesUpdateRequest(server string, id openapi_types.UUID, body VirtualizationClusterTypesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterTypesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClusterTypesUpdateRequestWithBody generates requests for VirtualizationClusterTypesUpdate with any type of body -func NewVirtualizationClusterTypesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClusterTypesNotesListRequest generates requests for VirtualizationClusterTypesNotesList -func NewVirtualizationClusterTypesNotesListRequest(server string, id openapi_types.UUID, params *VirtualizationClusterTypesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClusterTypesNotesCreateRequest calls the generic VirtualizationClusterTypesNotesCreate builder with application/json body -func NewVirtualizationClusterTypesNotesCreateRequest(server string, id openapi_types.UUID, body VirtualizationClusterTypesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClusterTypesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClusterTypesNotesCreateRequestWithBody generates requests for VirtualizationClusterTypesNotesCreate with any type of body -func NewVirtualizationClusterTypesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/cluster-types/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClustersBulkDestroyRequest calls the generic VirtualizationClustersBulkDestroy builder with application/json body -func NewVirtualizationClustersBulkDestroyRequest(server string, body VirtualizationClustersBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClustersBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClustersBulkDestroyRequestWithBody generates requests for VirtualizationClustersBulkDestroy with any type of body -func NewVirtualizationClustersBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClustersListRequest generates requests for VirtualizationClustersList -func NewVirtualizationClustersListRequest(server string, params *VirtualizationClustersListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices", runtime.ParamLocationQuery, *params.Devices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DevicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devices__n", runtime.ParamLocationQuery, *params.DevicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group__n", runtime.ParamLocationQuery, *params.GroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id", runtime.ParamLocationQuery, *params.GroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.GroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_id__n", runtime.ParamLocationQuery, *params.GroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasDevices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_devices", runtime.ParamLocationQuery, *params.HasDevices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasVirtualMachines != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_virtual_machines", runtime.ParamLocationQuery, *params.HasVirtualMachines); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type__n", runtime.ParamLocationQuery, *params.TypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_id", runtime.ParamLocationQuery, *params.TypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type_id__n", runtime.ParamLocationQuery, *params.TypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachines != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machines", runtime.ParamLocationQuery, *params.VirtualMachines); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachinesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machines__n", runtime.ParamLocationQuery, *params.VirtualMachinesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClustersBulkPartialUpdateRequest calls the generic VirtualizationClustersBulkPartialUpdate builder with application/json body -func NewVirtualizationClustersBulkPartialUpdateRequest(server string, body VirtualizationClustersBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClustersBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClustersBulkPartialUpdateRequestWithBody generates requests for VirtualizationClustersBulkPartialUpdate with any type of body -func NewVirtualizationClustersBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClustersCreateRequest calls the generic VirtualizationClustersCreate builder with application/json body -func NewVirtualizationClustersCreateRequest(server string, body VirtualizationClustersCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClustersCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClustersCreateRequestWithBody generates requests for VirtualizationClustersCreate with any type of body -func NewVirtualizationClustersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClustersBulkUpdateRequest calls the generic VirtualizationClustersBulkUpdate builder with application/json body -func NewVirtualizationClustersBulkUpdateRequest(server string, body VirtualizationClustersBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClustersBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationClustersBulkUpdateRequestWithBody generates requests for VirtualizationClustersBulkUpdate with any type of body -func NewVirtualizationClustersBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClustersDestroyRequest generates requests for VirtualizationClustersDestroy -func NewVirtualizationClustersDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClustersRetrieveRequest generates requests for VirtualizationClustersRetrieve -func NewVirtualizationClustersRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClustersPartialUpdateRequest calls the generic VirtualizationClustersPartialUpdate builder with application/json body -func NewVirtualizationClustersPartialUpdateRequest(server string, id openapi_types.UUID, body VirtualizationClustersPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClustersPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClustersPartialUpdateRequestWithBody generates requests for VirtualizationClustersPartialUpdate with any type of body -func NewVirtualizationClustersPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClustersUpdateRequest calls the generic VirtualizationClustersUpdate builder with application/json body -func NewVirtualizationClustersUpdateRequest(server string, id openapi_types.UUID, body VirtualizationClustersUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClustersUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClustersUpdateRequestWithBody generates requests for VirtualizationClustersUpdate with any type of body -func NewVirtualizationClustersUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationClustersNotesListRequest generates requests for VirtualizationClustersNotesList -func NewVirtualizationClustersNotesListRequest(server string, id openapi_types.UUID, params *VirtualizationClustersNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationClustersNotesCreateRequest calls the generic VirtualizationClustersNotesCreate builder with application/json body -func NewVirtualizationClustersNotesCreateRequest(server string, id openapi_types.UUID, body VirtualizationClustersNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationClustersNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationClustersNotesCreateRequestWithBody generates requests for VirtualizationClustersNotesCreate with any type of body -func NewVirtualizationClustersNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/clusters/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationInterfacesBulkDestroyRequest calls the generic VirtualizationInterfacesBulkDestroy builder with application/json body -func NewVirtualizationInterfacesBulkDestroyRequest(server string, body VirtualizationInterfacesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationInterfacesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationInterfacesBulkDestroyRequestWithBody generates requests for VirtualizationInterfacesBulkDestroy with any type of body -func NewVirtualizationInterfacesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationInterfacesListRequest generates requests for VirtualizationInterfacesList -func NewVirtualizationInterfacesListRequest(server string, params *VirtualizationInterfacesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Bridge != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridge", runtime.ParamLocationQuery, *params.Bridge); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BridgeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridge__n", runtime.ParamLocationQuery, *params.BridgeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BridgedInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridged_interfaces", runtime.ParamLocationQuery, *params.BridgedInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.BridgedInterfacesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bridged_interfaces__n", runtime.ParamLocationQuery, *params.BridgedInterfacesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "child_interfaces", runtime.ParamLocationQuery, *params.ChildInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ChildInterfacesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "child_interfaces__n", runtime.ParamLocationQuery, *params.ChildInterfacesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Cluster != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster", runtime.ParamLocationQuery, *params.Cluster); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster__n", runtime.ParamLocationQuery, *params.ClusterN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id", runtime.ParamLocationQuery, *params.ClusterId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id__n", runtime.ParamLocationQuery, *params.ClusterIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ic", runtime.ParamLocationQuery, *params.DescriptionIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ie", runtime.ParamLocationQuery, *params.DescriptionIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__iew", runtime.ParamLocationQuery, *params.DescriptionIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__ire", runtime.ParamLocationQuery, *params.DescriptionIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__isw", runtime.ParamLocationQuery, *params.DescriptionIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__n", runtime.ParamLocationQuery, *params.DescriptionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nic", runtime.ParamLocationQuery, *params.DescriptionNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nie", runtime.ParamLocationQuery, *params.DescriptionNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__niew", runtime.ParamLocationQuery, *params.DescriptionNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nire", runtime.ParamLocationQuery, *params.DescriptionNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nisw", runtime.ParamLocationQuery, *params.DescriptionNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__nre", runtime.ParamLocationQuery, *params.DescriptionNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DescriptionRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description__re", runtime.ParamLocationQuery, *params.DescriptionRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasBridgedInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_bridged_interfaces", runtime.ParamLocationQuery, *params.HasBridgedInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasChildInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_child_interfaces", runtime.ParamLocationQuery, *params.HasChildInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasIpAddresses != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_ip_addresses", runtime.ParamLocationQuery, *params.HasIpAddresses); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasTaggedVlans != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_tagged_vlans", runtime.ParamLocationQuery, *params.HasTaggedVlans); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IpAddresses != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ip_addresses", runtime.ParamLocationQuery, *params.IpAddresses); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address", runtime.ParamLocationQuery, *params.MacAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ic", runtime.ParamLocationQuery, *params.MacAddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ie", runtime.ParamLocationQuery, *params.MacAddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__iew", runtime.ParamLocationQuery, *params.MacAddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ire", runtime.ParamLocationQuery, *params.MacAddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__isw", runtime.ParamLocationQuery, *params.MacAddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__n", runtime.ParamLocationQuery, *params.MacAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nic", runtime.ParamLocationQuery, *params.MacAddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nie", runtime.ParamLocationQuery, *params.MacAddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__niew", runtime.ParamLocationQuery, *params.MacAddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nire", runtime.ParamLocationQuery, *params.MacAddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nisw", runtime.ParamLocationQuery, *params.MacAddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nre", runtime.ParamLocationQuery, *params.MacAddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__re", runtime.ParamLocationQuery, *params.MacAddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Mode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mode", runtime.ParamLocationQuery, *params.Mode); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ModeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mode__n", runtime.ParamLocationQuery, *params.ModeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Mtu != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu", runtime.ParamLocationQuery, *params.Mtu); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__gt", runtime.ParamLocationQuery, *params.MtuGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__gte", runtime.ParamLocationQuery, *params.MtuGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__lt", runtime.ParamLocationQuery, *params.MtuLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__lte", runtime.ParamLocationQuery, *params.MtuLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MtuN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mtu__n", runtime.ParamLocationQuery, *params.MtuN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentInterface != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_interface", runtime.ParamLocationQuery, *params.ParentInterface); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ParentInterfaceN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_interface__n", runtime.ParamLocationQuery, *params.ParentInterfaceN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TaggedVlans != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tagged_vlans", runtime.ParamLocationQuery, *params.TaggedVlans); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TaggedVlansN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tagged_vlans__n", runtime.ParamLocationQuery, *params.TaggedVlansN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UntaggedVlan != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "untagged_vlan", runtime.ParamLocationQuery, *params.UntaggedVlan); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UntaggedVlanN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "untagged_vlan__n", runtime.ParamLocationQuery, *params.UntaggedVlanN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachine != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine", runtime.ParamLocationQuery, *params.VirtualMachine); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachineN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine__n", runtime.ParamLocationQuery, *params.VirtualMachineN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachineId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine_id", runtime.ParamLocationQuery, *params.VirtualMachineId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VirtualMachineIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "virtual_machine_id__n", runtime.ParamLocationQuery, *params.VirtualMachineIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationInterfacesBulkPartialUpdateRequest calls the generic VirtualizationInterfacesBulkPartialUpdate builder with application/json body -func NewVirtualizationInterfacesBulkPartialUpdateRequest(server string, body VirtualizationInterfacesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationInterfacesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationInterfacesBulkPartialUpdateRequestWithBody generates requests for VirtualizationInterfacesBulkPartialUpdate with any type of body -func NewVirtualizationInterfacesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationInterfacesCreateRequest calls the generic VirtualizationInterfacesCreate builder with application/json body -func NewVirtualizationInterfacesCreateRequest(server string, body VirtualizationInterfacesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationInterfacesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationInterfacesCreateRequestWithBody generates requests for VirtualizationInterfacesCreate with any type of body -func NewVirtualizationInterfacesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationInterfacesBulkUpdateRequest calls the generic VirtualizationInterfacesBulkUpdate builder with application/json body -func NewVirtualizationInterfacesBulkUpdateRequest(server string, body VirtualizationInterfacesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationInterfacesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationInterfacesBulkUpdateRequestWithBody generates requests for VirtualizationInterfacesBulkUpdate with any type of body -func NewVirtualizationInterfacesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationInterfacesDestroyRequest generates requests for VirtualizationInterfacesDestroy -func NewVirtualizationInterfacesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationInterfacesRetrieveRequest generates requests for VirtualizationInterfacesRetrieve -func NewVirtualizationInterfacesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationInterfacesPartialUpdateRequest calls the generic VirtualizationInterfacesPartialUpdate builder with application/json body -func NewVirtualizationInterfacesPartialUpdateRequest(server string, id openapi_types.UUID, body VirtualizationInterfacesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationInterfacesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationInterfacesPartialUpdateRequestWithBody generates requests for VirtualizationInterfacesPartialUpdate with any type of body -func NewVirtualizationInterfacesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationInterfacesUpdateRequest calls the generic VirtualizationInterfacesUpdate builder with application/json body -func NewVirtualizationInterfacesUpdateRequest(server string, id openapi_types.UUID, body VirtualizationInterfacesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationInterfacesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationInterfacesUpdateRequestWithBody generates requests for VirtualizationInterfacesUpdate with any type of body -func NewVirtualizationInterfacesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationInterfacesNotesListRequest generates requests for VirtualizationInterfacesNotesList -func NewVirtualizationInterfacesNotesListRequest(server string, id openapi_types.UUID, params *VirtualizationInterfacesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationInterfacesNotesCreateRequest calls the generic VirtualizationInterfacesNotesCreate builder with application/json body -func NewVirtualizationInterfacesNotesCreateRequest(server string, id openapi_types.UUID, body VirtualizationInterfacesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationInterfacesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationInterfacesNotesCreateRequestWithBody generates requests for VirtualizationInterfacesNotesCreate with any type of body -func NewVirtualizationInterfacesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/interfaces/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationVirtualMachinesBulkDestroyRequest calls the generic VirtualizationVirtualMachinesBulkDestroy builder with application/json body -func NewVirtualizationVirtualMachinesBulkDestroyRequest(server string, body VirtualizationVirtualMachinesBulkDestroyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationVirtualMachinesBulkDestroyRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationVirtualMachinesBulkDestroyRequestWithBody generates requests for VirtualizationVirtualMachinesBulkDestroy with any type of body -func NewVirtualizationVirtualMachinesBulkDestroyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationVirtualMachinesListRequest generates requests for VirtualizationVirtualMachinesList -func NewVirtualizationVirtualMachinesListRequest(server string, params *VirtualizationVirtualMachinesListParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Cluster != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster", runtime.ParamLocationQuery, *params.Cluster); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster__n", runtime.ParamLocationQuery, *params.ClusterN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group", runtime.ParamLocationQuery, *params.ClusterGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group__n", runtime.ParamLocationQuery, *params.ClusterGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group_id", runtime.ParamLocationQuery, *params.ClusterGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_group_id__n", runtime.ParamLocationQuery, *params.ClusterGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id", runtime.ParamLocationQuery, *params.ClusterId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id__n", runtime.ParamLocationQuery, *params.ClusterIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_type", runtime.ParamLocationQuery, *params.ClusterType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterTypeN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_type__n", runtime.ParamLocationQuery, *params.ClusterTypeN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterTypeId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_type_id", runtime.ParamLocationQuery, *params.ClusterTypeId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClusterTypeIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_type_id__n", runtime.ParamLocationQuery, *params.ClusterTypeIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comments != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments", runtime.ParamLocationQuery, *params.Comments); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ic", runtime.ParamLocationQuery, *params.CommentsIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ie", runtime.ParamLocationQuery, *params.CommentsIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__iew", runtime.ParamLocationQuery, *params.CommentsIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__ire", runtime.ParamLocationQuery, *params.CommentsIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__isw", runtime.ParamLocationQuery, *params.CommentsIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__n", runtime.ParamLocationQuery, *params.CommentsN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nic", runtime.ParamLocationQuery, *params.CommentsNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nie", runtime.ParamLocationQuery, *params.CommentsNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__niew", runtime.ParamLocationQuery, *params.CommentsNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nire", runtime.ParamLocationQuery, *params.CommentsNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nisw", runtime.ParamLocationQuery, *params.CommentsNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__nre", runtime.ParamLocationQuery, *params.CommentsNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CommentsRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comments__re", runtime.ParamLocationQuery, *params.CommentsRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Created != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created", runtime.ParamLocationQuery, *params.Created); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__gte", runtime.ParamLocationQuery, *params.CreatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created__lte", runtime.ParamLocationQuery, *params.CreatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Disk != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disk", runtime.ParamLocationQuery, *params.Disk); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DiskGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disk__gt", runtime.ParamLocationQuery, *params.DiskGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DiskGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disk__gte", runtime.ParamLocationQuery, *params.DiskGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DiskLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disk__lt", runtime.ParamLocationQuery, *params.DiskLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DiskLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disk__lte", runtime.ParamLocationQuery, *params.DiskLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DiskN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disk__n", runtime.ParamLocationQuery, *params.DiskN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasInterfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_interfaces", runtime.ParamLocationQuery, *params.HasInterfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasPrimaryIp != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_primary_ip", runtime.ParamLocationQuery, *params.HasPrimaryIp); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.HasServices != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "has_services", runtime.ParamLocationQuery, *params.HasServices); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ic", runtime.ParamLocationQuery, *params.IdIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ie", runtime.ParamLocationQuery, *params.IdIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__iew", runtime.ParamLocationQuery, *params.IdIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ire", runtime.ParamLocationQuery, *params.IdIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isw", runtime.ParamLocationQuery, *params.IdIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__n", runtime.ParamLocationQuery, *params.IdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nic", runtime.ParamLocationQuery, *params.IdNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nie", runtime.ParamLocationQuery, *params.IdNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__niew", runtime.ParamLocationQuery, *params.IdNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nire", runtime.ParamLocationQuery, *params.IdNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisw", runtime.ParamLocationQuery, *params.IdNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nre", runtime.ParamLocationQuery, *params.IdNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__re", runtime.ParamLocationQuery, *params.IdRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Interfaces != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interfaces", runtime.ParamLocationQuery, *params.Interfaces); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.InterfacesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interfaces__n", runtime.ParamLocationQuery, *params.InterfacesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated", runtime.ParamLocationQuery, *params.LastUpdated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__gte", runtime.ParamLocationQuery, *params.LastUpdatedGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastUpdatedLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_updated__lte", runtime.ParamLocationQuery, *params.LastUpdatedLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextData != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_data", runtime.ParamLocationQuery, *params.LocalContextData); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchema != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema", runtime.ParamLocationQuery, *params.LocalContextSchema); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchemaN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema__n", runtime.ParamLocationQuery, *params.LocalContextSchemaN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchemaId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema_id", runtime.ParamLocationQuery, *params.LocalContextSchemaId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocalContextSchemaIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "local_context_schema_id__n", runtime.ParamLocationQuery, *params.LocalContextSchemaIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Location != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location", runtime.ParamLocationQuery, *params.Location); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LocationN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "location__n", runtime.ParamLocationQuery, *params.LocationN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddress != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address", runtime.ParamLocationQuery, *params.MacAddress); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ic", runtime.ParamLocationQuery, *params.MacAddressIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ie", runtime.ParamLocationQuery, *params.MacAddressIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__iew", runtime.ParamLocationQuery, *params.MacAddressIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__ire", runtime.ParamLocationQuery, *params.MacAddressIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__isw", runtime.ParamLocationQuery, *params.MacAddressIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__n", runtime.ParamLocationQuery, *params.MacAddressN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nic", runtime.ParamLocationQuery, *params.MacAddressNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nie", runtime.ParamLocationQuery, *params.MacAddressNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__niew", runtime.ParamLocationQuery, *params.MacAddressNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nire", runtime.ParamLocationQuery, *params.MacAddressNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nisw", runtime.ParamLocationQuery, *params.MacAddressNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__nre", runtime.ParamLocationQuery, *params.MacAddressNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MacAddressRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mac_address__re", runtime.ParamLocationQuery, *params.MacAddressRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Memory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memory", runtime.ParamLocationQuery, *params.Memory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MemoryGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memory__gt", runtime.ParamLocationQuery, *params.MemoryGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MemoryGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memory__gte", runtime.ParamLocationQuery, *params.MemoryGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MemoryLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memory__lt", runtime.ParamLocationQuery, *params.MemoryLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MemoryLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memory__lte", runtime.ParamLocationQuery, *params.MemoryLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.MemoryN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memory__n", runtime.ParamLocationQuery, *params.MemoryN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ic", runtime.ParamLocationQuery, *params.NameIc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ie", runtime.ParamLocationQuery, *params.NameIe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__iew", runtime.ParamLocationQuery, *params.NameIew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ire", runtime.ParamLocationQuery, *params.NameIre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isw", runtime.ParamLocationQuery, *params.NameIsw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__n", runtime.ParamLocationQuery, *params.NameN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNic != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nic", runtime.ParamLocationQuery, *params.NameNic); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNie != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nie", runtime.ParamLocationQuery, *params.NameNie); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNiew != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__niew", runtime.ParamLocationQuery, *params.NameNiew); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNire != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nire", runtime.ParamLocationQuery, *params.NameNire); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisw != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisw", runtime.ParamLocationQuery, *params.NameNisw); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNre != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nre", runtime.ParamLocationQuery, *params.NameNre); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameRe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__re", runtime.ParamLocationQuery, *params.NameRe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Platform != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform", runtime.ParamLocationQuery, *params.Platform); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform__n", runtime.ParamLocationQuery, *params.PlatformN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id", runtime.ParamLocationQuery, *params.PlatformId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PlatformIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_id__n", runtime.ParamLocationQuery, *params.PlatformIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PrimaryIp4 != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "primary_ip4", runtime.ParamLocationQuery, *params.PrimaryIp4); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PrimaryIp6 != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "primary_ip6", runtime.ParamLocationQuery, *params.PrimaryIp6); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Q != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "q", runtime.ParamLocationQuery, *params.Q); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Region != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region__n", runtime.ParamLocationQuery, *params.RegionN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id", runtime.ParamLocationQuery, *params.RegionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RegionIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region_id__n", runtime.ParamLocationQuery, *params.RegionIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Role != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role__n", runtime.ParamLocationQuery, *params.RoleN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.RoleIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id__n", runtime.ParamLocationQuery, *params.RoleIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Services != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "services", runtime.ParamLocationQuery, *params.Services); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ServicesN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "services__n", runtime.ParamLocationQuery, *params.ServicesN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Site != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site", runtime.ParamLocationQuery, *params.Site); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site__n", runtime.ParamLocationQuery, *params.SiteN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id", runtime.ParamLocationQuery, *params.SiteId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SiteIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "site_id__n", runtime.ParamLocationQuery, *params.SiteIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__n", runtime.ParamLocationQuery, *params.StatusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tag != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TagN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag__n", runtime.ParamLocationQuery, *params.TagN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tenant != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant", runtime.ParamLocationQuery, *params.Tenant); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant__n", runtime.ParamLocationQuery, *params.TenantN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group", runtime.ParamLocationQuery, *params.TenantGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group__n", runtime.ParamLocationQuery, *params.TenantGroupN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id", runtime.ParamLocationQuery, *params.TenantGroupId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantGroupIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_group_id__n", runtime.ParamLocationQuery, *params.TenantGroupIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id", runtime.ParamLocationQuery, *params.TenantId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TenantIdN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tenant_id__n", runtime.ParamLocationQuery, *params.TenantIdN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Vcpus != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcpus", runtime.ParamLocationQuery, *params.Vcpus); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcpusGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcpus__gt", runtime.ParamLocationQuery, *params.VcpusGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcpusGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcpus__gte", runtime.ParamLocationQuery, *params.VcpusGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcpusLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcpus__lt", runtime.ParamLocationQuery, *params.VcpusLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcpusLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcpus__lte", runtime.ParamLocationQuery, *params.VcpusLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.VcpusN != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcpus__n", runtime.ParamLocationQuery, *params.VcpusN); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationVirtualMachinesBulkPartialUpdateRequest calls the generic VirtualizationVirtualMachinesBulkPartialUpdate builder with application/json body -func NewVirtualizationVirtualMachinesBulkPartialUpdateRequest(server string, body VirtualizationVirtualMachinesBulkPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationVirtualMachinesBulkPartialUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationVirtualMachinesBulkPartialUpdateRequestWithBody generates requests for VirtualizationVirtualMachinesBulkPartialUpdate with any type of body -func NewVirtualizationVirtualMachinesBulkPartialUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationVirtualMachinesCreateRequest calls the generic VirtualizationVirtualMachinesCreate builder with application/json body -func NewVirtualizationVirtualMachinesCreateRequest(server string, body VirtualizationVirtualMachinesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationVirtualMachinesCreateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationVirtualMachinesCreateRequestWithBody generates requests for VirtualizationVirtualMachinesCreate with any type of body -func NewVirtualizationVirtualMachinesCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationVirtualMachinesBulkUpdateRequest calls the generic VirtualizationVirtualMachinesBulkUpdate builder with application/json body -func NewVirtualizationVirtualMachinesBulkUpdateRequest(server string, body VirtualizationVirtualMachinesBulkUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationVirtualMachinesBulkUpdateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualizationVirtualMachinesBulkUpdateRequestWithBody generates requests for VirtualizationVirtualMachinesBulkUpdate with any type of body -func NewVirtualizationVirtualMachinesBulkUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationVirtualMachinesDestroyRequest generates requests for VirtualizationVirtualMachinesDestroy -func NewVirtualizationVirtualMachinesDestroyRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationVirtualMachinesRetrieveRequest generates requests for VirtualizationVirtualMachinesRetrieve -func NewVirtualizationVirtualMachinesRetrieveRequest(server string, id openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationVirtualMachinesPartialUpdateRequest calls the generic VirtualizationVirtualMachinesPartialUpdate builder with application/json body -func NewVirtualizationVirtualMachinesPartialUpdateRequest(server string, id openapi_types.UUID, body VirtualizationVirtualMachinesPartialUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationVirtualMachinesPartialUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationVirtualMachinesPartialUpdateRequestWithBody generates requests for VirtualizationVirtualMachinesPartialUpdate with any type of body -func NewVirtualizationVirtualMachinesPartialUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationVirtualMachinesUpdateRequest calls the generic VirtualizationVirtualMachinesUpdate builder with application/json body -func NewVirtualizationVirtualMachinesUpdateRequest(server string, id openapi_types.UUID, body VirtualizationVirtualMachinesUpdateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationVirtualMachinesUpdateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationVirtualMachinesUpdateRequestWithBody generates requests for VirtualizationVirtualMachinesUpdate with any type of body -func NewVirtualizationVirtualMachinesUpdateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/%s/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualizationVirtualMachinesNotesListRequest generates requests for VirtualizationVirtualMachinesNotesList -func NewVirtualizationVirtualMachinesNotesListRequest(server string, id openapi_types.UUID, params *VirtualizationVirtualMachinesNotesListParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualizationVirtualMachinesNotesCreateRequest calls the generic VirtualizationVirtualMachinesNotesCreate builder with application/json body -func NewVirtualizationVirtualMachinesNotesCreateRequest(server string, id openapi_types.UUID, body VirtualizationVirtualMachinesNotesCreateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualizationVirtualMachinesNotesCreateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualizationVirtualMachinesNotesCreateRequestWithBody generates requests for VirtualizationVirtualMachinesNotesCreate with any type of body -func NewVirtualizationVirtualMachinesNotesCreateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/virtualization/virtual-machines/%s/notes/", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } - } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } - } - return nil -} - -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} - -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) - if err != nil { - return nil, err - } - return &ClientWithResponses{client}, nil -} - -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil - } -} - -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // CircuitsCircuitTerminationsBulkDestroy request with any body - CircuitsCircuitTerminationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkDestroyResponse, error) - - CircuitsCircuitTerminationsBulkDestroyWithResponse(ctx context.Context, body CircuitsCircuitTerminationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkDestroyResponse, error) - - // CircuitsCircuitTerminationsList request - CircuitsCircuitTerminationsListWithResponse(ctx context.Context, params *CircuitsCircuitTerminationsListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsListResponse, error) - - // CircuitsCircuitTerminationsBulkPartialUpdate request with any body - CircuitsCircuitTerminationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkPartialUpdateResponse, error) - - CircuitsCircuitTerminationsBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsCircuitTerminationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkPartialUpdateResponse, error) - - // CircuitsCircuitTerminationsCreate request with any body - CircuitsCircuitTerminationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsCreateResponse, error) - - CircuitsCircuitTerminationsCreateWithResponse(ctx context.Context, body CircuitsCircuitTerminationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsCreateResponse, error) - - // CircuitsCircuitTerminationsBulkUpdate request with any body - CircuitsCircuitTerminationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkUpdateResponse, error) - - CircuitsCircuitTerminationsBulkUpdateWithResponse(ctx context.Context, body CircuitsCircuitTerminationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkUpdateResponse, error) - - // CircuitsCircuitTerminationsDestroy request - CircuitsCircuitTerminationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsDestroyResponse, error) - - // CircuitsCircuitTerminationsRetrieve request - CircuitsCircuitTerminationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsRetrieveResponse, error) - - // CircuitsCircuitTerminationsPartialUpdate request with any body - CircuitsCircuitTerminationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsPartialUpdateResponse, error) - - CircuitsCircuitTerminationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsPartialUpdateResponse, error) - - // CircuitsCircuitTerminationsUpdate request with any body - CircuitsCircuitTerminationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsUpdateResponse, error) - - CircuitsCircuitTerminationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsUpdateResponse, error) - - // CircuitsCircuitTerminationsNotesList request - CircuitsCircuitTerminationsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTerminationsNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsNotesListResponse, error) - - // CircuitsCircuitTerminationsNotesCreate request with any body - CircuitsCircuitTerminationsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsNotesCreateResponse, error) - - CircuitsCircuitTerminationsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsNotesCreateResponse, error) - - // CircuitsCircuitTerminationsTraceRetrieve request - CircuitsCircuitTerminationsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsTraceRetrieveResponse, error) - - // CircuitsCircuitTypesBulkDestroy request with any body - CircuitsCircuitTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkDestroyResponse, error) - - CircuitsCircuitTypesBulkDestroyWithResponse(ctx context.Context, body CircuitsCircuitTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkDestroyResponse, error) - - // CircuitsCircuitTypesList request - CircuitsCircuitTypesListWithResponse(ctx context.Context, params *CircuitsCircuitTypesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesListResponse, error) - - // CircuitsCircuitTypesBulkPartialUpdate request with any body - CircuitsCircuitTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkPartialUpdateResponse, error) - - CircuitsCircuitTypesBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsCircuitTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkPartialUpdateResponse, error) - - // CircuitsCircuitTypesCreate request with any body - CircuitsCircuitTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesCreateResponse, error) - - CircuitsCircuitTypesCreateWithResponse(ctx context.Context, body CircuitsCircuitTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesCreateResponse, error) - - // CircuitsCircuitTypesBulkUpdate request with any body - CircuitsCircuitTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkUpdateResponse, error) - - CircuitsCircuitTypesBulkUpdateWithResponse(ctx context.Context, body CircuitsCircuitTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkUpdateResponse, error) - - // CircuitsCircuitTypesDestroy request - CircuitsCircuitTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesDestroyResponse, error) - - // CircuitsCircuitTypesRetrieve request - CircuitsCircuitTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesRetrieveResponse, error) - - // CircuitsCircuitTypesPartialUpdate request with any body - CircuitsCircuitTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesPartialUpdateResponse, error) - - CircuitsCircuitTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesPartialUpdateResponse, error) - - // CircuitsCircuitTypesUpdate request with any body - CircuitsCircuitTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesUpdateResponse, error) - - CircuitsCircuitTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesUpdateResponse, error) - - // CircuitsCircuitTypesNotesList request - CircuitsCircuitTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTypesNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesNotesListResponse, error) - - // CircuitsCircuitTypesNotesCreate request with any body - CircuitsCircuitTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesNotesCreateResponse, error) - - CircuitsCircuitTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesNotesCreateResponse, error) - - // CircuitsCircuitsBulkDestroy request with any body - CircuitsCircuitsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkDestroyResponse, error) - - CircuitsCircuitsBulkDestroyWithResponse(ctx context.Context, body CircuitsCircuitsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkDestroyResponse, error) - - // CircuitsCircuitsList request - CircuitsCircuitsListWithResponse(ctx context.Context, params *CircuitsCircuitsListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitsListResponse, error) - - // CircuitsCircuitsBulkPartialUpdate request with any body - CircuitsCircuitsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkPartialUpdateResponse, error) - - CircuitsCircuitsBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsCircuitsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkPartialUpdateResponse, error) - - // CircuitsCircuitsCreate request with any body - CircuitsCircuitsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsCreateResponse, error) - - CircuitsCircuitsCreateWithResponse(ctx context.Context, body CircuitsCircuitsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsCreateResponse, error) - - // CircuitsCircuitsBulkUpdate request with any body - CircuitsCircuitsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkUpdateResponse, error) - - CircuitsCircuitsBulkUpdateWithResponse(ctx context.Context, body CircuitsCircuitsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkUpdateResponse, error) - - // CircuitsCircuitsDestroy request - CircuitsCircuitsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitsDestroyResponse, error) - - // CircuitsCircuitsRetrieve request - CircuitsCircuitsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitsRetrieveResponse, error) - - // CircuitsCircuitsPartialUpdate request with any body - CircuitsCircuitsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsPartialUpdateResponse, error) - - CircuitsCircuitsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsPartialUpdateResponse, error) - - // CircuitsCircuitsUpdate request with any body - CircuitsCircuitsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsUpdateResponse, error) - - CircuitsCircuitsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsUpdateResponse, error) - - // CircuitsCircuitsNotesList request - CircuitsCircuitsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitsNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitsNotesListResponse, error) - - // CircuitsCircuitsNotesCreate request with any body - CircuitsCircuitsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsNotesCreateResponse, error) - - CircuitsCircuitsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsNotesCreateResponse, error) - - // CircuitsProviderNetworksBulkDestroy request with any body - CircuitsProviderNetworksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkDestroyResponse, error) - - CircuitsProviderNetworksBulkDestroyWithResponse(ctx context.Context, body CircuitsProviderNetworksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkDestroyResponse, error) - - // CircuitsProviderNetworksList request - CircuitsProviderNetworksListWithResponse(ctx context.Context, params *CircuitsProviderNetworksListParams, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksListResponse, error) - - // CircuitsProviderNetworksBulkPartialUpdate request with any body - CircuitsProviderNetworksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkPartialUpdateResponse, error) - - CircuitsProviderNetworksBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsProviderNetworksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkPartialUpdateResponse, error) - - // CircuitsProviderNetworksCreate request with any body - CircuitsProviderNetworksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksCreateResponse, error) - - CircuitsProviderNetworksCreateWithResponse(ctx context.Context, body CircuitsProviderNetworksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksCreateResponse, error) - - // CircuitsProviderNetworksBulkUpdate request with any body - CircuitsProviderNetworksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkUpdateResponse, error) - - CircuitsProviderNetworksBulkUpdateWithResponse(ctx context.Context, body CircuitsProviderNetworksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkUpdateResponse, error) - - // CircuitsProviderNetworksDestroy request - CircuitsProviderNetworksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksDestroyResponse, error) - - // CircuitsProviderNetworksRetrieve request - CircuitsProviderNetworksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksRetrieveResponse, error) - - // CircuitsProviderNetworksPartialUpdate request with any body - CircuitsProviderNetworksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksPartialUpdateResponse, error) - - CircuitsProviderNetworksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksPartialUpdateResponse, error) - - // CircuitsProviderNetworksUpdate request with any body - CircuitsProviderNetworksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksUpdateResponse, error) - - CircuitsProviderNetworksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksUpdateResponse, error) - - // CircuitsProviderNetworksNotesList request - CircuitsProviderNetworksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsProviderNetworksNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksNotesListResponse, error) - - // CircuitsProviderNetworksNotesCreate request with any body - CircuitsProviderNetworksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksNotesCreateResponse, error) - - CircuitsProviderNetworksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksNotesCreateResponse, error) - - // CircuitsProvidersBulkDestroy request with any body - CircuitsProvidersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkDestroyResponse, error) - - CircuitsProvidersBulkDestroyWithResponse(ctx context.Context, body CircuitsProvidersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkDestroyResponse, error) - - // CircuitsProvidersList request - CircuitsProvidersListWithResponse(ctx context.Context, params *CircuitsProvidersListParams, reqEditors ...RequestEditorFn) (*CircuitsProvidersListResponse, error) - - // CircuitsProvidersBulkPartialUpdate request with any body - CircuitsProvidersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkPartialUpdateResponse, error) - - CircuitsProvidersBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsProvidersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkPartialUpdateResponse, error) - - // CircuitsProvidersCreate request with any body - CircuitsProvidersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersCreateResponse, error) - - CircuitsProvidersCreateWithResponse(ctx context.Context, body CircuitsProvidersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersCreateResponse, error) - - // CircuitsProvidersBulkUpdate request with any body - CircuitsProvidersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkUpdateResponse, error) - - CircuitsProvidersBulkUpdateWithResponse(ctx context.Context, body CircuitsProvidersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkUpdateResponse, error) - - // CircuitsProvidersDestroy request - CircuitsProvidersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProvidersDestroyResponse, error) - - // CircuitsProvidersRetrieve request - CircuitsProvidersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProvidersRetrieveResponse, error) - - // CircuitsProvidersPartialUpdate request with any body - CircuitsProvidersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersPartialUpdateResponse, error) - - CircuitsProvidersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersPartialUpdateResponse, error) - - // CircuitsProvidersUpdate request with any body - CircuitsProvidersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersUpdateResponse, error) - - CircuitsProvidersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersUpdateResponse, error) - - // CircuitsProvidersNotesList request - CircuitsProvidersNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsProvidersNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsProvidersNotesListResponse, error) - - // CircuitsProvidersNotesCreate request with any body - CircuitsProvidersNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersNotesCreateResponse, error) - - CircuitsProvidersNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersNotesCreateResponse, error) - - // DcimCablesBulkDestroy request with any body - DcimCablesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesBulkDestroyResponse, error) - - DcimCablesBulkDestroyWithResponse(ctx context.Context, body DcimCablesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesBulkDestroyResponse, error) - - // DcimCablesList request - DcimCablesListWithResponse(ctx context.Context, params *DcimCablesListParams, reqEditors ...RequestEditorFn) (*DcimCablesListResponse, error) - - // DcimCablesBulkPartialUpdate request with any body - DcimCablesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesBulkPartialUpdateResponse, error) - - DcimCablesBulkPartialUpdateWithResponse(ctx context.Context, body DcimCablesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesBulkPartialUpdateResponse, error) - - // DcimCablesCreate request with any body - DcimCablesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesCreateResponse, error) - - DcimCablesCreateWithResponse(ctx context.Context, body DcimCablesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesCreateResponse, error) - - // DcimCablesBulkUpdate request with any body - DcimCablesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesBulkUpdateResponse, error) - - DcimCablesBulkUpdateWithResponse(ctx context.Context, body DcimCablesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesBulkUpdateResponse, error) - - // DcimCablesDestroy request - DcimCablesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimCablesDestroyResponse, error) - - // DcimCablesRetrieve request - DcimCablesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimCablesRetrieveResponse, error) - - // DcimCablesPartialUpdate request with any body - DcimCablesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesPartialUpdateResponse, error) - - DcimCablesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimCablesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesPartialUpdateResponse, error) - - // DcimCablesUpdate request with any body - DcimCablesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesUpdateResponse, error) - - DcimCablesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimCablesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesUpdateResponse, error) - - // DcimCablesNotesList request - DcimCablesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimCablesNotesListParams, reqEditors ...RequestEditorFn) (*DcimCablesNotesListResponse, error) - - // DcimCablesNotesCreate request with any body - DcimCablesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesNotesCreateResponse, error) - - DcimCablesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimCablesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesNotesCreateResponse, error) - - // DcimConnectedDeviceList request - DcimConnectedDeviceListWithResponse(ctx context.Context, params *DcimConnectedDeviceListParams, reqEditors ...RequestEditorFn) (*DcimConnectedDeviceListResponse, error) - - // DcimConsoleConnectionsList request - DcimConsoleConnectionsListWithResponse(ctx context.Context, params *DcimConsoleConnectionsListParams, reqEditors ...RequestEditorFn) (*DcimConsoleConnectionsListResponse, error) - - // DcimConsolePortTemplatesBulkDestroy request with any body - DcimConsolePortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkDestroyResponse, error) - - DcimConsolePortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimConsolePortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkDestroyResponse, error) - - // DcimConsolePortTemplatesList request - DcimConsolePortTemplatesListWithResponse(ctx context.Context, params *DcimConsolePortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesListResponse, error) - - // DcimConsolePortTemplatesBulkPartialUpdate request with any body - DcimConsolePortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkPartialUpdateResponse, error) - - DcimConsolePortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsolePortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkPartialUpdateResponse, error) - - // DcimConsolePortTemplatesCreate request with any body - DcimConsolePortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesCreateResponse, error) - - DcimConsolePortTemplatesCreateWithResponse(ctx context.Context, body DcimConsolePortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesCreateResponse, error) - - // DcimConsolePortTemplatesBulkUpdate request with any body - DcimConsolePortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkUpdateResponse, error) - - DcimConsolePortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimConsolePortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkUpdateResponse, error) - - // DcimConsolePortTemplatesDestroy request - DcimConsolePortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesDestroyResponse, error) - - // DcimConsolePortTemplatesRetrieve request - DcimConsolePortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesRetrieveResponse, error) - - // DcimConsolePortTemplatesPartialUpdate request with any body - DcimConsolePortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesPartialUpdateResponse, error) - - DcimConsolePortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesPartialUpdateResponse, error) - - // DcimConsolePortTemplatesUpdate request with any body - DcimConsolePortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesUpdateResponse, error) - - DcimConsolePortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesUpdateResponse, error) - - // DcimConsolePortTemplatesNotesList request - DcimConsolePortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesNotesListResponse, error) - - // DcimConsolePortTemplatesNotesCreate request with any body - DcimConsolePortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesNotesCreateResponse, error) - - DcimConsolePortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesNotesCreateResponse, error) - - // DcimConsolePortsBulkDestroy request with any body - DcimConsolePortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkDestroyResponse, error) - - DcimConsolePortsBulkDestroyWithResponse(ctx context.Context, body DcimConsolePortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkDestroyResponse, error) - - // DcimConsolePortsList request - DcimConsolePortsListWithResponse(ctx context.Context, params *DcimConsolePortsListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortsListResponse, error) - - // DcimConsolePortsBulkPartialUpdate request with any body - DcimConsolePortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkPartialUpdateResponse, error) - - DcimConsolePortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsolePortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkPartialUpdateResponse, error) - - // DcimConsolePortsCreate request with any body - DcimConsolePortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsCreateResponse, error) - - DcimConsolePortsCreateWithResponse(ctx context.Context, body DcimConsolePortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsCreateResponse, error) - - // DcimConsolePortsBulkUpdate request with any body - DcimConsolePortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkUpdateResponse, error) - - DcimConsolePortsBulkUpdateWithResponse(ctx context.Context, body DcimConsolePortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkUpdateResponse, error) - - // DcimConsolePortsDestroy request - DcimConsolePortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortsDestroyResponse, error) - - // DcimConsolePortsRetrieve request - DcimConsolePortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortsRetrieveResponse, error) - - // DcimConsolePortsPartialUpdate request with any body - DcimConsolePortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsPartialUpdateResponse, error) - - DcimConsolePortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsPartialUpdateResponse, error) - - // DcimConsolePortsUpdate request with any body - DcimConsolePortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsUpdateResponse, error) - - DcimConsolePortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsUpdateResponse, error) - - // DcimConsolePortsNotesList request - DcimConsolePortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortsNotesListResponse, error) - - // DcimConsolePortsNotesCreate request with any body - DcimConsolePortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsNotesCreateResponse, error) - - DcimConsolePortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsNotesCreateResponse, error) - - // DcimConsolePortsTraceRetrieve request - DcimConsolePortsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortsTraceRetrieveResponse, error) - - // DcimConsoleServerPortTemplatesBulkDestroy request with any body - DcimConsoleServerPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkDestroyResponse, error) - - DcimConsoleServerPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkDestroyResponse, error) - - // DcimConsoleServerPortTemplatesList request - DcimConsoleServerPortTemplatesListWithResponse(ctx context.Context, params *DcimConsoleServerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesListResponse, error) - - // DcimConsoleServerPortTemplatesBulkPartialUpdate request with any body - DcimConsoleServerPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkPartialUpdateResponse, error) - - DcimConsoleServerPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkPartialUpdateResponse, error) - - // DcimConsoleServerPortTemplatesCreate request with any body - DcimConsoleServerPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesCreateResponse, error) - - DcimConsoleServerPortTemplatesCreateWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesCreateResponse, error) - - // DcimConsoleServerPortTemplatesBulkUpdate request with any body - DcimConsoleServerPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkUpdateResponse, error) - - DcimConsoleServerPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkUpdateResponse, error) - - // DcimConsoleServerPortTemplatesDestroy request - DcimConsoleServerPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesDestroyResponse, error) - - // DcimConsoleServerPortTemplatesRetrieve request - DcimConsoleServerPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesRetrieveResponse, error) - - // DcimConsoleServerPortTemplatesPartialUpdate request with any body - DcimConsoleServerPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesPartialUpdateResponse, error) - - DcimConsoleServerPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesPartialUpdateResponse, error) - - // DcimConsoleServerPortTemplatesUpdate request with any body - DcimConsoleServerPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesUpdateResponse, error) - - DcimConsoleServerPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesUpdateResponse, error) - - // DcimConsoleServerPortTemplatesNotesList request - DcimConsoleServerPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesNotesListResponse, error) - - // DcimConsoleServerPortTemplatesNotesCreate request with any body - DcimConsoleServerPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesNotesCreateResponse, error) - - DcimConsoleServerPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesNotesCreateResponse, error) - - // DcimConsoleServerPortsBulkDestroy request with any body - DcimConsoleServerPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkDestroyResponse, error) - - DcimConsoleServerPortsBulkDestroyWithResponse(ctx context.Context, body DcimConsoleServerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkDestroyResponse, error) - - // DcimConsoleServerPortsList request - DcimConsoleServerPortsListWithResponse(ctx context.Context, params *DcimConsoleServerPortsListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsListResponse, error) - - // DcimConsoleServerPortsBulkPartialUpdate request with any body - DcimConsoleServerPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkPartialUpdateResponse, error) - - DcimConsoleServerPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkPartialUpdateResponse, error) - - // DcimConsoleServerPortsCreate request with any body - DcimConsoleServerPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsCreateResponse, error) - - DcimConsoleServerPortsCreateWithResponse(ctx context.Context, body DcimConsoleServerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsCreateResponse, error) - - // DcimConsoleServerPortsBulkUpdate request with any body - DcimConsoleServerPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkUpdateResponse, error) - - DcimConsoleServerPortsBulkUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkUpdateResponse, error) - - // DcimConsoleServerPortsDestroy request - DcimConsoleServerPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsDestroyResponse, error) - - // DcimConsoleServerPortsRetrieve request - DcimConsoleServerPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsRetrieveResponse, error) - - // DcimConsoleServerPortsPartialUpdate request with any body - DcimConsoleServerPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsPartialUpdateResponse, error) - - DcimConsoleServerPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsPartialUpdateResponse, error) - - // DcimConsoleServerPortsUpdate request with any body - DcimConsoleServerPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsUpdateResponse, error) - - DcimConsoleServerPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsUpdateResponse, error) - - // DcimConsoleServerPortsNotesList request - DcimConsoleServerPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsNotesListResponse, error) - - // DcimConsoleServerPortsNotesCreate request with any body - DcimConsoleServerPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsNotesCreateResponse, error) - - DcimConsoleServerPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsNotesCreateResponse, error) - - // DcimConsoleServerPortsTraceRetrieve request - DcimConsoleServerPortsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsTraceRetrieveResponse, error) - - // DcimDeviceBayTemplatesBulkDestroy request with any body - DcimDeviceBayTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkDestroyResponse, error) - - DcimDeviceBayTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimDeviceBayTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkDestroyResponse, error) - - // DcimDeviceBayTemplatesList request - DcimDeviceBayTemplatesListWithResponse(ctx context.Context, params *DcimDeviceBayTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesListResponse, error) - - // DcimDeviceBayTemplatesBulkPartialUpdate request with any body - DcimDeviceBayTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkPartialUpdateResponse, error) - - DcimDeviceBayTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceBayTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkPartialUpdateResponse, error) - - // DcimDeviceBayTemplatesCreate request with any body - DcimDeviceBayTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesCreateResponse, error) - - DcimDeviceBayTemplatesCreateWithResponse(ctx context.Context, body DcimDeviceBayTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesCreateResponse, error) - - // DcimDeviceBayTemplatesBulkUpdate request with any body - DcimDeviceBayTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkUpdateResponse, error) - - DcimDeviceBayTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimDeviceBayTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkUpdateResponse, error) - - // DcimDeviceBayTemplatesDestroy request - DcimDeviceBayTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesDestroyResponse, error) - - // DcimDeviceBayTemplatesRetrieve request - DcimDeviceBayTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesRetrieveResponse, error) - - // DcimDeviceBayTemplatesPartialUpdate request with any body - DcimDeviceBayTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesPartialUpdateResponse, error) - - DcimDeviceBayTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesPartialUpdateResponse, error) - - // DcimDeviceBayTemplatesUpdate request with any body - DcimDeviceBayTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesUpdateResponse, error) - - DcimDeviceBayTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesUpdateResponse, error) - - // DcimDeviceBayTemplatesNotesList request - DcimDeviceBayTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBayTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesNotesListResponse, error) - - // DcimDeviceBayTemplatesNotesCreate request with any body - DcimDeviceBayTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesNotesCreateResponse, error) - - DcimDeviceBayTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesNotesCreateResponse, error) - - // DcimDeviceBaysBulkDestroy request with any body - DcimDeviceBaysBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkDestroyResponse, error) - - DcimDeviceBaysBulkDestroyWithResponse(ctx context.Context, body DcimDeviceBaysBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkDestroyResponse, error) - - // DcimDeviceBaysList request - DcimDeviceBaysListWithResponse(ctx context.Context, params *DcimDeviceBaysListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBaysListResponse, error) - - // DcimDeviceBaysBulkPartialUpdate request with any body - DcimDeviceBaysBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkPartialUpdateResponse, error) - - DcimDeviceBaysBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceBaysBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkPartialUpdateResponse, error) - - // DcimDeviceBaysCreate request with any body - DcimDeviceBaysCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysCreateResponse, error) - - DcimDeviceBaysCreateWithResponse(ctx context.Context, body DcimDeviceBaysCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysCreateResponse, error) - - // DcimDeviceBaysBulkUpdate request with any body - DcimDeviceBaysBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkUpdateResponse, error) - - DcimDeviceBaysBulkUpdateWithResponse(ctx context.Context, body DcimDeviceBaysBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkUpdateResponse, error) - - // DcimDeviceBaysDestroy request - DcimDeviceBaysDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBaysDestroyResponse, error) - - // DcimDeviceBaysRetrieve request - DcimDeviceBaysRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBaysRetrieveResponse, error) - - // DcimDeviceBaysPartialUpdate request with any body - DcimDeviceBaysPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysPartialUpdateResponse, error) - - DcimDeviceBaysPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysPartialUpdateResponse, error) - - // DcimDeviceBaysUpdate request with any body - DcimDeviceBaysUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysUpdateResponse, error) - - DcimDeviceBaysUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysUpdateResponse, error) - - // DcimDeviceBaysNotesList request - DcimDeviceBaysNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBaysNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBaysNotesListResponse, error) - - // DcimDeviceBaysNotesCreate request with any body - DcimDeviceBaysNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysNotesCreateResponse, error) - - DcimDeviceBaysNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysNotesCreateResponse, error) - - // DcimDeviceRedundancyGroupsBulkDestroy request with any body - DcimDeviceRedundancyGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkDestroyResponse, error) - - DcimDeviceRedundancyGroupsBulkDestroyWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkDestroyResponse, error) - - // DcimDeviceRedundancyGroupsList request - DcimDeviceRedundancyGroupsListWithResponse(ctx context.Context, params *DcimDeviceRedundancyGroupsListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsListResponse, error) - - // DcimDeviceRedundancyGroupsBulkPartialUpdate request with any body - DcimDeviceRedundancyGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkPartialUpdateResponse, error) - - DcimDeviceRedundancyGroupsBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkPartialUpdateResponse, error) - - // DcimDeviceRedundancyGroupsCreate request with any body - DcimDeviceRedundancyGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsCreateResponse, error) - - DcimDeviceRedundancyGroupsCreateWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsCreateResponse, error) - - // DcimDeviceRedundancyGroupsBulkUpdate request with any body - DcimDeviceRedundancyGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkUpdateResponse, error) - - DcimDeviceRedundancyGroupsBulkUpdateWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkUpdateResponse, error) - - // DcimDeviceRedundancyGroupsDestroy request - DcimDeviceRedundancyGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsDestroyResponse, error) - - // DcimDeviceRedundancyGroupsRetrieve request - DcimDeviceRedundancyGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsRetrieveResponse, error) - - // DcimDeviceRedundancyGroupsPartialUpdate request with any body - DcimDeviceRedundancyGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsPartialUpdateResponse, error) - - DcimDeviceRedundancyGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsPartialUpdateResponse, error) - - // DcimDeviceRedundancyGroupsUpdate request with any body - DcimDeviceRedundancyGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsUpdateResponse, error) - - DcimDeviceRedundancyGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsUpdateResponse, error) - - // DcimDeviceRedundancyGroupsNotesList request - DcimDeviceRedundancyGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRedundancyGroupsNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsNotesListResponse, error) - - // DcimDeviceRedundancyGroupsNotesCreate request with any body - DcimDeviceRedundancyGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsNotesCreateResponse, error) - - DcimDeviceRedundancyGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsNotesCreateResponse, error) - - // DcimDeviceRolesBulkDestroy request with any body - DcimDeviceRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkDestroyResponse, error) - - DcimDeviceRolesBulkDestroyWithResponse(ctx context.Context, body DcimDeviceRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkDestroyResponse, error) - - // DcimDeviceRolesList request - DcimDeviceRolesListWithResponse(ctx context.Context, params *DcimDeviceRolesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRolesListResponse, error) - - // DcimDeviceRolesBulkPartialUpdate request with any body - DcimDeviceRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkPartialUpdateResponse, error) - - DcimDeviceRolesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkPartialUpdateResponse, error) - - // DcimDeviceRolesCreate request with any body - DcimDeviceRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesCreateResponse, error) - - DcimDeviceRolesCreateWithResponse(ctx context.Context, body DcimDeviceRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesCreateResponse, error) - - // DcimDeviceRolesBulkUpdate request with any body - DcimDeviceRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkUpdateResponse, error) - - DcimDeviceRolesBulkUpdateWithResponse(ctx context.Context, body DcimDeviceRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkUpdateResponse, error) - - // DcimDeviceRolesDestroy request - DcimDeviceRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRolesDestroyResponse, error) - - // DcimDeviceRolesRetrieve request - DcimDeviceRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRolesRetrieveResponse, error) - - // DcimDeviceRolesPartialUpdate request with any body - DcimDeviceRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesPartialUpdateResponse, error) - - DcimDeviceRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesPartialUpdateResponse, error) - - // DcimDeviceRolesUpdate request with any body - DcimDeviceRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesUpdateResponse, error) - - DcimDeviceRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesUpdateResponse, error) - - // DcimDeviceRolesNotesList request - DcimDeviceRolesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRolesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRolesNotesListResponse, error) - - // DcimDeviceRolesNotesCreate request with any body - DcimDeviceRolesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesNotesCreateResponse, error) - - DcimDeviceRolesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesNotesCreateResponse, error) - - // DcimDeviceTypesBulkDestroy request with any body - DcimDeviceTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkDestroyResponse, error) - - DcimDeviceTypesBulkDestroyWithResponse(ctx context.Context, body DcimDeviceTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkDestroyResponse, error) - - // DcimDeviceTypesList request - DcimDeviceTypesListWithResponse(ctx context.Context, params *DcimDeviceTypesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceTypesListResponse, error) - - // DcimDeviceTypesBulkPartialUpdate request with any body - DcimDeviceTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkPartialUpdateResponse, error) - - DcimDeviceTypesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkPartialUpdateResponse, error) - - // DcimDeviceTypesCreate request with any body - DcimDeviceTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesCreateResponse, error) - - DcimDeviceTypesCreateWithResponse(ctx context.Context, body DcimDeviceTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesCreateResponse, error) - - // DcimDeviceTypesBulkUpdate request with any body - DcimDeviceTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkUpdateResponse, error) - - DcimDeviceTypesBulkUpdateWithResponse(ctx context.Context, body DcimDeviceTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkUpdateResponse, error) - - // DcimDeviceTypesDestroy request - DcimDeviceTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceTypesDestroyResponse, error) - - // DcimDeviceTypesRetrieve request - DcimDeviceTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceTypesRetrieveResponse, error) - - // DcimDeviceTypesPartialUpdate request with any body - DcimDeviceTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesPartialUpdateResponse, error) - - DcimDeviceTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesPartialUpdateResponse, error) - - // DcimDeviceTypesUpdate request with any body - DcimDeviceTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesUpdateResponse, error) - - DcimDeviceTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesUpdateResponse, error) - - // DcimDeviceTypesNotesList request - DcimDeviceTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceTypesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceTypesNotesListResponse, error) - - // DcimDeviceTypesNotesCreate request with any body - DcimDeviceTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesNotesCreateResponse, error) - - DcimDeviceTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesNotesCreateResponse, error) - - // DcimDevicesBulkDestroy request with any body - DcimDevicesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesBulkDestroyResponse, error) - - DcimDevicesBulkDestroyWithResponse(ctx context.Context, body DcimDevicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesBulkDestroyResponse, error) - - // DcimDevicesList request - DcimDevicesListWithResponse(ctx context.Context, params *DcimDevicesListParams, reqEditors ...RequestEditorFn) (*DcimDevicesListResponse, error) - - // DcimDevicesBulkPartialUpdate request with any body - DcimDevicesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesBulkPartialUpdateResponse, error) - - DcimDevicesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDevicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesBulkPartialUpdateResponse, error) - - // DcimDevicesCreate request with any body - DcimDevicesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesCreateResponse, error) - - DcimDevicesCreateWithResponse(ctx context.Context, body DcimDevicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesCreateResponse, error) - - // DcimDevicesBulkUpdate request with any body - DcimDevicesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesBulkUpdateResponse, error) - - DcimDevicesBulkUpdateWithResponse(ctx context.Context, body DcimDevicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesBulkUpdateResponse, error) - - // DcimDevicesDestroy request - DcimDevicesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDevicesDestroyResponse, error) - - // DcimDevicesRetrieve request - DcimDevicesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDevicesRetrieveResponse, error) - - // DcimDevicesPartialUpdate request with any body - DcimDevicesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesPartialUpdateResponse, error) - - DcimDevicesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDevicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesPartialUpdateResponse, error) - - // DcimDevicesUpdate request with any body - DcimDevicesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesUpdateResponse, error) - - DcimDevicesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDevicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesUpdateResponse, error) - - // DcimDevicesNapalmRetrieve request - DcimDevicesNapalmRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNapalmRetrieveParams, reqEditors ...RequestEditorFn) (*DcimDevicesNapalmRetrieveResponse, error) - - // DcimDevicesNotesList request - DcimDevicesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDevicesNotesListResponse, error) - - // DcimDevicesNotesCreate request with any body - DcimDevicesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesNotesCreateResponse, error) - - DcimDevicesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDevicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesNotesCreateResponse, error) - - // DcimFrontPortTemplatesBulkDestroy request with any body - DcimFrontPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkDestroyResponse, error) - - DcimFrontPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimFrontPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkDestroyResponse, error) - - // DcimFrontPortTemplatesList request - DcimFrontPortTemplatesListWithResponse(ctx context.Context, params *DcimFrontPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesListResponse, error) - - // DcimFrontPortTemplatesBulkPartialUpdate request with any body - DcimFrontPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkPartialUpdateResponse, error) - - DcimFrontPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimFrontPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkPartialUpdateResponse, error) - - // DcimFrontPortTemplatesCreate request with any body - DcimFrontPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesCreateResponse, error) - - DcimFrontPortTemplatesCreateWithResponse(ctx context.Context, body DcimFrontPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesCreateResponse, error) - - // DcimFrontPortTemplatesBulkUpdate request with any body - DcimFrontPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkUpdateResponse, error) - - DcimFrontPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimFrontPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkUpdateResponse, error) - - // DcimFrontPortTemplatesDestroy request - DcimFrontPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesDestroyResponse, error) - - // DcimFrontPortTemplatesRetrieve request - DcimFrontPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesRetrieveResponse, error) - - // DcimFrontPortTemplatesPartialUpdate request with any body - DcimFrontPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesPartialUpdateResponse, error) - - DcimFrontPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesPartialUpdateResponse, error) - - // DcimFrontPortTemplatesUpdate request with any body - DcimFrontPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesUpdateResponse, error) - - DcimFrontPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesUpdateResponse, error) - - // DcimFrontPortTemplatesNotesList request - DcimFrontPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesNotesListResponse, error) - - // DcimFrontPortTemplatesNotesCreate request with any body - DcimFrontPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesNotesCreateResponse, error) - - DcimFrontPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesNotesCreateResponse, error) - - // DcimFrontPortsBulkDestroy request with any body - DcimFrontPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkDestroyResponse, error) - - DcimFrontPortsBulkDestroyWithResponse(ctx context.Context, body DcimFrontPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkDestroyResponse, error) - - // DcimFrontPortsList request - DcimFrontPortsListWithResponse(ctx context.Context, params *DcimFrontPortsListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortsListResponse, error) - - // DcimFrontPortsBulkPartialUpdate request with any body - DcimFrontPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkPartialUpdateResponse, error) - - DcimFrontPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimFrontPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkPartialUpdateResponse, error) - - // DcimFrontPortsCreate request with any body - DcimFrontPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsCreateResponse, error) - - DcimFrontPortsCreateWithResponse(ctx context.Context, body DcimFrontPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsCreateResponse, error) - - // DcimFrontPortsBulkUpdate request with any body - DcimFrontPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkUpdateResponse, error) - - DcimFrontPortsBulkUpdateWithResponse(ctx context.Context, body DcimFrontPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkUpdateResponse, error) - - // DcimFrontPortsDestroy request - DcimFrontPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortsDestroyResponse, error) - - // DcimFrontPortsRetrieve request - DcimFrontPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortsRetrieveResponse, error) - - // DcimFrontPortsPartialUpdate request with any body - DcimFrontPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsPartialUpdateResponse, error) - - DcimFrontPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsPartialUpdateResponse, error) - - // DcimFrontPortsUpdate request with any body - DcimFrontPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsUpdateResponse, error) - - DcimFrontPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsUpdateResponse, error) - - // DcimFrontPortsNotesList request - DcimFrontPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortsNotesListResponse, error) - - // DcimFrontPortsNotesCreate request with any body - DcimFrontPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsNotesCreateResponse, error) - - DcimFrontPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsNotesCreateResponse, error) - - // DcimFrontPortsPathsRetrieve request - DcimFrontPortsPathsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortsPathsRetrieveResponse, error) - - // DcimInterfaceConnectionsList request - DcimInterfaceConnectionsListWithResponse(ctx context.Context, params *DcimInterfaceConnectionsListParams, reqEditors ...RequestEditorFn) (*DcimInterfaceConnectionsListResponse, error) - - // DcimInterfaceTemplatesBulkDestroy request with any body - DcimInterfaceTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkDestroyResponse, error) - - DcimInterfaceTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimInterfaceTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkDestroyResponse, error) - - // DcimInterfaceTemplatesList request - DcimInterfaceTemplatesListWithResponse(ctx context.Context, params *DcimInterfaceTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesListResponse, error) - - // DcimInterfaceTemplatesBulkPartialUpdate request with any body - DcimInterfaceTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkPartialUpdateResponse, error) - - DcimInterfaceTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimInterfaceTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkPartialUpdateResponse, error) - - // DcimInterfaceTemplatesCreate request with any body - DcimInterfaceTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesCreateResponse, error) - - DcimInterfaceTemplatesCreateWithResponse(ctx context.Context, body DcimInterfaceTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesCreateResponse, error) - - // DcimInterfaceTemplatesBulkUpdate request with any body - DcimInterfaceTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkUpdateResponse, error) - - DcimInterfaceTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimInterfaceTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkUpdateResponse, error) - - // DcimInterfaceTemplatesDestroy request - DcimInterfaceTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesDestroyResponse, error) - - // DcimInterfaceTemplatesRetrieve request - DcimInterfaceTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesRetrieveResponse, error) - - // DcimInterfaceTemplatesPartialUpdate request with any body - DcimInterfaceTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesPartialUpdateResponse, error) - - DcimInterfaceTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesPartialUpdateResponse, error) - - // DcimInterfaceTemplatesUpdate request with any body - DcimInterfaceTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesUpdateResponse, error) - - DcimInterfaceTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesUpdateResponse, error) - - // DcimInterfaceTemplatesNotesList request - DcimInterfaceTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimInterfaceTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesNotesListResponse, error) - - // DcimInterfaceTemplatesNotesCreate request with any body - DcimInterfaceTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesNotesCreateResponse, error) - - DcimInterfaceTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesNotesCreateResponse, error) - - // DcimInterfacesBulkDestroy request with any body - DcimInterfacesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkDestroyResponse, error) - - DcimInterfacesBulkDestroyWithResponse(ctx context.Context, body DcimInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkDestroyResponse, error) - - // DcimInterfacesList request - DcimInterfacesListWithResponse(ctx context.Context, params *DcimInterfacesListParams, reqEditors ...RequestEditorFn) (*DcimInterfacesListResponse, error) - - // DcimInterfacesBulkPartialUpdate request with any body - DcimInterfacesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkPartialUpdateResponse, error) - - DcimInterfacesBulkPartialUpdateWithResponse(ctx context.Context, body DcimInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkPartialUpdateResponse, error) - - // DcimInterfacesCreate request with any body - DcimInterfacesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesCreateResponse, error) - - DcimInterfacesCreateWithResponse(ctx context.Context, body DcimInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesCreateResponse, error) - - // DcimInterfacesBulkUpdate request with any body - DcimInterfacesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkUpdateResponse, error) - - DcimInterfacesBulkUpdateWithResponse(ctx context.Context, body DcimInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkUpdateResponse, error) - - // DcimInterfacesDestroy request - DcimInterfacesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfacesDestroyResponse, error) - - // DcimInterfacesRetrieve request - DcimInterfacesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfacesRetrieveResponse, error) - - // DcimInterfacesPartialUpdate request with any body - DcimInterfacesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesPartialUpdateResponse, error) - - DcimInterfacesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesPartialUpdateResponse, error) - - // DcimInterfacesUpdate request with any body - DcimInterfacesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesUpdateResponse, error) - - DcimInterfacesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesUpdateResponse, error) - - // DcimInterfacesNotesList request - DcimInterfacesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*DcimInterfacesNotesListResponse, error) - - // DcimInterfacesNotesCreate request with any body - DcimInterfacesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesNotesCreateResponse, error) - - DcimInterfacesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesNotesCreateResponse, error) - - // DcimInterfacesTraceRetrieve request - DcimInterfacesTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfacesTraceRetrieveResponse, error) - - // DcimInventoryItemsBulkDestroy request with any body - DcimInventoryItemsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkDestroyResponse, error) - - DcimInventoryItemsBulkDestroyWithResponse(ctx context.Context, body DcimInventoryItemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkDestroyResponse, error) - - // DcimInventoryItemsList request - DcimInventoryItemsListWithResponse(ctx context.Context, params *DcimInventoryItemsListParams, reqEditors ...RequestEditorFn) (*DcimInventoryItemsListResponse, error) - - // DcimInventoryItemsBulkPartialUpdate request with any body - DcimInventoryItemsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkPartialUpdateResponse, error) - - DcimInventoryItemsBulkPartialUpdateWithResponse(ctx context.Context, body DcimInventoryItemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkPartialUpdateResponse, error) - - // DcimInventoryItemsCreate request with any body - DcimInventoryItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsCreateResponse, error) - - DcimInventoryItemsCreateWithResponse(ctx context.Context, body DcimInventoryItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsCreateResponse, error) - - // DcimInventoryItemsBulkUpdate request with any body - DcimInventoryItemsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkUpdateResponse, error) - - DcimInventoryItemsBulkUpdateWithResponse(ctx context.Context, body DcimInventoryItemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkUpdateResponse, error) - - // DcimInventoryItemsDestroy request - DcimInventoryItemsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInventoryItemsDestroyResponse, error) - - // DcimInventoryItemsRetrieve request - DcimInventoryItemsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInventoryItemsRetrieveResponse, error) - - // DcimInventoryItemsPartialUpdate request with any body - DcimInventoryItemsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsPartialUpdateResponse, error) - - DcimInventoryItemsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsPartialUpdateResponse, error) - - // DcimInventoryItemsUpdate request with any body - DcimInventoryItemsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsUpdateResponse, error) - - DcimInventoryItemsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsUpdateResponse, error) - - // DcimInventoryItemsNotesList request - DcimInventoryItemsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimInventoryItemsNotesListParams, reqEditors ...RequestEditorFn) (*DcimInventoryItemsNotesListResponse, error) - - // DcimInventoryItemsNotesCreate request with any body - DcimInventoryItemsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsNotesCreateResponse, error) - - DcimInventoryItemsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsNotesCreateResponse, error) - - // DcimLocationTypesBulkDestroy request with any body - DcimLocationTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkDestroyResponse, error) - - DcimLocationTypesBulkDestroyWithResponse(ctx context.Context, body DcimLocationTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkDestroyResponse, error) - - // DcimLocationTypesList request - DcimLocationTypesListWithResponse(ctx context.Context, params *DcimLocationTypesListParams, reqEditors ...RequestEditorFn) (*DcimLocationTypesListResponse, error) - - // DcimLocationTypesBulkPartialUpdate request with any body - DcimLocationTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkPartialUpdateResponse, error) - - DcimLocationTypesBulkPartialUpdateWithResponse(ctx context.Context, body DcimLocationTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkPartialUpdateResponse, error) - - // DcimLocationTypesCreate request with any body - DcimLocationTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesCreateResponse, error) - - DcimLocationTypesCreateWithResponse(ctx context.Context, body DcimLocationTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesCreateResponse, error) - - // DcimLocationTypesBulkUpdate request with any body - DcimLocationTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkUpdateResponse, error) - - DcimLocationTypesBulkUpdateWithResponse(ctx context.Context, body DcimLocationTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkUpdateResponse, error) - - // DcimLocationTypesDestroy request - DcimLocationTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationTypesDestroyResponse, error) - - // DcimLocationTypesRetrieve request - DcimLocationTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationTypesRetrieveResponse, error) - - // DcimLocationTypesPartialUpdate request with any body - DcimLocationTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesPartialUpdateResponse, error) - - DcimLocationTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesPartialUpdateResponse, error) - - // DcimLocationTypesUpdate request with any body - DcimLocationTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesUpdateResponse, error) - - DcimLocationTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesUpdateResponse, error) - - // DcimLocationTypesNotesList request - DcimLocationTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimLocationTypesNotesListParams, reqEditors ...RequestEditorFn) (*DcimLocationTypesNotesListResponse, error) - - // DcimLocationTypesNotesCreate request with any body - DcimLocationTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesNotesCreateResponse, error) - - DcimLocationTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesNotesCreateResponse, error) - - // DcimLocationsBulkDestroy request with any body - DcimLocationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsBulkDestroyResponse, error) - - DcimLocationsBulkDestroyWithResponse(ctx context.Context, body DcimLocationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsBulkDestroyResponse, error) - - // DcimLocationsList request - DcimLocationsListWithResponse(ctx context.Context, params *DcimLocationsListParams, reqEditors ...RequestEditorFn) (*DcimLocationsListResponse, error) - - // DcimLocationsBulkPartialUpdate request with any body - DcimLocationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsBulkPartialUpdateResponse, error) - - DcimLocationsBulkPartialUpdateWithResponse(ctx context.Context, body DcimLocationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsBulkPartialUpdateResponse, error) - - // DcimLocationsCreate request with any body - DcimLocationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsCreateResponse, error) - - DcimLocationsCreateWithResponse(ctx context.Context, body DcimLocationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsCreateResponse, error) - - // DcimLocationsBulkUpdate request with any body - DcimLocationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsBulkUpdateResponse, error) - - DcimLocationsBulkUpdateWithResponse(ctx context.Context, body DcimLocationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsBulkUpdateResponse, error) - - // DcimLocationsDestroy request - DcimLocationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationsDestroyResponse, error) - - // DcimLocationsRetrieve request - DcimLocationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationsRetrieveResponse, error) - - // DcimLocationsPartialUpdate request with any body - DcimLocationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsPartialUpdateResponse, error) - - DcimLocationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsPartialUpdateResponse, error) - - // DcimLocationsUpdate request with any body - DcimLocationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsUpdateResponse, error) - - DcimLocationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsUpdateResponse, error) - - // DcimLocationsNotesList request - DcimLocationsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimLocationsNotesListParams, reqEditors ...RequestEditorFn) (*DcimLocationsNotesListResponse, error) - - // DcimLocationsNotesCreate request with any body - DcimLocationsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsNotesCreateResponse, error) - - DcimLocationsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsNotesCreateResponse, error) - - // DcimManufacturersBulkDestroy request with any body - DcimManufacturersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkDestroyResponse, error) - - DcimManufacturersBulkDestroyWithResponse(ctx context.Context, body DcimManufacturersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkDestroyResponse, error) - - // DcimManufacturersList request - DcimManufacturersListWithResponse(ctx context.Context, params *DcimManufacturersListParams, reqEditors ...RequestEditorFn) (*DcimManufacturersListResponse, error) - - // DcimManufacturersBulkPartialUpdate request with any body - DcimManufacturersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkPartialUpdateResponse, error) - - DcimManufacturersBulkPartialUpdateWithResponse(ctx context.Context, body DcimManufacturersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkPartialUpdateResponse, error) - - // DcimManufacturersCreate request with any body - DcimManufacturersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersCreateResponse, error) - - DcimManufacturersCreateWithResponse(ctx context.Context, body DcimManufacturersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersCreateResponse, error) - - // DcimManufacturersBulkUpdate request with any body - DcimManufacturersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkUpdateResponse, error) - - DcimManufacturersBulkUpdateWithResponse(ctx context.Context, body DcimManufacturersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkUpdateResponse, error) - - // DcimManufacturersDestroy request - DcimManufacturersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimManufacturersDestroyResponse, error) - - // DcimManufacturersRetrieve request - DcimManufacturersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimManufacturersRetrieveResponse, error) - - // DcimManufacturersPartialUpdate request with any body - DcimManufacturersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersPartialUpdateResponse, error) - - DcimManufacturersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimManufacturersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersPartialUpdateResponse, error) - - // DcimManufacturersUpdate request with any body - DcimManufacturersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersUpdateResponse, error) - - DcimManufacturersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimManufacturersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersUpdateResponse, error) - - // DcimManufacturersNotesList request - DcimManufacturersNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimManufacturersNotesListParams, reqEditors ...RequestEditorFn) (*DcimManufacturersNotesListResponse, error) - - // DcimManufacturersNotesCreate request with any body - DcimManufacturersNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersNotesCreateResponse, error) - - DcimManufacturersNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimManufacturersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersNotesCreateResponse, error) - - // DcimPlatformsBulkDestroy request with any body - DcimPlatformsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkDestroyResponse, error) - - DcimPlatformsBulkDestroyWithResponse(ctx context.Context, body DcimPlatformsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkDestroyResponse, error) - - // DcimPlatformsList request - DcimPlatformsListWithResponse(ctx context.Context, params *DcimPlatformsListParams, reqEditors ...RequestEditorFn) (*DcimPlatformsListResponse, error) - - // DcimPlatformsBulkPartialUpdate request with any body - DcimPlatformsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkPartialUpdateResponse, error) - - DcimPlatformsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPlatformsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkPartialUpdateResponse, error) - - // DcimPlatformsCreate request with any body - DcimPlatformsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsCreateResponse, error) - - DcimPlatformsCreateWithResponse(ctx context.Context, body DcimPlatformsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsCreateResponse, error) - - // DcimPlatformsBulkUpdate request with any body - DcimPlatformsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkUpdateResponse, error) - - DcimPlatformsBulkUpdateWithResponse(ctx context.Context, body DcimPlatformsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkUpdateResponse, error) - - // DcimPlatformsDestroy request - DcimPlatformsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPlatformsDestroyResponse, error) - - // DcimPlatformsRetrieve request - DcimPlatformsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPlatformsRetrieveResponse, error) - - // DcimPlatformsPartialUpdate request with any body - DcimPlatformsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsPartialUpdateResponse, error) - - DcimPlatformsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPlatformsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsPartialUpdateResponse, error) - - // DcimPlatformsUpdate request with any body - DcimPlatformsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsUpdateResponse, error) - - DcimPlatformsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPlatformsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsUpdateResponse, error) - - // DcimPlatformsNotesList request - DcimPlatformsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPlatformsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPlatformsNotesListResponse, error) - - // DcimPlatformsNotesCreate request with any body - DcimPlatformsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsNotesCreateResponse, error) - - DcimPlatformsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPlatformsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsNotesCreateResponse, error) - - // DcimPowerConnectionsList request - DcimPowerConnectionsListWithResponse(ctx context.Context, params *DcimPowerConnectionsListParams, reqEditors ...RequestEditorFn) (*DcimPowerConnectionsListResponse, error) - - // DcimPowerFeedsBulkDestroy request with any body - DcimPowerFeedsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkDestroyResponse, error) - - DcimPowerFeedsBulkDestroyWithResponse(ctx context.Context, body DcimPowerFeedsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkDestroyResponse, error) - - // DcimPowerFeedsList request - DcimPowerFeedsListWithResponse(ctx context.Context, params *DcimPowerFeedsListParams, reqEditors ...RequestEditorFn) (*DcimPowerFeedsListResponse, error) - - // DcimPowerFeedsBulkPartialUpdate request with any body - DcimPowerFeedsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkPartialUpdateResponse, error) - - DcimPowerFeedsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerFeedsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkPartialUpdateResponse, error) - - // DcimPowerFeedsCreate request with any body - DcimPowerFeedsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsCreateResponse, error) - - DcimPowerFeedsCreateWithResponse(ctx context.Context, body DcimPowerFeedsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsCreateResponse, error) - - // DcimPowerFeedsBulkUpdate request with any body - DcimPowerFeedsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkUpdateResponse, error) - - DcimPowerFeedsBulkUpdateWithResponse(ctx context.Context, body DcimPowerFeedsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkUpdateResponse, error) - - // DcimPowerFeedsDestroy request - DcimPowerFeedsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerFeedsDestroyResponse, error) - - // DcimPowerFeedsRetrieve request - DcimPowerFeedsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerFeedsRetrieveResponse, error) - - // DcimPowerFeedsPartialUpdate request with any body - DcimPowerFeedsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsPartialUpdateResponse, error) - - DcimPowerFeedsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsPartialUpdateResponse, error) - - // DcimPowerFeedsUpdate request with any body - DcimPowerFeedsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsUpdateResponse, error) - - DcimPowerFeedsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsUpdateResponse, error) - - // DcimPowerFeedsNotesList request - DcimPowerFeedsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerFeedsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerFeedsNotesListResponse, error) - - // DcimPowerFeedsNotesCreate request with any body - DcimPowerFeedsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsNotesCreateResponse, error) - - DcimPowerFeedsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsNotesCreateResponse, error) - - // DcimPowerFeedsTraceRetrieve request - DcimPowerFeedsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerFeedsTraceRetrieveResponse, error) - - // DcimPowerOutletTemplatesBulkDestroy request with any body - DcimPowerOutletTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkDestroyResponse, error) - - DcimPowerOutletTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimPowerOutletTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkDestroyResponse, error) - - // DcimPowerOutletTemplatesList request - DcimPowerOutletTemplatesListWithResponse(ctx context.Context, params *DcimPowerOutletTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesListResponse, error) - - // DcimPowerOutletTemplatesBulkPartialUpdate request with any body - DcimPowerOutletTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkPartialUpdateResponse, error) - - DcimPowerOutletTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerOutletTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkPartialUpdateResponse, error) - - // DcimPowerOutletTemplatesCreate request with any body - DcimPowerOutletTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesCreateResponse, error) - - DcimPowerOutletTemplatesCreateWithResponse(ctx context.Context, body DcimPowerOutletTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesCreateResponse, error) - - // DcimPowerOutletTemplatesBulkUpdate request with any body - DcimPowerOutletTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkUpdateResponse, error) - - DcimPowerOutletTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimPowerOutletTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkUpdateResponse, error) - - // DcimPowerOutletTemplatesDestroy request - DcimPowerOutletTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesDestroyResponse, error) - - // DcimPowerOutletTemplatesRetrieve request - DcimPowerOutletTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesRetrieveResponse, error) - - // DcimPowerOutletTemplatesPartialUpdate request with any body - DcimPowerOutletTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesPartialUpdateResponse, error) - - DcimPowerOutletTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesPartialUpdateResponse, error) - - // DcimPowerOutletTemplatesUpdate request with any body - DcimPowerOutletTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesUpdateResponse, error) - - DcimPowerOutletTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesUpdateResponse, error) - - // DcimPowerOutletTemplatesNotesList request - DcimPowerOutletTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesNotesListResponse, error) - - // DcimPowerOutletTemplatesNotesCreate request with any body - DcimPowerOutletTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesNotesCreateResponse, error) - - DcimPowerOutletTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesNotesCreateResponse, error) - - // DcimPowerOutletsBulkDestroy request with any body - DcimPowerOutletsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkDestroyResponse, error) - - DcimPowerOutletsBulkDestroyWithResponse(ctx context.Context, body DcimPowerOutletsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkDestroyResponse, error) - - // DcimPowerOutletsList request - DcimPowerOutletsListWithResponse(ctx context.Context, params *DcimPowerOutletsListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletsListResponse, error) - - // DcimPowerOutletsBulkPartialUpdate request with any body - DcimPowerOutletsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkPartialUpdateResponse, error) - - DcimPowerOutletsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerOutletsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkPartialUpdateResponse, error) - - // DcimPowerOutletsCreate request with any body - DcimPowerOutletsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsCreateResponse, error) - - DcimPowerOutletsCreateWithResponse(ctx context.Context, body DcimPowerOutletsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsCreateResponse, error) - - // DcimPowerOutletsBulkUpdate request with any body - DcimPowerOutletsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkUpdateResponse, error) - - DcimPowerOutletsBulkUpdateWithResponse(ctx context.Context, body DcimPowerOutletsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkUpdateResponse, error) - - // DcimPowerOutletsDestroy request - DcimPowerOutletsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletsDestroyResponse, error) - - // DcimPowerOutletsRetrieve request - DcimPowerOutletsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletsRetrieveResponse, error) - - // DcimPowerOutletsPartialUpdate request with any body - DcimPowerOutletsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsPartialUpdateResponse, error) - - DcimPowerOutletsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsPartialUpdateResponse, error) - - // DcimPowerOutletsUpdate request with any body - DcimPowerOutletsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsUpdateResponse, error) - - DcimPowerOutletsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsUpdateResponse, error) - - // DcimPowerOutletsNotesList request - DcimPowerOutletsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletsNotesListResponse, error) - - // DcimPowerOutletsNotesCreate request with any body - DcimPowerOutletsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsNotesCreateResponse, error) - - DcimPowerOutletsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsNotesCreateResponse, error) - - // DcimPowerOutletsTraceRetrieve request - DcimPowerOutletsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletsTraceRetrieveResponse, error) - - // DcimPowerPanelsBulkDestroy request with any body - DcimPowerPanelsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkDestroyResponse, error) - - DcimPowerPanelsBulkDestroyWithResponse(ctx context.Context, body DcimPowerPanelsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkDestroyResponse, error) - - // DcimPowerPanelsList request - DcimPowerPanelsListWithResponse(ctx context.Context, params *DcimPowerPanelsListParams, reqEditors ...RequestEditorFn) (*DcimPowerPanelsListResponse, error) - - // DcimPowerPanelsBulkPartialUpdate request with any body - DcimPowerPanelsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkPartialUpdateResponse, error) - - DcimPowerPanelsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerPanelsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkPartialUpdateResponse, error) - - // DcimPowerPanelsCreate request with any body - DcimPowerPanelsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsCreateResponse, error) - - DcimPowerPanelsCreateWithResponse(ctx context.Context, body DcimPowerPanelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsCreateResponse, error) - - // DcimPowerPanelsBulkUpdate request with any body - DcimPowerPanelsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkUpdateResponse, error) - - DcimPowerPanelsBulkUpdateWithResponse(ctx context.Context, body DcimPowerPanelsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkUpdateResponse, error) - - // DcimPowerPanelsDestroy request - DcimPowerPanelsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPanelsDestroyResponse, error) - - // DcimPowerPanelsRetrieve request - DcimPowerPanelsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPanelsRetrieveResponse, error) - - // DcimPowerPanelsPartialUpdate request with any body - DcimPowerPanelsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsPartialUpdateResponse, error) - - DcimPowerPanelsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsPartialUpdateResponse, error) - - // DcimPowerPanelsUpdate request with any body - DcimPowerPanelsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsUpdateResponse, error) - - DcimPowerPanelsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsUpdateResponse, error) - - // DcimPowerPanelsNotesList request - DcimPowerPanelsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerPanelsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPanelsNotesListResponse, error) - - // DcimPowerPanelsNotesCreate request with any body - DcimPowerPanelsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsNotesCreateResponse, error) - - DcimPowerPanelsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsNotesCreateResponse, error) - - // DcimPowerPortTemplatesBulkDestroy request with any body - DcimPowerPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkDestroyResponse, error) - - DcimPowerPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimPowerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkDestroyResponse, error) - - // DcimPowerPortTemplatesList request - DcimPowerPortTemplatesListWithResponse(ctx context.Context, params *DcimPowerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesListResponse, error) - - // DcimPowerPortTemplatesBulkPartialUpdate request with any body - DcimPowerPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkPartialUpdateResponse, error) - - DcimPowerPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkPartialUpdateResponse, error) - - // DcimPowerPortTemplatesCreate request with any body - DcimPowerPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesCreateResponse, error) - - DcimPowerPortTemplatesCreateWithResponse(ctx context.Context, body DcimPowerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesCreateResponse, error) - - // DcimPowerPortTemplatesBulkUpdate request with any body - DcimPowerPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkUpdateResponse, error) - - DcimPowerPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimPowerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkUpdateResponse, error) - - // DcimPowerPortTemplatesDestroy request - DcimPowerPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesDestroyResponse, error) - - // DcimPowerPortTemplatesRetrieve request - DcimPowerPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesRetrieveResponse, error) - - // DcimPowerPortTemplatesPartialUpdate request with any body - DcimPowerPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesPartialUpdateResponse, error) - - DcimPowerPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesPartialUpdateResponse, error) - - // DcimPowerPortTemplatesUpdate request with any body - DcimPowerPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesUpdateResponse, error) - - DcimPowerPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesUpdateResponse, error) - - // DcimPowerPortTemplatesNotesList request - DcimPowerPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesNotesListResponse, error) - - // DcimPowerPortTemplatesNotesCreate request with any body - DcimPowerPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesNotesCreateResponse, error) - - DcimPowerPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesNotesCreateResponse, error) - - // DcimPowerPortsBulkDestroy request with any body - DcimPowerPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkDestroyResponse, error) - - DcimPowerPortsBulkDestroyWithResponse(ctx context.Context, body DcimPowerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkDestroyResponse, error) - - // DcimPowerPortsList request - DcimPowerPortsListWithResponse(ctx context.Context, params *DcimPowerPortsListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortsListResponse, error) - - // DcimPowerPortsBulkPartialUpdate request with any body - DcimPowerPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkPartialUpdateResponse, error) - - DcimPowerPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkPartialUpdateResponse, error) - - // DcimPowerPortsCreate request with any body - DcimPowerPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsCreateResponse, error) - - DcimPowerPortsCreateWithResponse(ctx context.Context, body DcimPowerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsCreateResponse, error) - - // DcimPowerPortsBulkUpdate request with any body - DcimPowerPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkUpdateResponse, error) - - DcimPowerPortsBulkUpdateWithResponse(ctx context.Context, body DcimPowerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkUpdateResponse, error) - - // DcimPowerPortsDestroy request - DcimPowerPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortsDestroyResponse, error) - - // DcimPowerPortsRetrieve request - DcimPowerPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortsRetrieveResponse, error) - - // DcimPowerPortsPartialUpdate request with any body - DcimPowerPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsPartialUpdateResponse, error) - - DcimPowerPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsPartialUpdateResponse, error) - - // DcimPowerPortsUpdate request with any body - DcimPowerPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsUpdateResponse, error) - - DcimPowerPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsUpdateResponse, error) - - // DcimPowerPortsNotesList request - DcimPowerPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortsNotesListResponse, error) - - // DcimPowerPortsNotesCreate request with any body - DcimPowerPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsNotesCreateResponse, error) - - DcimPowerPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsNotesCreateResponse, error) - - // DcimPowerPortsTraceRetrieve request - DcimPowerPortsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortsTraceRetrieveResponse, error) - - // DcimRackGroupsBulkDestroy request with any body - DcimRackGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkDestroyResponse, error) - - DcimRackGroupsBulkDestroyWithResponse(ctx context.Context, body DcimRackGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkDestroyResponse, error) - - // DcimRackGroupsList request - DcimRackGroupsListWithResponse(ctx context.Context, params *DcimRackGroupsListParams, reqEditors ...RequestEditorFn) (*DcimRackGroupsListResponse, error) - - // DcimRackGroupsBulkPartialUpdate request with any body - DcimRackGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkPartialUpdateResponse, error) - - DcimRackGroupsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRackGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkPartialUpdateResponse, error) - - // DcimRackGroupsCreate request with any body - DcimRackGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsCreateResponse, error) - - DcimRackGroupsCreateWithResponse(ctx context.Context, body DcimRackGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsCreateResponse, error) - - // DcimRackGroupsBulkUpdate request with any body - DcimRackGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkUpdateResponse, error) - - DcimRackGroupsBulkUpdateWithResponse(ctx context.Context, body DcimRackGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkUpdateResponse, error) - - // DcimRackGroupsDestroy request - DcimRackGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackGroupsDestroyResponse, error) - - // DcimRackGroupsRetrieve request - DcimRackGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackGroupsRetrieveResponse, error) - - // DcimRackGroupsPartialUpdate request with any body - DcimRackGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsPartialUpdateResponse, error) - - DcimRackGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsPartialUpdateResponse, error) - - // DcimRackGroupsUpdate request with any body - DcimRackGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsUpdateResponse, error) - - DcimRackGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsUpdateResponse, error) - - // DcimRackGroupsNotesList request - DcimRackGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRackGroupsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRackGroupsNotesListResponse, error) - - // DcimRackGroupsNotesCreate request with any body - DcimRackGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsNotesCreateResponse, error) - - DcimRackGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsNotesCreateResponse, error) - - // DcimRackReservationsBulkDestroy request with any body - DcimRackReservationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkDestroyResponse, error) - - DcimRackReservationsBulkDestroyWithResponse(ctx context.Context, body DcimRackReservationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkDestroyResponse, error) - - // DcimRackReservationsList request - DcimRackReservationsListWithResponse(ctx context.Context, params *DcimRackReservationsListParams, reqEditors ...RequestEditorFn) (*DcimRackReservationsListResponse, error) - - // DcimRackReservationsBulkPartialUpdate request with any body - DcimRackReservationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkPartialUpdateResponse, error) - - DcimRackReservationsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRackReservationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkPartialUpdateResponse, error) - - // DcimRackReservationsCreate request with any body - DcimRackReservationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsCreateResponse, error) - - DcimRackReservationsCreateWithResponse(ctx context.Context, body DcimRackReservationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsCreateResponse, error) - - // DcimRackReservationsBulkUpdate request with any body - DcimRackReservationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkUpdateResponse, error) - - DcimRackReservationsBulkUpdateWithResponse(ctx context.Context, body DcimRackReservationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkUpdateResponse, error) - - // DcimRackReservationsDestroy request - DcimRackReservationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackReservationsDestroyResponse, error) - - // DcimRackReservationsRetrieve request - DcimRackReservationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackReservationsRetrieveResponse, error) - - // DcimRackReservationsPartialUpdate request with any body - DcimRackReservationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsPartialUpdateResponse, error) - - DcimRackReservationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsPartialUpdateResponse, error) - - // DcimRackReservationsUpdate request with any body - DcimRackReservationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsUpdateResponse, error) - - DcimRackReservationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsUpdateResponse, error) - - // DcimRackReservationsNotesList request - DcimRackReservationsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRackReservationsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRackReservationsNotesListResponse, error) - - // DcimRackReservationsNotesCreate request with any body - DcimRackReservationsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsNotesCreateResponse, error) - - DcimRackReservationsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsNotesCreateResponse, error) - - // DcimRackRolesBulkDestroy request with any body - DcimRackRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkDestroyResponse, error) - - DcimRackRolesBulkDestroyWithResponse(ctx context.Context, body DcimRackRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkDestroyResponse, error) - - // DcimRackRolesList request - DcimRackRolesListWithResponse(ctx context.Context, params *DcimRackRolesListParams, reqEditors ...RequestEditorFn) (*DcimRackRolesListResponse, error) - - // DcimRackRolesBulkPartialUpdate request with any body - DcimRackRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkPartialUpdateResponse, error) - - DcimRackRolesBulkPartialUpdateWithResponse(ctx context.Context, body DcimRackRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkPartialUpdateResponse, error) - - // DcimRackRolesCreate request with any body - DcimRackRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesCreateResponse, error) - - DcimRackRolesCreateWithResponse(ctx context.Context, body DcimRackRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesCreateResponse, error) - - // DcimRackRolesBulkUpdate request with any body - DcimRackRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkUpdateResponse, error) - - DcimRackRolesBulkUpdateWithResponse(ctx context.Context, body DcimRackRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkUpdateResponse, error) - - // DcimRackRolesDestroy request - DcimRackRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackRolesDestroyResponse, error) - - // DcimRackRolesRetrieve request - DcimRackRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackRolesRetrieveResponse, error) - - // DcimRackRolesPartialUpdate request with any body - DcimRackRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesPartialUpdateResponse, error) - - DcimRackRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesPartialUpdateResponse, error) - - // DcimRackRolesUpdate request with any body - DcimRackRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesUpdateResponse, error) - - DcimRackRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesUpdateResponse, error) - - // DcimRackRolesNotesList request - DcimRackRolesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRackRolesNotesListParams, reqEditors ...RequestEditorFn) (*DcimRackRolesNotesListResponse, error) - - // DcimRackRolesNotesCreate request with any body - DcimRackRolesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesNotesCreateResponse, error) - - DcimRackRolesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesNotesCreateResponse, error) - - // DcimRacksBulkDestroy request with any body - DcimRacksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksBulkDestroyResponse, error) - - DcimRacksBulkDestroyWithResponse(ctx context.Context, body DcimRacksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksBulkDestroyResponse, error) - - // DcimRacksList request - DcimRacksListWithResponse(ctx context.Context, params *DcimRacksListParams, reqEditors ...RequestEditorFn) (*DcimRacksListResponse, error) - - // DcimRacksBulkPartialUpdate request with any body - DcimRacksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksBulkPartialUpdateResponse, error) - - DcimRacksBulkPartialUpdateWithResponse(ctx context.Context, body DcimRacksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksBulkPartialUpdateResponse, error) - - // DcimRacksCreate request with any body - DcimRacksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksCreateResponse, error) - - DcimRacksCreateWithResponse(ctx context.Context, body DcimRacksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksCreateResponse, error) - - // DcimRacksBulkUpdate request with any body - DcimRacksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksBulkUpdateResponse, error) - - DcimRacksBulkUpdateWithResponse(ctx context.Context, body DcimRacksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksBulkUpdateResponse, error) - - // DcimRacksDestroy request - DcimRacksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRacksDestroyResponse, error) - - // DcimRacksRetrieve request - DcimRacksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRacksRetrieveResponse, error) - - // DcimRacksPartialUpdate request with any body - DcimRacksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksPartialUpdateResponse, error) - - DcimRacksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRacksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksPartialUpdateResponse, error) - - // DcimRacksUpdate request with any body - DcimRacksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksUpdateResponse, error) - - DcimRacksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRacksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksUpdateResponse, error) - - // DcimRacksElevationList request - DcimRacksElevationListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRacksElevationListParams, reqEditors ...RequestEditorFn) (*DcimRacksElevationListResponse, error) - - // DcimRacksNotesList request - DcimRacksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRacksNotesListParams, reqEditors ...RequestEditorFn) (*DcimRacksNotesListResponse, error) - - // DcimRacksNotesCreate request with any body - DcimRacksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksNotesCreateResponse, error) - - DcimRacksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRacksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksNotesCreateResponse, error) - - // DcimRearPortTemplatesBulkDestroy request with any body - DcimRearPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkDestroyResponse, error) - - DcimRearPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimRearPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkDestroyResponse, error) - - // DcimRearPortTemplatesList request - DcimRearPortTemplatesListWithResponse(ctx context.Context, params *DcimRearPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesListResponse, error) - - // DcimRearPortTemplatesBulkPartialUpdate request with any body - DcimRearPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkPartialUpdateResponse, error) - - DcimRearPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimRearPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkPartialUpdateResponse, error) - - // DcimRearPortTemplatesCreate request with any body - DcimRearPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesCreateResponse, error) - - DcimRearPortTemplatesCreateWithResponse(ctx context.Context, body DcimRearPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesCreateResponse, error) - - // DcimRearPortTemplatesBulkUpdate request with any body - DcimRearPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkUpdateResponse, error) - - DcimRearPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimRearPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkUpdateResponse, error) - - // DcimRearPortTemplatesDestroy request - DcimRearPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesDestroyResponse, error) - - // DcimRearPortTemplatesRetrieve request - DcimRearPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesRetrieveResponse, error) - - // DcimRearPortTemplatesPartialUpdate request with any body - DcimRearPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesPartialUpdateResponse, error) - - DcimRearPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesPartialUpdateResponse, error) - - // DcimRearPortTemplatesUpdate request with any body - DcimRearPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesUpdateResponse, error) - - DcimRearPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesUpdateResponse, error) - - // DcimRearPortTemplatesNotesList request - DcimRearPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRearPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesNotesListResponse, error) - - // DcimRearPortTemplatesNotesCreate request with any body - DcimRearPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesNotesCreateResponse, error) - - DcimRearPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesNotesCreateResponse, error) - - // DcimRearPortsBulkDestroy request with any body - DcimRearPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkDestroyResponse, error) - - DcimRearPortsBulkDestroyWithResponse(ctx context.Context, body DcimRearPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkDestroyResponse, error) - - // DcimRearPortsList request - DcimRearPortsListWithResponse(ctx context.Context, params *DcimRearPortsListParams, reqEditors ...RequestEditorFn) (*DcimRearPortsListResponse, error) - - // DcimRearPortsBulkPartialUpdate request with any body - DcimRearPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkPartialUpdateResponse, error) - - DcimRearPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRearPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkPartialUpdateResponse, error) - - // DcimRearPortsCreate request with any body - DcimRearPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsCreateResponse, error) - - DcimRearPortsCreateWithResponse(ctx context.Context, body DcimRearPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsCreateResponse, error) - - // DcimRearPortsBulkUpdate request with any body - DcimRearPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkUpdateResponse, error) - - DcimRearPortsBulkUpdateWithResponse(ctx context.Context, body DcimRearPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkUpdateResponse, error) - - // DcimRearPortsDestroy request - DcimRearPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortsDestroyResponse, error) - - // DcimRearPortsRetrieve request - DcimRearPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortsRetrieveResponse, error) - - // DcimRearPortsPartialUpdate request with any body - DcimRearPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsPartialUpdateResponse, error) - - DcimRearPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsPartialUpdateResponse, error) - - // DcimRearPortsUpdate request with any body - DcimRearPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsUpdateResponse, error) - - DcimRearPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsUpdateResponse, error) - - // DcimRearPortsNotesList request - DcimRearPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRearPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRearPortsNotesListResponse, error) - - // DcimRearPortsNotesCreate request with any body - DcimRearPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsNotesCreateResponse, error) - - DcimRearPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsNotesCreateResponse, error) - - // DcimRearPortsPathsRetrieve request - DcimRearPortsPathsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortsPathsRetrieveResponse, error) - - // DcimRegionsBulkDestroy request with any body - DcimRegionsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsBulkDestroyResponse, error) - - DcimRegionsBulkDestroyWithResponse(ctx context.Context, body DcimRegionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsBulkDestroyResponse, error) - - // DcimRegionsList request - DcimRegionsListWithResponse(ctx context.Context, params *DcimRegionsListParams, reqEditors ...RequestEditorFn) (*DcimRegionsListResponse, error) - - // DcimRegionsBulkPartialUpdate request with any body - DcimRegionsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsBulkPartialUpdateResponse, error) - - DcimRegionsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRegionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsBulkPartialUpdateResponse, error) - - // DcimRegionsCreate request with any body - DcimRegionsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsCreateResponse, error) - - DcimRegionsCreateWithResponse(ctx context.Context, body DcimRegionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsCreateResponse, error) - - // DcimRegionsBulkUpdate request with any body - DcimRegionsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsBulkUpdateResponse, error) - - DcimRegionsBulkUpdateWithResponse(ctx context.Context, body DcimRegionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsBulkUpdateResponse, error) - - // DcimRegionsDestroy request - DcimRegionsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRegionsDestroyResponse, error) - - // DcimRegionsRetrieve request - DcimRegionsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRegionsRetrieveResponse, error) - - // DcimRegionsPartialUpdate request with any body - DcimRegionsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsPartialUpdateResponse, error) - - DcimRegionsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRegionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsPartialUpdateResponse, error) - - // DcimRegionsUpdate request with any body - DcimRegionsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsUpdateResponse, error) - - DcimRegionsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRegionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsUpdateResponse, error) - - // DcimRegionsNotesList request - DcimRegionsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRegionsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRegionsNotesListResponse, error) - - // DcimRegionsNotesCreate request with any body - DcimRegionsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsNotesCreateResponse, error) - - DcimRegionsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRegionsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsNotesCreateResponse, error) - - // DcimSitesBulkDestroy request with any body - DcimSitesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesBulkDestroyResponse, error) - - DcimSitesBulkDestroyWithResponse(ctx context.Context, body DcimSitesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesBulkDestroyResponse, error) - - // DcimSitesList request - DcimSitesListWithResponse(ctx context.Context, params *DcimSitesListParams, reqEditors ...RequestEditorFn) (*DcimSitesListResponse, error) - - // DcimSitesBulkPartialUpdate request with any body - DcimSitesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesBulkPartialUpdateResponse, error) - - DcimSitesBulkPartialUpdateWithResponse(ctx context.Context, body DcimSitesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesBulkPartialUpdateResponse, error) - - // DcimSitesCreate request with any body - DcimSitesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesCreateResponse, error) - - DcimSitesCreateWithResponse(ctx context.Context, body DcimSitesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesCreateResponse, error) - - // DcimSitesBulkUpdate request with any body - DcimSitesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesBulkUpdateResponse, error) - - DcimSitesBulkUpdateWithResponse(ctx context.Context, body DcimSitesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesBulkUpdateResponse, error) - - // DcimSitesDestroy request - DcimSitesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimSitesDestroyResponse, error) - - // DcimSitesRetrieve request - DcimSitesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimSitesRetrieveResponse, error) - - // DcimSitesPartialUpdate request with any body - DcimSitesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesPartialUpdateResponse, error) - - DcimSitesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimSitesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesPartialUpdateResponse, error) - - // DcimSitesUpdate request with any body - DcimSitesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesUpdateResponse, error) - - DcimSitesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimSitesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesUpdateResponse, error) - - // DcimSitesNotesList request - DcimSitesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimSitesNotesListParams, reqEditors ...RequestEditorFn) (*DcimSitesNotesListResponse, error) - - // DcimSitesNotesCreate request with any body - DcimSitesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesNotesCreateResponse, error) - - DcimSitesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimSitesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesNotesCreateResponse, error) - - // DcimVirtualChassisBulkDestroy request with any body - DcimVirtualChassisBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkDestroyResponse, error) - - DcimVirtualChassisBulkDestroyWithResponse(ctx context.Context, body DcimVirtualChassisBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkDestroyResponse, error) - - // DcimVirtualChassisList request - DcimVirtualChassisListWithResponse(ctx context.Context, params *DcimVirtualChassisListParams, reqEditors ...RequestEditorFn) (*DcimVirtualChassisListResponse, error) - - // DcimVirtualChassisBulkPartialUpdate request with any body - DcimVirtualChassisBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkPartialUpdateResponse, error) - - DcimVirtualChassisBulkPartialUpdateWithResponse(ctx context.Context, body DcimVirtualChassisBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkPartialUpdateResponse, error) - - // DcimVirtualChassisCreate request with any body - DcimVirtualChassisCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisCreateResponse, error) - - DcimVirtualChassisCreateWithResponse(ctx context.Context, body DcimVirtualChassisCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisCreateResponse, error) - - // DcimVirtualChassisBulkUpdate request with any body - DcimVirtualChassisBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkUpdateResponse, error) - - DcimVirtualChassisBulkUpdateWithResponse(ctx context.Context, body DcimVirtualChassisBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkUpdateResponse, error) - - // DcimVirtualChassisDestroy request - DcimVirtualChassisDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimVirtualChassisDestroyResponse, error) - - // DcimVirtualChassisRetrieve request - DcimVirtualChassisRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimVirtualChassisRetrieveResponse, error) - - // DcimVirtualChassisPartialUpdate request with any body - DcimVirtualChassisPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisPartialUpdateResponse, error) - - DcimVirtualChassisPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisPartialUpdateResponse, error) - - // DcimVirtualChassisUpdate request with any body - DcimVirtualChassisUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisUpdateResponse, error) - - DcimVirtualChassisUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisUpdateResponse, error) - - // DcimVirtualChassisNotesList request - DcimVirtualChassisNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimVirtualChassisNotesListParams, reqEditors ...RequestEditorFn) (*DcimVirtualChassisNotesListResponse, error) - - // DcimVirtualChassisNotesCreate request with any body - DcimVirtualChassisNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisNotesCreateResponse, error) - - DcimVirtualChassisNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisNotesCreateResponse, error) - - // ExtrasComputedFieldsBulkDestroy request with any body - ExtrasComputedFieldsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkDestroyResponse, error) - - ExtrasComputedFieldsBulkDestroyWithResponse(ctx context.Context, body ExtrasComputedFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkDestroyResponse, error) - - // ExtrasComputedFieldsList request - ExtrasComputedFieldsListWithResponse(ctx context.Context, params *ExtrasComputedFieldsListParams, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsListResponse, error) - - // ExtrasComputedFieldsBulkPartialUpdate request with any body - ExtrasComputedFieldsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkPartialUpdateResponse, error) - - ExtrasComputedFieldsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasComputedFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkPartialUpdateResponse, error) - - // ExtrasComputedFieldsCreate request with any body - ExtrasComputedFieldsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsCreateResponse, error) - - ExtrasComputedFieldsCreateWithResponse(ctx context.Context, body ExtrasComputedFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsCreateResponse, error) - - // ExtrasComputedFieldsBulkUpdate request with any body - ExtrasComputedFieldsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkUpdateResponse, error) - - ExtrasComputedFieldsBulkUpdateWithResponse(ctx context.Context, body ExtrasComputedFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkUpdateResponse, error) - - // ExtrasComputedFieldsDestroy request - ExtrasComputedFieldsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsDestroyResponse, error) - - // ExtrasComputedFieldsRetrieve request - ExtrasComputedFieldsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsRetrieveResponse, error) - - // ExtrasComputedFieldsPartialUpdate request with any body - ExtrasComputedFieldsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsPartialUpdateResponse, error) - - ExtrasComputedFieldsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsPartialUpdateResponse, error) - - // ExtrasComputedFieldsUpdate request with any body - ExtrasComputedFieldsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsUpdateResponse, error) - - ExtrasComputedFieldsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsUpdateResponse, error) - - // ExtrasComputedFieldsNotesList request - ExtrasComputedFieldsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasComputedFieldsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsNotesListResponse, error) - - // ExtrasComputedFieldsNotesCreate request with any body - ExtrasComputedFieldsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsNotesCreateResponse, error) - - ExtrasComputedFieldsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsNotesCreateResponse, error) - - // ExtrasConfigContextSchemasBulkDestroy request with any body - ExtrasConfigContextSchemasBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkDestroyResponse, error) - - ExtrasConfigContextSchemasBulkDestroyWithResponse(ctx context.Context, body ExtrasConfigContextSchemasBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkDestroyResponse, error) - - // ExtrasConfigContextSchemasList request - ExtrasConfigContextSchemasListWithResponse(ctx context.Context, params *ExtrasConfigContextSchemasListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasListResponse, error) - - // ExtrasConfigContextSchemasBulkPartialUpdate request with any body - ExtrasConfigContextSchemasBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkPartialUpdateResponse, error) - - ExtrasConfigContextSchemasBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasConfigContextSchemasBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkPartialUpdateResponse, error) - - // ExtrasConfigContextSchemasCreate request with any body - ExtrasConfigContextSchemasCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasCreateResponse, error) - - ExtrasConfigContextSchemasCreateWithResponse(ctx context.Context, body ExtrasConfigContextSchemasCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasCreateResponse, error) - - // ExtrasConfigContextSchemasBulkUpdate request with any body - ExtrasConfigContextSchemasBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkUpdateResponse, error) - - ExtrasConfigContextSchemasBulkUpdateWithResponse(ctx context.Context, body ExtrasConfigContextSchemasBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkUpdateResponse, error) - - // ExtrasConfigContextSchemasDestroy request - ExtrasConfigContextSchemasDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasDestroyResponse, error) - - // ExtrasConfigContextSchemasRetrieve request - ExtrasConfigContextSchemasRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasRetrieveResponse, error) - - // ExtrasConfigContextSchemasPartialUpdate request with any body - ExtrasConfigContextSchemasPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasPartialUpdateResponse, error) - - ExtrasConfigContextSchemasPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasPartialUpdateResponse, error) - - // ExtrasConfigContextSchemasUpdate request with any body - ExtrasConfigContextSchemasUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasUpdateResponse, error) - - ExtrasConfigContextSchemasUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasUpdateResponse, error) - - // ExtrasConfigContextSchemasNotesList request - ExtrasConfigContextSchemasNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextSchemasNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasNotesListResponse, error) - - // ExtrasConfigContextSchemasNotesCreate request with any body - ExtrasConfigContextSchemasNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasNotesCreateResponse, error) - - ExtrasConfigContextSchemasNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasNotesCreateResponse, error) - - // ExtrasConfigContextsBulkDestroy request with any body - ExtrasConfigContextsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkDestroyResponse, error) - - ExtrasConfigContextsBulkDestroyWithResponse(ctx context.Context, body ExtrasConfigContextsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkDestroyResponse, error) - - // ExtrasConfigContextsList request - ExtrasConfigContextsListWithResponse(ctx context.Context, params *ExtrasConfigContextsListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsListResponse, error) - - // ExtrasConfigContextsBulkPartialUpdate request with any body - ExtrasConfigContextsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkPartialUpdateResponse, error) - - ExtrasConfigContextsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasConfigContextsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkPartialUpdateResponse, error) - - // ExtrasConfigContextsCreate request with any body - ExtrasConfigContextsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsCreateResponse, error) - - ExtrasConfigContextsCreateWithResponse(ctx context.Context, body ExtrasConfigContextsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsCreateResponse, error) - - // ExtrasConfigContextsBulkUpdate request with any body - ExtrasConfigContextsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkUpdateResponse, error) - - ExtrasConfigContextsBulkUpdateWithResponse(ctx context.Context, body ExtrasConfigContextsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkUpdateResponse, error) - - // ExtrasConfigContextsDestroy request - ExtrasConfigContextsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsDestroyResponse, error) - - // ExtrasConfigContextsRetrieve request - ExtrasConfigContextsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsRetrieveResponse, error) - - // ExtrasConfigContextsPartialUpdate request with any body - ExtrasConfigContextsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsPartialUpdateResponse, error) - - ExtrasConfigContextsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsPartialUpdateResponse, error) - - // ExtrasConfigContextsUpdate request with any body - ExtrasConfigContextsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsUpdateResponse, error) - - ExtrasConfigContextsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsUpdateResponse, error) - - // ExtrasConfigContextsNotesList request - ExtrasConfigContextsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsNotesListResponse, error) - - // ExtrasConfigContextsNotesCreate request with any body - ExtrasConfigContextsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsNotesCreateResponse, error) - - ExtrasConfigContextsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsNotesCreateResponse, error) - - // ExtrasContentTypesList request - ExtrasContentTypesListWithResponse(ctx context.Context, params *ExtrasContentTypesListParams, reqEditors ...RequestEditorFn) (*ExtrasContentTypesListResponse, error) - - // ExtrasContentTypesRetrieve request - ExtrasContentTypesRetrieveWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*ExtrasContentTypesRetrieveResponse, error) - - // ExtrasCustomFieldChoicesBulkDestroy request with any body - ExtrasCustomFieldChoicesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkDestroyResponse, error) - - ExtrasCustomFieldChoicesBulkDestroyWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkDestroyResponse, error) - - // ExtrasCustomFieldChoicesList request - ExtrasCustomFieldChoicesListWithResponse(ctx context.Context, params *ExtrasCustomFieldChoicesListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesListResponse, error) - - // ExtrasCustomFieldChoicesBulkPartialUpdate request with any body - ExtrasCustomFieldChoicesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkPartialUpdateResponse, error) - - ExtrasCustomFieldChoicesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkPartialUpdateResponse, error) - - // ExtrasCustomFieldChoicesCreate request with any body - ExtrasCustomFieldChoicesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesCreateResponse, error) - - ExtrasCustomFieldChoicesCreateWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesCreateResponse, error) - - // ExtrasCustomFieldChoicesBulkUpdate request with any body - ExtrasCustomFieldChoicesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkUpdateResponse, error) - - ExtrasCustomFieldChoicesBulkUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkUpdateResponse, error) - - // ExtrasCustomFieldChoicesDestroy request - ExtrasCustomFieldChoicesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesDestroyResponse, error) - - // ExtrasCustomFieldChoicesRetrieve request - ExtrasCustomFieldChoicesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesRetrieveResponse, error) - - // ExtrasCustomFieldChoicesPartialUpdate request with any body - ExtrasCustomFieldChoicesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesPartialUpdateResponse, error) - - ExtrasCustomFieldChoicesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesPartialUpdateResponse, error) - - // ExtrasCustomFieldChoicesUpdate request with any body - ExtrasCustomFieldChoicesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesUpdateResponse, error) - - ExtrasCustomFieldChoicesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesUpdateResponse, error) - - // ExtrasCustomFieldsBulkDestroy request with any body - ExtrasCustomFieldsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkDestroyResponse, error) - - ExtrasCustomFieldsBulkDestroyWithResponse(ctx context.Context, body ExtrasCustomFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkDestroyResponse, error) - - // ExtrasCustomFieldsList request - ExtrasCustomFieldsListWithResponse(ctx context.Context, params *ExtrasCustomFieldsListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsListResponse, error) - - // ExtrasCustomFieldsBulkPartialUpdate request with any body - ExtrasCustomFieldsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkPartialUpdateResponse, error) - - ExtrasCustomFieldsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkPartialUpdateResponse, error) - - // ExtrasCustomFieldsCreate request with any body - ExtrasCustomFieldsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsCreateResponse, error) - - ExtrasCustomFieldsCreateWithResponse(ctx context.Context, body ExtrasCustomFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsCreateResponse, error) - - // ExtrasCustomFieldsBulkUpdate request with any body - ExtrasCustomFieldsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkUpdateResponse, error) - - ExtrasCustomFieldsBulkUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkUpdateResponse, error) - - // ExtrasCustomFieldsDestroy request - ExtrasCustomFieldsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsDestroyResponse, error) - - // ExtrasCustomFieldsRetrieve request - ExtrasCustomFieldsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsRetrieveResponse, error) - - // ExtrasCustomFieldsPartialUpdate request with any body - ExtrasCustomFieldsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsPartialUpdateResponse, error) - - ExtrasCustomFieldsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsPartialUpdateResponse, error) - - // ExtrasCustomFieldsUpdate request with any body - ExtrasCustomFieldsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsUpdateResponse, error) - - ExtrasCustomFieldsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsUpdateResponse, error) - - // ExtrasCustomFieldsNotesList request - ExtrasCustomFieldsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomFieldsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsNotesListResponse, error) - - // ExtrasCustomFieldsNotesCreate request with any body - ExtrasCustomFieldsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsNotesCreateResponse, error) - - ExtrasCustomFieldsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsNotesCreateResponse, error) - - // ExtrasCustomLinksBulkDestroy request with any body - ExtrasCustomLinksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkDestroyResponse, error) - - ExtrasCustomLinksBulkDestroyWithResponse(ctx context.Context, body ExtrasCustomLinksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkDestroyResponse, error) - - // ExtrasCustomLinksList request - ExtrasCustomLinksListWithResponse(ctx context.Context, params *ExtrasCustomLinksListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksListResponse, error) - - // ExtrasCustomLinksBulkPartialUpdate request with any body - ExtrasCustomLinksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkPartialUpdateResponse, error) - - ExtrasCustomLinksBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasCustomLinksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkPartialUpdateResponse, error) - - // ExtrasCustomLinksCreate request with any body - ExtrasCustomLinksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksCreateResponse, error) - - ExtrasCustomLinksCreateWithResponse(ctx context.Context, body ExtrasCustomLinksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksCreateResponse, error) - - // ExtrasCustomLinksBulkUpdate request with any body - ExtrasCustomLinksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkUpdateResponse, error) - - ExtrasCustomLinksBulkUpdateWithResponse(ctx context.Context, body ExtrasCustomLinksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkUpdateResponse, error) - - // ExtrasCustomLinksDestroy request - ExtrasCustomLinksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksDestroyResponse, error) - - // ExtrasCustomLinksRetrieve request - ExtrasCustomLinksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksRetrieveResponse, error) - - // ExtrasCustomLinksPartialUpdate request with any body - ExtrasCustomLinksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksPartialUpdateResponse, error) - - ExtrasCustomLinksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksPartialUpdateResponse, error) - - // ExtrasCustomLinksUpdate request with any body - ExtrasCustomLinksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksUpdateResponse, error) - - ExtrasCustomLinksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksUpdateResponse, error) - - // ExtrasCustomLinksNotesList request - ExtrasCustomLinksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomLinksNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksNotesListResponse, error) - - // ExtrasCustomLinksNotesCreate request with any body - ExtrasCustomLinksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksNotesCreateResponse, error) - - ExtrasCustomLinksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksNotesCreateResponse, error) - - // ExtrasDynamicGroupMembershipsBulkDestroy request with any body - ExtrasDynamicGroupMembershipsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkDestroyResponse, error) - - ExtrasDynamicGroupMembershipsBulkDestroyWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkDestroyResponse, error) - - // ExtrasDynamicGroupMembershipsList request - ExtrasDynamicGroupMembershipsListWithResponse(ctx context.Context, params *ExtrasDynamicGroupMembershipsListParams, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsListResponse, error) - - // ExtrasDynamicGroupMembershipsBulkPartialUpdate request with any body - ExtrasDynamicGroupMembershipsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse, error) - - ExtrasDynamicGroupMembershipsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse, error) - - // ExtrasDynamicGroupMembershipsCreate request with any body - ExtrasDynamicGroupMembershipsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsCreateResponse, error) - - ExtrasDynamicGroupMembershipsCreateWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsCreateResponse, error) - - // ExtrasDynamicGroupMembershipsBulkUpdate request with any body - ExtrasDynamicGroupMembershipsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkUpdateResponse, error) - - ExtrasDynamicGroupMembershipsBulkUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkUpdateResponse, error) - - // ExtrasDynamicGroupMembershipsDestroy request - ExtrasDynamicGroupMembershipsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsDestroyResponse, error) - - // ExtrasDynamicGroupMembershipsRetrieve request - ExtrasDynamicGroupMembershipsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsRetrieveResponse, error) - - // ExtrasDynamicGroupMembershipsPartialUpdate request with any body - ExtrasDynamicGroupMembershipsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsPartialUpdateResponse, error) - - ExtrasDynamicGroupMembershipsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsPartialUpdateResponse, error) - - // ExtrasDynamicGroupMembershipsUpdate request with any body - ExtrasDynamicGroupMembershipsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsUpdateResponse, error) - - ExtrasDynamicGroupMembershipsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsUpdateResponse, error) - - // ExtrasDynamicGroupsBulkDestroy request with any body - ExtrasDynamicGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkDestroyResponse, error) - - ExtrasDynamicGroupsBulkDestroyWithResponse(ctx context.Context, body ExtrasDynamicGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkDestroyResponse, error) - - // ExtrasDynamicGroupsList request - ExtrasDynamicGroupsListWithResponse(ctx context.Context, params *ExtrasDynamicGroupsListParams, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsListResponse, error) - - // ExtrasDynamicGroupsBulkPartialUpdate request with any body - ExtrasDynamicGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkPartialUpdateResponse, error) - - ExtrasDynamicGroupsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkPartialUpdateResponse, error) - - // ExtrasDynamicGroupsCreate request with any body - ExtrasDynamicGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsCreateResponse, error) - - ExtrasDynamicGroupsCreateWithResponse(ctx context.Context, body ExtrasDynamicGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsCreateResponse, error) - - // ExtrasDynamicGroupsBulkUpdate request with any body - ExtrasDynamicGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkUpdateResponse, error) - - ExtrasDynamicGroupsBulkUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkUpdateResponse, error) - - // ExtrasDynamicGroupsDestroy request - ExtrasDynamicGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsDestroyResponse, error) - - // ExtrasDynamicGroupsRetrieve request - ExtrasDynamicGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsRetrieveResponse, error) - - // ExtrasDynamicGroupsPartialUpdate request with any body - ExtrasDynamicGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsPartialUpdateResponse, error) - - ExtrasDynamicGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsPartialUpdateResponse, error) - - // ExtrasDynamicGroupsUpdate request with any body - ExtrasDynamicGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsUpdateResponse, error) - - ExtrasDynamicGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsUpdateResponse, error) - - // ExtrasDynamicGroupsMembersRetrieve request - ExtrasDynamicGroupsMembersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsMembersRetrieveResponse, error) - - // ExtrasDynamicGroupsNotesList request - ExtrasDynamicGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasDynamicGroupsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsNotesListResponse, error) - - // ExtrasDynamicGroupsNotesCreate request with any body - ExtrasDynamicGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsNotesCreateResponse, error) - - ExtrasDynamicGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsNotesCreateResponse, error) - - // ExtrasExportTemplatesBulkDestroy request with any body - ExtrasExportTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkDestroyResponse, error) - - ExtrasExportTemplatesBulkDestroyWithResponse(ctx context.Context, body ExtrasExportTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkDestroyResponse, error) - - // ExtrasExportTemplatesList request - ExtrasExportTemplatesListWithResponse(ctx context.Context, params *ExtrasExportTemplatesListParams, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesListResponse, error) - - // ExtrasExportTemplatesBulkPartialUpdate request with any body - ExtrasExportTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkPartialUpdateResponse, error) - - ExtrasExportTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasExportTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkPartialUpdateResponse, error) - - // ExtrasExportTemplatesCreate request with any body - ExtrasExportTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesCreateResponse, error) - - ExtrasExportTemplatesCreateWithResponse(ctx context.Context, body ExtrasExportTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesCreateResponse, error) - - // ExtrasExportTemplatesBulkUpdate request with any body - ExtrasExportTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkUpdateResponse, error) - - ExtrasExportTemplatesBulkUpdateWithResponse(ctx context.Context, body ExtrasExportTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkUpdateResponse, error) - - // ExtrasExportTemplatesDestroy request - ExtrasExportTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesDestroyResponse, error) - - // ExtrasExportTemplatesRetrieve request - ExtrasExportTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesRetrieveResponse, error) - - // ExtrasExportTemplatesPartialUpdate request with any body - ExtrasExportTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesPartialUpdateResponse, error) - - ExtrasExportTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesPartialUpdateResponse, error) - - // ExtrasExportTemplatesUpdate request with any body - ExtrasExportTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesUpdateResponse, error) - - ExtrasExportTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesUpdateResponse, error) - - // ExtrasExportTemplatesNotesList request - ExtrasExportTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasExportTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesNotesListResponse, error) - - // ExtrasExportTemplatesNotesCreate request with any body - ExtrasExportTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesNotesCreateResponse, error) - - ExtrasExportTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesNotesCreateResponse, error) - - // ExtrasGitRepositoriesBulkDestroy request with any body - ExtrasGitRepositoriesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkDestroyResponse, error) - - ExtrasGitRepositoriesBulkDestroyWithResponse(ctx context.Context, body ExtrasGitRepositoriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkDestroyResponse, error) - - // ExtrasGitRepositoriesList request - ExtrasGitRepositoriesListWithResponse(ctx context.Context, params *ExtrasGitRepositoriesListParams, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesListResponse, error) - - // ExtrasGitRepositoriesBulkPartialUpdate request with any body - ExtrasGitRepositoriesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkPartialUpdateResponse, error) - - ExtrasGitRepositoriesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasGitRepositoriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkPartialUpdateResponse, error) - - // ExtrasGitRepositoriesCreate request with any body - ExtrasGitRepositoriesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesCreateResponse, error) - - ExtrasGitRepositoriesCreateWithResponse(ctx context.Context, body ExtrasGitRepositoriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesCreateResponse, error) - - // ExtrasGitRepositoriesBulkUpdate request with any body - ExtrasGitRepositoriesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkUpdateResponse, error) - - ExtrasGitRepositoriesBulkUpdateWithResponse(ctx context.Context, body ExtrasGitRepositoriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkUpdateResponse, error) - - // ExtrasGitRepositoriesDestroy request - ExtrasGitRepositoriesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesDestroyResponse, error) - - // ExtrasGitRepositoriesRetrieve request - ExtrasGitRepositoriesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesRetrieveResponse, error) - - // ExtrasGitRepositoriesPartialUpdate request with any body - ExtrasGitRepositoriesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesPartialUpdateResponse, error) - - ExtrasGitRepositoriesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesPartialUpdateResponse, error) - - // ExtrasGitRepositoriesUpdate request with any body - ExtrasGitRepositoriesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesUpdateResponse, error) - - ExtrasGitRepositoriesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesUpdateResponse, error) - - // ExtrasGitRepositoriesNotesList request - ExtrasGitRepositoriesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasGitRepositoriesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesNotesListResponse, error) - - // ExtrasGitRepositoriesNotesCreate request with any body - ExtrasGitRepositoriesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesNotesCreateResponse, error) - - ExtrasGitRepositoriesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesNotesCreateResponse, error) - - // ExtrasGitRepositoriesSyncCreate request with any body - ExtrasGitRepositoriesSyncCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesSyncCreateResponse, error) - - ExtrasGitRepositoriesSyncCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesSyncCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesSyncCreateResponse, error) - - // ExtrasGraphqlQueriesBulkDestroy request with any body - ExtrasGraphqlQueriesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkDestroyResponse, error) - - ExtrasGraphqlQueriesBulkDestroyWithResponse(ctx context.Context, body ExtrasGraphqlQueriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkDestroyResponse, error) - - // ExtrasGraphqlQueriesList request - ExtrasGraphqlQueriesListWithResponse(ctx context.Context, params *ExtrasGraphqlQueriesListParams, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesListResponse, error) - - // ExtrasGraphqlQueriesBulkPartialUpdate request with any body - ExtrasGraphqlQueriesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkPartialUpdateResponse, error) - - ExtrasGraphqlQueriesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasGraphqlQueriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkPartialUpdateResponse, error) - - // ExtrasGraphqlQueriesCreate request with any body - ExtrasGraphqlQueriesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesCreateResponse, error) - - ExtrasGraphqlQueriesCreateWithResponse(ctx context.Context, body ExtrasGraphqlQueriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesCreateResponse, error) - - // ExtrasGraphqlQueriesBulkUpdate request with any body - ExtrasGraphqlQueriesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkUpdateResponse, error) - - ExtrasGraphqlQueriesBulkUpdateWithResponse(ctx context.Context, body ExtrasGraphqlQueriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkUpdateResponse, error) - - // ExtrasGraphqlQueriesDestroy request - ExtrasGraphqlQueriesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesDestroyResponse, error) - - // ExtrasGraphqlQueriesRetrieve request - ExtrasGraphqlQueriesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesRetrieveResponse, error) - - // ExtrasGraphqlQueriesPartialUpdate request with any body - ExtrasGraphqlQueriesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesPartialUpdateResponse, error) - - ExtrasGraphqlQueriesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesPartialUpdateResponse, error) - - // ExtrasGraphqlQueriesUpdate request with any body - ExtrasGraphqlQueriesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesUpdateResponse, error) - - ExtrasGraphqlQueriesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesUpdateResponse, error) - - // ExtrasGraphqlQueriesNotesList request - ExtrasGraphqlQueriesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasGraphqlQueriesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesNotesListResponse, error) - - // ExtrasGraphqlQueriesNotesCreate request with any body - ExtrasGraphqlQueriesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesNotesCreateResponse, error) - - ExtrasGraphqlQueriesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesNotesCreateResponse, error) - - // ExtrasGraphqlQueriesRunCreate request with any body - ExtrasGraphqlQueriesRunCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesRunCreateResponse, error) - - ExtrasGraphqlQueriesRunCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesRunCreateResponse, error) - - // ExtrasImageAttachmentsBulkDestroy request with any body - ExtrasImageAttachmentsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkDestroyResponse, error) - - ExtrasImageAttachmentsBulkDestroyWithResponse(ctx context.Context, body ExtrasImageAttachmentsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkDestroyResponse, error) - - // ExtrasImageAttachmentsList request - ExtrasImageAttachmentsListWithResponse(ctx context.Context, params *ExtrasImageAttachmentsListParams, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsListResponse, error) - - // ExtrasImageAttachmentsBulkPartialUpdate request with any body - ExtrasImageAttachmentsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkPartialUpdateResponse, error) - - ExtrasImageAttachmentsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasImageAttachmentsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkPartialUpdateResponse, error) - - // ExtrasImageAttachmentsCreate request with any body - ExtrasImageAttachmentsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsCreateResponse, error) - - ExtrasImageAttachmentsCreateWithResponse(ctx context.Context, body ExtrasImageAttachmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsCreateResponse, error) - - // ExtrasImageAttachmentsBulkUpdate request with any body - ExtrasImageAttachmentsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkUpdateResponse, error) - - ExtrasImageAttachmentsBulkUpdateWithResponse(ctx context.Context, body ExtrasImageAttachmentsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkUpdateResponse, error) - - // ExtrasImageAttachmentsDestroy request - ExtrasImageAttachmentsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsDestroyResponse, error) - - // ExtrasImageAttachmentsRetrieve request - ExtrasImageAttachmentsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsRetrieveResponse, error) - - // ExtrasImageAttachmentsPartialUpdate request with any body - ExtrasImageAttachmentsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsPartialUpdateResponse, error) - - ExtrasImageAttachmentsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsPartialUpdateResponse, error) - - // ExtrasImageAttachmentsUpdate request with any body - ExtrasImageAttachmentsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsUpdateResponse, error) - - ExtrasImageAttachmentsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsUpdateResponse, error) - - // ExtrasJobHooksBulkDestroy request with any body - ExtrasJobHooksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkDestroyResponse, error) - - ExtrasJobHooksBulkDestroyWithResponse(ctx context.Context, body ExtrasJobHooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkDestroyResponse, error) - - // ExtrasJobHooksList request - ExtrasJobHooksListWithResponse(ctx context.Context, params *ExtrasJobHooksListParams, reqEditors ...RequestEditorFn) (*ExtrasJobHooksListResponse, error) - - // ExtrasJobHooksBulkPartialUpdate request with any body - ExtrasJobHooksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkPartialUpdateResponse, error) - - ExtrasJobHooksBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasJobHooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkPartialUpdateResponse, error) - - // ExtrasJobHooksCreate request with any body - ExtrasJobHooksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksCreateResponse, error) - - ExtrasJobHooksCreateWithResponse(ctx context.Context, body ExtrasJobHooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksCreateResponse, error) - - // ExtrasJobHooksBulkUpdate request with any body - ExtrasJobHooksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkUpdateResponse, error) - - ExtrasJobHooksBulkUpdateWithResponse(ctx context.Context, body ExtrasJobHooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkUpdateResponse, error) - - // ExtrasJobHooksDestroy request - ExtrasJobHooksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobHooksDestroyResponse, error) - - // ExtrasJobHooksRetrieve request - ExtrasJobHooksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobHooksRetrieveResponse, error) - - // ExtrasJobHooksPartialUpdate request with any body - ExtrasJobHooksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksPartialUpdateResponse, error) - - ExtrasJobHooksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksPartialUpdateResponse, error) - - // ExtrasJobHooksUpdate request with any body - ExtrasJobHooksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksUpdateResponse, error) - - ExtrasJobHooksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksUpdateResponse, error) - - // ExtrasJobHooksNotesList request - ExtrasJobHooksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasJobHooksNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasJobHooksNotesListResponse, error) - - // ExtrasJobHooksNotesCreate request with any body - ExtrasJobHooksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksNotesCreateResponse, error) - - ExtrasJobHooksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksNotesCreateResponse, error) - - // ExtrasJobLogsList request - ExtrasJobLogsListWithResponse(ctx context.Context, params *ExtrasJobLogsListParams, reqEditors ...RequestEditorFn) (*ExtrasJobLogsListResponse, error) - - // ExtrasJobLogsRetrieve request - ExtrasJobLogsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobLogsRetrieveResponse, error) - - // ExtrasJobResultsBulkDestroy request with any body - ExtrasJobResultsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobResultsBulkDestroyResponse, error) - - ExtrasJobResultsBulkDestroyWithResponse(ctx context.Context, body ExtrasJobResultsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobResultsBulkDestroyResponse, error) - - // ExtrasJobResultsList request - ExtrasJobResultsListWithResponse(ctx context.Context, params *ExtrasJobResultsListParams, reqEditors ...RequestEditorFn) (*ExtrasJobResultsListResponse, error) - - // ExtrasJobResultsDestroy request - ExtrasJobResultsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobResultsDestroyResponse, error) - - // ExtrasJobResultsRetrieve request - ExtrasJobResultsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobResultsRetrieveResponse, error) - - // ExtrasJobResultsLogsRetrieve request - ExtrasJobResultsLogsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobResultsLogsRetrieveResponse, error) - - // ExtrasJobsBulkDestroy request with any body - ExtrasJobsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkDestroyResponse, error) - - ExtrasJobsBulkDestroyWithResponse(ctx context.Context, body ExtrasJobsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkDestroyResponse, error) - - // ExtrasJobsList request - ExtrasJobsListWithResponse(ctx context.Context, params *ExtrasJobsListParams, reqEditors ...RequestEditorFn) (*ExtrasJobsListResponse, error) - - // ExtrasJobsBulkPartialUpdate request with any body - ExtrasJobsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkPartialUpdateResponse, error) - - ExtrasJobsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasJobsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkPartialUpdateResponse, error) - - // ExtrasJobsBulkUpdate request with any body - ExtrasJobsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkUpdateResponse, error) - - ExtrasJobsBulkUpdateWithResponse(ctx context.Context, body ExtrasJobsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkUpdateResponse, error) - - // ExtrasJobsReadDeprecated request - ExtrasJobsReadDeprecatedWithResponse(ctx context.Context, classPath string, reqEditors ...RequestEditorFn) (*ExtrasJobsReadDeprecatedResponse, error) - - // ExtrasJobsRunDeprecated request with any body - ExtrasJobsRunDeprecatedWithBodyWithResponse(ctx context.Context, classPath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsRunDeprecatedResponse, error) - - ExtrasJobsRunDeprecatedWithResponse(ctx context.Context, classPath string, body ExtrasJobsRunDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsRunDeprecatedResponse, error) - - // ExtrasJobsDestroy request - ExtrasJobsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobsDestroyResponse, error) - - // ExtrasJobsRetrieve request - ExtrasJobsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobsRetrieveResponse, error) - - // ExtrasJobsPartialUpdate request with any body - ExtrasJobsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsPartialUpdateResponse, error) - - ExtrasJobsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsPartialUpdateResponse, error) - - // ExtrasJobsUpdate request with any body - ExtrasJobsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsUpdateResponse, error) - - ExtrasJobsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsUpdateResponse, error) - - // ExtrasJobsNotesList request - ExtrasJobsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasJobsNotesListResponse, error) - - // ExtrasJobsNotesCreate request with any body - ExtrasJobsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsNotesCreateResponse, error) - - ExtrasJobsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsNotesCreateResponse, error) - - // ExtrasJobsRunCreate request with any body - ExtrasJobsRunCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsRunCreateResponse, error) - - ExtrasJobsRunCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsRunCreateResponse, error) - - // ExtrasJobsVariablesList request - ExtrasJobsVariablesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsVariablesListParams, reqEditors ...RequestEditorFn) (*ExtrasJobsVariablesListResponse, error) - - // ExtrasNotesBulkDestroy request with any body - ExtrasNotesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkDestroyResponse, error) - - ExtrasNotesBulkDestroyWithResponse(ctx context.Context, body ExtrasNotesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkDestroyResponse, error) - - // ExtrasNotesList request - ExtrasNotesListWithResponse(ctx context.Context, params *ExtrasNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasNotesListResponse, error) - - // ExtrasNotesBulkPartialUpdate request with any body - ExtrasNotesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkPartialUpdateResponse, error) - - ExtrasNotesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasNotesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkPartialUpdateResponse, error) - - // ExtrasNotesCreate request with any body - ExtrasNotesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesCreateResponse, error) - - ExtrasNotesCreateWithResponse(ctx context.Context, body ExtrasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesCreateResponse, error) - - // ExtrasNotesBulkUpdate request with any body - ExtrasNotesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkUpdateResponse, error) - - ExtrasNotesBulkUpdateWithResponse(ctx context.Context, body ExtrasNotesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkUpdateResponse, error) - - // ExtrasNotesDestroy request - ExtrasNotesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasNotesDestroyResponse, error) - - // ExtrasNotesRetrieve request - ExtrasNotesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasNotesRetrieveResponse, error) - - // ExtrasNotesPartialUpdate request with any body - ExtrasNotesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesPartialUpdateResponse, error) - - ExtrasNotesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasNotesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesPartialUpdateResponse, error) - - // ExtrasNotesUpdate request with any body - ExtrasNotesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesUpdateResponse, error) - - ExtrasNotesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasNotesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesUpdateResponse, error) - - // ExtrasObjectChangesList request - ExtrasObjectChangesListWithResponse(ctx context.Context, params *ExtrasObjectChangesListParams, reqEditors ...RequestEditorFn) (*ExtrasObjectChangesListResponse, error) - - // ExtrasObjectChangesRetrieve request - ExtrasObjectChangesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasObjectChangesRetrieveResponse, error) - - // ExtrasRelationshipAssociationsBulkDestroy request with any body - ExtrasRelationshipAssociationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkDestroyResponse, error) - - ExtrasRelationshipAssociationsBulkDestroyWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkDestroyResponse, error) - - // ExtrasRelationshipAssociationsList request - ExtrasRelationshipAssociationsListWithResponse(ctx context.Context, params *ExtrasRelationshipAssociationsListParams, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsListResponse, error) - - // ExtrasRelationshipAssociationsBulkPartialUpdate request with any body - ExtrasRelationshipAssociationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkPartialUpdateResponse, error) - - ExtrasRelationshipAssociationsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkPartialUpdateResponse, error) - - // ExtrasRelationshipAssociationsCreate request with any body - ExtrasRelationshipAssociationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsCreateResponse, error) - - ExtrasRelationshipAssociationsCreateWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsCreateResponse, error) - - // ExtrasRelationshipAssociationsBulkUpdate request with any body - ExtrasRelationshipAssociationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkUpdateResponse, error) - - ExtrasRelationshipAssociationsBulkUpdateWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkUpdateResponse, error) - - // ExtrasRelationshipAssociationsDestroy request - ExtrasRelationshipAssociationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsDestroyResponse, error) - - // ExtrasRelationshipAssociationsRetrieve request - ExtrasRelationshipAssociationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsRetrieveResponse, error) - - // ExtrasRelationshipAssociationsPartialUpdate request with any body - ExtrasRelationshipAssociationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsPartialUpdateResponse, error) - - ExtrasRelationshipAssociationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsPartialUpdateResponse, error) - - // ExtrasRelationshipAssociationsUpdate request with any body - ExtrasRelationshipAssociationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsUpdateResponse, error) - - ExtrasRelationshipAssociationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsUpdateResponse, error) - - // ExtrasRelationshipsBulkDestroy request with any body - ExtrasRelationshipsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkDestroyResponse, error) - - ExtrasRelationshipsBulkDestroyWithResponse(ctx context.Context, body ExtrasRelationshipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkDestroyResponse, error) - - // ExtrasRelationshipsList request - ExtrasRelationshipsListWithResponse(ctx context.Context, params *ExtrasRelationshipsListParams, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsListResponse, error) - - // ExtrasRelationshipsBulkPartialUpdate request with any body - ExtrasRelationshipsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkPartialUpdateResponse, error) - - ExtrasRelationshipsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasRelationshipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkPartialUpdateResponse, error) - - // ExtrasRelationshipsCreate request with any body - ExtrasRelationshipsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsCreateResponse, error) - - ExtrasRelationshipsCreateWithResponse(ctx context.Context, body ExtrasRelationshipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsCreateResponse, error) - - // ExtrasRelationshipsBulkUpdate request with any body - ExtrasRelationshipsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkUpdateResponse, error) - - ExtrasRelationshipsBulkUpdateWithResponse(ctx context.Context, body ExtrasRelationshipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkUpdateResponse, error) - - // ExtrasRelationshipsDestroy request - ExtrasRelationshipsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsDestroyResponse, error) - - // ExtrasRelationshipsRetrieve request - ExtrasRelationshipsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsRetrieveResponse, error) - - // ExtrasRelationshipsPartialUpdate request with any body - ExtrasRelationshipsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsPartialUpdateResponse, error) - - ExtrasRelationshipsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsPartialUpdateResponse, error) - - // ExtrasRelationshipsUpdate request with any body - ExtrasRelationshipsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsUpdateResponse, error) - - ExtrasRelationshipsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsUpdateResponse, error) - - // ExtrasRelationshipsNotesList request - ExtrasRelationshipsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasRelationshipsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsNotesListResponse, error) - - // ExtrasRelationshipsNotesCreate request with any body - ExtrasRelationshipsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsNotesCreateResponse, error) - - ExtrasRelationshipsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsNotesCreateResponse, error) - - // ExtrasScheduledJobsList request - ExtrasScheduledJobsListWithResponse(ctx context.Context, params *ExtrasScheduledJobsListParams, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsListResponse, error) - - // ExtrasScheduledJobsRetrieve request - ExtrasScheduledJobsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsRetrieveResponse, error) - - // ExtrasScheduledJobsApproveCreate request - ExtrasScheduledJobsApproveCreateWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasScheduledJobsApproveCreateParams, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsApproveCreateResponse, error) - - // ExtrasScheduledJobsDenyCreate request - ExtrasScheduledJobsDenyCreateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsDenyCreateResponse, error) - - // ExtrasScheduledJobsDryRunCreate request - ExtrasScheduledJobsDryRunCreateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsDryRunCreateResponse, error) - - // ExtrasSecretsGroupsAssociationsBulkDestroy request with any body - ExtrasSecretsGroupsAssociationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkDestroyResponse, error) - - ExtrasSecretsGroupsAssociationsBulkDestroyWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkDestroyResponse, error) - - // ExtrasSecretsGroupsAssociationsList request - ExtrasSecretsGroupsAssociationsListWithResponse(ctx context.Context, params *ExtrasSecretsGroupsAssociationsListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsListResponse, error) - - // ExtrasSecretsGroupsAssociationsBulkPartialUpdate request with any body - ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse, error) - - ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse, error) - - // ExtrasSecretsGroupsAssociationsCreate request with any body - ExtrasSecretsGroupsAssociationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsCreateResponse, error) - - ExtrasSecretsGroupsAssociationsCreateWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsCreateResponse, error) - - // ExtrasSecretsGroupsAssociationsBulkUpdate request with any body - ExtrasSecretsGroupsAssociationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkUpdateResponse, error) - - ExtrasSecretsGroupsAssociationsBulkUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkUpdateResponse, error) - - // ExtrasSecretsGroupsAssociationsDestroy request - ExtrasSecretsGroupsAssociationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsDestroyResponse, error) - - // ExtrasSecretsGroupsAssociationsRetrieve request - ExtrasSecretsGroupsAssociationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsRetrieveResponse, error) - - // ExtrasSecretsGroupsAssociationsPartialUpdate request with any body - ExtrasSecretsGroupsAssociationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsPartialUpdateResponse, error) - - ExtrasSecretsGroupsAssociationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsPartialUpdateResponse, error) - - // ExtrasSecretsGroupsAssociationsUpdate request with any body - ExtrasSecretsGroupsAssociationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsUpdateResponse, error) - - ExtrasSecretsGroupsAssociationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsUpdateResponse, error) - - // ExtrasSecretsGroupsBulkDestroy request with any body - ExtrasSecretsGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkDestroyResponse, error) - - ExtrasSecretsGroupsBulkDestroyWithResponse(ctx context.Context, body ExtrasSecretsGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkDestroyResponse, error) - - // ExtrasSecretsGroupsList request - ExtrasSecretsGroupsListWithResponse(ctx context.Context, params *ExtrasSecretsGroupsListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsListResponse, error) - - // ExtrasSecretsGroupsBulkPartialUpdate request with any body - ExtrasSecretsGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkPartialUpdateResponse, error) - - ExtrasSecretsGroupsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkPartialUpdateResponse, error) - - // ExtrasSecretsGroupsCreate request with any body - ExtrasSecretsGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsCreateResponse, error) - - ExtrasSecretsGroupsCreateWithResponse(ctx context.Context, body ExtrasSecretsGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsCreateResponse, error) - - // ExtrasSecretsGroupsBulkUpdate request with any body - ExtrasSecretsGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkUpdateResponse, error) - - ExtrasSecretsGroupsBulkUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkUpdateResponse, error) - - // ExtrasSecretsGroupsDestroy request - ExtrasSecretsGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsDestroyResponse, error) - - // ExtrasSecretsGroupsRetrieve request - ExtrasSecretsGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsRetrieveResponse, error) - - // ExtrasSecretsGroupsPartialUpdate request with any body - ExtrasSecretsGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsPartialUpdateResponse, error) - - ExtrasSecretsGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsPartialUpdateResponse, error) - - // ExtrasSecretsGroupsUpdate request with any body - ExtrasSecretsGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsUpdateResponse, error) - - ExtrasSecretsGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsUpdateResponse, error) - - // ExtrasSecretsGroupsNotesList request - ExtrasSecretsGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsGroupsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsNotesListResponse, error) - - // ExtrasSecretsGroupsNotesCreate request with any body - ExtrasSecretsGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsNotesCreateResponse, error) - - ExtrasSecretsGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsNotesCreateResponse, error) - - // ExtrasSecretsBulkDestroy request with any body - ExtrasSecretsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkDestroyResponse, error) - - ExtrasSecretsBulkDestroyWithResponse(ctx context.Context, body ExtrasSecretsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkDestroyResponse, error) - - // ExtrasSecretsList request - ExtrasSecretsListWithResponse(ctx context.Context, params *ExtrasSecretsListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsListResponse, error) - - // ExtrasSecretsBulkPartialUpdate request with any body - ExtrasSecretsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkPartialUpdateResponse, error) - - ExtrasSecretsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasSecretsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkPartialUpdateResponse, error) - - // ExtrasSecretsCreate request with any body - ExtrasSecretsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsCreateResponse, error) - - ExtrasSecretsCreateWithResponse(ctx context.Context, body ExtrasSecretsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsCreateResponse, error) - - // ExtrasSecretsBulkUpdate request with any body - ExtrasSecretsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkUpdateResponse, error) - - ExtrasSecretsBulkUpdateWithResponse(ctx context.Context, body ExtrasSecretsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkUpdateResponse, error) - - // ExtrasSecretsDestroy request - ExtrasSecretsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsDestroyResponse, error) - - // ExtrasSecretsRetrieve request - ExtrasSecretsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsRetrieveResponse, error) - - // ExtrasSecretsPartialUpdate request with any body - ExtrasSecretsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsPartialUpdateResponse, error) - - ExtrasSecretsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsPartialUpdateResponse, error) - - // ExtrasSecretsUpdate request with any body - ExtrasSecretsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsUpdateResponse, error) - - ExtrasSecretsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsUpdateResponse, error) - - // ExtrasSecretsNotesList request - ExtrasSecretsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsNotesListResponse, error) - - // ExtrasSecretsNotesCreate request with any body - ExtrasSecretsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsNotesCreateResponse, error) - - ExtrasSecretsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsNotesCreateResponse, error) - - // ExtrasStatusesBulkDestroy request with any body - ExtrasStatusesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkDestroyResponse, error) - - ExtrasStatusesBulkDestroyWithResponse(ctx context.Context, body ExtrasStatusesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkDestroyResponse, error) - - // ExtrasStatusesList request - ExtrasStatusesListWithResponse(ctx context.Context, params *ExtrasStatusesListParams, reqEditors ...RequestEditorFn) (*ExtrasStatusesListResponse, error) - - // ExtrasStatusesBulkPartialUpdate request with any body - ExtrasStatusesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkPartialUpdateResponse, error) - - ExtrasStatusesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasStatusesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkPartialUpdateResponse, error) - - // ExtrasStatusesCreate request with any body - ExtrasStatusesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesCreateResponse, error) - - ExtrasStatusesCreateWithResponse(ctx context.Context, body ExtrasStatusesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesCreateResponse, error) - - // ExtrasStatusesBulkUpdate request with any body - ExtrasStatusesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkUpdateResponse, error) - - ExtrasStatusesBulkUpdateWithResponse(ctx context.Context, body ExtrasStatusesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkUpdateResponse, error) - - // ExtrasStatusesDestroy request - ExtrasStatusesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasStatusesDestroyResponse, error) - - // ExtrasStatusesRetrieve request - ExtrasStatusesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasStatusesRetrieveResponse, error) - - // ExtrasStatusesPartialUpdate request with any body - ExtrasStatusesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesPartialUpdateResponse, error) - - ExtrasStatusesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesPartialUpdateResponse, error) - - // ExtrasStatusesUpdate request with any body - ExtrasStatusesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesUpdateResponse, error) - - ExtrasStatusesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesUpdateResponse, error) - - // ExtrasStatusesNotesList request - ExtrasStatusesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasStatusesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasStatusesNotesListResponse, error) - - // ExtrasStatusesNotesCreate request with any body - ExtrasStatusesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesNotesCreateResponse, error) - - ExtrasStatusesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesNotesCreateResponse, error) - - // ExtrasTagsBulkDestroy request with any body - ExtrasTagsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkDestroyResponse, error) - - ExtrasTagsBulkDestroyWithResponse(ctx context.Context, body ExtrasTagsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkDestroyResponse, error) - - // ExtrasTagsList request - ExtrasTagsListWithResponse(ctx context.Context, params *ExtrasTagsListParams, reqEditors ...RequestEditorFn) (*ExtrasTagsListResponse, error) - - // ExtrasTagsBulkPartialUpdate request with any body - ExtrasTagsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkPartialUpdateResponse, error) - - ExtrasTagsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasTagsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkPartialUpdateResponse, error) - - // ExtrasTagsCreate request with any body - ExtrasTagsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsCreateResponse, error) - - ExtrasTagsCreateWithResponse(ctx context.Context, body ExtrasTagsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsCreateResponse, error) - - // ExtrasTagsBulkUpdate request with any body - ExtrasTagsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkUpdateResponse, error) - - ExtrasTagsBulkUpdateWithResponse(ctx context.Context, body ExtrasTagsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkUpdateResponse, error) - - // ExtrasTagsDestroy request - ExtrasTagsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasTagsDestroyResponse, error) - - // ExtrasTagsRetrieve request - ExtrasTagsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasTagsRetrieveResponse, error) - - // ExtrasTagsPartialUpdate request with any body - ExtrasTagsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsPartialUpdateResponse, error) - - ExtrasTagsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasTagsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsPartialUpdateResponse, error) - - // ExtrasTagsUpdate request with any body - ExtrasTagsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsUpdateResponse, error) - - ExtrasTagsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasTagsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsUpdateResponse, error) - - // ExtrasTagsNotesList request - ExtrasTagsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasTagsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasTagsNotesListResponse, error) - - // ExtrasTagsNotesCreate request with any body - ExtrasTagsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsNotesCreateResponse, error) - - ExtrasTagsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasTagsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsNotesCreateResponse, error) - - // ExtrasWebhooksBulkDestroy request with any body - ExtrasWebhooksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkDestroyResponse, error) - - ExtrasWebhooksBulkDestroyWithResponse(ctx context.Context, body ExtrasWebhooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkDestroyResponse, error) - - // ExtrasWebhooksList request - ExtrasWebhooksListWithResponse(ctx context.Context, params *ExtrasWebhooksListParams, reqEditors ...RequestEditorFn) (*ExtrasWebhooksListResponse, error) - - // ExtrasWebhooksBulkPartialUpdate request with any body - ExtrasWebhooksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkPartialUpdateResponse, error) - - ExtrasWebhooksBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasWebhooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkPartialUpdateResponse, error) - - // ExtrasWebhooksCreate request with any body - ExtrasWebhooksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksCreateResponse, error) - - ExtrasWebhooksCreateWithResponse(ctx context.Context, body ExtrasWebhooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksCreateResponse, error) - - // ExtrasWebhooksBulkUpdate request with any body - ExtrasWebhooksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkUpdateResponse, error) - - ExtrasWebhooksBulkUpdateWithResponse(ctx context.Context, body ExtrasWebhooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkUpdateResponse, error) - - // ExtrasWebhooksDestroy request - ExtrasWebhooksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasWebhooksDestroyResponse, error) - - // ExtrasWebhooksRetrieve request - ExtrasWebhooksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasWebhooksRetrieveResponse, error) - - // ExtrasWebhooksPartialUpdate request with any body - ExtrasWebhooksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksPartialUpdateResponse, error) - - ExtrasWebhooksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksPartialUpdateResponse, error) - - // ExtrasWebhooksUpdate request with any body - ExtrasWebhooksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksUpdateResponse, error) - - ExtrasWebhooksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksUpdateResponse, error) - - // ExtrasWebhooksNotesList request - ExtrasWebhooksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasWebhooksNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasWebhooksNotesListResponse, error) - - // ExtrasWebhooksNotesCreate request with any body - ExtrasWebhooksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksNotesCreateResponse, error) - - ExtrasWebhooksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksNotesCreateResponse, error) - - // GraphqlCreate request with any body - GraphqlCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GraphqlCreateResponse, error) - - GraphqlCreateWithResponse(ctx context.Context, body GraphqlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*GraphqlCreateResponse, error) - - // IpamAggregatesBulkDestroy request with any body - IpamAggregatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkDestroyResponse, error) - - IpamAggregatesBulkDestroyWithResponse(ctx context.Context, body IpamAggregatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkDestroyResponse, error) - - // IpamAggregatesList request - IpamAggregatesListWithResponse(ctx context.Context, params *IpamAggregatesListParams, reqEditors ...RequestEditorFn) (*IpamAggregatesListResponse, error) - - // IpamAggregatesBulkPartialUpdate request with any body - IpamAggregatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkPartialUpdateResponse, error) - - IpamAggregatesBulkPartialUpdateWithResponse(ctx context.Context, body IpamAggregatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkPartialUpdateResponse, error) - - // IpamAggregatesCreate request with any body - IpamAggregatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesCreateResponse, error) - - IpamAggregatesCreateWithResponse(ctx context.Context, body IpamAggregatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesCreateResponse, error) - - // IpamAggregatesBulkUpdate request with any body - IpamAggregatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkUpdateResponse, error) - - IpamAggregatesBulkUpdateWithResponse(ctx context.Context, body IpamAggregatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkUpdateResponse, error) - - // IpamAggregatesDestroy request - IpamAggregatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamAggregatesDestroyResponse, error) - - // IpamAggregatesRetrieve request - IpamAggregatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamAggregatesRetrieveResponse, error) - - // IpamAggregatesPartialUpdate request with any body - IpamAggregatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesPartialUpdateResponse, error) - - IpamAggregatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamAggregatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesPartialUpdateResponse, error) - - // IpamAggregatesUpdate request with any body - IpamAggregatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesUpdateResponse, error) - - IpamAggregatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamAggregatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesUpdateResponse, error) - - // IpamAggregatesNotesList request - IpamAggregatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamAggregatesNotesListParams, reqEditors ...RequestEditorFn) (*IpamAggregatesNotesListResponse, error) - - // IpamAggregatesNotesCreate request with any body - IpamAggregatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesNotesCreateResponse, error) - - IpamAggregatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamAggregatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesNotesCreateResponse, error) - - // IpamIpAddressesBulkDestroy request with any body - IpamIpAddressesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkDestroyResponse, error) - - IpamIpAddressesBulkDestroyWithResponse(ctx context.Context, body IpamIpAddressesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkDestroyResponse, error) - - // IpamIpAddressesList request - IpamIpAddressesListWithResponse(ctx context.Context, params *IpamIpAddressesListParams, reqEditors ...RequestEditorFn) (*IpamIpAddressesListResponse, error) - - // IpamIpAddressesBulkPartialUpdate request with any body - IpamIpAddressesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkPartialUpdateResponse, error) - - IpamIpAddressesBulkPartialUpdateWithResponse(ctx context.Context, body IpamIpAddressesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkPartialUpdateResponse, error) - - // IpamIpAddressesCreate request with any body - IpamIpAddressesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesCreateResponse, error) - - IpamIpAddressesCreateWithResponse(ctx context.Context, body IpamIpAddressesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesCreateResponse, error) - - // IpamIpAddressesBulkUpdate request with any body - IpamIpAddressesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkUpdateResponse, error) - - IpamIpAddressesBulkUpdateWithResponse(ctx context.Context, body IpamIpAddressesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkUpdateResponse, error) - - // IpamIpAddressesDestroy request - IpamIpAddressesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamIpAddressesDestroyResponse, error) - - // IpamIpAddressesRetrieve request - IpamIpAddressesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamIpAddressesRetrieveResponse, error) - - // IpamIpAddressesPartialUpdate request with any body - IpamIpAddressesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesPartialUpdateResponse, error) - - IpamIpAddressesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesPartialUpdateResponse, error) - - // IpamIpAddressesUpdate request with any body - IpamIpAddressesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesUpdateResponse, error) - - IpamIpAddressesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesUpdateResponse, error) - - // IpamIpAddressesNotesList request - IpamIpAddressesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamIpAddressesNotesListParams, reqEditors ...RequestEditorFn) (*IpamIpAddressesNotesListResponse, error) - - // IpamIpAddressesNotesCreate request with any body - IpamIpAddressesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesNotesCreateResponse, error) - - IpamIpAddressesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesNotesCreateResponse, error) - - // IpamPrefixesBulkDestroy request with any body - IpamPrefixesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkDestroyResponse, error) - - IpamPrefixesBulkDestroyWithResponse(ctx context.Context, body IpamPrefixesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkDestroyResponse, error) - - // IpamPrefixesList request - IpamPrefixesListWithResponse(ctx context.Context, params *IpamPrefixesListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesListResponse, error) - - // IpamPrefixesBulkPartialUpdate request with any body - IpamPrefixesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkPartialUpdateResponse, error) - - IpamPrefixesBulkPartialUpdateWithResponse(ctx context.Context, body IpamPrefixesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkPartialUpdateResponse, error) - - // IpamPrefixesCreate request with any body - IpamPrefixesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesCreateResponse, error) - - IpamPrefixesCreateWithResponse(ctx context.Context, body IpamPrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesCreateResponse, error) - - // IpamPrefixesBulkUpdate request with any body - IpamPrefixesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkUpdateResponse, error) - - IpamPrefixesBulkUpdateWithResponse(ctx context.Context, body IpamPrefixesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkUpdateResponse, error) - - // IpamPrefixesDestroy request - IpamPrefixesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamPrefixesDestroyResponse, error) - - // IpamPrefixesRetrieve request - IpamPrefixesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamPrefixesRetrieveResponse, error) - - // IpamPrefixesPartialUpdate request with any body - IpamPrefixesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesPartialUpdateResponse, error) - - IpamPrefixesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesPartialUpdateResponse, error) - - // IpamPrefixesUpdate request with any body - IpamPrefixesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesUpdateResponse, error) - - IpamPrefixesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesUpdateResponse, error) - - // IpamPrefixesAvailableIpsList request - IpamPrefixesAvailableIpsListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailableIpsListResponse, error) - - // IpamPrefixesAvailableIpsCreate request - IpamPrefixesAvailableIpsCreateWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsCreateParams, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailableIpsCreateResponse, error) - - // IpamPrefixesAvailablePrefixesList request - IpamPrefixesAvailablePrefixesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailablePrefixesListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailablePrefixesListResponse, error) - - // IpamPrefixesAvailablePrefixesCreate request with any body - IpamPrefixesAvailablePrefixesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailablePrefixesCreateResponse, error) - - IpamPrefixesAvailablePrefixesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesAvailablePrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailablePrefixesCreateResponse, error) - - // IpamPrefixesNotesList request - IpamPrefixesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesNotesListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesNotesListResponse, error) - - // IpamPrefixesNotesCreate request with any body - IpamPrefixesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesNotesCreateResponse, error) - - IpamPrefixesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesNotesCreateResponse, error) - - // IpamRirsBulkDestroy request with any body - IpamRirsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsBulkDestroyResponse, error) - - IpamRirsBulkDestroyWithResponse(ctx context.Context, body IpamRirsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsBulkDestroyResponse, error) - - // IpamRirsList request - IpamRirsListWithResponse(ctx context.Context, params *IpamRirsListParams, reqEditors ...RequestEditorFn) (*IpamRirsListResponse, error) - - // IpamRirsBulkPartialUpdate request with any body - IpamRirsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsBulkPartialUpdateResponse, error) - - IpamRirsBulkPartialUpdateWithResponse(ctx context.Context, body IpamRirsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsBulkPartialUpdateResponse, error) - - // IpamRirsCreate request with any body - IpamRirsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsCreateResponse, error) - - IpamRirsCreateWithResponse(ctx context.Context, body IpamRirsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsCreateResponse, error) - - // IpamRirsBulkUpdate request with any body - IpamRirsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsBulkUpdateResponse, error) - - IpamRirsBulkUpdateWithResponse(ctx context.Context, body IpamRirsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsBulkUpdateResponse, error) - - // IpamRirsDestroy request - IpamRirsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRirsDestroyResponse, error) - - // IpamRirsRetrieve request - IpamRirsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRirsRetrieveResponse, error) - - // IpamRirsPartialUpdate request with any body - IpamRirsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsPartialUpdateResponse, error) - - IpamRirsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRirsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsPartialUpdateResponse, error) - - // IpamRirsUpdate request with any body - IpamRirsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsUpdateResponse, error) - - IpamRirsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRirsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsUpdateResponse, error) - - // IpamRirsNotesList request - IpamRirsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamRirsNotesListParams, reqEditors ...RequestEditorFn) (*IpamRirsNotesListResponse, error) - - // IpamRirsNotesCreate request with any body - IpamRirsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsNotesCreateResponse, error) - - IpamRirsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRirsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsNotesCreateResponse, error) - - // IpamRolesBulkDestroy request with any body - IpamRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesBulkDestroyResponse, error) - - IpamRolesBulkDestroyWithResponse(ctx context.Context, body IpamRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesBulkDestroyResponse, error) - - // IpamRolesList request - IpamRolesListWithResponse(ctx context.Context, params *IpamRolesListParams, reqEditors ...RequestEditorFn) (*IpamRolesListResponse, error) - - // IpamRolesBulkPartialUpdate request with any body - IpamRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesBulkPartialUpdateResponse, error) - - IpamRolesBulkPartialUpdateWithResponse(ctx context.Context, body IpamRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesBulkPartialUpdateResponse, error) - - // IpamRolesCreate request with any body - IpamRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesCreateResponse, error) - - IpamRolesCreateWithResponse(ctx context.Context, body IpamRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesCreateResponse, error) - - // IpamRolesBulkUpdate request with any body - IpamRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesBulkUpdateResponse, error) - - IpamRolesBulkUpdateWithResponse(ctx context.Context, body IpamRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesBulkUpdateResponse, error) - - // IpamRolesDestroy request - IpamRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRolesDestroyResponse, error) - - // IpamRolesRetrieve request - IpamRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRolesRetrieveResponse, error) - - // IpamRolesPartialUpdate request with any body - IpamRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesPartialUpdateResponse, error) - - IpamRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesPartialUpdateResponse, error) - - // IpamRolesUpdate request with any body - IpamRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesUpdateResponse, error) - - IpamRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesUpdateResponse, error) - - // IpamRolesNotesList request - IpamRolesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamRolesNotesListParams, reqEditors ...RequestEditorFn) (*IpamRolesNotesListResponse, error) - - // IpamRolesNotesCreate request with any body - IpamRolesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesNotesCreateResponse, error) - - IpamRolesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesNotesCreateResponse, error) - - // IpamRouteTargetsBulkDestroy request with any body - IpamRouteTargetsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkDestroyResponse, error) - - IpamRouteTargetsBulkDestroyWithResponse(ctx context.Context, body IpamRouteTargetsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkDestroyResponse, error) - - // IpamRouteTargetsList request - IpamRouteTargetsListWithResponse(ctx context.Context, params *IpamRouteTargetsListParams, reqEditors ...RequestEditorFn) (*IpamRouteTargetsListResponse, error) - - // IpamRouteTargetsBulkPartialUpdate request with any body - IpamRouteTargetsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkPartialUpdateResponse, error) - - IpamRouteTargetsBulkPartialUpdateWithResponse(ctx context.Context, body IpamRouteTargetsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkPartialUpdateResponse, error) - - // IpamRouteTargetsCreate request with any body - IpamRouteTargetsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsCreateResponse, error) - - IpamRouteTargetsCreateWithResponse(ctx context.Context, body IpamRouteTargetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsCreateResponse, error) - - // IpamRouteTargetsBulkUpdate request with any body - IpamRouteTargetsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkUpdateResponse, error) - - IpamRouteTargetsBulkUpdateWithResponse(ctx context.Context, body IpamRouteTargetsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkUpdateResponse, error) - - // IpamRouteTargetsDestroy request - IpamRouteTargetsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRouteTargetsDestroyResponse, error) - - // IpamRouteTargetsRetrieve request - IpamRouteTargetsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRouteTargetsRetrieveResponse, error) - - // IpamRouteTargetsPartialUpdate request with any body - IpamRouteTargetsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsPartialUpdateResponse, error) - - IpamRouteTargetsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsPartialUpdateResponse, error) - - // IpamRouteTargetsUpdate request with any body - IpamRouteTargetsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsUpdateResponse, error) - - IpamRouteTargetsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsUpdateResponse, error) - - // IpamRouteTargetsNotesList request - IpamRouteTargetsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamRouteTargetsNotesListParams, reqEditors ...RequestEditorFn) (*IpamRouteTargetsNotesListResponse, error) - - // IpamRouteTargetsNotesCreate request with any body - IpamRouteTargetsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsNotesCreateResponse, error) - - IpamRouteTargetsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsNotesCreateResponse, error) - - // IpamServicesBulkDestroy request with any body - IpamServicesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesBulkDestroyResponse, error) - - IpamServicesBulkDestroyWithResponse(ctx context.Context, body IpamServicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesBulkDestroyResponse, error) - - // IpamServicesList request - IpamServicesListWithResponse(ctx context.Context, params *IpamServicesListParams, reqEditors ...RequestEditorFn) (*IpamServicesListResponse, error) - - // IpamServicesBulkPartialUpdate request with any body - IpamServicesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesBulkPartialUpdateResponse, error) - - IpamServicesBulkPartialUpdateWithResponse(ctx context.Context, body IpamServicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesBulkPartialUpdateResponse, error) - - // IpamServicesCreate request with any body - IpamServicesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesCreateResponse, error) - - IpamServicesCreateWithResponse(ctx context.Context, body IpamServicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesCreateResponse, error) - - // IpamServicesBulkUpdate request with any body - IpamServicesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesBulkUpdateResponse, error) - - IpamServicesBulkUpdateWithResponse(ctx context.Context, body IpamServicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesBulkUpdateResponse, error) - - // IpamServicesDestroy request - IpamServicesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamServicesDestroyResponse, error) - - // IpamServicesRetrieve request - IpamServicesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamServicesRetrieveResponse, error) - - // IpamServicesPartialUpdate request with any body - IpamServicesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesPartialUpdateResponse, error) - - IpamServicesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamServicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesPartialUpdateResponse, error) - - // IpamServicesUpdate request with any body - IpamServicesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesUpdateResponse, error) - - IpamServicesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamServicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesUpdateResponse, error) - - // IpamServicesNotesList request - IpamServicesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamServicesNotesListParams, reqEditors ...RequestEditorFn) (*IpamServicesNotesListResponse, error) - - // IpamServicesNotesCreate request with any body - IpamServicesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesNotesCreateResponse, error) - - IpamServicesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamServicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesNotesCreateResponse, error) - - // IpamVlanGroupsBulkDestroy request with any body - IpamVlanGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkDestroyResponse, error) - - IpamVlanGroupsBulkDestroyWithResponse(ctx context.Context, body IpamVlanGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkDestroyResponse, error) - - // IpamVlanGroupsList request - IpamVlanGroupsListWithResponse(ctx context.Context, params *IpamVlanGroupsListParams, reqEditors ...RequestEditorFn) (*IpamVlanGroupsListResponse, error) - - // IpamVlanGroupsBulkPartialUpdate request with any body - IpamVlanGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkPartialUpdateResponse, error) - - IpamVlanGroupsBulkPartialUpdateWithResponse(ctx context.Context, body IpamVlanGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkPartialUpdateResponse, error) - - // IpamVlanGroupsCreate request with any body - IpamVlanGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsCreateResponse, error) - - IpamVlanGroupsCreateWithResponse(ctx context.Context, body IpamVlanGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsCreateResponse, error) - - // IpamVlanGroupsBulkUpdate request with any body - IpamVlanGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkUpdateResponse, error) - - IpamVlanGroupsBulkUpdateWithResponse(ctx context.Context, body IpamVlanGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkUpdateResponse, error) - - // IpamVlanGroupsDestroy request - IpamVlanGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlanGroupsDestroyResponse, error) - - // IpamVlanGroupsRetrieve request - IpamVlanGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlanGroupsRetrieveResponse, error) - - // IpamVlanGroupsPartialUpdate request with any body - IpamVlanGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsPartialUpdateResponse, error) - - IpamVlanGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsPartialUpdateResponse, error) - - // IpamVlanGroupsUpdate request with any body - IpamVlanGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsUpdateResponse, error) - - IpamVlanGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsUpdateResponse, error) - - // IpamVlanGroupsNotesList request - IpamVlanGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamVlanGroupsNotesListParams, reqEditors ...RequestEditorFn) (*IpamVlanGroupsNotesListResponse, error) - - // IpamVlanGroupsNotesCreate request with any body - IpamVlanGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsNotesCreateResponse, error) - - IpamVlanGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsNotesCreateResponse, error) - - // IpamVlansBulkDestroy request with any body - IpamVlansBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansBulkDestroyResponse, error) - - IpamVlansBulkDestroyWithResponse(ctx context.Context, body IpamVlansBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansBulkDestroyResponse, error) - - // IpamVlansList request - IpamVlansListWithResponse(ctx context.Context, params *IpamVlansListParams, reqEditors ...RequestEditorFn) (*IpamVlansListResponse, error) - - // IpamVlansBulkPartialUpdate request with any body - IpamVlansBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansBulkPartialUpdateResponse, error) - - IpamVlansBulkPartialUpdateWithResponse(ctx context.Context, body IpamVlansBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansBulkPartialUpdateResponse, error) - - // IpamVlansCreate request with any body - IpamVlansCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansCreateResponse, error) - - IpamVlansCreateWithResponse(ctx context.Context, body IpamVlansCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansCreateResponse, error) - - // IpamVlansBulkUpdate request with any body - IpamVlansBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansBulkUpdateResponse, error) - - IpamVlansBulkUpdateWithResponse(ctx context.Context, body IpamVlansBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansBulkUpdateResponse, error) - - // IpamVlansDestroy request - IpamVlansDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlansDestroyResponse, error) - - // IpamVlansRetrieve request - IpamVlansRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlansRetrieveResponse, error) - - // IpamVlansPartialUpdate request with any body - IpamVlansPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansPartialUpdateResponse, error) - - IpamVlansPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlansPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansPartialUpdateResponse, error) - - // IpamVlansUpdate request with any body - IpamVlansUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansUpdateResponse, error) - - IpamVlansUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlansUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansUpdateResponse, error) - - // IpamVlansNotesList request - IpamVlansNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamVlansNotesListParams, reqEditors ...RequestEditorFn) (*IpamVlansNotesListResponse, error) - - // IpamVlansNotesCreate request with any body - IpamVlansNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansNotesCreateResponse, error) - - IpamVlansNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlansNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansNotesCreateResponse, error) - - // IpamVrfsBulkDestroy request with any body - IpamVrfsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsBulkDestroyResponse, error) - - IpamVrfsBulkDestroyWithResponse(ctx context.Context, body IpamVrfsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsBulkDestroyResponse, error) - - // IpamVrfsList request - IpamVrfsListWithResponse(ctx context.Context, params *IpamVrfsListParams, reqEditors ...RequestEditorFn) (*IpamVrfsListResponse, error) - - // IpamVrfsBulkPartialUpdate request with any body - IpamVrfsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsBulkPartialUpdateResponse, error) - - IpamVrfsBulkPartialUpdateWithResponse(ctx context.Context, body IpamVrfsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsBulkPartialUpdateResponse, error) - - // IpamVrfsCreate request with any body - IpamVrfsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsCreateResponse, error) - - IpamVrfsCreateWithResponse(ctx context.Context, body IpamVrfsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsCreateResponse, error) - - // IpamVrfsBulkUpdate request with any body - IpamVrfsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsBulkUpdateResponse, error) - - IpamVrfsBulkUpdateWithResponse(ctx context.Context, body IpamVrfsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsBulkUpdateResponse, error) - - // IpamVrfsDestroy request - IpamVrfsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVrfsDestroyResponse, error) - - // IpamVrfsRetrieve request - IpamVrfsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVrfsRetrieveResponse, error) - - // IpamVrfsPartialUpdate request with any body - IpamVrfsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsPartialUpdateResponse, error) - - IpamVrfsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVrfsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsPartialUpdateResponse, error) - - // IpamVrfsUpdate request with any body - IpamVrfsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsUpdateResponse, error) - - IpamVrfsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVrfsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsUpdateResponse, error) - - // IpamVrfsNotesList request - IpamVrfsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamVrfsNotesListParams, reqEditors ...RequestEditorFn) (*IpamVrfsNotesListResponse, error) - - // IpamVrfsNotesCreate request with any body - IpamVrfsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsNotesCreateResponse, error) - - IpamVrfsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVrfsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsNotesCreateResponse, error) - - // PluginsBgpAddressFamiliesBulkDestroy request with any body - PluginsBgpAddressFamiliesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkDestroyResponse, error) - - PluginsBgpAddressFamiliesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkDestroyResponse, error) - - // PluginsBgpAddressFamiliesList request - PluginsBgpAddressFamiliesListWithResponse(ctx context.Context, params *PluginsBgpAddressFamiliesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesListResponse, error) - - // PluginsBgpAddressFamiliesBulkPartialUpdate request with any body - PluginsBgpAddressFamiliesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkPartialUpdateResponse, error) - - PluginsBgpAddressFamiliesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkPartialUpdateResponse, error) - - // PluginsBgpAddressFamiliesCreate request with any body - PluginsBgpAddressFamiliesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesCreateResponse, error) - - PluginsBgpAddressFamiliesCreateWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesCreateResponse, error) - - // PluginsBgpAddressFamiliesBulkUpdate request with any body - PluginsBgpAddressFamiliesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkUpdateResponse, error) - - PluginsBgpAddressFamiliesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkUpdateResponse, error) - - // PluginsBgpAddressFamiliesDestroy request - PluginsBgpAddressFamiliesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesDestroyResponse, error) - - // PluginsBgpAddressFamiliesRetrieve request - PluginsBgpAddressFamiliesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpAddressFamiliesRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesRetrieveResponse, error) - - // PluginsBgpAddressFamiliesPartialUpdate request with any body - PluginsBgpAddressFamiliesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesPartialUpdateResponse, error) - - PluginsBgpAddressFamiliesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesPartialUpdateResponse, error) - - // PluginsBgpAddressFamiliesUpdate request with any body - PluginsBgpAddressFamiliesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesUpdateResponse, error) - - PluginsBgpAddressFamiliesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesUpdateResponse, error) - - // PluginsBgpAutonomousSystemsBulkDestroy request with any body - PluginsBgpAutonomousSystemsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkDestroyResponse, error) - - PluginsBgpAutonomousSystemsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkDestroyResponse, error) - - // PluginsBgpAutonomousSystemsList request - PluginsBgpAutonomousSystemsListWithResponse(ctx context.Context, params *PluginsBgpAutonomousSystemsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsListResponse, error) - - // PluginsBgpAutonomousSystemsBulkPartialUpdate request with any body - PluginsBgpAutonomousSystemsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkPartialUpdateResponse, error) - - PluginsBgpAutonomousSystemsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkPartialUpdateResponse, error) - - // PluginsBgpAutonomousSystemsCreate request with any body - PluginsBgpAutonomousSystemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsCreateResponse, error) - - PluginsBgpAutonomousSystemsCreateWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsCreateResponse, error) - - // PluginsBgpAutonomousSystemsBulkUpdate request with any body - PluginsBgpAutonomousSystemsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkUpdateResponse, error) - - PluginsBgpAutonomousSystemsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkUpdateResponse, error) - - // PluginsBgpAutonomousSystemsDestroy request - PluginsBgpAutonomousSystemsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsDestroyResponse, error) - - // PluginsBgpAutonomousSystemsRetrieve request - PluginsBgpAutonomousSystemsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsRetrieveResponse, error) - - // PluginsBgpAutonomousSystemsPartialUpdate request with any body - PluginsBgpAutonomousSystemsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsPartialUpdateResponse, error) - - PluginsBgpAutonomousSystemsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsPartialUpdateResponse, error) - - // PluginsBgpAutonomousSystemsUpdate request with any body - PluginsBgpAutonomousSystemsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsUpdateResponse, error) - - PluginsBgpAutonomousSystemsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsUpdateResponse, error) - - // PluginsBgpPeerEndpointsBulkDestroy request with any body - PluginsBgpPeerEndpointsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkDestroyResponse, error) - - PluginsBgpPeerEndpointsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkDestroyResponse, error) - - // PluginsBgpPeerEndpointsList request - PluginsBgpPeerEndpointsListWithResponse(ctx context.Context, params *PluginsBgpPeerEndpointsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsListResponse, error) - - // PluginsBgpPeerEndpointsBulkPartialUpdate request with any body - PluginsBgpPeerEndpointsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkPartialUpdateResponse, error) - - PluginsBgpPeerEndpointsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkPartialUpdateResponse, error) - - // PluginsBgpPeerEndpointsCreate request with any body - PluginsBgpPeerEndpointsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsCreateResponse, error) - - PluginsBgpPeerEndpointsCreateWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsCreateResponse, error) - - // PluginsBgpPeerEndpointsBulkUpdate request with any body - PluginsBgpPeerEndpointsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkUpdateResponse, error) - - PluginsBgpPeerEndpointsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkUpdateResponse, error) - - // PluginsBgpPeerEndpointsDestroy request - PluginsBgpPeerEndpointsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsDestroyResponse, error) - - // PluginsBgpPeerEndpointsRetrieve request - PluginsBgpPeerEndpointsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerEndpointsRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsRetrieveResponse, error) - - // PluginsBgpPeerEndpointsPartialUpdate request with any body - PluginsBgpPeerEndpointsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsPartialUpdateResponse, error) - - PluginsBgpPeerEndpointsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsPartialUpdateResponse, error) - - // PluginsBgpPeerEndpointsUpdate request with any body - PluginsBgpPeerEndpointsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsUpdateResponse, error) - - PluginsBgpPeerEndpointsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsUpdateResponse, error) - - // PluginsBgpPeerGroupTemplatesBulkDestroy request with any body - PluginsBgpPeerGroupTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkDestroyResponse, error) - - PluginsBgpPeerGroupTemplatesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkDestroyResponse, error) - - // PluginsBgpPeerGroupTemplatesList request - PluginsBgpPeerGroupTemplatesListWithResponse(ctx context.Context, params *PluginsBgpPeerGroupTemplatesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesListResponse, error) - - // PluginsBgpPeerGroupTemplatesBulkPartialUpdate request with any body - PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse, error) - - PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse, error) - - // PluginsBgpPeerGroupTemplatesCreate request with any body - PluginsBgpPeerGroupTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesCreateResponse, error) - - PluginsBgpPeerGroupTemplatesCreateWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesCreateResponse, error) - - // PluginsBgpPeerGroupTemplatesBulkUpdate request with any body - PluginsBgpPeerGroupTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkUpdateResponse, error) - - PluginsBgpPeerGroupTemplatesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkUpdateResponse, error) - - // PluginsBgpPeerGroupTemplatesDestroy request - PluginsBgpPeerGroupTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesDestroyResponse, error) - - // PluginsBgpPeerGroupTemplatesRetrieve request - PluginsBgpPeerGroupTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupTemplatesRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesRetrieveResponse, error) - - // PluginsBgpPeerGroupTemplatesPartialUpdate request with any body - PluginsBgpPeerGroupTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesPartialUpdateResponse, error) - - PluginsBgpPeerGroupTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesPartialUpdateResponse, error) - - // PluginsBgpPeerGroupTemplatesUpdate request with any body - PluginsBgpPeerGroupTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesUpdateResponse, error) - - PluginsBgpPeerGroupTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesUpdateResponse, error) - - // PluginsBgpPeerGroupsBulkDestroy request with any body - PluginsBgpPeerGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkDestroyResponse, error) - - PluginsBgpPeerGroupsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeerGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkDestroyResponse, error) - - // PluginsBgpPeerGroupsList request - PluginsBgpPeerGroupsListWithResponse(ctx context.Context, params *PluginsBgpPeerGroupsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsListResponse, error) - - // PluginsBgpPeerGroupsBulkPartialUpdate request with any body - PluginsBgpPeerGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkPartialUpdateResponse, error) - - PluginsBgpPeerGroupsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkPartialUpdateResponse, error) - - // PluginsBgpPeerGroupsCreate request with any body - PluginsBgpPeerGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsCreateResponse, error) - - PluginsBgpPeerGroupsCreateWithResponse(ctx context.Context, body PluginsBgpPeerGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsCreateResponse, error) - - // PluginsBgpPeerGroupsBulkUpdate request with any body - PluginsBgpPeerGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkUpdateResponse, error) - - PluginsBgpPeerGroupsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkUpdateResponse, error) - - // PluginsBgpPeerGroupsDestroy request - PluginsBgpPeerGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsDestroyResponse, error) - - // PluginsBgpPeerGroupsRetrieve request - PluginsBgpPeerGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupsRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsRetrieveResponse, error) - - // PluginsBgpPeerGroupsPartialUpdate request with any body - PluginsBgpPeerGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsPartialUpdateResponse, error) - - PluginsBgpPeerGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsPartialUpdateResponse, error) - - // PluginsBgpPeerGroupsUpdate request with any body - PluginsBgpPeerGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsUpdateResponse, error) - - PluginsBgpPeerGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsUpdateResponse, error) - - // PluginsBgpPeeringRolesBulkDestroy request with any body - PluginsBgpPeeringRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkDestroyResponse, error) - - PluginsBgpPeeringRolesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeeringRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkDestroyResponse, error) - - // PluginsBgpPeeringRolesList request - PluginsBgpPeeringRolesListWithResponse(ctx context.Context, params *PluginsBgpPeeringRolesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesListResponse, error) - - // PluginsBgpPeeringRolesBulkPartialUpdate request with any body - PluginsBgpPeeringRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkPartialUpdateResponse, error) - - PluginsBgpPeeringRolesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkPartialUpdateResponse, error) - - // PluginsBgpPeeringRolesCreate request with any body - PluginsBgpPeeringRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesCreateResponse, error) - - PluginsBgpPeeringRolesCreateWithResponse(ctx context.Context, body PluginsBgpPeeringRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesCreateResponse, error) - - // PluginsBgpPeeringRolesBulkUpdate request with any body - PluginsBgpPeeringRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkUpdateResponse, error) - - PluginsBgpPeeringRolesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkUpdateResponse, error) - - // PluginsBgpPeeringRolesDestroy request - PluginsBgpPeeringRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesDestroyResponse, error) - - // PluginsBgpPeeringRolesRetrieve request - PluginsBgpPeeringRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesRetrieveResponse, error) - - // PluginsBgpPeeringRolesPartialUpdate request with any body - PluginsBgpPeeringRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesPartialUpdateResponse, error) - - PluginsBgpPeeringRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesPartialUpdateResponse, error) - - // PluginsBgpPeeringRolesUpdate request with any body - PluginsBgpPeeringRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesUpdateResponse, error) - - PluginsBgpPeeringRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesUpdateResponse, error) - - // PluginsBgpPeeringsBulkDestroy request with any body - PluginsBgpPeeringsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkDestroyResponse, error) - - PluginsBgpPeeringsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeeringsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkDestroyResponse, error) - - // PluginsBgpPeeringsList request - PluginsBgpPeeringsListWithResponse(ctx context.Context, params *PluginsBgpPeeringsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsListResponse, error) - - // PluginsBgpPeeringsBulkPartialUpdate request with any body - PluginsBgpPeeringsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkPartialUpdateResponse, error) - - PluginsBgpPeeringsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkPartialUpdateResponse, error) - - // PluginsBgpPeeringsCreate request with any body - PluginsBgpPeeringsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsCreateResponse, error) - - PluginsBgpPeeringsCreateWithResponse(ctx context.Context, body PluginsBgpPeeringsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsCreateResponse, error) - - // PluginsBgpPeeringsBulkUpdate request with any body - PluginsBgpPeeringsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkUpdateResponse, error) - - PluginsBgpPeeringsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkUpdateResponse, error) - - // PluginsBgpPeeringsDestroy request - PluginsBgpPeeringsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsDestroyResponse, error) - - // PluginsBgpPeeringsRetrieve request - PluginsBgpPeeringsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsRetrieveResponse, error) - - // PluginsBgpPeeringsPartialUpdate request with any body - PluginsBgpPeeringsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsPartialUpdateResponse, error) - - PluginsBgpPeeringsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsPartialUpdateResponse, error) - - // PluginsBgpPeeringsUpdate request with any body - PluginsBgpPeeringsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsUpdateResponse, error) - - PluginsBgpPeeringsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsUpdateResponse, error) - - // PluginsBgpRoutingInstancesBulkDestroy request with any body - PluginsBgpRoutingInstancesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkDestroyResponse, error) - - PluginsBgpRoutingInstancesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkDestroyResponse, error) - - // PluginsBgpRoutingInstancesList request - PluginsBgpRoutingInstancesListWithResponse(ctx context.Context, params *PluginsBgpRoutingInstancesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesListResponse, error) - - // PluginsBgpRoutingInstancesBulkPartialUpdate request with any body - PluginsBgpRoutingInstancesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkPartialUpdateResponse, error) - - PluginsBgpRoutingInstancesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkPartialUpdateResponse, error) - - // PluginsBgpRoutingInstancesCreate request with any body - PluginsBgpRoutingInstancesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesCreateResponse, error) - - PluginsBgpRoutingInstancesCreateWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesCreateResponse, error) - - // PluginsBgpRoutingInstancesBulkUpdate request with any body - PluginsBgpRoutingInstancesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkUpdateResponse, error) - - PluginsBgpRoutingInstancesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkUpdateResponse, error) - - // PluginsBgpRoutingInstancesDestroy request - PluginsBgpRoutingInstancesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesDestroyResponse, error) - - // PluginsBgpRoutingInstancesRetrieve request - PluginsBgpRoutingInstancesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesRetrieveResponse, error) - - // PluginsBgpRoutingInstancesPartialUpdate request with any body - PluginsBgpRoutingInstancesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesPartialUpdateResponse, error) - - PluginsBgpRoutingInstancesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesPartialUpdateResponse, error) - - // PluginsBgpRoutingInstancesUpdate request with any body - PluginsBgpRoutingInstancesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesUpdateResponse, error) - - PluginsBgpRoutingInstancesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesUpdateResponse, error) - - // PluginsChatopsAccessgrantBulkDestroy request with any body - PluginsChatopsAccessgrantBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkDestroyResponse, error) - - PluginsChatopsAccessgrantBulkDestroyWithResponse(ctx context.Context, body PluginsChatopsAccessgrantBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkDestroyResponse, error) - - // PluginsChatopsAccessgrantList request - PluginsChatopsAccessgrantListWithResponse(ctx context.Context, params *PluginsChatopsAccessgrantListParams, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantListResponse, error) - - // PluginsChatopsAccessgrantBulkPartialUpdate request with any body - PluginsChatopsAccessgrantBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkPartialUpdateResponse, error) - - PluginsChatopsAccessgrantBulkPartialUpdateWithResponse(ctx context.Context, body PluginsChatopsAccessgrantBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkPartialUpdateResponse, error) - - // PluginsChatopsAccessgrantCreate request with any body - PluginsChatopsAccessgrantCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantCreateResponse, error) - - PluginsChatopsAccessgrantCreateWithResponse(ctx context.Context, body PluginsChatopsAccessgrantCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantCreateResponse, error) - - // PluginsChatopsAccessgrantBulkUpdate request with any body - PluginsChatopsAccessgrantBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkUpdateResponse, error) - - PluginsChatopsAccessgrantBulkUpdateWithResponse(ctx context.Context, body PluginsChatopsAccessgrantBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkUpdateResponse, error) - - // PluginsChatopsAccessgrantDestroy request - PluginsChatopsAccessgrantDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantDestroyResponse, error) - - // PluginsChatopsAccessgrantRetrieve request - PluginsChatopsAccessgrantRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantRetrieveResponse, error) - - // PluginsChatopsAccessgrantPartialUpdate request with any body - PluginsChatopsAccessgrantPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantPartialUpdateResponse, error) - - PluginsChatopsAccessgrantPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantPartialUpdateResponse, error) - - // PluginsChatopsAccessgrantUpdate request with any body - PluginsChatopsAccessgrantUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantUpdateResponse, error) - - PluginsChatopsAccessgrantUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantUpdateResponse, error) - - // PluginsChatopsCommandtokenBulkDestroy request with any body - PluginsChatopsCommandtokenBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkDestroyResponse, error) - - PluginsChatopsCommandtokenBulkDestroyWithResponse(ctx context.Context, body PluginsChatopsCommandtokenBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkDestroyResponse, error) - - // PluginsChatopsCommandtokenList request - PluginsChatopsCommandtokenListWithResponse(ctx context.Context, params *PluginsChatopsCommandtokenListParams, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenListResponse, error) - - // PluginsChatopsCommandtokenBulkPartialUpdate request with any body - PluginsChatopsCommandtokenBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkPartialUpdateResponse, error) - - PluginsChatopsCommandtokenBulkPartialUpdateWithResponse(ctx context.Context, body PluginsChatopsCommandtokenBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkPartialUpdateResponse, error) - - // PluginsChatopsCommandtokenCreate request with any body - PluginsChatopsCommandtokenCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenCreateResponse, error) - - PluginsChatopsCommandtokenCreateWithResponse(ctx context.Context, body PluginsChatopsCommandtokenCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenCreateResponse, error) - - // PluginsChatopsCommandtokenBulkUpdate request with any body - PluginsChatopsCommandtokenBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkUpdateResponse, error) - - PluginsChatopsCommandtokenBulkUpdateWithResponse(ctx context.Context, body PluginsChatopsCommandtokenBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkUpdateResponse, error) - - // PluginsChatopsCommandtokenDestroy request - PluginsChatopsCommandtokenDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenDestroyResponse, error) - - // PluginsChatopsCommandtokenRetrieve request - PluginsChatopsCommandtokenRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenRetrieveResponse, error) - - // PluginsChatopsCommandtokenPartialUpdate request with any body - PluginsChatopsCommandtokenPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenPartialUpdateResponse, error) - - PluginsChatopsCommandtokenPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenPartialUpdateResponse, error) - - // PluginsChatopsCommandtokenUpdate request with any body - PluginsChatopsCommandtokenUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenUpdateResponse, error) - - PluginsChatopsCommandtokenUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenUpdateResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactBulkDestroy request with any body - PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse, error) - - PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactList request - PluginsCircuitMaintenanceCircuitimpactListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceCircuitimpactListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactListResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse, error) - - PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactCreate request with any body - PluginsCircuitMaintenanceCircuitimpactCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactCreateResponse, error) - - PluginsCircuitMaintenanceCircuitimpactCreateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactCreateResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactBulkUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse, error) - - PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactDestroy request - PluginsCircuitMaintenanceCircuitimpactDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactDestroyResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactRetrieve request - PluginsCircuitMaintenanceCircuitimpactRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactRetrieveResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactPartialUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse, error) - - PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse, error) - - // PluginsCircuitMaintenanceCircuitimpactUpdate request with any body - PluginsCircuitMaintenanceCircuitimpactUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactUpdateResponse, error) - - PluginsCircuitMaintenanceCircuitimpactUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactUpdateResponse, error) - - // PluginsCircuitMaintenanceMaintenanceBulkDestroy request with any body - PluginsCircuitMaintenanceMaintenanceBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse, error) - - PluginsCircuitMaintenanceMaintenanceBulkDestroyWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse, error) - - // PluginsCircuitMaintenanceMaintenanceList request - PluginsCircuitMaintenanceMaintenanceListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceMaintenanceListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceListResponse, error) - - // PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate request with any body - PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse, error) - - PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse, error) - - // PluginsCircuitMaintenanceMaintenanceCreate request with any body - PluginsCircuitMaintenanceMaintenanceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceCreateResponse, error) - - PluginsCircuitMaintenanceMaintenanceCreateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceCreateResponse, error) - - // PluginsCircuitMaintenanceMaintenanceBulkUpdate request with any body - PluginsCircuitMaintenanceMaintenanceBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse, error) - - PluginsCircuitMaintenanceMaintenanceBulkUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse, error) - - // PluginsCircuitMaintenanceMaintenanceDestroy request - PluginsCircuitMaintenanceMaintenanceDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceDestroyResponse, error) - - // PluginsCircuitMaintenanceMaintenanceRetrieve request - PluginsCircuitMaintenanceMaintenanceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceRetrieveResponse, error) - - // PluginsCircuitMaintenanceMaintenancePartialUpdate request with any body - PluginsCircuitMaintenanceMaintenancePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenancePartialUpdateResponse, error) - - PluginsCircuitMaintenanceMaintenancePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenancePartialUpdateResponse, error) - - // PluginsCircuitMaintenanceMaintenanceUpdate request with any body - PluginsCircuitMaintenanceMaintenanceUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceUpdateResponse, error) - - PluginsCircuitMaintenanceMaintenanceUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenanceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceUpdateResponse, error) - - // PluginsCircuitMaintenanceNoteBulkDestroy request with any body - PluginsCircuitMaintenanceNoteBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkDestroyResponse, error) - - PluginsCircuitMaintenanceNoteBulkDestroyWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkDestroyResponse, error) - - // PluginsCircuitMaintenanceNoteList request - PluginsCircuitMaintenanceNoteListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceNoteListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteListResponse, error) - - // PluginsCircuitMaintenanceNoteBulkPartialUpdate request with any body - PluginsCircuitMaintenanceNoteBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse, error) - - PluginsCircuitMaintenanceNoteBulkPartialUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse, error) - - // PluginsCircuitMaintenanceNoteCreate request with any body - PluginsCircuitMaintenanceNoteCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteCreateResponse, error) - - PluginsCircuitMaintenanceNoteCreateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteCreateResponse, error) - - // PluginsCircuitMaintenanceNoteBulkUpdate request with any body - PluginsCircuitMaintenanceNoteBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkUpdateResponse, error) - - PluginsCircuitMaintenanceNoteBulkUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkUpdateResponse, error) - - // PluginsCircuitMaintenanceNoteDestroy request - PluginsCircuitMaintenanceNoteDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteDestroyResponse, error) - - // PluginsCircuitMaintenanceNoteRetrieve request - PluginsCircuitMaintenanceNoteRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteRetrieveResponse, error) - - // PluginsCircuitMaintenanceNotePartialUpdate request with any body - PluginsCircuitMaintenanceNotePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotePartialUpdateResponse, error) - - PluginsCircuitMaintenanceNotePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNotePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotePartialUpdateResponse, error) - - // PluginsCircuitMaintenanceNoteUpdate request with any body - PluginsCircuitMaintenanceNoteUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteUpdateResponse, error) - - PluginsCircuitMaintenanceNoteUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNoteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteUpdateResponse, error) - - // PluginsCircuitMaintenanceNotificationsourceList request - PluginsCircuitMaintenanceNotificationsourceListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceNotificationsourceListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotificationsourceListResponse, error) - - // PluginsCircuitMaintenanceNotificationsourceRetrieve request - PluginsCircuitMaintenanceNotificationsourceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotificationsourceRetrieveResponse, error) - - // PluginsDataValidationEngineRulesMinMaxBulkDestroy request with any body - PluginsDataValidationEngineRulesMinMaxBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse, error) - - PluginsDataValidationEngineRulesMinMaxBulkDestroyWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse, error) - - // PluginsDataValidationEngineRulesMinMaxList request - PluginsDataValidationEngineRulesMinMaxListWithResponse(ctx context.Context, params *PluginsDataValidationEngineRulesMinMaxListParams, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxListResponse, error) - - // PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate request with any body - PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse, error) - - PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse, error) - - // PluginsDataValidationEngineRulesMinMaxCreate request with any body - PluginsDataValidationEngineRulesMinMaxCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxCreateResponse, error) - - PluginsDataValidationEngineRulesMinMaxCreateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxCreateResponse, error) - - // PluginsDataValidationEngineRulesMinMaxBulkUpdate request with any body - PluginsDataValidationEngineRulesMinMaxBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse, error) - - PluginsDataValidationEngineRulesMinMaxBulkUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse, error) - - // PluginsDataValidationEngineRulesMinMaxDestroy request - PluginsDataValidationEngineRulesMinMaxDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxDestroyResponse, error) - - // PluginsDataValidationEngineRulesMinMaxRetrieve request - PluginsDataValidationEngineRulesMinMaxRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxRetrieveResponse, error) - - // PluginsDataValidationEngineRulesMinMaxPartialUpdate request with any body - PluginsDataValidationEngineRulesMinMaxPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse, error) - - PluginsDataValidationEngineRulesMinMaxPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse, error) - - // PluginsDataValidationEngineRulesMinMaxUpdate request with any body - PluginsDataValidationEngineRulesMinMaxUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxUpdateResponse, error) - - PluginsDataValidationEngineRulesMinMaxUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxUpdateResponse, error) - - // PluginsDataValidationEngineRulesRegexBulkDestroy request with any body - PluginsDataValidationEngineRulesRegexBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkDestroyResponse, error) - - PluginsDataValidationEngineRulesRegexBulkDestroyWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkDestroyResponse, error) - - // PluginsDataValidationEngineRulesRegexList request - PluginsDataValidationEngineRulesRegexListWithResponse(ctx context.Context, params *PluginsDataValidationEngineRulesRegexListParams, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexListResponse, error) - - // PluginsDataValidationEngineRulesRegexBulkPartialUpdate request with any body - PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse, error) - - PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse, error) - - // PluginsDataValidationEngineRulesRegexCreate request with any body - PluginsDataValidationEngineRulesRegexCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexCreateResponse, error) - - PluginsDataValidationEngineRulesRegexCreateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexCreateResponse, error) - - // PluginsDataValidationEngineRulesRegexBulkUpdate request with any body - PluginsDataValidationEngineRulesRegexBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkUpdateResponse, error) - - PluginsDataValidationEngineRulesRegexBulkUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkUpdateResponse, error) - - // PluginsDataValidationEngineRulesRegexDestroy request - PluginsDataValidationEngineRulesRegexDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexDestroyResponse, error) - - // PluginsDataValidationEngineRulesRegexRetrieve request - PluginsDataValidationEngineRulesRegexRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexRetrieveResponse, error) - - // PluginsDataValidationEngineRulesRegexPartialUpdate request with any body - PluginsDataValidationEngineRulesRegexPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexPartialUpdateResponse, error) - - PluginsDataValidationEngineRulesRegexPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexPartialUpdateResponse, error) - - // PluginsDataValidationEngineRulesRegexUpdate request with any body - PluginsDataValidationEngineRulesRegexUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexUpdateResponse, error) - - PluginsDataValidationEngineRulesRegexUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexUpdateResponse, error) - - // PluginsDeviceOnboardingOnboardingList request - PluginsDeviceOnboardingOnboardingListWithResponse(ctx context.Context, params *PluginsDeviceOnboardingOnboardingListParams, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingListResponse, error) - - // PluginsDeviceOnboardingOnboardingCreate request with any body - PluginsDeviceOnboardingOnboardingCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingCreateResponse, error) - - PluginsDeviceOnboardingOnboardingCreateWithResponse(ctx context.Context, body PluginsDeviceOnboardingOnboardingCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingCreateResponse, error) - - // PluginsDeviceOnboardingOnboardingDestroy request - PluginsDeviceOnboardingOnboardingDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingDestroyResponse, error) - - // PluginsDeviceOnboardingOnboardingRetrieve request - PluginsDeviceOnboardingOnboardingRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingRetrieveResponse, error) - - // PluginsFirewallAddressObjectGroupBulkDestroy request with any body - PluginsFirewallAddressObjectGroupBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkDestroyResponse, error) - - PluginsFirewallAddressObjectGroupBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkDestroyResponse, error) - - // PluginsFirewallAddressObjectGroupList request - PluginsFirewallAddressObjectGroupListWithResponse(ctx context.Context, params *PluginsFirewallAddressObjectGroupListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupListResponse, error) - - // PluginsFirewallAddressObjectGroupBulkPartialUpdate request with any body - PluginsFirewallAddressObjectGroupBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse, error) - - PluginsFirewallAddressObjectGroupBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse, error) - - // PluginsFirewallAddressObjectGroupCreate request with any body - PluginsFirewallAddressObjectGroupCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupCreateResponse, error) - - PluginsFirewallAddressObjectGroupCreateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupCreateResponse, error) - - // PluginsFirewallAddressObjectGroupBulkUpdate request with any body - PluginsFirewallAddressObjectGroupBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkUpdateResponse, error) - - PluginsFirewallAddressObjectGroupBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkUpdateResponse, error) - - // PluginsFirewallAddressObjectGroupDestroy request - PluginsFirewallAddressObjectGroupDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupDestroyResponse, error) - - // PluginsFirewallAddressObjectGroupRetrieve request - PluginsFirewallAddressObjectGroupRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupRetrieveResponse, error) - - // PluginsFirewallAddressObjectGroupPartialUpdate request with any body - PluginsFirewallAddressObjectGroupPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupPartialUpdateResponse, error) - - PluginsFirewallAddressObjectGroupPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupPartialUpdateResponse, error) - - // PluginsFirewallAddressObjectGroupUpdate request with any body - PluginsFirewallAddressObjectGroupUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupUpdateResponse, error) - - PluginsFirewallAddressObjectGroupUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupUpdateResponse, error) - - // PluginsFirewallAddressObjectGroupNotesList request - PluginsFirewallAddressObjectGroupNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupNotesListResponse, error) - - // PluginsFirewallAddressObjectGroupNotesCreate request with any body - PluginsFirewallAddressObjectGroupNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupNotesCreateResponse, error) - - PluginsFirewallAddressObjectGroupNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupNotesCreateResponse, error) - - // PluginsFirewallAddressObjectBulkDestroy request with any body - PluginsFirewallAddressObjectBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkDestroyResponse, error) - - PluginsFirewallAddressObjectBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallAddressObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkDestroyResponse, error) - - // PluginsFirewallAddressObjectList request - PluginsFirewallAddressObjectListWithResponse(ctx context.Context, params *PluginsFirewallAddressObjectListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectListResponse, error) - - // PluginsFirewallAddressObjectBulkPartialUpdate request with any body - PluginsFirewallAddressObjectBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkPartialUpdateResponse, error) - - PluginsFirewallAddressObjectBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkPartialUpdateResponse, error) - - // PluginsFirewallAddressObjectCreate request with any body - PluginsFirewallAddressObjectCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectCreateResponse, error) - - PluginsFirewallAddressObjectCreateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectCreateResponse, error) - - // PluginsFirewallAddressObjectBulkUpdate request with any body - PluginsFirewallAddressObjectBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkUpdateResponse, error) - - PluginsFirewallAddressObjectBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkUpdateResponse, error) - - // PluginsFirewallAddressObjectDestroy request - PluginsFirewallAddressObjectDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectDestroyResponse, error) - - // PluginsFirewallAddressObjectRetrieve request - PluginsFirewallAddressObjectRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectRetrieveResponse, error) - - // PluginsFirewallAddressObjectPartialUpdate request with any body - PluginsFirewallAddressObjectPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectPartialUpdateResponse, error) - - PluginsFirewallAddressObjectPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectPartialUpdateResponse, error) - - // PluginsFirewallAddressObjectUpdate request with any body - PluginsFirewallAddressObjectUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectUpdateResponse, error) - - PluginsFirewallAddressObjectUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectUpdateResponse, error) - - // PluginsFirewallAddressObjectNotesList request - PluginsFirewallAddressObjectNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectNotesListResponse, error) - - // PluginsFirewallAddressObjectNotesCreate request with any body - PluginsFirewallAddressObjectNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectNotesCreateResponse, error) - - PluginsFirewallAddressObjectNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectNotesCreateResponse, error) - - // PluginsFirewallCapircaPolicyBulkDestroy request with any body - PluginsFirewallCapircaPolicyBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkDestroyResponse, error) - - PluginsFirewallCapircaPolicyBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkDestroyResponse, error) - - // PluginsFirewallCapircaPolicyList request - PluginsFirewallCapircaPolicyListWithResponse(ctx context.Context, params *PluginsFirewallCapircaPolicyListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyListResponse, error) - - // PluginsFirewallCapircaPolicyBulkPartialUpdate request with any body - PluginsFirewallCapircaPolicyBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkPartialUpdateResponse, error) - - PluginsFirewallCapircaPolicyBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkPartialUpdateResponse, error) - - // PluginsFirewallCapircaPolicyCreate request with any body - PluginsFirewallCapircaPolicyCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyCreateResponse, error) - - PluginsFirewallCapircaPolicyCreateWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyCreateResponse, error) - - // PluginsFirewallCapircaPolicyBulkUpdate request with any body - PluginsFirewallCapircaPolicyBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkUpdateResponse, error) - - PluginsFirewallCapircaPolicyBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkUpdateResponse, error) - - // PluginsFirewallCapircaPolicyDestroy request - PluginsFirewallCapircaPolicyDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyDestroyResponse, error) - - // PluginsFirewallCapircaPolicyRetrieve request - PluginsFirewallCapircaPolicyRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyRetrieveResponse, error) - - // PluginsFirewallCapircaPolicyPartialUpdate request with any body - PluginsFirewallCapircaPolicyPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyPartialUpdateResponse, error) - - PluginsFirewallCapircaPolicyPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyPartialUpdateResponse, error) - - // PluginsFirewallCapircaPolicyUpdate request with any body - PluginsFirewallCapircaPolicyUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyUpdateResponse, error) - - PluginsFirewallCapircaPolicyUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyUpdateResponse, error) - - // PluginsFirewallFqdnBulkDestroy request with any body - PluginsFirewallFqdnBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkDestroyResponse, error) - - PluginsFirewallFqdnBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallFqdnBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkDestroyResponse, error) - - // PluginsFirewallFqdnList request - PluginsFirewallFqdnListWithResponse(ctx context.Context, params *PluginsFirewallFqdnListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnListResponse, error) - - // PluginsFirewallFqdnBulkPartialUpdate request with any body - PluginsFirewallFqdnBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkPartialUpdateResponse, error) - - PluginsFirewallFqdnBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallFqdnBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkPartialUpdateResponse, error) - - // PluginsFirewallFqdnCreate request with any body - PluginsFirewallFqdnCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnCreateResponse, error) - - PluginsFirewallFqdnCreateWithResponse(ctx context.Context, body PluginsFirewallFqdnCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnCreateResponse, error) - - // PluginsFirewallFqdnBulkUpdate request with any body - PluginsFirewallFqdnBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkUpdateResponse, error) - - PluginsFirewallFqdnBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallFqdnBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkUpdateResponse, error) - - // PluginsFirewallFqdnDestroy request - PluginsFirewallFqdnDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnDestroyResponse, error) - - // PluginsFirewallFqdnRetrieve request - PluginsFirewallFqdnRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnRetrieveResponse, error) - - // PluginsFirewallFqdnPartialUpdate request with any body - PluginsFirewallFqdnPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnPartialUpdateResponse, error) - - PluginsFirewallFqdnPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnPartialUpdateResponse, error) - - // PluginsFirewallFqdnUpdate request with any body - PluginsFirewallFqdnUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnUpdateResponse, error) - - PluginsFirewallFqdnUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnUpdateResponse, error) - - // PluginsFirewallFqdnNotesList request - PluginsFirewallFqdnNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallFqdnNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnNotesListResponse, error) - - // PluginsFirewallFqdnNotesCreate request with any body - PluginsFirewallFqdnNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnNotesCreateResponse, error) - - PluginsFirewallFqdnNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnNotesCreateResponse, error) - - // PluginsFirewallIpRangeBulkDestroy request with any body - PluginsFirewallIpRangeBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkDestroyResponse, error) - - PluginsFirewallIpRangeBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallIpRangeBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkDestroyResponse, error) - - // PluginsFirewallIpRangeList request - PluginsFirewallIpRangeListWithResponse(ctx context.Context, params *PluginsFirewallIpRangeListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeListResponse, error) - - // PluginsFirewallIpRangeBulkPartialUpdate request with any body - PluginsFirewallIpRangeBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkPartialUpdateResponse, error) - - PluginsFirewallIpRangeBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallIpRangeBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkPartialUpdateResponse, error) - - // PluginsFirewallIpRangeCreate request with any body - PluginsFirewallIpRangeCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeCreateResponse, error) - - PluginsFirewallIpRangeCreateWithResponse(ctx context.Context, body PluginsFirewallIpRangeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeCreateResponse, error) - - // PluginsFirewallIpRangeBulkUpdate request with any body - PluginsFirewallIpRangeBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkUpdateResponse, error) - - PluginsFirewallIpRangeBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallIpRangeBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkUpdateResponse, error) - - // PluginsFirewallIpRangeDestroy request - PluginsFirewallIpRangeDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeDestroyResponse, error) - - // PluginsFirewallIpRangeRetrieve request - PluginsFirewallIpRangeRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeRetrieveResponse, error) - - // PluginsFirewallIpRangePartialUpdate request with any body - PluginsFirewallIpRangePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangePartialUpdateResponse, error) - - PluginsFirewallIpRangePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangePartialUpdateResponse, error) - - // PluginsFirewallIpRangeUpdate request with any body - PluginsFirewallIpRangeUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeUpdateResponse, error) - - PluginsFirewallIpRangeUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeUpdateResponse, error) - - // PluginsFirewallIpRangeNotesList request - PluginsFirewallIpRangeNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallIpRangeNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeNotesListResponse, error) - - // PluginsFirewallIpRangeNotesCreate request with any body - PluginsFirewallIpRangeNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeNotesCreateResponse, error) - - PluginsFirewallIpRangeNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeNotesCreateResponse, error) - - // PluginsFirewallNatPolicyRuleBulkDestroy request with any body - PluginsFirewallNatPolicyRuleBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkDestroyResponse, error) - - PluginsFirewallNatPolicyRuleBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkDestroyResponse, error) - - // PluginsFirewallNatPolicyRuleList request - PluginsFirewallNatPolicyRuleListWithResponse(ctx context.Context, params *PluginsFirewallNatPolicyRuleListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleListResponse, error) - - // PluginsFirewallNatPolicyRuleBulkPartialUpdate request with any body - PluginsFirewallNatPolicyRuleBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse, error) - - PluginsFirewallNatPolicyRuleBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse, error) - - // PluginsFirewallNatPolicyRuleCreate request with any body - PluginsFirewallNatPolicyRuleCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleCreateResponse, error) - - PluginsFirewallNatPolicyRuleCreateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleCreateResponse, error) - - // PluginsFirewallNatPolicyRuleBulkUpdate request with any body - PluginsFirewallNatPolicyRuleBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkUpdateResponse, error) - - PluginsFirewallNatPolicyRuleBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkUpdateResponse, error) - - // PluginsFirewallNatPolicyRuleDestroy request - PluginsFirewallNatPolicyRuleDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleDestroyResponse, error) - - // PluginsFirewallNatPolicyRuleRetrieve request - PluginsFirewallNatPolicyRuleRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleRetrieveResponse, error) - - // PluginsFirewallNatPolicyRulePartialUpdate request with any body - PluginsFirewallNatPolicyRulePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRulePartialUpdateResponse, error) - - PluginsFirewallNatPolicyRulePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRulePartialUpdateResponse, error) - - // PluginsFirewallNatPolicyRuleUpdate request with any body - PluginsFirewallNatPolicyRuleUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleUpdateResponse, error) - - PluginsFirewallNatPolicyRuleUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleUpdateResponse, error) - - // PluginsFirewallNatPolicyRuleNotesList request - PluginsFirewallNatPolicyRuleNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleNotesListResponse, error) - - // PluginsFirewallNatPolicyRuleNotesCreate request with any body - PluginsFirewallNatPolicyRuleNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleNotesCreateResponse, error) - - PluginsFirewallNatPolicyRuleNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleNotesCreateResponse, error) - - // PluginsFirewallNatPolicyBulkDestroy request with any body - PluginsFirewallNatPolicyBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkDestroyResponse, error) - - PluginsFirewallNatPolicyBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallNatPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkDestroyResponse, error) - - // PluginsFirewallNatPolicyList request - PluginsFirewallNatPolicyListWithResponse(ctx context.Context, params *PluginsFirewallNatPolicyListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyListResponse, error) - - // PluginsFirewallNatPolicyBulkPartialUpdate request with any body - PluginsFirewallNatPolicyBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkPartialUpdateResponse, error) - - PluginsFirewallNatPolicyBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkPartialUpdateResponse, error) - - // PluginsFirewallNatPolicyCreate request with any body - PluginsFirewallNatPolicyCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyCreateResponse, error) - - PluginsFirewallNatPolicyCreateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyCreateResponse, error) - - // PluginsFirewallNatPolicyBulkUpdate request with any body - PluginsFirewallNatPolicyBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkUpdateResponse, error) - - PluginsFirewallNatPolicyBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkUpdateResponse, error) - - // PluginsFirewallNatPolicyDestroy request - PluginsFirewallNatPolicyDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyDestroyResponse, error) - - // PluginsFirewallNatPolicyRetrieve request - PluginsFirewallNatPolicyRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRetrieveResponse, error) - - // PluginsFirewallNatPolicyPartialUpdate request with any body - PluginsFirewallNatPolicyPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyPartialUpdateResponse, error) - - PluginsFirewallNatPolicyPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyPartialUpdateResponse, error) - - // PluginsFirewallNatPolicyUpdate request with any body - PluginsFirewallNatPolicyUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyUpdateResponse, error) - - PluginsFirewallNatPolicyUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyUpdateResponse, error) - - // PluginsFirewallNatPolicyNotesList request - PluginsFirewallNatPolicyNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyNotesListResponse, error) - - // PluginsFirewallNatPolicyNotesCreate request with any body - PluginsFirewallNatPolicyNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyNotesCreateResponse, error) - - PluginsFirewallNatPolicyNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyNotesCreateResponse, error) - - // PluginsFirewallPolicyRuleBulkDestroy request with any body - PluginsFirewallPolicyRuleBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkDestroyResponse, error) - - PluginsFirewallPolicyRuleBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkDestroyResponse, error) - - // PluginsFirewallPolicyRuleList request - PluginsFirewallPolicyRuleListWithResponse(ctx context.Context, params *PluginsFirewallPolicyRuleListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleListResponse, error) - - // PluginsFirewallPolicyRuleBulkPartialUpdate request with any body - PluginsFirewallPolicyRuleBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkPartialUpdateResponse, error) - - PluginsFirewallPolicyRuleBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkPartialUpdateResponse, error) - - // PluginsFirewallPolicyRuleCreate request with any body - PluginsFirewallPolicyRuleCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleCreateResponse, error) - - PluginsFirewallPolicyRuleCreateWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleCreateResponse, error) - - // PluginsFirewallPolicyRuleBulkUpdate request with any body - PluginsFirewallPolicyRuleBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkUpdateResponse, error) - - PluginsFirewallPolicyRuleBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkUpdateResponse, error) - - // PluginsFirewallPolicyRuleDestroy request - PluginsFirewallPolicyRuleDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleDestroyResponse, error) - - // PluginsFirewallPolicyRuleRetrieve request - PluginsFirewallPolicyRuleRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleRetrieveResponse, error) - - // PluginsFirewallPolicyRulePartialUpdate request with any body - PluginsFirewallPolicyRulePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRulePartialUpdateResponse, error) - - PluginsFirewallPolicyRulePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRulePartialUpdateResponse, error) - - // PluginsFirewallPolicyRuleUpdate request with any body - PluginsFirewallPolicyRuleUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleUpdateResponse, error) - - PluginsFirewallPolicyRuleUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleUpdateResponse, error) - - // PluginsFirewallPolicyRuleNotesList request - PluginsFirewallPolicyRuleNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleNotesListResponse, error) - - // PluginsFirewallPolicyRuleNotesCreate request with any body - PluginsFirewallPolicyRuleNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleNotesCreateResponse, error) - - PluginsFirewallPolicyRuleNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleNotesCreateResponse, error) - - // PluginsFirewallPolicyBulkDestroy request with any body - PluginsFirewallPolicyBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkDestroyResponse, error) - - PluginsFirewallPolicyBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkDestroyResponse, error) - - // PluginsFirewallPolicyList request - PluginsFirewallPolicyListWithResponse(ctx context.Context, params *PluginsFirewallPolicyListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyListResponse, error) - - // PluginsFirewallPolicyBulkPartialUpdate request with any body - PluginsFirewallPolicyBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkPartialUpdateResponse, error) - - PluginsFirewallPolicyBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkPartialUpdateResponse, error) - - // PluginsFirewallPolicyCreate request with any body - PluginsFirewallPolicyCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyCreateResponse, error) - - PluginsFirewallPolicyCreateWithResponse(ctx context.Context, body PluginsFirewallPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyCreateResponse, error) - - // PluginsFirewallPolicyBulkUpdate request with any body - PluginsFirewallPolicyBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkUpdateResponse, error) - - PluginsFirewallPolicyBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkUpdateResponse, error) - - // PluginsFirewallPolicyDestroy request - PluginsFirewallPolicyDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyDestroyResponse, error) - - // PluginsFirewallPolicyRetrieve request - PluginsFirewallPolicyRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRetrieveResponse, error) - - // PluginsFirewallPolicyPartialUpdate request with any body - PluginsFirewallPolicyPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyPartialUpdateResponse, error) - - PluginsFirewallPolicyPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyPartialUpdateResponse, error) - - // PluginsFirewallPolicyUpdate request with any body - PluginsFirewallPolicyUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyUpdateResponse, error) - - PluginsFirewallPolicyUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyUpdateResponse, error) - - // PluginsFirewallPolicyNotesList request - PluginsFirewallPolicyNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyNotesListResponse, error) - - // PluginsFirewallPolicyNotesCreate request with any body - PluginsFirewallPolicyNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyNotesCreateResponse, error) - - PluginsFirewallPolicyNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyNotesCreateResponse, error) - - // PluginsFirewallServiceObjectGroupBulkDestroy request with any body - PluginsFirewallServiceObjectGroupBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkDestroyResponse, error) - - PluginsFirewallServiceObjectGroupBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkDestroyResponse, error) - - // PluginsFirewallServiceObjectGroupList request - PluginsFirewallServiceObjectGroupListWithResponse(ctx context.Context, params *PluginsFirewallServiceObjectGroupListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupListResponse, error) - - // PluginsFirewallServiceObjectGroupBulkPartialUpdate request with any body - PluginsFirewallServiceObjectGroupBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse, error) - - PluginsFirewallServiceObjectGroupBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse, error) - - // PluginsFirewallServiceObjectGroupCreate request with any body - PluginsFirewallServiceObjectGroupCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupCreateResponse, error) - - PluginsFirewallServiceObjectGroupCreateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupCreateResponse, error) - - // PluginsFirewallServiceObjectGroupBulkUpdate request with any body - PluginsFirewallServiceObjectGroupBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkUpdateResponse, error) - - PluginsFirewallServiceObjectGroupBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkUpdateResponse, error) - - // PluginsFirewallServiceObjectGroupDestroy request - PluginsFirewallServiceObjectGroupDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupDestroyResponse, error) - - // PluginsFirewallServiceObjectGroupRetrieve request - PluginsFirewallServiceObjectGroupRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupRetrieveResponse, error) - - // PluginsFirewallServiceObjectGroupPartialUpdate request with any body - PluginsFirewallServiceObjectGroupPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupPartialUpdateResponse, error) - - PluginsFirewallServiceObjectGroupPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupPartialUpdateResponse, error) - - // PluginsFirewallServiceObjectGroupUpdate request with any body - PluginsFirewallServiceObjectGroupUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupUpdateResponse, error) - - PluginsFirewallServiceObjectGroupUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupUpdateResponse, error) - - // PluginsFirewallServiceObjectGroupNotesList request - PluginsFirewallServiceObjectGroupNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupNotesListResponse, error) - - // PluginsFirewallServiceObjectGroupNotesCreate request with any body - PluginsFirewallServiceObjectGroupNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupNotesCreateResponse, error) - - PluginsFirewallServiceObjectGroupNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupNotesCreateResponse, error) - - // PluginsFirewallServiceObjectBulkDestroy request with any body - PluginsFirewallServiceObjectBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkDestroyResponse, error) - - PluginsFirewallServiceObjectBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallServiceObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkDestroyResponse, error) - - // PluginsFirewallServiceObjectList request - PluginsFirewallServiceObjectListWithResponse(ctx context.Context, params *PluginsFirewallServiceObjectListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectListResponse, error) - - // PluginsFirewallServiceObjectBulkPartialUpdate request with any body - PluginsFirewallServiceObjectBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkPartialUpdateResponse, error) - - PluginsFirewallServiceObjectBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkPartialUpdateResponse, error) - - // PluginsFirewallServiceObjectCreate request with any body - PluginsFirewallServiceObjectCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectCreateResponse, error) - - PluginsFirewallServiceObjectCreateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectCreateResponse, error) - - // PluginsFirewallServiceObjectBulkUpdate request with any body - PluginsFirewallServiceObjectBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkUpdateResponse, error) - - PluginsFirewallServiceObjectBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkUpdateResponse, error) - - // PluginsFirewallServiceObjectDestroy request - PluginsFirewallServiceObjectDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectDestroyResponse, error) - - // PluginsFirewallServiceObjectRetrieve request - PluginsFirewallServiceObjectRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectRetrieveResponse, error) - - // PluginsFirewallServiceObjectPartialUpdate request with any body - PluginsFirewallServiceObjectPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectPartialUpdateResponse, error) - - PluginsFirewallServiceObjectPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectPartialUpdateResponse, error) - - // PluginsFirewallServiceObjectUpdate request with any body - PluginsFirewallServiceObjectUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectUpdateResponse, error) - - PluginsFirewallServiceObjectUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectUpdateResponse, error) - - // PluginsFirewallServiceObjectNotesList request - PluginsFirewallServiceObjectNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectNotesListResponse, error) - - // PluginsFirewallServiceObjectNotesCreate request with any body - PluginsFirewallServiceObjectNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectNotesCreateResponse, error) - - PluginsFirewallServiceObjectNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectNotesCreateResponse, error) - - // PluginsFirewallUserObjectGroupBulkDestroy request with any body - PluginsFirewallUserObjectGroupBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkDestroyResponse, error) - - PluginsFirewallUserObjectGroupBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkDestroyResponse, error) - - // PluginsFirewallUserObjectGroupList request - PluginsFirewallUserObjectGroupListWithResponse(ctx context.Context, params *PluginsFirewallUserObjectGroupListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupListResponse, error) - - // PluginsFirewallUserObjectGroupBulkPartialUpdate request with any body - PluginsFirewallUserObjectGroupBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkPartialUpdateResponse, error) - - PluginsFirewallUserObjectGroupBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkPartialUpdateResponse, error) - - // PluginsFirewallUserObjectGroupCreate request with any body - PluginsFirewallUserObjectGroupCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupCreateResponse, error) - - PluginsFirewallUserObjectGroupCreateWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupCreateResponse, error) - - // PluginsFirewallUserObjectGroupBulkUpdate request with any body - PluginsFirewallUserObjectGroupBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkUpdateResponse, error) - - PluginsFirewallUserObjectGroupBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkUpdateResponse, error) - - // PluginsFirewallUserObjectGroupDestroy request - PluginsFirewallUserObjectGroupDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupDestroyResponse, error) - - // PluginsFirewallUserObjectGroupRetrieve request - PluginsFirewallUserObjectGroupRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupRetrieveResponse, error) - - // PluginsFirewallUserObjectGroupPartialUpdate request with any body - PluginsFirewallUserObjectGroupPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupPartialUpdateResponse, error) - - PluginsFirewallUserObjectGroupPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupPartialUpdateResponse, error) - - // PluginsFirewallUserObjectGroupUpdate request with any body - PluginsFirewallUserObjectGroupUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupUpdateResponse, error) - - PluginsFirewallUserObjectGroupUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupUpdateResponse, error) - - // PluginsFirewallUserObjectGroupNotesList request - PluginsFirewallUserObjectGroupNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupNotesListResponse, error) - - // PluginsFirewallUserObjectGroupNotesCreate request with any body - PluginsFirewallUserObjectGroupNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupNotesCreateResponse, error) - - PluginsFirewallUserObjectGroupNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupNotesCreateResponse, error) - - // PluginsFirewallUserObjectBulkDestroy request with any body - PluginsFirewallUserObjectBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkDestroyResponse, error) - - PluginsFirewallUserObjectBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallUserObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkDestroyResponse, error) - - // PluginsFirewallUserObjectList request - PluginsFirewallUserObjectListWithResponse(ctx context.Context, params *PluginsFirewallUserObjectListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectListResponse, error) - - // PluginsFirewallUserObjectBulkPartialUpdate request with any body - PluginsFirewallUserObjectBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkPartialUpdateResponse, error) - - PluginsFirewallUserObjectBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkPartialUpdateResponse, error) - - // PluginsFirewallUserObjectCreate request with any body - PluginsFirewallUserObjectCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectCreateResponse, error) - - PluginsFirewallUserObjectCreateWithResponse(ctx context.Context, body PluginsFirewallUserObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectCreateResponse, error) - - // PluginsFirewallUserObjectBulkUpdate request with any body - PluginsFirewallUserObjectBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkUpdateResponse, error) - - PluginsFirewallUserObjectBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkUpdateResponse, error) - - // PluginsFirewallUserObjectDestroy request - PluginsFirewallUserObjectDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectDestroyResponse, error) - - // PluginsFirewallUserObjectRetrieve request - PluginsFirewallUserObjectRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectRetrieveResponse, error) - - // PluginsFirewallUserObjectPartialUpdate request with any body - PluginsFirewallUserObjectPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectPartialUpdateResponse, error) - - PluginsFirewallUserObjectPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectPartialUpdateResponse, error) - - // PluginsFirewallUserObjectUpdate request with any body - PluginsFirewallUserObjectUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectUpdateResponse, error) - - PluginsFirewallUserObjectUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectUpdateResponse, error) - - // PluginsFirewallUserObjectNotesList request - PluginsFirewallUserObjectNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectNotesListResponse, error) - - // PluginsFirewallUserObjectNotesCreate request with any body - PluginsFirewallUserObjectNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectNotesCreateResponse, error) - - PluginsFirewallUserObjectNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectNotesCreateResponse, error) - - // PluginsFirewallZoneBulkDestroy request with any body - PluginsFirewallZoneBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkDestroyResponse, error) - - PluginsFirewallZoneBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallZoneBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkDestroyResponse, error) - - // PluginsFirewallZoneList request - PluginsFirewallZoneListWithResponse(ctx context.Context, params *PluginsFirewallZoneListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneListResponse, error) - - // PluginsFirewallZoneBulkPartialUpdate request with any body - PluginsFirewallZoneBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkPartialUpdateResponse, error) - - PluginsFirewallZoneBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallZoneBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkPartialUpdateResponse, error) - - // PluginsFirewallZoneCreate request with any body - PluginsFirewallZoneCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneCreateResponse, error) - - PluginsFirewallZoneCreateWithResponse(ctx context.Context, body PluginsFirewallZoneCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneCreateResponse, error) - - // PluginsFirewallZoneBulkUpdate request with any body - PluginsFirewallZoneBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkUpdateResponse, error) - - PluginsFirewallZoneBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallZoneBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkUpdateResponse, error) - - // PluginsFirewallZoneDestroy request - PluginsFirewallZoneDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneDestroyResponse, error) - - // PluginsFirewallZoneRetrieve request - PluginsFirewallZoneRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneRetrieveResponse, error) - - // PluginsFirewallZonePartialUpdate request with any body - PluginsFirewallZonePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZonePartialUpdateResponse, error) - - PluginsFirewallZonePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZonePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZonePartialUpdateResponse, error) - - // PluginsFirewallZoneUpdate request with any body - PluginsFirewallZoneUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneUpdateResponse, error) - - PluginsFirewallZoneUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneUpdateResponse, error) - - // PluginsFirewallZoneNotesList request - PluginsFirewallZoneNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallZoneNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneNotesListResponse, error) - - // PluginsFirewallZoneNotesCreate request with any body - PluginsFirewallZoneNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneNotesCreateResponse, error) - - PluginsFirewallZoneNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneNotesCreateResponse, error) - - // PluginsGoldenConfigComplianceFeatureBulkDestroy request with any body - PluginsGoldenConfigComplianceFeatureBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkDestroyResponse, error) - - PluginsGoldenConfigComplianceFeatureBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkDestroyResponse, error) - - // PluginsGoldenConfigComplianceFeatureList request - PluginsGoldenConfigComplianceFeatureListWithResponse(ctx context.Context, params *PluginsGoldenConfigComplianceFeatureListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureListResponse, error) - - // PluginsGoldenConfigComplianceFeatureBulkPartialUpdate request with any body - PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse, error) - - PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse, error) - - // PluginsGoldenConfigComplianceFeatureCreate request with any body - PluginsGoldenConfigComplianceFeatureCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureCreateResponse, error) - - PluginsGoldenConfigComplianceFeatureCreateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureCreateResponse, error) - - // PluginsGoldenConfigComplianceFeatureBulkUpdate request with any body - PluginsGoldenConfigComplianceFeatureBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkUpdateResponse, error) - - PluginsGoldenConfigComplianceFeatureBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkUpdateResponse, error) - - // PluginsGoldenConfigComplianceFeatureDestroy request - PluginsGoldenConfigComplianceFeatureDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureDestroyResponse, error) - - // PluginsGoldenConfigComplianceFeatureRetrieve request - PluginsGoldenConfigComplianceFeatureRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureRetrieveResponse, error) - - // PluginsGoldenConfigComplianceFeaturePartialUpdate request with any body - PluginsGoldenConfigComplianceFeaturePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeaturePartialUpdateResponse, error) - - PluginsGoldenConfigComplianceFeaturePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeaturePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeaturePartialUpdateResponse, error) - - // PluginsGoldenConfigComplianceFeatureUpdate request with any body - PluginsGoldenConfigComplianceFeatureUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureUpdateResponse, error) - - PluginsGoldenConfigComplianceFeatureUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeatureUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureUpdateResponse, error) - - // PluginsGoldenConfigComplianceRuleBulkDestroy request with any body - PluginsGoldenConfigComplianceRuleBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkDestroyResponse, error) - - PluginsGoldenConfigComplianceRuleBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkDestroyResponse, error) - - // PluginsGoldenConfigComplianceRuleList request - PluginsGoldenConfigComplianceRuleListWithResponse(ctx context.Context, params *PluginsGoldenConfigComplianceRuleListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleListResponse, error) - - // PluginsGoldenConfigComplianceRuleBulkPartialUpdate request with any body - PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse, error) - - PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse, error) - - // PluginsGoldenConfigComplianceRuleCreate request with any body - PluginsGoldenConfigComplianceRuleCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleCreateResponse, error) - - PluginsGoldenConfigComplianceRuleCreateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleCreateResponse, error) - - // PluginsGoldenConfigComplianceRuleBulkUpdate request with any body - PluginsGoldenConfigComplianceRuleBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkUpdateResponse, error) - - PluginsGoldenConfigComplianceRuleBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkUpdateResponse, error) - - // PluginsGoldenConfigComplianceRuleDestroy request - PluginsGoldenConfigComplianceRuleDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleDestroyResponse, error) - - // PluginsGoldenConfigComplianceRuleRetrieve request - PluginsGoldenConfigComplianceRuleRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleRetrieveResponse, error) - - // PluginsGoldenConfigComplianceRulePartialUpdate request with any body - PluginsGoldenConfigComplianceRulePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRulePartialUpdateResponse, error) - - PluginsGoldenConfigComplianceRulePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRulePartialUpdateResponse, error) - - // PluginsGoldenConfigComplianceRuleUpdate request with any body - PluginsGoldenConfigComplianceRuleUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleUpdateResponse, error) - - PluginsGoldenConfigComplianceRuleUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleUpdateResponse, error) - - // PluginsGoldenConfigConfigComplianceBulkDestroy request with any body - PluginsGoldenConfigConfigComplianceBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkDestroyResponse, error) - - PluginsGoldenConfigConfigComplianceBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkDestroyResponse, error) - - // PluginsGoldenConfigConfigComplianceList request - PluginsGoldenConfigConfigComplianceListWithResponse(ctx context.Context, params *PluginsGoldenConfigConfigComplianceListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceListResponse, error) - - // PluginsGoldenConfigConfigComplianceBulkPartialUpdate request with any body - PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse, error) - - PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse, error) - - // PluginsGoldenConfigConfigComplianceCreate request with any body - PluginsGoldenConfigConfigComplianceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceCreateResponse, error) - - PluginsGoldenConfigConfigComplianceCreateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceCreateResponse, error) - - // PluginsGoldenConfigConfigComplianceBulkUpdate request with any body - PluginsGoldenConfigConfigComplianceBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkUpdateResponse, error) - - PluginsGoldenConfigConfigComplianceBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkUpdateResponse, error) - - // PluginsGoldenConfigConfigComplianceDestroy request - PluginsGoldenConfigConfigComplianceDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceDestroyResponse, error) - - // PluginsGoldenConfigConfigComplianceRetrieve request - PluginsGoldenConfigConfigComplianceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceRetrieveResponse, error) - - // PluginsGoldenConfigConfigCompliancePartialUpdate request with any body - PluginsGoldenConfigConfigCompliancePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigCompliancePartialUpdateResponse, error) - - PluginsGoldenConfigConfigCompliancePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigCompliancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigCompliancePartialUpdateResponse, error) - - // PluginsGoldenConfigConfigComplianceUpdate request with any body - PluginsGoldenConfigConfigComplianceUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceUpdateResponse, error) - - PluginsGoldenConfigConfigComplianceUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigComplianceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceUpdateResponse, error) - - // PluginsGoldenConfigConfigPostprocessingRetrieve request - PluginsGoldenConfigConfigPostprocessingRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigPostprocessingRetrieveResponse, error) - - // PluginsGoldenConfigConfigRemoveBulkDestroy request with any body - PluginsGoldenConfigConfigRemoveBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkDestroyResponse, error) - - PluginsGoldenConfigConfigRemoveBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkDestroyResponse, error) - - // PluginsGoldenConfigConfigRemoveList request - PluginsGoldenConfigConfigRemoveListWithResponse(ctx context.Context, params *PluginsGoldenConfigConfigRemoveListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveListResponse, error) - - // PluginsGoldenConfigConfigRemoveBulkPartialUpdate request with any body - PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse, error) - - PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse, error) - - // PluginsGoldenConfigConfigRemoveCreate request with any body - PluginsGoldenConfigConfigRemoveCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveCreateResponse, error) - - PluginsGoldenConfigConfigRemoveCreateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveCreateResponse, error) - - // PluginsGoldenConfigConfigRemoveBulkUpdate request with any body - PluginsGoldenConfigConfigRemoveBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkUpdateResponse, error) - - PluginsGoldenConfigConfigRemoveBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkUpdateResponse, error) - - // PluginsGoldenConfigConfigRemoveDestroy request - PluginsGoldenConfigConfigRemoveDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveDestroyResponse, error) - - // PluginsGoldenConfigConfigRemoveRetrieve request - PluginsGoldenConfigConfigRemoveRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveRetrieveResponse, error) - - // PluginsGoldenConfigConfigRemovePartialUpdate request with any body - PluginsGoldenConfigConfigRemovePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemovePartialUpdateResponse, error) - - PluginsGoldenConfigConfigRemovePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemovePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemovePartialUpdateResponse, error) - - // PluginsGoldenConfigConfigRemoveUpdate request with any body - PluginsGoldenConfigConfigRemoveUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveUpdateResponse, error) - - PluginsGoldenConfigConfigRemoveUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemoveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveUpdateResponse, error) - - // PluginsGoldenConfigConfigReplaceBulkDestroy request with any body - PluginsGoldenConfigConfigReplaceBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkDestroyResponse, error) - - PluginsGoldenConfigConfigReplaceBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkDestroyResponse, error) - - // PluginsGoldenConfigConfigReplaceList request - PluginsGoldenConfigConfigReplaceListWithResponse(ctx context.Context, params *PluginsGoldenConfigConfigReplaceListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceListResponse, error) - - // PluginsGoldenConfigConfigReplaceBulkPartialUpdate request with any body - PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse, error) - - PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse, error) - - // PluginsGoldenConfigConfigReplaceCreate request with any body - PluginsGoldenConfigConfigReplaceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceCreateResponse, error) - - PluginsGoldenConfigConfigReplaceCreateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceCreateResponse, error) - - // PluginsGoldenConfigConfigReplaceBulkUpdate request with any body - PluginsGoldenConfigConfigReplaceBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkUpdateResponse, error) - - PluginsGoldenConfigConfigReplaceBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkUpdateResponse, error) - - // PluginsGoldenConfigConfigReplaceDestroy request - PluginsGoldenConfigConfigReplaceDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceDestroyResponse, error) - - // PluginsGoldenConfigConfigReplaceRetrieve request - PluginsGoldenConfigConfigReplaceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceRetrieveResponse, error) - - // PluginsGoldenConfigConfigReplacePartialUpdate request with any body - PluginsGoldenConfigConfigReplacePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplacePartialUpdateResponse, error) - - PluginsGoldenConfigConfigReplacePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplacePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplacePartialUpdateResponse, error) - - // PluginsGoldenConfigConfigReplaceUpdate request with any body - PluginsGoldenConfigConfigReplaceUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceUpdateResponse, error) - - PluginsGoldenConfigConfigReplaceUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplaceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsBulkDestroy request with any body - PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse, error) - - PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsList request - PluginsGoldenConfigGoldenConfigSettingsListWithResponse(ctx context.Context, params *PluginsGoldenConfigGoldenConfigSettingsListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsListResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsCreate request with any body - PluginsGoldenConfigGoldenConfigSettingsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsCreateResponse, error) - - PluginsGoldenConfigGoldenConfigSettingsCreateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsCreateResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsBulkUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsDestroy request - PluginsGoldenConfigGoldenConfigSettingsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsDestroyResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsRetrieve request - PluginsGoldenConfigGoldenConfigSettingsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigSettingsUpdate request with any body - PluginsGoldenConfigGoldenConfigSettingsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigSettingsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigBulkDestroy request with any body - PluginsGoldenConfigGoldenConfigBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkDestroyResponse, error) - - PluginsGoldenConfigGoldenConfigBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkDestroyResponse, error) - - // PluginsGoldenConfigGoldenConfigList request - PluginsGoldenConfigGoldenConfigListWithResponse(ctx context.Context, params *PluginsGoldenConfigGoldenConfigListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigListResponse, error) - - // PluginsGoldenConfigGoldenConfigBulkPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigCreate request with any body - PluginsGoldenConfigGoldenConfigCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigCreateResponse, error) - - PluginsGoldenConfigGoldenConfigCreateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigCreateResponse, error) - - // PluginsGoldenConfigGoldenConfigBulkUpdate request with any body - PluginsGoldenConfigGoldenConfigBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigDestroy request - PluginsGoldenConfigGoldenConfigDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigDestroyResponse, error) - - // PluginsGoldenConfigGoldenConfigRetrieve request - PluginsGoldenConfigGoldenConfigRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigRetrieveResponse, error) - - // PluginsGoldenConfigGoldenConfigPartialUpdate request with any body - PluginsGoldenConfigGoldenConfigPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigPartialUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigPartialUpdateResponse, error) - - // PluginsGoldenConfigGoldenConfigUpdate request with any body - PluginsGoldenConfigGoldenConfigUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigUpdateResponse, error) - - PluginsGoldenConfigGoldenConfigUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigUpdateResponse, error) - - // PluginsGoldenConfigSotaggRetrieve request - PluginsGoldenConfigSotaggRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigSotaggRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactList request - PluginsNautobotDeviceLifecycleMgmtContactListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContactListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactCreate request with any body - PluginsNautobotDeviceLifecycleMgmtContactCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContactCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactDestroy request - PluginsNautobotDeviceLifecycleMgmtContactDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactRetrieve request - PluginsNautobotDeviceLifecycleMgmtContactRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContactUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContactUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContactUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractList request - PluginsNautobotDeviceLifecycleMgmtContractListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContractListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractCreate request with any body - PluginsNautobotDeviceLifecycleMgmtContractCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContractCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractDestroy request - PluginsNautobotDeviceLifecycleMgmtContractDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractRetrieve request - PluginsNautobotDeviceLifecycleMgmtContractRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtContractUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtContractUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtContractUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveList request - PluginsNautobotDeviceLifecycleMgmtCveListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtCveListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveCreate request with any body - PluginsNautobotDeviceLifecycleMgmtCveCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtCveCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveDestroy request - PluginsNautobotDeviceLifecycleMgmtCveDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveRetrieve request - PluginsNautobotDeviceLifecycleMgmtCveRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtCveUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtCveUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtCveUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareList request - PluginsNautobotDeviceLifecycleMgmtHardwareListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtHardwareListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareCreate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareDestroy request - PluginsNautobotDeviceLifecycleMgmtHardwareDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareRetrieve request - PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtHardwareUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderList request - PluginsNautobotDeviceLifecycleMgmtProviderListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtProviderListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderCreate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtProviderCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderDestroy request - PluginsNautobotDeviceLifecycleMgmtProviderDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderRetrieve request - PluginsNautobotDeviceLifecycleMgmtProviderRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtProviderUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageList request - PluginsNautobotDeviceLifecycleMgmtSoftwareImageListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareImageListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroy request - PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieve request - PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareList request - PluginsNautobotDeviceLifecycleMgmtSoftwareListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareCreate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareDestroy request - PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieve request - PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareList request - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroy request - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieve request - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityList request - PluginsNautobotDeviceLifecycleMgmtVulnerabilityListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtVulnerabilityListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroy request - PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieve request - PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse, error) - - // PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate request with any body - PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse, error) - - PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse, error) - - // StatusRetrieve request - StatusRetrieveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatusRetrieveResponse, error) - - // SwaggerJsonRetrieve request - SwaggerJsonRetrieveWithResponse(ctx context.Context, params *SwaggerJsonRetrieveParams, reqEditors ...RequestEditorFn) (*SwaggerJsonRetrieveResponse, error) - - // SwaggerYamlRetrieve request - SwaggerYamlRetrieveWithResponse(ctx context.Context, params *SwaggerYamlRetrieveParams, reqEditors ...RequestEditorFn) (*SwaggerYamlRetrieveResponse, error) - - // SwaggerRetrieve request - SwaggerRetrieveWithResponse(ctx context.Context, params *SwaggerRetrieveParams, reqEditors ...RequestEditorFn) (*SwaggerRetrieveResponse, error) - - // TenancyTenantGroupsBulkDestroy request with any body - TenancyTenantGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkDestroyResponse, error) - - TenancyTenantGroupsBulkDestroyWithResponse(ctx context.Context, body TenancyTenantGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkDestroyResponse, error) - - // TenancyTenantGroupsList request - TenancyTenantGroupsListWithResponse(ctx context.Context, params *TenancyTenantGroupsListParams, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsListResponse, error) - - // TenancyTenantGroupsBulkPartialUpdate request with any body - TenancyTenantGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkPartialUpdateResponse, error) - - TenancyTenantGroupsBulkPartialUpdateWithResponse(ctx context.Context, body TenancyTenantGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkPartialUpdateResponse, error) - - // TenancyTenantGroupsCreate request with any body - TenancyTenantGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsCreateResponse, error) - - TenancyTenantGroupsCreateWithResponse(ctx context.Context, body TenancyTenantGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsCreateResponse, error) - - // TenancyTenantGroupsBulkUpdate request with any body - TenancyTenantGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkUpdateResponse, error) - - TenancyTenantGroupsBulkUpdateWithResponse(ctx context.Context, body TenancyTenantGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkUpdateResponse, error) - - // TenancyTenantGroupsDestroy request - TenancyTenantGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsDestroyResponse, error) - - // TenancyTenantGroupsRetrieve request - TenancyTenantGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsRetrieveResponse, error) - - // TenancyTenantGroupsPartialUpdate request with any body - TenancyTenantGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsPartialUpdateResponse, error) - - TenancyTenantGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsPartialUpdateResponse, error) - - // TenancyTenantGroupsUpdate request with any body - TenancyTenantGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsUpdateResponse, error) - - TenancyTenantGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsUpdateResponse, error) - - // TenancyTenantGroupsNotesList request - TenancyTenantGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *TenancyTenantGroupsNotesListParams, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsNotesListResponse, error) - - // TenancyTenantGroupsNotesCreate request with any body - TenancyTenantGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsNotesCreateResponse, error) - - TenancyTenantGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsNotesCreateResponse, error) - - // TenancyTenantsBulkDestroy request with any body - TenancyTenantsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkDestroyResponse, error) - - TenancyTenantsBulkDestroyWithResponse(ctx context.Context, body TenancyTenantsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkDestroyResponse, error) - - // TenancyTenantsList request - TenancyTenantsListWithResponse(ctx context.Context, params *TenancyTenantsListParams, reqEditors ...RequestEditorFn) (*TenancyTenantsListResponse, error) - - // TenancyTenantsBulkPartialUpdate request with any body - TenancyTenantsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkPartialUpdateResponse, error) - - TenancyTenantsBulkPartialUpdateWithResponse(ctx context.Context, body TenancyTenantsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkPartialUpdateResponse, error) - - // TenancyTenantsCreate request with any body - TenancyTenantsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsCreateResponse, error) - - TenancyTenantsCreateWithResponse(ctx context.Context, body TenancyTenantsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsCreateResponse, error) - - // TenancyTenantsBulkUpdate request with any body - TenancyTenantsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkUpdateResponse, error) - - TenancyTenantsBulkUpdateWithResponse(ctx context.Context, body TenancyTenantsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkUpdateResponse, error) - - // TenancyTenantsDestroy request - TenancyTenantsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantsDestroyResponse, error) - - // TenancyTenantsRetrieve request - TenancyTenantsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantsRetrieveResponse, error) - - // TenancyTenantsPartialUpdate request with any body - TenancyTenantsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsPartialUpdateResponse, error) - - TenancyTenantsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsPartialUpdateResponse, error) - - // TenancyTenantsUpdate request with any body - TenancyTenantsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsUpdateResponse, error) - - TenancyTenantsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsUpdateResponse, error) - - // TenancyTenantsNotesList request - TenancyTenantsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *TenancyTenantsNotesListParams, reqEditors ...RequestEditorFn) (*TenancyTenantsNotesListResponse, error) - - // TenancyTenantsNotesCreate request with any body - TenancyTenantsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsNotesCreateResponse, error) - - TenancyTenantsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsNotesCreateResponse, error) - - // UsersConfigRetrieve request - UsersConfigRetrieveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UsersConfigRetrieveResponse, error) - - // UsersGroupsBulkDestroy request with any body - UsersGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsBulkDestroyResponse, error) - - UsersGroupsBulkDestroyWithResponse(ctx context.Context, body UsersGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsBulkDestroyResponse, error) - - // UsersGroupsList request - UsersGroupsListWithResponse(ctx context.Context, params *UsersGroupsListParams, reqEditors ...RequestEditorFn) (*UsersGroupsListResponse, error) - - // UsersGroupsBulkPartialUpdate request with any body - UsersGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsBulkPartialUpdateResponse, error) - - UsersGroupsBulkPartialUpdateWithResponse(ctx context.Context, body UsersGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsBulkPartialUpdateResponse, error) - - // UsersGroupsCreate request with any body - UsersGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsCreateResponse, error) - - UsersGroupsCreateWithResponse(ctx context.Context, body UsersGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsCreateResponse, error) - - // UsersGroupsBulkUpdate request with any body - UsersGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsBulkUpdateResponse, error) - - UsersGroupsBulkUpdateWithResponse(ctx context.Context, body UsersGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsBulkUpdateResponse, error) - - // UsersGroupsDestroy request - UsersGroupsDestroyWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*UsersGroupsDestroyResponse, error) - - // UsersGroupsRetrieve request - UsersGroupsRetrieveWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*UsersGroupsRetrieveResponse, error) - - // UsersGroupsPartialUpdate request with any body - UsersGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsPartialUpdateResponse, error) - - UsersGroupsPartialUpdateWithResponse(ctx context.Context, id int, body UsersGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsPartialUpdateResponse, error) - - // UsersGroupsUpdate request with any body - UsersGroupsUpdateWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsUpdateResponse, error) - - UsersGroupsUpdateWithResponse(ctx context.Context, id int, body UsersGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsUpdateResponse, error) - - // UsersPermissionsBulkDestroy request with any body - UsersPermissionsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkDestroyResponse, error) - - UsersPermissionsBulkDestroyWithResponse(ctx context.Context, body UsersPermissionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkDestroyResponse, error) - - // UsersPermissionsList request - UsersPermissionsListWithResponse(ctx context.Context, params *UsersPermissionsListParams, reqEditors ...RequestEditorFn) (*UsersPermissionsListResponse, error) - - // UsersPermissionsBulkPartialUpdate request with any body - UsersPermissionsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkPartialUpdateResponse, error) - - UsersPermissionsBulkPartialUpdateWithResponse(ctx context.Context, body UsersPermissionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkPartialUpdateResponse, error) - - // UsersPermissionsCreate request with any body - UsersPermissionsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsCreateResponse, error) - - UsersPermissionsCreateWithResponse(ctx context.Context, body UsersPermissionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsCreateResponse, error) - - // UsersPermissionsBulkUpdate request with any body - UsersPermissionsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkUpdateResponse, error) - - UsersPermissionsBulkUpdateWithResponse(ctx context.Context, body UsersPermissionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkUpdateResponse, error) - - // UsersPermissionsDestroy request - UsersPermissionsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersPermissionsDestroyResponse, error) - - // UsersPermissionsRetrieve request - UsersPermissionsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersPermissionsRetrieveResponse, error) - - // UsersPermissionsPartialUpdate request with any body - UsersPermissionsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsPartialUpdateResponse, error) - - UsersPermissionsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersPermissionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsPartialUpdateResponse, error) - - // UsersPermissionsUpdate request with any body - UsersPermissionsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsUpdateResponse, error) - - UsersPermissionsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersPermissionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsUpdateResponse, error) - - // UsersTokensBulkDestroy request with any body - UsersTokensBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensBulkDestroyResponse, error) - - UsersTokensBulkDestroyWithResponse(ctx context.Context, body UsersTokensBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensBulkDestroyResponse, error) - - // UsersTokensList request - UsersTokensListWithResponse(ctx context.Context, params *UsersTokensListParams, reqEditors ...RequestEditorFn) (*UsersTokensListResponse, error) - - // UsersTokensBulkPartialUpdate request with any body - UsersTokensBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensBulkPartialUpdateResponse, error) - - UsersTokensBulkPartialUpdateWithResponse(ctx context.Context, body UsersTokensBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensBulkPartialUpdateResponse, error) - - // UsersTokensCreate request with any body - UsersTokensCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensCreateResponse, error) - - UsersTokensCreateWithResponse(ctx context.Context, body UsersTokensCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensCreateResponse, error) - - // UsersTokensBulkUpdate request with any body - UsersTokensBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensBulkUpdateResponse, error) - - UsersTokensBulkUpdateWithResponse(ctx context.Context, body UsersTokensBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensBulkUpdateResponse, error) - - // UsersTokensDestroy request - UsersTokensDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersTokensDestroyResponse, error) - - // UsersTokensRetrieve request - UsersTokensRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersTokensRetrieveResponse, error) - - // UsersTokensPartialUpdate request with any body - UsersTokensPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensPartialUpdateResponse, error) - - UsersTokensPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersTokensPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensPartialUpdateResponse, error) - - // UsersTokensUpdate request with any body - UsersTokensUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensUpdateResponse, error) - - UsersTokensUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersTokensUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensUpdateResponse, error) - - // UsersUsersBulkDestroy request with any body - UsersUsersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersBulkDestroyResponse, error) - - UsersUsersBulkDestroyWithResponse(ctx context.Context, body UsersUsersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersBulkDestroyResponse, error) - - // UsersUsersList request - UsersUsersListWithResponse(ctx context.Context, params *UsersUsersListParams, reqEditors ...RequestEditorFn) (*UsersUsersListResponse, error) - - // UsersUsersBulkPartialUpdate request with any body - UsersUsersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersBulkPartialUpdateResponse, error) - - UsersUsersBulkPartialUpdateWithResponse(ctx context.Context, body UsersUsersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersBulkPartialUpdateResponse, error) - - // UsersUsersCreate request with any body - UsersUsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersCreateResponse, error) - - UsersUsersCreateWithResponse(ctx context.Context, body UsersUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersCreateResponse, error) - - // UsersUsersBulkUpdate request with any body - UsersUsersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersBulkUpdateResponse, error) - - UsersUsersBulkUpdateWithResponse(ctx context.Context, body UsersUsersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersBulkUpdateResponse, error) - - // UsersUsersDestroy request - UsersUsersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersUsersDestroyResponse, error) - - // UsersUsersRetrieve request - UsersUsersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersUsersRetrieveResponse, error) - - // UsersUsersPartialUpdate request with any body - UsersUsersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersPartialUpdateResponse, error) - - UsersUsersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersUsersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersPartialUpdateResponse, error) - - // UsersUsersUpdate request with any body - UsersUsersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersUpdateResponse, error) - - UsersUsersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersUsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersUpdateResponse, error) - - // VirtualizationClusterGroupsBulkDestroy request with any body - VirtualizationClusterGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkDestroyResponse, error) - - VirtualizationClusterGroupsBulkDestroyWithResponse(ctx context.Context, body VirtualizationClusterGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkDestroyResponse, error) - - // VirtualizationClusterGroupsList request - VirtualizationClusterGroupsListWithResponse(ctx context.Context, params *VirtualizationClusterGroupsListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsListResponse, error) - - // VirtualizationClusterGroupsBulkPartialUpdate request with any body - VirtualizationClusterGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkPartialUpdateResponse, error) - - VirtualizationClusterGroupsBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationClusterGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkPartialUpdateResponse, error) - - // VirtualizationClusterGroupsCreate request with any body - VirtualizationClusterGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsCreateResponse, error) - - VirtualizationClusterGroupsCreateWithResponse(ctx context.Context, body VirtualizationClusterGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsCreateResponse, error) - - // VirtualizationClusterGroupsBulkUpdate request with any body - VirtualizationClusterGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkUpdateResponse, error) - - VirtualizationClusterGroupsBulkUpdateWithResponse(ctx context.Context, body VirtualizationClusterGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkUpdateResponse, error) - - // VirtualizationClusterGroupsDestroy request - VirtualizationClusterGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsDestroyResponse, error) - - // VirtualizationClusterGroupsRetrieve request - VirtualizationClusterGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsRetrieveResponse, error) - - // VirtualizationClusterGroupsPartialUpdate request with any body - VirtualizationClusterGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsPartialUpdateResponse, error) - - VirtualizationClusterGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsPartialUpdateResponse, error) - - // VirtualizationClusterGroupsUpdate request with any body - VirtualizationClusterGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsUpdateResponse, error) - - VirtualizationClusterGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsUpdateResponse, error) - - // VirtualizationClusterGroupsNotesList request - VirtualizationClusterGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterGroupsNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsNotesListResponse, error) - - // VirtualizationClusterGroupsNotesCreate request with any body - VirtualizationClusterGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsNotesCreateResponse, error) - - VirtualizationClusterGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsNotesCreateResponse, error) - - // VirtualizationClusterTypesBulkDestroy request with any body - VirtualizationClusterTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkDestroyResponse, error) - - VirtualizationClusterTypesBulkDestroyWithResponse(ctx context.Context, body VirtualizationClusterTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkDestroyResponse, error) - - // VirtualizationClusterTypesList request - VirtualizationClusterTypesListWithResponse(ctx context.Context, params *VirtualizationClusterTypesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesListResponse, error) - - // VirtualizationClusterTypesBulkPartialUpdate request with any body - VirtualizationClusterTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkPartialUpdateResponse, error) - - VirtualizationClusterTypesBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationClusterTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkPartialUpdateResponse, error) - - // VirtualizationClusterTypesCreate request with any body - VirtualizationClusterTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesCreateResponse, error) - - VirtualizationClusterTypesCreateWithResponse(ctx context.Context, body VirtualizationClusterTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesCreateResponse, error) - - // VirtualizationClusterTypesBulkUpdate request with any body - VirtualizationClusterTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkUpdateResponse, error) - - VirtualizationClusterTypesBulkUpdateWithResponse(ctx context.Context, body VirtualizationClusterTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkUpdateResponse, error) - - // VirtualizationClusterTypesDestroy request - VirtualizationClusterTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesDestroyResponse, error) - - // VirtualizationClusterTypesRetrieve request - VirtualizationClusterTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesRetrieveResponse, error) - - // VirtualizationClusterTypesPartialUpdate request with any body - VirtualizationClusterTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesPartialUpdateResponse, error) - - VirtualizationClusterTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesPartialUpdateResponse, error) - - // VirtualizationClusterTypesUpdate request with any body - VirtualizationClusterTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesUpdateResponse, error) - - VirtualizationClusterTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesUpdateResponse, error) - - // VirtualizationClusterTypesNotesList request - VirtualizationClusterTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterTypesNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesNotesListResponse, error) - - // VirtualizationClusterTypesNotesCreate request with any body - VirtualizationClusterTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesNotesCreateResponse, error) - - VirtualizationClusterTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesNotesCreateResponse, error) - - // VirtualizationClustersBulkDestroy request with any body - VirtualizationClustersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkDestroyResponse, error) - - VirtualizationClustersBulkDestroyWithResponse(ctx context.Context, body VirtualizationClustersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkDestroyResponse, error) - - // VirtualizationClustersList request - VirtualizationClustersListWithResponse(ctx context.Context, params *VirtualizationClustersListParams, reqEditors ...RequestEditorFn) (*VirtualizationClustersListResponse, error) - - // VirtualizationClustersBulkPartialUpdate request with any body - VirtualizationClustersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkPartialUpdateResponse, error) - - VirtualizationClustersBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationClustersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkPartialUpdateResponse, error) - - // VirtualizationClustersCreate request with any body - VirtualizationClustersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersCreateResponse, error) - - VirtualizationClustersCreateWithResponse(ctx context.Context, body VirtualizationClustersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersCreateResponse, error) - - // VirtualizationClustersBulkUpdate request with any body - VirtualizationClustersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkUpdateResponse, error) - - VirtualizationClustersBulkUpdateWithResponse(ctx context.Context, body VirtualizationClustersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkUpdateResponse, error) - - // VirtualizationClustersDestroy request - VirtualizationClustersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClustersDestroyResponse, error) - - // VirtualizationClustersRetrieve request - VirtualizationClustersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClustersRetrieveResponse, error) - - // VirtualizationClustersPartialUpdate request with any body - VirtualizationClustersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersPartialUpdateResponse, error) - - VirtualizationClustersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersPartialUpdateResponse, error) - - // VirtualizationClustersUpdate request with any body - VirtualizationClustersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersUpdateResponse, error) - - VirtualizationClustersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersUpdateResponse, error) - - // VirtualizationClustersNotesList request - VirtualizationClustersNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationClustersNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClustersNotesListResponse, error) - - // VirtualizationClustersNotesCreate request with any body - VirtualizationClustersNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersNotesCreateResponse, error) - - VirtualizationClustersNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersNotesCreateResponse, error) - - // VirtualizationInterfacesBulkDestroy request with any body - VirtualizationInterfacesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkDestroyResponse, error) - - VirtualizationInterfacesBulkDestroyWithResponse(ctx context.Context, body VirtualizationInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkDestroyResponse, error) - - // VirtualizationInterfacesList request - VirtualizationInterfacesListWithResponse(ctx context.Context, params *VirtualizationInterfacesListParams, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesListResponse, error) - - // VirtualizationInterfacesBulkPartialUpdate request with any body - VirtualizationInterfacesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkPartialUpdateResponse, error) - - VirtualizationInterfacesBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkPartialUpdateResponse, error) - - // VirtualizationInterfacesCreate request with any body - VirtualizationInterfacesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesCreateResponse, error) - - VirtualizationInterfacesCreateWithResponse(ctx context.Context, body VirtualizationInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesCreateResponse, error) - - // VirtualizationInterfacesBulkUpdate request with any body - VirtualizationInterfacesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkUpdateResponse, error) - - VirtualizationInterfacesBulkUpdateWithResponse(ctx context.Context, body VirtualizationInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkUpdateResponse, error) - - // VirtualizationInterfacesDestroy request - VirtualizationInterfacesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesDestroyResponse, error) - - // VirtualizationInterfacesRetrieve request - VirtualizationInterfacesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesRetrieveResponse, error) - - // VirtualizationInterfacesPartialUpdate request with any body - VirtualizationInterfacesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesPartialUpdateResponse, error) - - VirtualizationInterfacesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesPartialUpdateResponse, error) - - // VirtualizationInterfacesUpdate request with any body - VirtualizationInterfacesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesUpdateResponse, error) - - VirtualizationInterfacesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesUpdateResponse, error) - - // VirtualizationInterfacesNotesList request - VirtualizationInterfacesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesNotesListResponse, error) - - // VirtualizationInterfacesNotesCreate request with any body - VirtualizationInterfacesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesNotesCreateResponse, error) - - VirtualizationInterfacesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesNotesCreateResponse, error) - - // VirtualizationVirtualMachinesBulkDestroy request with any body - VirtualizationVirtualMachinesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkDestroyResponse, error) - - VirtualizationVirtualMachinesBulkDestroyWithResponse(ctx context.Context, body VirtualizationVirtualMachinesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkDestroyResponse, error) - - // VirtualizationVirtualMachinesList request - VirtualizationVirtualMachinesListWithResponse(ctx context.Context, params *VirtualizationVirtualMachinesListParams, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesListResponse, error) - - // VirtualizationVirtualMachinesBulkPartialUpdate request with any body - VirtualizationVirtualMachinesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkPartialUpdateResponse, error) - - VirtualizationVirtualMachinesBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationVirtualMachinesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkPartialUpdateResponse, error) - - // VirtualizationVirtualMachinesCreate request with any body - VirtualizationVirtualMachinesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesCreateResponse, error) - - VirtualizationVirtualMachinesCreateWithResponse(ctx context.Context, body VirtualizationVirtualMachinesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesCreateResponse, error) - - // VirtualizationVirtualMachinesBulkUpdate request with any body - VirtualizationVirtualMachinesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkUpdateResponse, error) - - VirtualizationVirtualMachinesBulkUpdateWithResponse(ctx context.Context, body VirtualizationVirtualMachinesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkUpdateResponse, error) - - // VirtualizationVirtualMachinesDestroy request - VirtualizationVirtualMachinesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesDestroyResponse, error) - - // VirtualizationVirtualMachinesRetrieve request - VirtualizationVirtualMachinesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesRetrieveResponse, error) - - // VirtualizationVirtualMachinesPartialUpdate request with any body - VirtualizationVirtualMachinesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesPartialUpdateResponse, error) - - VirtualizationVirtualMachinesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesPartialUpdateResponse, error) - - // VirtualizationVirtualMachinesUpdate request with any body - VirtualizationVirtualMachinesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesUpdateResponse, error) - - VirtualizationVirtualMachinesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesUpdateResponse, error) - - // VirtualizationVirtualMachinesNotesList request - VirtualizationVirtualMachinesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationVirtualMachinesNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesNotesListResponse, error) - - // VirtualizationVirtualMachinesNotesCreate request with any body - VirtualizationVirtualMachinesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesNotesCreateResponse, error) - - VirtualizationVirtualMachinesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesNotesCreateResponse, error) -} - -type CircuitsCircuitTerminationsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTerminationsTraceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTerminationsTraceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTerminationsTraceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitTypesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitTypesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitTypesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsCircuitsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsCircuitsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsCircuitsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProviderNetworksNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProviderNetworksNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProviderNetworksNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CircuitsProvidersNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r CircuitsProvidersNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CircuitsProvidersNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimCablesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimCablesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimCablesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConnectedDeviceListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConnectedDeviceListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConnectedDeviceListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleConnectionsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleConnectionsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleConnectionsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsolePortsTraceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsolePortsTraceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsolePortsTraceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimConsoleServerPortsTraceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimConsoleServerPortsTraceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimConsoleServerPortsTraceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBayTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBayTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBayTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceBaysNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceBaysNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceBaysNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRedundancyGroupsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRedundancyGroupsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRedundancyGroupsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceRolesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceRolesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceRolesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDeviceTypesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDeviceTypesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDeviceTypesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesNapalmRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesNapalmRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesNapalmRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimDevicesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimDevicesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimDevicesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimFrontPortsPathsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimFrontPortsPathsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimFrontPortsPathsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceConnectionsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceConnectionsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceConnectionsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfaceTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfaceTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfaceTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInterfacesTraceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInterfacesTraceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInterfacesTraceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimInventoryItemsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimInventoryItemsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimInventoryItemsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationTypesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationTypesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationTypesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimLocationsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimLocationsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimLocationsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimManufacturersNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimManufacturersNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimManufacturersNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPlatformsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPlatformsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPlatformsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerConnectionsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerConnectionsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerConnectionsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerFeedsTraceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerFeedsTraceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerFeedsTraceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerOutletsTraceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerOutletsTraceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerOutletsTraceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPanelsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPanelsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPanelsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimPowerPortsTraceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimPowerPortsTraceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimPowerPortsTraceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackGroupsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackGroupsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackGroupsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackReservationsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackReservationsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackReservationsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRackRolesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRackRolesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRackRolesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksElevationListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksElevationListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksElevationListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRacksNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRacksNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRacksNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRearPortsPathsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRearPortsPathsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRearPortsPathsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimRegionsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimRegionsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimRegionsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimSitesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimSitesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimSitesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DcimVirtualChassisNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DcimVirtualChassisNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DcimVirtualChassisNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasComputedFieldsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasComputedFieldsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasComputedFieldsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextSchemasNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextSchemasNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextSchemasNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasConfigContextsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasConfigContextsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasConfigContextsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasContentTypesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasContentTypesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasContentTypesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasContentTypesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasContentTypesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasContentTypesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldChoicesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldChoicesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldChoicesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomFieldsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomFieldsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomFieldsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasCustomLinksNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasCustomLinksNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasCustomLinksNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupMembershipsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupMembershipsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupMembershipsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsMembersRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsMembersRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsMembersRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasDynamicGroupsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasDynamicGroupsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasDynamicGroupsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasExportTemplatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasExportTemplatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasExportTemplatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGitRepositoriesSyncCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGitRepositoriesSyncCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGitRepositoriesSyncCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasGraphqlQueriesRunCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasGraphqlQueriesRunCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasGraphqlQueriesRunCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasImageAttachmentsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasImageAttachmentsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasImageAttachmentsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobHooksNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobHooksNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobHooksNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobLogsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobLogsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobLogsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobLogsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobLogsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobLogsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobResultsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobResultsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobResultsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobResultsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobResultsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobResultsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobResultsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobResultsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobResultsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobResultsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobResultsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobResultsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobResultsLogsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobResultsLogsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobResultsLogsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsReadDeprecatedResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsReadDeprecatedResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsReadDeprecatedResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsRunDeprecatedResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsRunDeprecatedResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsRunDeprecatedResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsRunCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsRunCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsRunCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasJobsVariablesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasJobsVariablesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasJobsVariablesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasNotesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasNotesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasNotesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasObjectChangesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasObjectChangesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasObjectChangesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasObjectChangesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasObjectChangesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasObjectChangesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipAssociationsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipAssociationsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipAssociationsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasRelationshipsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasRelationshipsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasRelationshipsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasScheduledJobsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasScheduledJobsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasScheduledJobsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasScheduledJobsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasScheduledJobsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasScheduledJobsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasScheduledJobsApproveCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasScheduledJobsApproveCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasScheduledJobsApproveCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasScheduledJobsDenyCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasScheduledJobsDenyCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasScheduledJobsDenyCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasScheduledJobsDryRunCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasScheduledJobsDryRunCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasScheduledJobsDryRunCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsAssociationsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsAssociationsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsAssociationsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsGroupsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsGroupsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsGroupsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasSecretsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasSecretsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasSecretsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasStatusesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasStatusesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasStatusesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasTagsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasTagsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasTagsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExtrasWebhooksNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r ExtrasWebhooksNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExtrasWebhooksNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GraphqlCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GraphqlCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GraphqlCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamAggregatesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamAggregatesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamAggregatesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamIpAddressesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamIpAddressesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamIpAddressesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesAvailableIpsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesAvailableIpsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesAvailableIpsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesAvailableIpsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesAvailableIpsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesAvailableIpsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesAvailablePrefixesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesAvailablePrefixesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesAvailablePrefixesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesAvailablePrefixesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesAvailablePrefixesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesAvailablePrefixesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamPrefixesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamPrefixesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamPrefixesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRirsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRirsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRirsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRolesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRolesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRolesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamRouteTargetsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamRouteTargetsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamRouteTargetsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamServicesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamServicesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamServicesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlanGroupsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlanGroupsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlanGroupsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVlansNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVlansNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVlansNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IpamVrfsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r IpamVrfsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IpamVrfsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAddressFamiliesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAddressFamiliesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAddressFamiliesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpAutonomousSystemsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpAutonomousSystemsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpAutonomousSystemsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerEndpointsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerEndpointsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerEndpointsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupTemplatesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupTemplatesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupTemplatesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeerGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeerGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeerGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringRolesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringRolesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringRolesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpPeeringsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpPeeringsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpPeeringsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsBgpRoutingInstancesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsBgpRoutingInstancesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsBgpRoutingInstancesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsAccessgrantUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsAccessgrantUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsAccessgrantUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsChatopsCommandtokenUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsChatopsCommandtokenUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsChatopsCommandtokenUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceCircuitimpactUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceCircuitimpactUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceCircuitimpactUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenancePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenancePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenancePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceMaintenanceUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceMaintenanceUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceMaintenanceUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNotePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNotePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNotePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNoteUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNoteUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNoteUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNotificationsourceListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNotificationsourceListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNotificationsourceListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsCircuitMaintenanceNotificationsourceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsCircuitMaintenanceNotificationsourceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsCircuitMaintenanceNotificationsourceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesMinMaxUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesMinMaxUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesMinMaxUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDataValidationEngineRulesRegexUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDataValidationEngineRulesRegexUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDataValidationEngineRulesRegexUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDeviceOnboardingOnboardingListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDeviceOnboardingOnboardingListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDeviceOnboardingOnboardingListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDeviceOnboardingOnboardingCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDeviceOnboardingOnboardingCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDeviceOnboardingOnboardingCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDeviceOnboardingOnboardingDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDeviceOnboardingOnboardingDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDeviceOnboardingOnboardingDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsDeviceOnboardingOnboardingRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsDeviceOnboardingOnboardingRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsDeviceOnboardingOnboardingRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectGroupNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectGroupNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectGroupNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallAddressObjectNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallAddressObjectNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallAddressObjectNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallCapircaPolicyUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallCapircaPolicyUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallCapircaPolicyUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallFqdnNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallFqdnNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallFqdnNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallIpRangeNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallIpRangeNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallIpRangeNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRulePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRulePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRulePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRuleNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRuleNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRuleNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallNatPolicyNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallNatPolicyNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallNatPolicyNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRulePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRulePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRulePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRuleNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRuleNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRuleNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallPolicyNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallPolicyNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallPolicyNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectGroupNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectGroupNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectGroupNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallServiceObjectNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallServiceObjectNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallServiceObjectNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectGroupNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectGroupNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectGroupNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallUserObjectNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallUserObjectNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallUserObjectNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZonePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZonePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZonePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsFirewallZoneNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsFirewallZoneNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsFirewallZoneNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeaturePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeaturePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeaturePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceFeatureUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceFeatureUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceFeatureUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRulePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRulePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRulePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigComplianceRuleUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigComplianceRuleUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigComplianceRuleUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigCompliancePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigCompliancePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigCompliancePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigComplianceUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigComplianceUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigComplianceUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigPostprocessingRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigPostprocessingRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigPostprocessingRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemovePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemovePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemovePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigRemoveUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigRemoveUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigRemoveUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplacePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplacePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplacePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigConfigReplaceUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigConfigReplaceUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigConfigReplaceUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigSettingsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigSettingsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigSettingsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigGoldenConfigUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigGoldenConfigUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigGoldenConfigUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsGoldenConfigSotaggRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsGoldenConfigSotaggRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsGoldenConfigSotaggRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type StatusRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r StatusRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r StatusRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type SwaggerJsonRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r SwaggerJsonRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SwaggerJsonRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type SwaggerYamlRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r SwaggerYamlRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SwaggerYamlRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type SwaggerRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r SwaggerRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SwaggerRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantGroupsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantGroupsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantGroupsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TenancyTenantsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r TenancyTenantsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TenancyTenantsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersConfigRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersConfigRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersConfigRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersPermissionsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersPermissionsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersPermissionsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersTokensUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersTokensUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersTokensUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UsersUsersUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r UsersUsersUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsersUsersUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterGroupsNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterGroupsNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterGroupsNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClusterTypesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClusterTypesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClusterTypesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationClustersNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationClustersNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationClustersNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationInterfacesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationInterfacesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationInterfacesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesBulkDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesBulkDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesBulkDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesBulkPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesBulkPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesBulkPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesBulkUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesBulkUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesBulkUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesDestroyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesDestroyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesDestroyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesRetrieveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesRetrieveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesRetrieveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesPartialUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesPartialUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesPartialUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesUpdateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesUpdateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesUpdateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesNotesListResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesNotesListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesNotesListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VirtualizationVirtualMachinesNotesCreateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r VirtualizationVirtualMachinesNotesCreateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualizationVirtualMachinesNotesCreateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// CircuitsCircuitTerminationsBulkDestroyWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTerminationsBulkDestroyResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkDestroyResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTerminationsBulkDestroyWithResponse(ctx context.Context, body CircuitsCircuitTerminationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkDestroyResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsBulkDestroyResponse(rsp) -} - -// CircuitsCircuitTerminationsListWithResponse request returning *CircuitsCircuitTerminationsListResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsListWithResponse(ctx context.Context, params *CircuitsCircuitTerminationsListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsListResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsListResponse(rsp) -} - -// CircuitsCircuitTerminationsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTerminationsBulkPartialUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTerminationsBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsCircuitTerminationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsBulkPartialUpdateResponse(rsp) -} - -// CircuitsCircuitTerminationsCreateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTerminationsCreateResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsCreateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTerminationsCreateWithResponse(ctx context.Context, body CircuitsCircuitTerminationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsCreateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsCreateResponse(rsp) -} - -// CircuitsCircuitTerminationsBulkUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTerminationsBulkUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTerminationsBulkUpdateWithResponse(ctx context.Context, body CircuitsCircuitTerminationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsBulkUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsBulkUpdateResponse(rsp) -} - -// CircuitsCircuitTerminationsDestroyWithResponse request returning *CircuitsCircuitTerminationsDestroyResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsDestroyResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsDestroyResponse(rsp) -} - -// CircuitsCircuitTerminationsRetrieveWithResponse request returning *CircuitsCircuitTerminationsRetrieveResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsRetrieveResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsRetrieveResponse(rsp) -} - -// CircuitsCircuitTerminationsPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTerminationsPartialUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTerminationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsPartialUpdateResponse(rsp) -} - -// CircuitsCircuitTerminationsUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTerminationsUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTerminationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsUpdateResponse(rsp) -} - -// CircuitsCircuitTerminationsNotesListWithResponse request returning *CircuitsCircuitTerminationsNotesListResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTerminationsNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsNotesListResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsNotesListResponse(rsp) -} - -// CircuitsCircuitTerminationsNotesCreateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTerminationsNotesCreateResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsNotesCreateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTerminationsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTerminationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsNotesCreateResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsNotesCreateResponse(rsp) -} - -// CircuitsCircuitTerminationsTraceRetrieveWithResponse request returning *CircuitsCircuitTerminationsTraceRetrieveResponse -func (c *ClientWithResponses) CircuitsCircuitTerminationsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTerminationsTraceRetrieveResponse, error) { - rsp, err := c.CircuitsCircuitTerminationsTraceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTerminationsTraceRetrieveResponse(rsp) -} - -// CircuitsCircuitTypesBulkDestroyWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTypesBulkDestroyResponse -func (c *ClientWithResponses) CircuitsCircuitTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkDestroyResponse, error) { - rsp, err := c.CircuitsCircuitTypesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTypesBulkDestroyWithResponse(ctx context.Context, body CircuitsCircuitTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkDestroyResponse, error) { - rsp, err := c.CircuitsCircuitTypesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesBulkDestroyResponse(rsp) -} - -// CircuitsCircuitTypesListWithResponse request returning *CircuitsCircuitTypesListResponse -func (c *ClientWithResponses) CircuitsCircuitTypesListWithResponse(ctx context.Context, params *CircuitsCircuitTypesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesListResponse, error) { - rsp, err := c.CircuitsCircuitTypesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesListResponse(rsp) -} - -// CircuitsCircuitTypesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTypesBulkPartialUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTypesBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsCircuitTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesBulkPartialUpdateResponse(rsp) -} - -// CircuitsCircuitTypesCreateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTypesCreateResponse -func (c *ClientWithResponses) CircuitsCircuitTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesCreateResponse, error) { - rsp, err := c.CircuitsCircuitTypesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTypesCreateWithResponse(ctx context.Context, body CircuitsCircuitTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesCreateResponse, error) { - rsp, err := c.CircuitsCircuitTypesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesCreateResponse(rsp) -} - -// CircuitsCircuitTypesBulkUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTypesBulkUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTypesBulkUpdateWithResponse(ctx context.Context, body CircuitsCircuitTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesBulkUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesBulkUpdateResponse(rsp) -} - -// CircuitsCircuitTypesDestroyWithResponse request returning *CircuitsCircuitTypesDestroyResponse -func (c *ClientWithResponses) CircuitsCircuitTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesDestroyResponse, error) { - rsp, err := c.CircuitsCircuitTypesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesDestroyResponse(rsp) -} - -// CircuitsCircuitTypesRetrieveWithResponse request returning *CircuitsCircuitTypesRetrieveResponse -func (c *ClientWithResponses) CircuitsCircuitTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesRetrieveResponse, error) { - rsp, err := c.CircuitsCircuitTypesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesRetrieveResponse(rsp) -} - -// CircuitsCircuitTypesPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTypesPartialUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesPartialUpdateResponse(rsp) -} - -// CircuitsCircuitTypesUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTypesUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesUpdateResponse, error) { - rsp, err := c.CircuitsCircuitTypesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesUpdateResponse(rsp) -} - -// CircuitsCircuitTypesNotesListWithResponse request returning *CircuitsCircuitTypesNotesListResponse -func (c *ClientWithResponses) CircuitsCircuitTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitTypesNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesNotesListResponse, error) { - rsp, err := c.CircuitsCircuitTypesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesNotesListResponse(rsp) -} - -// CircuitsCircuitTypesNotesCreateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitTypesNotesCreateResponse -func (c *ClientWithResponses) CircuitsCircuitTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesNotesCreateResponse, error) { - rsp, err := c.CircuitsCircuitTypesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitTypesNotesCreateResponse, error) { - rsp, err := c.CircuitsCircuitTypesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitTypesNotesCreateResponse(rsp) -} - -// CircuitsCircuitsBulkDestroyWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitsBulkDestroyResponse -func (c *ClientWithResponses) CircuitsCircuitsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkDestroyResponse, error) { - rsp, err := c.CircuitsCircuitsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitsBulkDestroyWithResponse(ctx context.Context, body CircuitsCircuitsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkDestroyResponse, error) { - rsp, err := c.CircuitsCircuitsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsBulkDestroyResponse(rsp) -} - -// CircuitsCircuitsListWithResponse request returning *CircuitsCircuitsListResponse -func (c *ClientWithResponses) CircuitsCircuitsListWithResponse(ctx context.Context, params *CircuitsCircuitsListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitsListResponse, error) { - rsp, err := c.CircuitsCircuitsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsListResponse(rsp) -} - -// CircuitsCircuitsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitsBulkPartialUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitsBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsCircuitsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsBulkPartialUpdateResponse(rsp) -} - -// CircuitsCircuitsCreateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitsCreateResponse -func (c *ClientWithResponses) CircuitsCircuitsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsCreateResponse, error) { - rsp, err := c.CircuitsCircuitsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitsCreateWithResponse(ctx context.Context, body CircuitsCircuitsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsCreateResponse, error) { - rsp, err := c.CircuitsCircuitsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsCreateResponse(rsp) -} - -// CircuitsCircuitsBulkUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitsBulkUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitsBulkUpdateWithResponse(ctx context.Context, body CircuitsCircuitsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsBulkUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsBulkUpdateResponse(rsp) -} - -// CircuitsCircuitsDestroyWithResponse request returning *CircuitsCircuitsDestroyResponse -func (c *ClientWithResponses) CircuitsCircuitsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitsDestroyResponse, error) { - rsp, err := c.CircuitsCircuitsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsDestroyResponse(rsp) -} - -// CircuitsCircuitsRetrieveWithResponse request returning *CircuitsCircuitsRetrieveResponse -func (c *ClientWithResponses) CircuitsCircuitsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsCircuitsRetrieveResponse, error) { - rsp, err := c.CircuitsCircuitsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsRetrieveResponse(rsp) -} - -// CircuitsCircuitsPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitsPartialUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsPartialUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsPartialUpdateResponse(rsp) -} - -// CircuitsCircuitsUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitsUpdateResponse -func (c *ClientWithResponses) CircuitsCircuitsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsUpdateResponse, error) { - rsp, err := c.CircuitsCircuitsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsUpdateResponse(rsp) -} - -// CircuitsCircuitsNotesListWithResponse request returning *CircuitsCircuitsNotesListResponse -func (c *ClientWithResponses) CircuitsCircuitsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsCircuitsNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsCircuitsNotesListResponse, error) { - rsp, err := c.CircuitsCircuitsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsNotesListResponse(rsp) -} - -// CircuitsCircuitsNotesCreateWithBodyWithResponse request with arbitrary body returning *CircuitsCircuitsNotesCreateResponse -func (c *ClientWithResponses) CircuitsCircuitsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsCircuitsNotesCreateResponse, error) { - rsp, err := c.CircuitsCircuitsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsCircuitsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsCircuitsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsCircuitsNotesCreateResponse, error) { - rsp, err := c.CircuitsCircuitsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsCircuitsNotesCreateResponse(rsp) -} - -// CircuitsProviderNetworksBulkDestroyWithBodyWithResponse request with arbitrary body returning *CircuitsProviderNetworksBulkDestroyResponse -func (c *ClientWithResponses) CircuitsProviderNetworksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkDestroyResponse, error) { - rsp, err := c.CircuitsProviderNetworksBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProviderNetworksBulkDestroyWithResponse(ctx context.Context, body CircuitsProviderNetworksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkDestroyResponse, error) { - rsp, err := c.CircuitsProviderNetworksBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksBulkDestroyResponse(rsp) -} - -// CircuitsProviderNetworksListWithResponse request returning *CircuitsProviderNetworksListResponse -func (c *ClientWithResponses) CircuitsProviderNetworksListWithResponse(ctx context.Context, params *CircuitsProviderNetworksListParams, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksListResponse, error) { - rsp, err := c.CircuitsProviderNetworksList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksListResponse(rsp) -} - -// CircuitsProviderNetworksBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProviderNetworksBulkPartialUpdateResponse -func (c *ClientWithResponses) CircuitsProviderNetworksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProviderNetworksBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsProviderNetworksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksBulkPartialUpdateResponse(rsp) -} - -// CircuitsProviderNetworksCreateWithBodyWithResponse request with arbitrary body returning *CircuitsProviderNetworksCreateResponse -func (c *ClientWithResponses) CircuitsProviderNetworksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksCreateResponse, error) { - rsp, err := c.CircuitsProviderNetworksCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProviderNetworksCreateWithResponse(ctx context.Context, body CircuitsProviderNetworksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksCreateResponse, error) { - rsp, err := c.CircuitsProviderNetworksCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksCreateResponse(rsp) -} - -// CircuitsProviderNetworksBulkUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProviderNetworksBulkUpdateResponse -func (c *ClientWithResponses) CircuitsProviderNetworksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProviderNetworksBulkUpdateWithResponse(ctx context.Context, body CircuitsProviderNetworksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksBulkUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksBulkUpdateResponse(rsp) -} - -// CircuitsProviderNetworksDestroyWithResponse request returning *CircuitsProviderNetworksDestroyResponse -func (c *ClientWithResponses) CircuitsProviderNetworksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksDestroyResponse, error) { - rsp, err := c.CircuitsProviderNetworksDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksDestroyResponse(rsp) -} - -// CircuitsProviderNetworksRetrieveWithResponse request returning *CircuitsProviderNetworksRetrieveResponse -func (c *ClientWithResponses) CircuitsProviderNetworksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksRetrieveResponse, error) { - rsp, err := c.CircuitsProviderNetworksRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksRetrieveResponse(rsp) -} - -// CircuitsProviderNetworksPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProviderNetworksPartialUpdateResponse -func (c *ClientWithResponses) CircuitsProviderNetworksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksPartialUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProviderNetworksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksPartialUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksPartialUpdateResponse(rsp) -} - -// CircuitsProviderNetworksUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProviderNetworksUpdateResponse -func (c *ClientWithResponses) CircuitsProviderNetworksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProviderNetworksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksUpdateResponse, error) { - rsp, err := c.CircuitsProviderNetworksUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksUpdateResponse(rsp) -} - -// CircuitsProviderNetworksNotesListWithResponse request returning *CircuitsProviderNetworksNotesListResponse -func (c *ClientWithResponses) CircuitsProviderNetworksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsProviderNetworksNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksNotesListResponse, error) { - rsp, err := c.CircuitsProviderNetworksNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksNotesListResponse(rsp) -} - -// CircuitsProviderNetworksNotesCreateWithBodyWithResponse request with arbitrary body returning *CircuitsProviderNetworksNotesCreateResponse -func (c *ClientWithResponses) CircuitsProviderNetworksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksNotesCreateResponse, error) { - rsp, err := c.CircuitsProviderNetworksNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProviderNetworksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProviderNetworksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProviderNetworksNotesCreateResponse, error) { - rsp, err := c.CircuitsProviderNetworksNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProviderNetworksNotesCreateResponse(rsp) -} - -// CircuitsProvidersBulkDestroyWithBodyWithResponse request with arbitrary body returning *CircuitsProvidersBulkDestroyResponse -func (c *ClientWithResponses) CircuitsProvidersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkDestroyResponse, error) { - rsp, err := c.CircuitsProvidersBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProvidersBulkDestroyWithResponse(ctx context.Context, body CircuitsProvidersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkDestroyResponse, error) { - rsp, err := c.CircuitsProvidersBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersBulkDestroyResponse(rsp) -} - -// CircuitsProvidersListWithResponse request returning *CircuitsProvidersListResponse -func (c *ClientWithResponses) CircuitsProvidersListWithResponse(ctx context.Context, params *CircuitsProvidersListParams, reqEditors ...RequestEditorFn) (*CircuitsProvidersListResponse, error) { - rsp, err := c.CircuitsProvidersList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersListResponse(rsp) -} - -// CircuitsProvidersBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProvidersBulkPartialUpdateResponse -func (c *ClientWithResponses) CircuitsProvidersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsProvidersBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProvidersBulkPartialUpdateWithResponse(ctx context.Context, body CircuitsProvidersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkPartialUpdateResponse, error) { - rsp, err := c.CircuitsProvidersBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersBulkPartialUpdateResponse(rsp) -} - -// CircuitsProvidersCreateWithBodyWithResponse request with arbitrary body returning *CircuitsProvidersCreateResponse -func (c *ClientWithResponses) CircuitsProvidersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersCreateResponse, error) { - rsp, err := c.CircuitsProvidersCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProvidersCreateWithResponse(ctx context.Context, body CircuitsProvidersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersCreateResponse, error) { - rsp, err := c.CircuitsProvidersCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersCreateResponse(rsp) -} - -// CircuitsProvidersBulkUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProvidersBulkUpdateResponse -func (c *ClientWithResponses) CircuitsProvidersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkUpdateResponse, error) { - rsp, err := c.CircuitsProvidersBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProvidersBulkUpdateWithResponse(ctx context.Context, body CircuitsProvidersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersBulkUpdateResponse, error) { - rsp, err := c.CircuitsProvidersBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersBulkUpdateResponse(rsp) -} - -// CircuitsProvidersDestroyWithResponse request returning *CircuitsProvidersDestroyResponse -func (c *ClientWithResponses) CircuitsProvidersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProvidersDestroyResponse, error) { - rsp, err := c.CircuitsProvidersDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersDestroyResponse(rsp) -} - -// CircuitsProvidersRetrieveWithResponse request returning *CircuitsProvidersRetrieveResponse -func (c *ClientWithResponses) CircuitsProvidersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CircuitsProvidersRetrieveResponse, error) { - rsp, err := c.CircuitsProvidersRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersRetrieveResponse(rsp) -} - -// CircuitsProvidersPartialUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProvidersPartialUpdateResponse -func (c *ClientWithResponses) CircuitsProvidersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersPartialUpdateResponse, error) { - rsp, err := c.CircuitsProvidersPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProvidersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersPartialUpdateResponse, error) { - rsp, err := c.CircuitsProvidersPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersPartialUpdateResponse(rsp) -} - -// CircuitsProvidersUpdateWithBodyWithResponse request with arbitrary body returning *CircuitsProvidersUpdateResponse -func (c *ClientWithResponses) CircuitsProvidersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersUpdateResponse, error) { - rsp, err := c.CircuitsProvidersUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersUpdateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProvidersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersUpdateResponse, error) { - rsp, err := c.CircuitsProvidersUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersUpdateResponse(rsp) -} - -// CircuitsProvidersNotesListWithResponse request returning *CircuitsProvidersNotesListResponse -func (c *ClientWithResponses) CircuitsProvidersNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *CircuitsProvidersNotesListParams, reqEditors ...RequestEditorFn) (*CircuitsProvidersNotesListResponse, error) { - rsp, err := c.CircuitsProvidersNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersNotesListResponse(rsp) -} - -// CircuitsProvidersNotesCreateWithBodyWithResponse request with arbitrary body returning *CircuitsProvidersNotesCreateResponse -func (c *ClientWithResponses) CircuitsProvidersNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CircuitsProvidersNotesCreateResponse, error) { - rsp, err := c.CircuitsProvidersNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) CircuitsProvidersNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body CircuitsProvidersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CircuitsProvidersNotesCreateResponse, error) { - rsp, err := c.CircuitsProvidersNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCircuitsProvidersNotesCreateResponse(rsp) -} - -// DcimCablesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimCablesBulkDestroyResponse -func (c *ClientWithResponses) DcimCablesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesBulkDestroyResponse, error) { - rsp, err := c.DcimCablesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimCablesBulkDestroyWithResponse(ctx context.Context, body DcimCablesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesBulkDestroyResponse, error) { - rsp, err := c.DcimCablesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesBulkDestroyResponse(rsp) -} - -// DcimCablesListWithResponse request returning *DcimCablesListResponse -func (c *ClientWithResponses) DcimCablesListWithResponse(ctx context.Context, params *DcimCablesListParams, reqEditors ...RequestEditorFn) (*DcimCablesListResponse, error) { - rsp, err := c.DcimCablesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesListResponse(rsp) -} - -// DcimCablesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimCablesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimCablesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimCablesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimCablesBulkPartialUpdateWithResponse(ctx context.Context, body DcimCablesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimCablesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesBulkPartialUpdateResponse(rsp) -} - -// DcimCablesCreateWithBodyWithResponse request with arbitrary body returning *DcimCablesCreateResponse -func (c *ClientWithResponses) DcimCablesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesCreateResponse, error) { - rsp, err := c.DcimCablesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimCablesCreateWithResponse(ctx context.Context, body DcimCablesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesCreateResponse, error) { - rsp, err := c.DcimCablesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesCreateResponse(rsp) -} - -// DcimCablesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimCablesBulkUpdateResponse -func (c *ClientWithResponses) DcimCablesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesBulkUpdateResponse, error) { - rsp, err := c.DcimCablesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimCablesBulkUpdateWithResponse(ctx context.Context, body DcimCablesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesBulkUpdateResponse, error) { - rsp, err := c.DcimCablesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesBulkUpdateResponse(rsp) -} - -// DcimCablesDestroyWithResponse request returning *DcimCablesDestroyResponse -func (c *ClientWithResponses) DcimCablesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimCablesDestroyResponse, error) { - rsp, err := c.DcimCablesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesDestroyResponse(rsp) -} - -// DcimCablesRetrieveWithResponse request returning *DcimCablesRetrieveResponse -func (c *ClientWithResponses) DcimCablesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimCablesRetrieveResponse, error) { - rsp, err := c.DcimCablesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesRetrieveResponse(rsp) -} - -// DcimCablesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimCablesPartialUpdateResponse -func (c *ClientWithResponses) DcimCablesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesPartialUpdateResponse, error) { - rsp, err := c.DcimCablesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimCablesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimCablesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesPartialUpdateResponse, error) { - rsp, err := c.DcimCablesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesPartialUpdateResponse(rsp) -} - -// DcimCablesUpdateWithBodyWithResponse request with arbitrary body returning *DcimCablesUpdateResponse -func (c *ClientWithResponses) DcimCablesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesUpdateResponse, error) { - rsp, err := c.DcimCablesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimCablesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimCablesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesUpdateResponse, error) { - rsp, err := c.DcimCablesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesUpdateResponse(rsp) -} - -// DcimCablesNotesListWithResponse request returning *DcimCablesNotesListResponse -func (c *ClientWithResponses) DcimCablesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimCablesNotesListParams, reqEditors ...RequestEditorFn) (*DcimCablesNotesListResponse, error) { - rsp, err := c.DcimCablesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesNotesListResponse(rsp) -} - -// DcimCablesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimCablesNotesCreateResponse -func (c *ClientWithResponses) DcimCablesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimCablesNotesCreateResponse, error) { - rsp, err := c.DcimCablesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimCablesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimCablesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimCablesNotesCreateResponse, error) { - rsp, err := c.DcimCablesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimCablesNotesCreateResponse(rsp) -} - -// DcimConnectedDeviceListWithResponse request returning *DcimConnectedDeviceListResponse -func (c *ClientWithResponses) DcimConnectedDeviceListWithResponse(ctx context.Context, params *DcimConnectedDeviceListParams, reqEditors ...RequestEditorFn) (*DcimConnectedDeviceListResponse, error) { - rsp, err := c.DcimConnectedDeviceList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConnectedDeviceListResponse(rsp) -} - -// DcimConsoleConnectionsListWithResponse request returning *DcimConsoleConnectionsListResponse -func (c *ClientWithResponses) DcimConsoleConnectionsListWithResponse(ctx context.Context, params *DcimConsoleConnectionsListParams, reqEditors ...RequestEditorFn) (*DcimConsoleConnectionsListResponse, error) { - rsp, err := c.DcimConsoleConnectionsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleConnectionsListResponse(rsp) -} - -// DcimConsolePortTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimConsolePortTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimConsolePortTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimConsolePortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimConsolePortTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesBulkDestroyResponse(rsp) -} - -// DcimConsolePortTemplatesListWithResponse request returning *DcimConsolePortTemplatesListResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesListWithResponse(ctx context.Context, params *DcimConsolePortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesListResponse, error) { - rsp, err := c.DcimConsolePortTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesListResponse(rsp) -} - -// DcimConsolePortTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsolePortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimConsolePortTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortTemplatesCreateResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesCreateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortTemplatesCreateWithResponse(ctx context.Context, body DcimConsolePortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesCreateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesCreateResponse(rsp) -} - -// DcimConsolePortTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimConsolePortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesBulkUpdateResponse(rsp) -} - -// DcimConsolePortTemplatesDestroyWithResponse request returning *DcimConsolePortTemplatesDestroyResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesDestroyResponse, error) { - rsp, err := c.DcimConsolePortTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesDestroyResponse(rsp) -} - -// DcimConsolePortTemplatesRetrieveWithResponse request returning *DcimConsolePortTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesRetrieveResponse, error) { - rsp, err := c.DcimConsolePortTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesRetrieveResponse(rsp) -} - -// DcimConsolePortTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesPartialUpdateResponse(rsp) -} - -// DcimConsolePortTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortTemplatesUpdateResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesUpdateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesUpdateResponse(rsp) -} - -// DcimConsolePortTemplatesNotesListWithResponse request returning *DcimConsolePortTemplatesNotesListResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesNotesListResponse, error) { - rsp, err := c.DcimConsolePortTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesNotesListResponse(rsp) -} - -// DcimConsolePortTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimConsolePortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimConsolePortTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortTemplatesNotesCreateResponse(rsp) -} - -// DcimConsolePortsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimConsolePortsBulkDestroyResponse -func (c *ClientWithResponses) DcimConsolePortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkDestroyResponse, error) { - rsp, err := c.DcimConsolePortsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortsBulkDestroyWithResponse(ctx context.Context, body DcimConsolePortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkDestroyResponse, error) { - rsp, err := c.DcimConsolePortsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsBulkDestroyResponse(rsp) -} - -// DcimConsolePortsListWithResponse request returning *DcimConsolePortsListResponse -func (c *ClientWithResponses) DcimConsolePortsListWithResponse(ctx context.Context, params *DcimConsolePortsListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortsListResponse, error) { - rsp, err := c.DcimConsolePortsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsListResponse(rsp) -} - -// DcimConsolePortsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimConsolePortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsolePortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsBulkPartialUpdateResponse(rsp) -} - -// DcimConsolePortsCreateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortsCreateResponse -func (c *ClientWithResponses) DcimConsolePortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsCreateResponse, error) { - rsp, err := c.DcimConsolePortsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortsCreateWithResponse(ctx context.Context, body DcimConsolePortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsCreateResponse, error) { - rsp, err := c.DcimConsolePortsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsCreateResponse(rsp) -} - -// DcimConsolePortsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortsBulkUpdateResponse -func (c *ClientWithResponses) DcimConsolePortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkUpdateResponse, error) { - rsp, err := c.DcimConsolePortsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortsBulkUpdateWithResponse(ctx context.Context, body DcimConsolePortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsBulkUpdateResponse, error) { - rsp, err := c.DcimConsolePortsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsBulkUpdateResponse(rsp) -} - -// DcimConsolePortsDestroyWithResponse request returning *DcimConsolePortsDestroyResponse -func (c *ClientWithResponses) DcimConsolePortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortsDestroyResponse, error) { - rsp, err := c.DcimConsolePortsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsDestroyResponse(rsp) -} - -// DcimConsolePortsRetrieveWithResponse request returning *DcimConsolePortsRetrieveResponse -func (c *ClientWithResponses) DcimConsolePortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortsRetrieveResponse, error) { - rsp, err := c.DcimConsolePortsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsRetrieveResponse(rsp) -} - -// DcimConsolePortsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortsPartialUpdateResponse -func (c *ClientWithResponses) DcimConsolePortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsPartialUpdateResponse, error) { - rsp, err := c.DcimConsolePortsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsPartialUpdateResponse(rsp) -} - -// DcimConsolePortsUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortsUpdateResponse -func (c *ClientWithResponses) DcimConsolePortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsUpdateResponse, error) { - rsp, err := c.DcimConsolePortsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsUpdateResponse, error) { - rsp, err := c.DcimConsolePortsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsUpdateResponse(rsp) -} - -// DcimConsolePortsNotesListWithResponse request returning *DcimConsolePortsNotesListResponse -func (c *ClientWithResponses) DcimConsolePortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsolePortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsolePortsNotesListResponse, error) { - rsp, err := c.DcimConsolePortsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsNotesListResponse(rsp) -} - -// DcimConsolePortsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimConsolePortsNotesCreateResponse -func (c *ClientWithResponses) DcimConsolePortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsolePortsNotesCreateResponse, error) { - rsp, err := c.DcimConsolePortsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsolePortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsolePortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsolePortsNotesCreateResponse, error) { - rsp, err := c.DcimConsolePortsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsNotesCreateResponse(rsp) -} - -// DcimConsolePortsTraceRetrieveWithResponse request returning *DcimConsolePortsTraceRetrieveResponse -func (c *ClientWithResponses) DcimConsolePortsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsolePortsTraceRetrieveResponse, error) { - rsp, err := c.DcimConsolePortsTraceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsolePortsTraceRetrieveResponse(rsp) -} - -// DcimConsoleServerPortTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesBulkDestroyResponse(rsp) -} - -// DcimConsoleServerPortTemplatesListWithResponse request returning *DcimConsoleServerPortTemplatesListResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesListWithResponse(ctx context.Context, params *DcimConsoleServerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesListResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesListResponse(rsp) -} - -// DcimConsoleServerPortTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimConsoleServerPortTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortTemplatesCreateResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesCreateWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesCreateResponse(rsp) -} - -// DcimConsoleServerPortTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesBulkUpdateResponse(rsp) -} - -// DcimConsoleServerPortTemplatesDestroyWithResponse request returning *DcimConsoleServerPortTemplatesDestroyResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesDestroyResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesDestroyResponse(rsp) -} - -// DcimConsoleServerPortTemplatesRetrieveWithResponse request returning *DcimConsoleServerPortTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesRetrieveResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesRetrieveResponse(rsp) -} - -// DcimConsoleServerPortTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesPartialUpdateResponse(rsp) -} - -// DcimConsoleServerPortTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortTemplatesUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesUpdateResponse(rsp) -} - -// DcimConsoleServerPortTemplatesNotesListWithResponse request returning *DcimConsoleServerPortTemplatesNotesListResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesNotesListResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesNotesListResponse(rsp) -} - -// DcimConsoleServerPortTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortTemplatesNotesCreateResponse(rsp) -} - -// DcimConsoleServerPortsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortsBulkDestroyResponse -func (c *ClientWithResponses) DcimConsoleServerPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkDestroyResponse, error) { - rsp, err := c.DcimConsoleServerPortsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortsBulkDestroyWithResponse(ctx context.Context, body DcimConsoleServerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkDestroyResponse, error) { - rsp, err := c.DcimConsoleServerPortsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsBulkDestroyResponse(rsp) -} - -// DcimConsoleServerPortsListWithResponse request returning *DcimConsoleServerPortsListResponse -func (c *ClientWithResponses) DcimConsoleServerPortsListWithResponse(ctx context.Context, params *DcimConsoleServerPortsListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsListResponse, error) { - rsp, err := c.DcimConsoleServerPortsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsListResponse(rsp) -} - -// DcimConsoleServerPortsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsBulkPartialUpdateResponse(rsp) -} - -// DcimConsoleServerPortsCreateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortsCreateResponse -func (c *ClientWithResponses) DcimConsoleServerPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortsCreateWithResponse(ctx context.Context, body DcimConsoleServerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsCreateResponse(rsp) -} - -// DcimConsoleServerPortsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortsBulkUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortsBulkUpdateWithResponse(ctx context.Context, body DcimConsoleServerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsBulkUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsBulkUpdateResponse(rsp) -} - -// DcimConsoleServerPortsDestroyWithResponse request returning *DcimConsoleServerPortsDestroyResponse -func (c *ClientWithResponses) DcimConsoleServerPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsDestroyResponse, error) { - rsp, err := c.DcimConsoleServerPortsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsDestroyResponse(rsp) -} - -// DcimConsoleServerPortsRetrieveWithResponse request returning *DcimConsoleServerPortsRetrieveResponse -func (c *ClientWithResponses) DcimConsoleServerPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsRetrieveResponse, error) { - rsp, err := c.DcimConsoleServerPortsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsRetrieveResponse(rsp) -} - -// DcimConsoleServerPortsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortsPartialUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsPartialUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsPartialUpdateResponse(rsp) -} - -// DcimConsoleServerPortsUpdateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortsUpdateResponse -func (c *ClientWithResponses) DcimConsoleServerPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsUpdateResponse, error) { - rsp, err := c.DcimConsoleServerPortsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsUpdateResponse(rsp) -} - -// DcimConsoleServerPortsNotesListWithResponse request returning *DcimConsoleServerPortsNotesListResponse -func (c *ClientWithResponses) DcimConsoleServerPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimConsoleServerPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsNotesListResponse, error) { - rsp, err := c.DcimConsoleServerPortsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsNotesListResponse(rsp) -} - -// DcimConsoleServerPortsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimConsoleServerPortsNotesCreateResponse -func (c *ClientWithResponses) DcimConsoleServerPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsNotesCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimConsoleServerPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimConsoleServerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsNotesCreateResponse, error) { - rsp, err := c.DcimConsoleServerPortsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsNotesCreateResponse(rsp) -} - -// DcimConsoleServerPortsTraceRetrieveWithResponse request returning *DcimConsoleServerPortsTraceRetrieveResponse -func (c *ClientWithResponses) DcimConsoleServerPortsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimConsoleServerPortsTraceRetrieveResponse, error) { - rsp, err := c.DcimConsoleServerPortsTraceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimConsoleServerPortsTraceRetrieveResponse(rsp) -} - -// DcimDeviceBayTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimDeviceBayTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBayTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimDeviceBayTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesBulkDestroyResponse(rsp) -} - -// DcimDeviceBayTemplatesListWithResponse request returning *DcimDeviceBayTemplatesListResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesListWithResponse(ctx context.Context, params *DcimDeviceBayTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesListResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesListResponse(rsp) -} - -// DcimDeviceBayTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBayTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBayTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceBayTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimDeviceBayTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBayTemplatesCreateResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesCreateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBayTemplatesCreateWithResponse(ctx context.Context, body DcimDeviceBayTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesCreateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesCreateResponse(rsp) -} - -// DcimDeviceBayTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBayTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBayTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimDeviceBayTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesBulkUpdateResponse(rsp) -} - -// DcimDeviceBayTemplatesDestroyWithResponse request returning *DcimDeviceBayTemplatesDestroyResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesDestroyResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesDestroyResponse(rsp) -} - -// DcimDeviceBayTemplatesRetrieveWithResponse request returning *DcimDeviceBayTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesRetrieveResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesRetrieveResponse(rsp) -} - -// DcimDeviceBayTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBayTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBayTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesPartialUpdateResponse(rsp) -} - -// DcimDeviceBayTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBayTemplatesUpdateResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBayTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesUpdateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesUpdateResponse(rsp) -} - -// DcimDeviceBayTemplatesNotesListWithResponse request returning *DcimDeviceBayTemplatesNotesListResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBayTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesNotesListResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesNotesListResponse(rsp) -} - -// DcimDeviceBayTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBayTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimDeviceBayTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBayTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBayTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBayTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimDeviceBayTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBayTemplatesNotesCreateResponse(rsp) -} - -// DcimDeviceBaysBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimDeviceBaysBulkDestroyResponse -func (c *ClientWithResponses) DcimDeviceBaysBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceBaysBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBaysBulkDestroyWithResponse(ctx context.Context, body DcimDeviceBaysBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceBaysBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysBulkDestroyResponse(rsp) -} - -// DcimDeviceBaysListWithResponse request returning *DcimDeviceBaysListResponse -func (c *ClientWithResponses) DcimDeviceBaysListWithResponse(ctx context.Context, params *DcimDeviceBaysListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBaysListResponse, error) { - rsp, err := c.DcimDeviceBaysList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysListResponse(rsp) -} - -// DcimDeviceBaysBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBaysBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceBaysBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBaysBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceBaysBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysBulkPartialUpdateResponse(rsp) -} - -// DcimDeviceBaysCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBaysCreateResponse -func (c *ClientWithResponses) DcimDeviceBaysCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysCreateResponse, error) { - rsp, err := c.DcimDeviceBaysCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBaysCreateWithResponse(ctx context.Context, body DcimDeviceBaysCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysCreateResponse, error) { - rsp, err := c.DcimDeviceBaysCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysCreateResponse(rsp) -} - -// DcimDeviceBaysBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBaysBulkUpdateResponse -func (c *ClientWithResponses) DcimDeviceBaysBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBaysBulkUpdateWithResponse(ctx context.Context, body DcimDeviceBaysBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysBulkUpdateResponse(rsp) -} - -// DcimDeviceBaysDestroyWithResponse request returning *DcimDeviceBaysDestroyResponse -func (c *ClientWithResponses) DcimDeviceBaysDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBaysDestroyResponse, error) { - rsp, err := c.DcimDeviceBaysDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysDestroyResponse(rsp) -} - -// DcimDeviceBaysRetrieveWithResponse request returning *DcimDeviceBaysRetrieveResponse -func (c *ClientWithResponses) DcimDeviceBaysRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceBaysRetrieveResponse, error) { - rsp, err := c.DcimDeviceBaysRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysRetrieveResponse(rsp) -} - -// DcimDeviceBaysPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBaysPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceBaysPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBaysPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysPartialUpdateResponse(rsp) -} - -// DcimDeviceBaysUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBaysUpdateResponse -func (c *ClientWithResponses) DcimDeviceBaysUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBaysUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysUpdateResponse, error) { - rsp, err := c.DcimDeviceBaysUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysUpdateResponse(rsp) -} - -// DcimDeviceBaysNotesListWithResponse request returning *DcimDeviceBaysNotesListResponse -func (c *ClientWithResponses) DcimDeviceBaysNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceBaysNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceBaysNotesListResponse, error) { - rsp, err := c.DcimDeviceBaysNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysNotesListResponse(rsp) -} - -// DcimDeviceBaysNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceBaysNotesCreateResponse -func (c *ClientWithResponses) DcimDeviceBaysNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceBaysNotesCreateResponse, error) { - rsp, err := c.DcimDeviceBaysNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceBaysNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceBaysNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceBaysNotesCreateResponse, error) { - rsp, err := c.DcimDeviceBaysNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceBaysNotesCreateResponse(rsp) -} - -// DcimDeviceRedundancyGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimDeviceRedundancyGroupsBulkDestroyResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsBulkDestroyWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsBulkDestroyResponse(rsp) -} - -// DcimDeviceRedundancyGroupsListWithResponse request returning *DcimDeviceRedundancyGroupsListResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsListWithResponse(ctx context.Context, params *DcimDeviceRedundancyGroupsListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsListResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsListResponse(rsp) -} - -// DcimDeviceRedundancyGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRedundancyGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsBulkPartialUpdateResponse(rsp) -} - -// DcimDeviceRedundancyGroupsCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRedundancyGroupsCreateResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsCreateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsCreateWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsCreateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsCreateResponse(rsp) -} - -// DcimDeviceRedundancyGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRedundancyGroupsBulkUpdateResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsBulkUpdateWithResponse(ctx context.Context, body DcimDeviceRedundancyGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsBulkUpdateResponse(rsp) -} - -// DcimDeviceRedundancyGroupsDestroyWithResponse request returning *DcimDeviceRedundancyGroupsDestroyResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsDestroyResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsDestroyResponse(rsp) -} - -// DcimDeviceRedundancyGroupsRetrieveWithResponse request returning *DcimDeviceRedundancyGroupsRetrieveResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsRetrieveResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsRetrieveResponse(rsp) -} - -// DcimDeviceRedundancyGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRedundancyGroupsPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsPartialUpdateResponse(rsp) -} - -// DcimDeviceRedundancyGroupsUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRedundancyGroupsUpdateResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsUpdateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsUpdateResponse(rsp) -} - -// DcimDeviceRedundancyGroupsNotesListWithResponse request returning *DcimDeviceRedundancyGroupsNotesListResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRedundancyGroupsNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsNotesListResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsNotesListResponse(rsp) -} - -// DcimDeviceRedundancyGroupsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRedundancyGroupsNotesCreateResponse -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsNotesCreateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRedundancyGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRedundancyGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRedundancyGroupsNotesCreateResponse, error) { - rsp, err := c.DcimDeviceRedundancyGroupsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRedundancyGroupsNotesCreateResponse(rsp) -} - -// DcimDeviceRolesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimDeviceRolesBulkDestroyResponse -func (c *ClientWithResponses) DcimDeviceRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceRolesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRolesBulkDestroyWithResponse(ctx context.Context, body DcimDeviceRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceRolesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesBulkDestroyResponse(rsp) -} - -// DcimDeviceRolesListWithResponse request returning *DcimDeviceRolesListResponse -func (c *ClientWithResponses) DcimDeviceRolesListWithResponse(ctx context.Context, params *DcimDeviceRolesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRolesListResponse, error) { - rsp, err := c.DcimDeviceRolesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesListResponse(rsp) -} - -// DcimDeviceRolesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRolesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRolesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesBulkPartialUpdateResponse(rsp) -} - -// DcimDeviceRolesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRolesCreateResponse -func (c *ClientWithResponses) DcimDeviceRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesCreateResponse, error) { - rsp, err := c.DcimDeviceRolesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRolesCreateWithResponse(ctx context.Context, body DcimDeviceRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesCreateResponse, error) { - rsp, err := c.DcimDeviceRolesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesCreateResponse(rsp) -} - -// DcimDeviceRolesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRolesBulkUpdateResponse -func (c *ClientWithResponses) DcimDeviceRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRolesBulkUpdateWithResponse(ctx context.Context, body DcimDeviceRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesBulkUpdateResponse(rsp) -} - -// DcimDeviceRolesDestroyWithResponse request returning *DcimDeviceRolesDestroyResponse -func (c *ClientWithResponses) DcimDeviceRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRolesDestroyResponse, error) { - rsp, err := c.DcimDeviceRolesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesDestroyResponse(rsp) -} - -// DcimDeviceRolesRetrieveWithResponse request returning *DcimDeviceRolesRetrieveResponse -func (c *ClientWithResponses) DcimDeviceRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceRolesRetrieveResponse, error) { - rsp, err := c.DcimDeviceRolesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesRetrieveResponse(rsp) -} - -// DcimDeviceRolesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRolesPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesPartialUpdateResponse(rsp) -} - -// DcimDeviceRolesUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRolesUpdateResponse -func (c *ClientWithResponses) DcimDeviceRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesUpdateResponse, error) { - rsp, err := c.DcimDeviceRolesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesUpdateResponse(rsp) -} - -// DcimDeviceRolesNotesListWithResponse request returning *DcimDeviceRolesNotesListResponse -func (c *ClientWithResponses) DcimDeviceRolesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceRolesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceRolesNotesListResponse, error) { - rsp, err := c.DcimDeviceRolesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesNotesListResponse(rsp) -} - -// DcimDeviceRolesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceRolesNotesCreateResponse -func (c *ClientWithResponses) DcimDeviceRolesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceRolesNotesCreateResponse, error) { - rsp, err := c.DcimDeviceRolesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceRolesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceRolesNotesCreateResponse, error) { - rsp, err := c.DcimDeviceRolesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceRolesNotesCreateResponse(rsp) -} - -// DcimDeviceTypesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimDeviceTypesBulkDestroyResponse -func (c *ClientWithResponses) DcimDeviceTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceTypesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceTypesBulkDestroyWithResponse(ctx context.Context, body DcimDeviceTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkDestroyResponse, error) { - rsp, err := c.DcimDeviceTypesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesBulkDestroyResponse(rsp) -} - -// DcimDeviceTypesListWithResponse request returning *DcimDeviceTypesListResponse -func (c *ClientWithResponses) DcimDeviceTypesListWithResponse(ctx context.Context, params *DcimDeviceTypesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceTypesListResponse, error) { - rsp, err := c.DcimDeviceTypesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesListResponse(rsp) -} - -// DcimDeviceTypesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceTypesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceTypesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDeviceTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesBulkPartialUpdateResponse(rsp) -} - -// DcimDeviceTypesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceTypesCreateResponse -func (c *ClientWithResponses) DcimDeviceTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesCreateResponse, error) { - rsp, err := c.DcimDeviceTypesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceTypesCreateWithResponse(ctx context.Context, body DcimDeviceTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesCreateResponse, error) { - rsp, err := c.DcimDeviceTypesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesCreateResponse(rsp) -} - -// DcimDeviceTypesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceTypesBulkUpdateResponse -func (c *ClientWithResponses) DcimDeviceTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceTypesBulkUpdateWithResponse(ctx context.Context, body DcimDeviceTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesBulkUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesBulkUpdateResponse(rsp) -} - -// DcimDeviceTypesDestroyWithResponse request returning *DcimDeviceTypesDestroyResponse -func (c *ClientWithResponses) DcimDeviceTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceTypesDestroyResponse, error) { - rsp, err := c.DcimDeviceTypesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesDestroyResponse(rsp) -} - -// DcimDeviceTypesRetrieveWithResponse request returning *DcimDeviceTypesRetrieveResponse -func (c *ClientWithResponses) DcimDeviceTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDeviceTypesRetrieveResponse, error) { - rsp, err := c.DcimDeviceTypesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesRetrieveResponse(rsp) -} - -// DcimDeviceTypesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceTypesPartialUpdateResponse -func (c *ClientWithResponses) DcimDeviceTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesPartialUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesPartialUpdateResponse(rsp) -} - -// DcimDeviceTypesUpdateWithBodyWithResponse request with arbitrary body returning *DcimDeviceTypesUpdateResponse -func (c *ClientWithResponses) DcimDeviceTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesUpdateResponse, error) { - rsp, err := c.DcimDeviceTypesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesUpdateResponse(rsp) -} - -// DcimDeviceTypesNotesListWithResponse request returning *DcimDeviceTypesNotesListResponse -func (c *ClientWithResponses) DcimDeviceTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDeviceTypesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDeviceTypesNotesListResponse, error) { - rsp, err := c.DcimDeviceTypesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesNotesListResponse(rsp) -} - -// DcimDeviceTypesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimDeviceTypesNotesCreateResponse -func (c *ClientWithResponses) DcimDeviceTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDeviceTypesNotesCreateResponse, error) { - rsp, err := c.DcimDeviceTypesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDeviceTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDeviceTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDeviceTypesNotesCreateResponse, error) { - rsp, err := c.DcimDeviceTypesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDeviceTypesNotesCreateResponse(rsp) -} - -// DcimDevicesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimDevicesBulkDestroyResponse -func (c *ClientWithResponses) DcimDevicesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesBulkDestroyResponse, error) { - rsp, err := c.DcimDevicesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimDevicesBulkDestroyWithResponse(ctx context.Context, body DcimDevicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesBulkDestroyResponse, error) { - rsp, err := c.DcimDevicesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesBulkDestroyResponse(rsp) -} - -// DcimDevicesListWithResponse request returning *DcimDevicesListResponse -func (c *ClientWithResponses) DcimDevicesListWithResponse(ctx context.Context, params *DcimDevicesListParams, reqEditors ...RequestEditorFn) (*DcimDevicesListResponse, error) { - rsp, err := c.DcimDevicesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesListResponse(rsp) -} - -// DcimDevicesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDevicesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimDevicesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDevicesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDevicesBulkPartialUpdateWithResponse(ctx context.Context, body DcimDevicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimDevicesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesBulkPartialUpdateResponse(rsp) -} - -// DcimDevicesCreateWithBodyWithResponse request with arbitrary body returning *DcimDevicesCreateResponse -func (c *ClientWithResponses) DcimDevicesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesCreateResponse, error) { - rsp, err := c.DcimDevicesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDevicesCreateWithResponse(ctx context.Context, body DcimDevicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesCreateResponse, error) { - rsp, err := c.DcimDevicesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesCreateResponse(rsp) -} - -// DcimDevicesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimDevicesBulkUpdateResponse -func (c *ClientWithResponses) DcimDevicesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesBulkUpdateResponse, error) { - rsp, err := c.DcimDevicesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDevicesBulkUpdateWithResponse(ctx context.Context, body DcimDevicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesBulkUpdateResponse, error) { - rsp, err := c.DcimDevicesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesBulkUpdateResponse(rsp) -} - -// DcimDevicesDestroyWithResponse request returning *DcimDevicesDestroyResponse -func (c *ClientWithResponses) DcimDevicesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDevicesDestroyResponse, error) { - rsp, err := c.DcimDevicesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesDestroyResponse(rsp) -} - -// DcimDevicesRetrieveWithResponse request returning *DcimDevicesRetrieveResponse -func (c *ClientWithResponses) DcimDevicesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimDevicesRetrieveResponse, error) { - rsp, err := c.DcimDevicesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesRetrieveResponse(rsp) -} - -// DcimDevicesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimDevicesPartialUpdateResponse -func (c *ClientWithResponses) DcimDevicesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesPartialUpdateResponse, error) { - rsp, err := c.DcimDevicesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDevicesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDevicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesPartialUpdateResponse, error) { - rsp, err := c.DcimDevicesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesPartialUpdateResponse(rsp) -} - -// DcimDevicesUpdateWithBodyWithResponse request with arbitrary body returning *DcimDevicesUpdateResponse -func (c *ClientWithResponses) DcimDevicesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesUpdateResponse, error) { - rsp, err := c.DcimDevicesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDevicesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDevicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesUpdateResponse, error) { - rsp, err := c.DcimDevicesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesUpdateResponse(rsp) -} - -// DcimDevicesNapalmRetrieveWithResponse request returning *DcimDevicesNapalmRetrieveResponse -func (c *ClientWithResponses) DcimDevicesNapalmRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNapalmRetrieveParams, reqEditors ...RequestEditorFn) (*DcimDevicesNapalmRetrieveResponse, error) { - rsp, err := c.DcimDevicesNapalmRetrieve(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesNapalmRetrieveResponse(rsp) -} - -// DcimDevicesNotesListWithResponse request returning *DcimDevicesNotesListResponse -func (c *ClientWithResponses) DcimDevicesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimDevicesNotesListParams, reqEditors ...RequestEditorFn) (*DcimDevicesNotesListResponse, error) { - rsp, err := c.DcimDevicesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesNotesListResponse(rsp) -} - -// DcimDevicesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimDevicesNotesCreateResponse -func (c *ClientWithResponses) DcimDevicesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimDevicesNotesCreateResponse, error) { - rsp, err := c.DcimDevicesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimDevicesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimDevicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimDevicesNotesCreateResponse, error) { - rsp, err := c.DcimDevicesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimDevicesNotesCreateResponse(rsp) -} - -// DcimFrontPortTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimFrontPortTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimFrontPortTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimFrontPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimFrontPortTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesBulkDestroyResponse(rsp) -} - -// DcimFrontPortTemplatesListWithResponse request returning *DcimFrontPortTemplatesListResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesListWithResponse(ctx context.Context, params *DcimFrontPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesListResponse, error) { - rsp, err := c.DcimFrontPortTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesListResponse(rsp) -} - -// DcimFrontPortTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimFrontPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimFrontPortTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortTemplatesCreateResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesCreateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortTemplatesCreateWithResponse(ctx context.Context, body DcimFrontPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesCreateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesCreateResponse(rsp) -} - -// DcimFrontPortTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimFrontPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesBulkUpdateResponse(rsp) -} - -// DcimFrontPortTemplatesDestroyWithResponse request returning *DcimFrontPortTemplatesDestroyResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesDestroyResponse, error) { - rsp, err := c.DcimFrontPortTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesDestroyResponse(rsp) -} - -// DcimFrontPortTemplatesRetrieveWithResponse request returning *DcimFrontPortTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesRetrieveResponse, error) { - rsp, err := c.DcimFrontPortTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesRetrieveResponse(rsp) -} - -// DcimFrontPortTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesPartialUpdateResponse(rsp) -} - -// DcimFrontPortTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortTemplatesUpdateResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesUpdateResponse(rsp) -} - -// DcimFrontPortTemplatesNotesListWithResponse request returning *DcimFrontPortTemplatesNotesListResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesNotesListResponse, error) { - rsp, err := c.DcimFrontPortTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesNotesListResponse(rsp) -} - -// DcimFrontPortTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimFrontPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimFrontPortTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortTemplatesNotesCreateResponse(rsp) -} - -// DcimFrontPortsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimFrontPortsBulkDestroyResponse -func (c *ClientWithResponses) DcimFrontPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkDestroyResponse, error) { - rsp, err := c.DcimFrontPortsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortsBulkDestroyWithResponse(ctx context.Context, body DcimFrontPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkDestroyResponse, error) { - rsp, err := c.DcimFrontPortsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsBulkDestroyResponse(rsp) -} - -// DcimFrontPortsListWithResponse request returning *DcimFrontPortsListResponse -func (c *ClientWithResponses) DcimFrontPortsListWithResponse(ctx context.Context, params *DcimFrontPortsListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortsListResponse, error) { - rsp, err := c.DcimFrontPortsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsListResponse(rsp) -} - -// DcimFrontPortsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimFrontPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimFrontPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsBulkPartialUpdateResponse(rsp) -} - -// DcimFrontPortsCreateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortsCreateResponse -func (c *ClientWithResponses) DcimFrontPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsCreateResponse, error) { - rsp, err := c.DcimFrontPortsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortsCreateWithResponse(ctx context.Context, body DcimFrontPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsCreateResponse, error) { - rsp, err := c.DcimFrontPortsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsCreateResponse(rsp) -} - -// DcimFrontPortsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortsBulkUpdateResponse -func (c *ClientWithResponses) DcimFrontPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkUpdateResponse, error) { - rsp, err := c.DcimFrontPortsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortsBulkUpdateWithResponse(ctx context.Context, body DcimFrontPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsBulkUpdateResponse, error) { - rsp, err := c.DcimFrontPortsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsBulkUpdateResponse(rsp) -} - -// DcimFrontPortsDestroyWithResponse request returning *DcimFrontPortsDestroyResponse -func (c *ClientWithResponses) DcimFrontPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortsDestroyResponse, error) { - rsp, err := c.DcimFrontPortsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsDestroyResponse(rsp) -} - -// DcimFrontPortsRetrieveWithResponse request returning *DcimFrontPortsRetrieveResponse -func (c *ClientWithResponses) DcimFrontPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortsRetrieveResponse, error) { - rsp, err := c.DcimFrontPortsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsRetrieveResponse(rsp) -} - -// DcimFrontPortsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortsPartialUpdateResponse -func (c *ClientWithResponses) DcimFrontPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsPartialUpdateResponse, error) { - rsp, err := c.DcimFrontPortsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsPartialUpdateResponse(rsp) -} - -// DcimFrontPortsUpdateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortsUpdateResponse -func (c *ClientWithResponses) DcimFrontPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsUpdateResponse, error) { - rsp, err := c.DcimFrontPortsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsUpdateResponse, error) { - rsp, err := c.DcimFrontPortsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsUpdateResponse(rsp) -} - -// DcimFrontPortsNotesListWithResponse request returning *DcimFrontPortsNotesListResponse -func (c *ClientWithResponses) DcimFrontPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimFrontPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimFrontPortsNotesListResponse, error) { - rsp, err := c.DcimFrontPortsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsNotesListResponse(rsp) -} - -// DcimFrontPortsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimFrontPortsNotesCreateResponse -func (c *ClientWithResponses) DcimFrontPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimFrontPortsNotesCreateResponse, error) { - rsp, err := c.DcimFrontPortsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimFrontPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimFrontPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimFrontPortsNotesCreateResponse, error) { - rsp, err := c.DcimFrontPortsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsNotesCreateResponse(rsp) -} - -// DcimFrontPortsPathsRetrieveWithResponse request returning *DcimFrontPortsPathsRetrieveResponse -func (c *ClientWithResponses) DcimFrontPortsPathsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimFrontPortsPathsRetrieveResponse, error) { - rsp, err := c.DcimFrontPortsPathsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimFrontPortsPathsRetrieveResponse(rsp) -} - -// DcimInterfaceConnectionsListWithResponse request returning *DcimInterfaceConnectionsListResponse -func (c *ClientWithResponses) DcimInterfaceConnectionsListWithResponse(ctx context.Context, params *DcimInterfaceConnectionsListParams, reqEditors ...RequestEditorFn) (*DcimInterfaceConnectionsListResponse, error) { - rsp, err := c.DcimInterfaceConnectionsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceConnectionsListResponse(rsp) -} - -// DcimInterfaceTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimInterfaceTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimInterfaceTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfaceTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimInterfaceTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimInterfaceTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesBulkDestroyResponse(rsp) -} - -// DcimInterfaceTemplatesListWithResponse request returning *DcimInterfaceTemplatesListResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesListWithResponse(ctx context.Context, params *DcimInterfaceTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesListResponse, error) { - rsp, err := c.DcimInterfaceTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesListResponse(rsp) -} - -// DcimInterfaceTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfaceTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfaceTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimInterfaceTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimInterfaceTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimInterfaceTemplatesCreateResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesCreateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfaceTemplatesCreateWithResponse(ctx context.Context, body DcimInterfaceTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesCreateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesCreateResponse(rsp) -} - -// DcimInterfaceTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfaceTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfaceTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimInterfaceTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesBulkUpdateResponse(rsp) -} - -// DcimInterfaceTemplatesDestroyWithResponse request returning *DcimInterfaceTemplatesDestroyResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesDestroyResponse, error) { - rsp, err := c.DcimInterfaceTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesDestroyResponse(rsp) -} - -// DcimInterfaceTemplatesRetrieveWithResponse request returning *DcimInterfaceTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesRetrieveResponse, error) { - rsp, err := c.DcimInterfaceTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesRetrieveResponse(rsp) -} - -// DcimInterfaceTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfaceTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfaceTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesPartialUpdateResponse(rsp) -} - -// DcimInterfaceTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfaceTemplatesUpdateResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfaceTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesUpdateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesUpdateResponse(rsp) -} - -// DcimInterfaceTemplatesNotesListWithResponse request returning *DcimInterfaceTemplatesNotesListResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimInterfaceTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesNotesListResponse, error) { - rsp, err := c.DcimInterfaceTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesNotesListResponse(rsp) -} - -// DcimInterfaceTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimInterfaceTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimInterfaceTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfaceTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfaceTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfaceTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimInterfaceTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfaceTemplatesNotesCreateResponse(rsp) -} - -// DcimInterfacesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimInterfacesBulkDestroyResponse -func (c *ClientWithResponses) DcimInterfacesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkDestroyResponse, error) { - rsp, err := c.DcimInterfacesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfacesBulkDestroyWithResponse(ctx context.Context, body DcimInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkDestroyResponse, error) { - rsp, err := c.DcimInterfacesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesBulkDestroyResponse(rsp) -} - -// DcimInterfacesListWithResponse request returning *DcimInterfacesListResponse -func (c *ClientWithResponses) DcimInterfacesListWithResponse(ctx context.Context, params *DcimInterfacesListParams, reqEditors ...RequestEditorFn) (*DcimInterfacesListResponse, error) { - rsp, err := c.DcimInterfacesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesListResponse(rsp) -} - -// DcimInterfacesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfacesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimInterfacesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimInterfacesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfacesBulkPartialUpdateWithResponse(ctx context.Context, body DcimInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimInterfacesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesBulkPartialUpdateResponse(rsp) -} - -// DcimInterfacesCreateWithBodyWithResponse request with arbitrary body returning *DcimInterfacesCreateResponse -func (c *ClientWithResponses) DcimInterfacesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesCreateResponse, error) { - rsp, err := c.DcimInterfacesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfacesCreateWithResponse(ctx context.Context, body DcimInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesCreateResponse, error) { - rsp, err := c.DcimInterfacesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesCreateResponse(rsp) -} - -// DcimInterfacesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfacesBulkUpdateResponse -func (c *ClientWithResponses) DcimInterfacesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkUpdateResponse, error) { - rsp, err := c.DcimInterfacesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfacesBulkUpdateWithResponse(ctx context.Context, body DcimInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesBulkUpdateResponse, error) { - rsp, err := c.DcimInterfacesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesBulkUpdateResponse(rsp) -} - -// DcimInterfacesDestroyWithResponse request returning *DcimInterfacesDestroyResponse -func (c *ClientWithResponses) DcimInterfacesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfacesDestroyResponse, error) { - rsp, err := c.DcimInterfacesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesDestroyResponse(rsp) -} - -// DcimInterfacesRetrieveWithResponse request returning *DcimInterfacesRetrieveResponse -func (c *ClientWithResponses) DcimInterfacesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfacesRetrieveResponse, error) { - rsp, err := c.DcimInterfacesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesRetrieveResponse(rsp) -} - -// DcimInterfacesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfacesPartialUpdateResponse -func (c *ClientWithResponses) DcimInterfacesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesPartialUpdateResponse, error) { - rsp, err := c.DcimInterfacesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfacesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesPartialUpdateResponse, error) { - rsp, err := c.DcimInterfacesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesPartialUpdateResponse(rsp) -} - -// DcimInterfacesUpdateWithBodyWithResponse request with arbitrary body returning *DcimInterfacesUpdateResponse -func (c *ClientWithResponses) DcimInterfacesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesUpdateResponse, error) { - rsp, err := c.DcimInterfacesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfacesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesUpdateResponse, error) { - rsp, err := c.DcimInterfacesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesUpdateResponse(rsp) -} - -// DcimInterfacesNotesListWithResponse request returning *DcimInterfacesNotesListResponse -func (c *ClientWithResponses) DcimInterfacesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*DcimInterfacesNotesListResponse, error) { - rsp, err := c.DcimInterfacesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesNotesListResponse(rsp) -} - -// DcimInterfacesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimInterfacesNotesCreateResponse -func (c *ClientWithResponses) DcimInterfacesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInterfacesNotesCreateResponse, error) { - rsp, err := c.DcimInterfacesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInterfacesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInterfacesNotesCreateResponse, error) { - rsp, err := c.DcimInterfacesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesNotesCreateResponse(rsp) -} - -// DcimInterfacesTraceRetrieveWithResponse request returning *DcimInterfacesTraceRetrieveResponse -func (c *ClientWithResponses) DcimInterfacesTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInterfacesTraceRetrieveResponse, error) { - rsp, err := c.DcimInterfacesTraceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInterfacesTraceRetrieveResponse(rsp) -} - -// DcimInventoryItemsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimInventoryItemsBulkDestroyResponse -func (c *ClientWithResponses) DcimInventoryItemsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkDestroyResponse, error) { - rsp, err := c.DcimInventoryItemsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimInventoryItemsBulkDestroyWithResponse(ctx context.Context, body DcimInventoryItemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkDestroyResponse, error) { - rsp, err := c.DcimInventoryItemsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsBulkDestroyResponse(rsp) -} - -// DcimInventoryItemsListWithResponse request returning *DcimInventoryItemsListResponse -func (c *ClientWithResponses) DcimInventoryItemsListWithResponse(ctx context.Context, params *DcimInventoryItemsListParams, reqEditors ...RequestEditorFn) (*DcimInventoryItemsListResponse, error) { - rsp, err := c.DcimInventoryItemsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsListResponse(rsp) -} - -// DcimInventoryItemsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimInventoryItemsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimInventoryItemsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInventoryItemsBulkPartialUpdateWithResponse(ctx context.Context, body DcimInventoryItemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsBulkPartialUpdateResponse(rsp) -} - -// DcimInventoryItemsCreateWithBodyWithResponse request with arbitrary body returning *DcimInventoryItemsCreateResponse -func (c *ClientWithResponses) DcimInventoryItemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsCreateResponse, error) { - rsp, err := c.DcimInventoryItemsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInventoryItemsCreateWithResponse(ctx context.Context, body DcimInventoryItemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsCreateResponse, error) { - rsp, err := c.DcimInventoryItemsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsCreateResponse(rsp) -} - -// DcimInventoryItemsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimInventoryItemsBulkUpdateResponse -func (c *ClientWithResponses) DcimInventoryItemsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInventoryItemsBulkUpdateWithResponse(ctx context.Context, body DcimInventoryItemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsBulkUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsBulkUpdateResponse(rsp) -} - -// DcimInventoryItemsDestroyWithResponse request returning *DcimInventoryItemsDestroyResponse -func (c *ClientWithResponses) DcimInventoryItemsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInventoryItemsDestroyResponse, error) { - rsp, err := c.DcimInventoryItemsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsDestroyResponse(rsp) -} - -// DcimInventoryItemsRetrieveWithResponse request returning *DcimInventoryItemsRetrieveResponse -func (c *ClientWithResponses) DcimInventoryItemsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimInventoryItemsRetrieveResponse, error) { - rsp, err := c.DcimInventoryItemsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsRetrieveResponse(rsp) -} - -// DcimInventoryItemsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimInventoryItemsPartialUpdateResponse -func (c *ClientWithResponses) DcimInventoryItemsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsPartialUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInventoryItemsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsPartialUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsPartialUpdateResponse(rsp) -} - -// DcimInventoryItemsUpdateWithBodyWithResponse request with arbitrary body returning *DcimInventoryItemsUpdateResponse -func (c *ClientWithResponses) DcimInventoryItemsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInventoryItemsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsUpdateResponse, error) { - rsp, err := c.DcimInventoryItemsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsUpdateResponse(rsp) -} - -// DcimInventoryItemsNotesListWithResponse request returning *DcimInventoryItemsNotesListResponse -func (c *ClientWithResponses) DcimInventoryItemsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimInventoryItemsNotesListParams, reqEditors ...RequestEditorFn) (*DcimInventoryItemsNotesListResponse, error) { - rsp, err := c.DcimInventoryItemsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsNotesListResponse(rsp) -} - -// DcimInventoryItemsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimInventoryItemsNotesCreateResponse -func (c *ClientWithResponses) DcimInventoryItemsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimInventoryItemsNotesCreateResponse, error) { - rsp, err := c.DcimInventoryItemsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimInventoryItemsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimInventoryItemsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimInventoryItemsNotesCreateResponse, error) { - rsp, err := c.DcimInventoryItemsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimInventoryItemsNotesCreateResponse(rsp) -} - -// DcimLocationTypesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimLocationTypesBulkDestroyResponse -func (c *ClientWithResponses) DcimLocationTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkDestroyResponse, error) { - rsp, err := c.DcimLocationTypesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationTypesBulkDestroyWithResponse(ctx context.Context, body DcimLocationTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkDestroyResponse, error) { - rsp, err := c.DcimLocationTypesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesBulkDestroyResponse(rsp) -} - -// DcimLocationTypesListWithResponse request returning *DcimLocationTypesListResponse -func (c *ClientWithResponses) DcimLocationTypesListWithResponse(ctx context.Context, params *DcimLocationTypesListParams, reqEditors ...RequestEditorFn) (*DcimLocationTypesListResponse, error) { - rsp, err := c.DcimLocationTypesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesListResponse(rsp) -} - -// DcimLocationTypesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationTypesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimLocationTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimLocationTypesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationTypesBulkPartialUpdateWithResponse(ctx context.Context, body DcimLocationTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimLocationTypesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesBulkPartialUpdateResponse(rsp) -} - -// DcimLocationTypesCreateWithBodyWithResponse request with arbitrary body returning *DcimLocationTypesCreateResponse -func (c *ClientWithResponses) DcimLocationTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesCreateResponse, error) { - rsp, err := c.DcimLocationTypesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationTypesCreateWithResponse(ctx context.Context, body DcimLocationTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesCreateResponse, error) { - rsp, err := c.DcimLocationTypesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesCreateResponse(rsp) -} - -// DcimLocationTypesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationTypesBulkUpdateResponse -func (c *ClientWithResponses) DcimLocationTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkUpdateResponse, error) { - rsp, err := c.DcimLocationTypesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationTypesBulkUpdateWithResponse(ctx context.Context, body DcimLocationTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesBulkUpdateResponse, error) { - rsp, err := c.DcimLocationTypesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesBulkUpdateResponse(rsp) -} - -// DcimLocationTypesDestroyWithResponse request returning *DcimLocationTypesDestroyResponse -func (c *ClientWithResponses) DcimLocationTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationTypesDestroyResponse, error) { - rsp, err := c.DcimLocationTypesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesDestroyResponse(rsp) -} - -// DcimLocationTypesRetrieveWithResponse request returning *DcimLocationTypesRetrieveResponse -func (c *ClientWithResponses) DcimLocationTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationTypesRetrieveResponse, error) { - rsp, err := c.DcimLocationTypesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesRetrieveResponse(rsp) -} - -// DcimLocationTypesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationTypesPartialUpdateResponse -func (c *ClientWithResponses) DcimLocationTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesPartialUpdateResponse, error) { - rsp, err := c.DcimLocationTypesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesPartialUpdateResponse, error) { - rsp, err := c.DcimLocationTypesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesPartialUpdateResponse(rsp) -} - -// DcimLocationTypesUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationTypesUpdateResponse -func (c *ClientWithResponses) DcimLocationTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesUpdateResponse, error) { - rsp, err := c.DcimLocationTypesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesUpdateResponse, error) { - rsp, err := c.DcimLocationTypesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesUpdateResponse(rsp) -} - -// DcimLocationTypesNotesListWithResponse request returning *DcimLocationTypesNotesListResponse -func (c *ClientWithResponses) DcimLocationTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimLocationTypesNotesListParams, reqEditors ...RequestEditorFn) (*DcimLocationTypesNotesListResponse, error) { - rsp, err := c.DcimLocationTypesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesNotesListResponse(rsp) -} - -// DcimLocationTypesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimLocationTypesNotesCreateResponse -func (c *ClientWithResponses) DcimLocationTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationTypesNotesCreateResponse, error) { - rsp, err := c.DcimLocationTypesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationTypesNotesCreateResponse, error) { - rsp, err := c.DcimLocationTypesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationTypesNotesCreateResponse(rsp) -} - -// DcimLocationsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimLocationsBulkDestroyResponse -func (c *ClientWithResponses) DcimLocationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsBulkDestroyResponse, error) { - rsp, err := c.DcimLocationsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationsBulkDestroyWithResponse(ctx context.Context, body DcimLocationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsBulkDestroyResponse, error) { - rsp, err := c.DcimLocationsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsBulkDestroyResponse(rsp) -} - -// DcimLocationsListWithResponse request returning *DcimLocationsListResponse -func (c *ClientWithResponses) DcimLocationsListWithResponse(ctx context.Context, params *DcimLocationsListParams, reqEditors ...RequestEditorFn) (*DcimLocationsListResponse, error) { - rsp, err := c.DcimLocationsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsListResponse(rsp) -} - -// DcimLocationsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimLocationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimLocationsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationsBulkPartialUpdateWithResponse(ctx context.Context, body DcimLocationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimLocationsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsBulkPartialUpdateResponse(rsp) -} - -// DcimLocationsCreateWithBodyWithResponse request with arbitrary body returning *DcimLocationsCreateResponse -func (c *ClientWithResponses) DcimLocationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsCreateResponse, error) { - rsp, err := c.DcimLocationsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationsCreateWithResponse(ctx context.Context, body DcimLocationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsCreateResponse, error) { - rsp, err := c.DcimLocationsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsCreateResponse(rsp) -} - -// DcimLocationsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationsBulkUpdateResponse -func (c *ClientWithResponses) DcimLocationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsBulkUpdateResponse, error) { - rsp, err := c.DcimLocationsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationsBulkUpdateWithResponse(ctx context.Context, body DcimLocationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsBulkUpdateResponse, error) { - rsp, err := c.DcimLocationsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsBulkUpdateResponse(rsp) -} - -// DcimLocationsDestroyWithResponse request returning *DcimLocationsDestroyResponse -func (c *ClientWithResponses) DcimLocationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationsDestroyResponse, error) { - rsp, err := c.DcimLocationsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsDestroyResponse(rsp) -} - -// DcimLocationsRetrieveWithResponse request returning *DcimLocationsRetrieveResponse -func (c *ClientWithResponses) DcimLocationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimLocationsRetrieveResponse, error) { - rsp, err := c.DcimLocationsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsRetrieveResponse(rsp) -} - -// DcimLocationsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationsPartialUpdateResponse -func (c *ClientWithResponses) DcimLocationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsPartialUpdateResponse, error) { - rsp, err := c.DcimLocationsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsPartialUpdateResponse, error) { - rsp, err := c.DcimLocationsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsPartialUpdateResponse(rsp) -} - -// DcimLocationsUpdateWithBodyWithResponse request with arbitrary body returning *DcimLocationsUpdateResponse -func (c *ClientWithResponses) DcimLocationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsUpdateResponse, error) { - rsp, err := c.DcimLocationsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsUpdateResponse, error) { - rsp, err := c.DcimLocationsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsUpdateResponse(rsp) -} - -// DcimLocationsNotesListWithResponse request returning *DcimLocationsNotesListResponse -func (c *ClientWithResponses) DcimLocationsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimLocationsNotesListParams, reqEditors ...RequestEditorFn) (*DcimLocationsNotesListResponse, error) { - rsp, err := c.DcimLocationsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsNotesListResponse(rsp) -} - -// DcimLocationsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimLocationsNotesCreateResponse -func (c *ClientWithResponses) DcimLocationsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimLocationsNotesCreateResponse, error) { - rsp, err := c.DcimLocationsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimLocationsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimLocationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimLocationsNotesCreateResponse, error) { - rsp, err := c.DcimLocationsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimLocationsNotesCreateResponse(rsp) -} - -// DcimManufacturersBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimManufacturersBulkDestroyResponse -func (c *ClientWithResponses) DcimManufacturersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkDestroyResponse, error) { - rsp, err := c.DcimManufacturersBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimManufacturersBulkDestroyWithResponse(ctx context.Context, body DcimManufacturersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkDestroyResponse, error) { - rsp, err := c.DcimManufacturersBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersBulkDestroyResponse(rsp) -} - -// DcimManufacturersListWithResponse request returning *DcimManufacturersListResponse -func (c *ClientWithResponses) DcimManufacturersListWithResponse(ctx context.Context, params *DcimManufacturersListParams, reqEditors ...RequestEditorFn) (*DcimManufacturersListResponse, error) { - rsp, err := c.DcimManufacturersList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersListResponse(rsp) -} - -// DcimManufacturersBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimManufacturersBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimManufacturersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkPartialUpdateResponse, error) { - rsp, err := c.DcimManufacturersBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimManufacturersBulkPartialUpdateWithResponse(ctx context.Context, body DcimManufacturersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkPartialUpdateResponse, error) { - rsp, err := c.DcimManufacturersBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersBulkPartialUpdateResponse(rsp) -} - -// DcimManufacturersCreateWithBodyWithResponse request with arbitrary body returning *DcimManufacturersCreateResponse -func (c *ClientWithResponses) DcimManufacturersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersCreateResponse, error) { - rsp, err := c.DcimManufacturersCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimManufacturersCreateWithResponse(ctx context.Context, body DcimManufacturersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersCreateResponse, error) { - rsp, err := c.DcimManufacturersCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersCreateResponse(rsp) -} - -// DcimManufacturersBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimManufacturersBulkUpdateResponse -func (c *ClientWithResponses) DcimManufacturersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkUpdateResponse, error) { - rsp, err := c.DcimManufacturersBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimManufacturersBulkUpdateWithResponse(ctx context.Context, body DcimManufacturersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersBulkUpdateResponse, error) { - rsp, err := c.DcimManufacturersBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersBulkUpdateResponse(rsp) -} - -// DcimManufacturersDestroyWithResponse request returning *DcimManufacturersDestroyResponse -func (c *ClientWithResponses) DcimManufacturersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimManufacturersDestroyResponse, error) { - rsp, err := c.DcimManufacturersDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersDestroyResponse(rsp) -} - -// DcimManufacturersRetrieveWithResponse request returning *DcimManufacturersRetrieveResponse -func (c *ClientWithResponses) DcimManufacturersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimManufacturersRetrieveResponse, error) { - rsp, err := c.DcimManufacturersRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersRetrieveResponse(rsp) -} - -// DcimManufacturersPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimManufacturersPartialUpdateResponse -func (c *ClientWithResponses) DcimManufacturersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersPartialUpdateResponse, error) { - rsp, err := c.DcimManufacturersPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimManufacturersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimManufacturersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersPartialUpdateResponse, error) { - rsp, err := c.DcimManufacturersPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersPartialUpdateResponse(rsp) -} - -// DcimManufacturersUpdateWithBodyWithResponse request with arbitrary body returning *DcimManufacturersUpdateResponse -func (c *ClientWithResponses) DcimManufacturersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersUpdateResponse, error) { - rsp, err := c.DcimManufacturersUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimManufacturersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimManufacturersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersUpdateResponse, error) { - rsp, err := c.DcimManufacturersUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersUpdateResponse(rsp) -} - -// DcimManufacturersNotesListWithResponse request returning *DcimManufacturersNotesListResponse -func (c *ClientWithResponses) DcimManufacturersNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimManufacturersNotesListParams, reqEditors ...RequestEditorFn) (*DcimManufacturersNotesListResponse, error) { - rsp, err := c.DcimManufacturersNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersNotesListResponse(rsp) -} - -// DcimManufacturersNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimManufacturersNotesCreateResponse -func (c *ClientWithResponses) DcimManufacturersNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimManufacturersNotesCreateResponse, error) { - rsp, err := c.DcimManufacturersNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimManufacturersNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimManufacturersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimManufacturersNotesCreateResponse, error) { - rsp, err := c.DcimManufacturersNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimManufacturersNotesCreateResponse(rsp) -} - -// DcimPlatformsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimPlatformsBulkDestroyResponse -func (c *ClientWithResponses) DcimPlatformsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkDestroyResponse, error) { - rsp, err := c.DcimPlatformsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimPlatformsBulkDestroyWithResponse(ctx context.Context, body DcimPlatformsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkDestroyResponse, error) { - rsp, err := c.DcimPlatformsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsBulkDestroyResponse(rsp) -} - -// DcimPlatformsListWithResponse request returning *DcimPlatformsListResponse -func (c *ClientWithResponses) DcimPlatformsListWithResponse(ctx context.Context, params *DcimPlatformsListParams, reqEditors ...RequestEditorFn) (*DcimPlatformsListResponse, error) { - rsp, err := c.DcimPlatformsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsListResponse(rsp) -} - -// DcimPlatformsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPlatformsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimPlatformsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPlatformsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPlatformsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPlatformsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPlatformsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsBulkPartialUpdateResponse(rsp) -} - -// DcimPlatformsCreateWithBodyWithResponse request with arbitrary body returning *DcimPlatformsCreateResponse -func (c *ClientWithResponses) DcimPlatformsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsCreateResponse, error) { - rsp, err := c.DcimPlatformsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPlatformsCreateWithResponse(ctx context.Context, body DcimPlatformsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsCreateResponse, error) { - rsp, err := c.DcimPlatformsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsCreateResponse(rsp) -} - -// DcimPlatformsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimPlatformsBulkUpdateResponse -func (c *ClientWithResponses) DcimPlatformsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkUpdateResponse, error) { - rsp, err := c.DcimPlatformsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPlatformsBulkUpdateWithResponse(ctx context.Context, body DcimPlatformsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsBulkUpdateResponse, error) { - rsp, err := c.DcimPlatformsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsBulkUpdateResponse(rsp) -} - -// DcimPlatformsDestroyWithResponse request returning *DcimPlatformsDestroyResponse -func (c *ClientWithResponses) DcimPlatformsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPlatformsDestroyResponse, error) { - rsp, err := c.DcimPlatformsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsDestroyResponse(rsp) -} - -// DcimPlatformsRetrieveWithResponse request returning *DcimPlatformsRetrieveResponse -func (c *ClientWithResponses) DcimPlatformsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPlatformsRetrieveResponse, error) { - rsp, err := c.DcimPlatformsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsRetrieveResponse(rsp) -} - -// DcimPlatformsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPlatformsPartialUpdateResponse -func (c *ClientWithResponses) DcimPlatformsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsPartialUpdateResponse, error) { - rsp, err := c.DcimPlatformsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPlatformsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPlatformsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsPartialUpdateResponse, error) { - rsp, err := c.DcimPlatformsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsPartialUpdateResponse(rsp) -} - -// DcimPlatformsUpdateWithBodyWithResponse request with arbitrary body returning *DcimPlatformsUpdateResponse -func (c *ClientWithResponses) DcimPlatformsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsUpdateResponse, error) { - rsp, err := c.DcimPlatformsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPlatformsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPlatformsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsUpdateResponse, error) { - rsp, err := c.DcimPlatformsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsUpdateResponse(rsp) -} - -// DcimPlatformsNotesListWithResponse request returning *DcimPlatformsNotesListResponse -func (c *ClientWithResponses) DcimPlatformsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPlatformsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPlatformsNotesListResponse, error) { - rsp, err := c.DcimPlatformsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsNotesListResponse(rsp) -} - -// DcimPlatformsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimPlatformsNotesCreateResponse -func (c *ClientWithResponses) DcimPlatformsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPlatformsNotesCreateResponse, error) { - rsp, err := c.DcimPlatformsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPlatformsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPlatformsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPlatformsNotesCreateResponse, error) { - rsp, err := c.DcimPlatformsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPlatformsNotesCreateResponse(rsp) -} - -// DcimPowerConnectionsListWithResponse request returning *DcimPowerConnectionsListResponse -func (c *ClientWithResponses) DcimPowerConnectionsListWithResponse(ctx context.Context, params *DcimPowerConnectionsListParams, reqEditors ...RequestEditorFn) (*DcimPowerConnectionsListResponse, error) { - rsp, err := c.DcimPowerConnectionsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerConnectionsListResponse(rsp) -} - -// DcimPowerFeedsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimPowerFeedsBulkDestroyResponse -func (c *ClientWithResponses) DcimPowerFeedsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerFeedsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerFeedsBulkDestroyWithResponse(ctx context.Context, body DcimPowerFeedsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerFeedsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsBulkDestroyResponse(rsp) -} - -// DcimPowerFeedsListWithResponse request returning *DcimPowerFeedsListResponse -func (c *ClientWithResponses) DcimPowerFeedsListWithResponse(ctx context.Context, params *DcimPowerFeedsListParams, reqEditors ...RequestEditorFn) (*DcimPowerFeedsListResponse, error) { - rsp, err := c.DcimPowerFeedsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsListResponse(rsp) -} - -// DcimPowerFeedsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerFeedsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerFeedsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerFeedsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerFeedsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsBulkPartialUpdateResponse(rsp) -} - -// DcimPowerFeedsCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerFeedsCreateResponse -func (c *ClientWithResponses) DcimPowerFeedsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsCreateResponse, error) { - rsp, err := c.DcimPowerFeedsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerFeedsCreateWithResponse(ctx context.Context, body DcimPowerFeedsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsCreateResponse, error) { - rsp, err := c.DcimPowerFeedsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsCreateResponse(rsp) -} - -// DcimPowerFeedsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerFeedsBulkUpdateResponse -func (c *ClientWithResponses) DcimPowerFeedsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerFeedsBulkUpdateWithResponse(ctx context.Context, body DcimPowerFeedsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsBulkUpdateResponse(rsp) -} - -// DcimPowerFeedsDestroyWithResponse request returning *DcimPowerFeedsDestroyResponse -func (c *ClientWithResponses) DcimPowerFeedsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerFeedsDestroyResponse, error) { - rsp, err := c.DcimPowerFeedsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsDestroyResponse(rsp) -} - -// DcimPowerFeedsRetrieveWithResponse request returning *DcimPowerFeedsRetrieveResponse -func (c *ClientWithResponses) DcimPowerFeedsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerFeedsRetrieveResponse, error) { - rsp, err := c.DcimPowerFeedsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsRetrieveResponse(rsp) -} - -// DcimPowerFeedsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerFeedsPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerFeedsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerFeedsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsPartialUpdateResponse(rsp) -} - -// DcimPowerFeedsUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerFeedsUpdateResponse -func (c *ClientWithResponses) DcimPowerFeedsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerFeedsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsUpdateResponse, error) { - rsp, err := c.DcimPowerFeedsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsUpdateResponse(rsp) -} - -// DcimPowerFeedsNotesListWithResponse request returning *DcimPowerFeedsNotesListResponse -func (c *ClientWithResponses) DcimPowerFeedsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerFeedsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerFeedsNotesListResponse, error) { - rsp, err := c.DcimPowerFeedsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsNotesListResponse(rsp) -} - -// DcimPowerFeedsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerFeedsNotesCreateResponse -func (c *ClientWithResponses) DcimPowerFeedsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerFeedsNotesCreateResponse, error) { - rsp, err := c.DcimPowerFeedsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerFeedsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerFeedsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerFeedsNotesCreateResponse, error) { - rsp, err := c.DcimPowerFeedsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsNotesCreateResponse(rsp) -} - -// DcimPowerFeedsTraceRetrieveWithResponse request returning *DcimPowerFeedsTraceRetrieveResponse -func (c *ClientWithResponses) DcimPowerFeedsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerFeedsTraceRetrieveResponse, error) { - rsp, err := c.DcimPowerFeedsTraceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerFeedsTraceRetrieveResponse(rsp) -} - -// DcimPowerOutletTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimPowerOutletTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesBulkDestroyResponse(rsp) -} - -// DcimPowerOutletTemplatesListWithResponse request returning *DcimPowerOutletTemplatesListResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesListWithResponse(ctx context.Context, params *DcimPowerOutletTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesListResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesListResponse(rsp) -} - -// DcimPowerOutletTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerOutletTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimPowerOutletTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletTemplatesCreateResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesCreateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletTemplatesCreateWithResponse(ctx context.Context, body DcimPowerOutletTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesCreateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesCreateResponse(rsp) -} - -// DcimPowerOutletTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimPowerOutletTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesBulkUpdateResponse(rsp) -} - -// DcimPowerOutletTemplatesDestroyWithResponse request returning *DcimPowerOutletTemplatesDestroyResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesDestroyResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesDestroyResponse(rsp) -} - -// DcimPowerOutletTemplatesRetrieveWithResponse request returning *DcimPowerOutletTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesRetrieveResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesRetrieveResponse(rsp) -} - -// DcimPowerOutletTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesPartialUpdateResponse(rsp) -} - -// DcimPowerOutletTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletTemplatesUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesUpdateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesUpdateResponse(rsp) -} - -// DcimPowerOutletTemplatesNotesListWithResponse request returning *DcimPowerOutletTemplatesNotesListResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesNotesListResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesNotesListResponse(rsp) -} - -// DcimPowerOutletTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimPowerOutletTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimPowerOutletTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletTemplatesNotesCreateResponse(rsp) -} - -// DcimPowerOutletsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletsBulkDestroyResponse -func (c *ClientWithResponses) DcimPowerOutletsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerOutletsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletsBulkDestroyWithResponse(ctx context.Context, body DcimPowerOutletsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerOutletsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsBulkDestroyResponse(rsp) -} - -// DcimPowerOutletsListWithResponse request returning *DcimPowerOutletsListResponse -func (c *ClientWithResponses) DcimPowerOutletsListWithResponse(ctx context.Context, params *DcimPowerOutletsListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletsListResponse, error) { - rsp, err := c.DcimPowerOutletsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsListResponse(rsp) -} - -// DcimPowerOutletsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerOutletsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsBulkPartialUpdateResponse(rsp) -} - -// DcimPowerOutletsCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletsCreateResponse -func (c *ClientWithResponses) DcimPowerOutletsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsCreateResponse, error) { - rsp, err := c.DcimPowerOutletsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletsCreateWithResponse(ctx context.Context, body DcimPowerOutletsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsCreateResponse, error) { - rsp, err := c.DcimPowerOutletsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsCreateResponse(rsp) -} - -// DcimPowerOutletsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletsBulkUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletsBulkUpdateWithResponse(ctx context.Context, body DcimPowerOutletsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsBulkUpdateResponse(rsp) -} - -// DcimPowerOutletsDestroyWithResponse request returning *DcimPowerOutletsDestroyResponse -func (c *ClientWithResponses) DcimPowerOutletsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletsDestroyResponse, error) { - rsp, err := c.DcimPowerOutletsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsDestroyResponse(rsp) -} - -// DcimPowerOutletsRetrieveWithResponse request returning *DcimPowerOutletsRetrieveResponse -func (c *ClientWithResponses) DcimPowerOutletsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletsRetrieveResponse, error) { - rsp, err := c.DcimPowerOutletsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsRetrieveResponse(rsp) -} - -// DcimPowerOutletsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletsPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsPartialUpdateResponse(rsp) -} - -// DcimPowerOutletsUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletsUpdateResponse -func (c *ClientWithResponses) DcimPowerOutletsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsUpdateResponse, error) { - rsp, err := c.DcimPowerOutletsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsUpdateResponse(rsp) -} - -// DcimPowerOutletsNotesListWithResponse request returning *DcimPowerOutletsNotesListResponse -func (c *ClientWithResponses) DcimPowerOutletsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerOutletsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerOutletsNotesListResponse, error) { - rsp, err := c.DcimPowerOutletsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsNotesListResponse(rsp) -} - -// DcimPowerOutletsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerOutletsNotesCreateResponse -func (c *ClientWithResponses) DcimPowerOutletsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerOutletsNotesCreateResponse, error) { - rsp, err := c.DcimPowerOutletsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerOutletsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerOutletsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerOutletsNotesCreateResponse, error) { - rsp, err := c.DcimPowerOutletsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsNotesCreateResponse(rsp) -} - -// DcimPowerOutletsTraceRetrieveWithResponse request returning *DcimPowerOutletsTraceRetrieveResponse -func (c *ClientWithResponses) DcimPowerOutletsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerOutletsTraceRetrieveResponse, error) { - rsp, err := c.DcimPowerOutletsTraceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerOutletsTraceRetrieveResponse(rsp) -} - -// DcimPowerPanelsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimPowerPanelsBulkDestroyResponse -func (c *ClientWithResponses) DcimPowerPanelsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerPanelsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPanelsBulkDestroyWithResponse(ctx context.Context, body DcimPowerPanelsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerPanelsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsBulkDestroyResponse(rsp) -} - -// DcimPowerPanelsListWithResponse request returning *DcimPowerPanelsListResponse -func (c *ClientWithResponses) DcimPowerPanelsListWithResponse(ctx context.Context, params *DcimPowerPanelsListParams, reqEditors ...RequestEditorFn) (*DcimPowerPanelsListResponse, error) { - rsp, err := c.DcimPowerPanelsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsListResponse(rsp) -} - -// DcimPowerPanelsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPanelsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerPanelsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPanelsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerPanelsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsBulkPartialUpdateResponse(rsp) -} - -// DcimPowerPanelsCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerPanelsCreateResponse -func (c *ClientWithResponses) DcimPowerPanelsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsCreateResponse, error) { - rsp, err := c.DcimPowerPanelsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPanelsCreateWithResponse(ctx context.Context, body DcimPowerPanelsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsCreateResponse, error) { - rsp, err := c.DcimPowerPanelsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsCreateResponse(rsp) -} - -// DcimPowerPanelsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPanelsBulkUpdateResponse -func (c *ClientWithResponses) DcimPowerPanelsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPanelsBulkUpdateWithResponse(ctx context.Context, body DcimPowerPanelsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsBulkUpdateResponse(rsp) -} - -// DcimPowerPanelsDestroyWithResponse request returning *DcimPowerPanelsDestroyResponse -func (c *ClientWithResponses) DcimPowerPanelsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPanelsDestroyResponse, error) { - rsp, err := c.DcimPowerPanelsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsDestroyResponse(rsp) -} - -// DcimPowerPanelsRetrieveWithResponse request returning *DcimPowerPanelsRetrieveResponse -func (c *ClientWithResponses) DcimPowerPanelsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPanelsRetrieveResponse, error) { - rsp, err := c.DcimPowerPanelsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsRetrieveResponse(rsp) -} - -// DcimPowerPanelsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPanelsPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerPanelsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPanelsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsPartialUpdateResponse(rsp) -} - -// DcimPowerPanelsUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPanelsUpdateResponse -func (c *ClientWithResponses) DcimPowerPanelsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPanelsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsUpdateResponse, error) { - rsp, err := c.DcimPowerPanelsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsUpdateResponse(rsp) -} - -// DcimPowerPanelsNotesListWithResponse request returning *DcimPowerPanelsNotesListResponse -func (c *ClientWithResponses) DcimPowerPanelsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerPanelsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPanelsNotesListResponse, error) { - rsp, err := c.DcimPowerPanelsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsNotesListResponse(rsp) -} - -// DcimPowerPanelsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerPanelsNotesCreateResponse -func (c *ClientWithResponses) DcimPowerPanelsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPanelsNotesCreateResponse, error) { - rsp, err := c.DcimPowerPanelsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPanelsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPanelsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPanelsNotesCreateResponse, error) { - rsp, err := c.DcimPowerPanelsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPanelsNotesCreateResponse(rsp) -} - -// DcimPowerPortTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimPowerPortTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimPowerPortTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimPowerPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimPowerPortTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesBulkDestroyResponse(rsp) -} - -// DcimPowerPortTemplatesListWithResponse request returning *DcimPowerPortTemplatesListResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesListWithResponse(ctx context.Context, params *DcimPowerPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesListResponse, error) { - rsp, err := c.DcimPowerPortTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesListResponse(rsp) -} - -// DcimPowerPortTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimPowerPortTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortTemplatesCreateResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesCreateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortTemplatesCreateWithResponse(ctx context.Context, body DcimPowerPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesCreateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesCreateResponse(rsp) -} - -// DcimPowerPortTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimPowerPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesBulkUpdateResponse(rsp) -} - -// DcimPowerPortTemplatesDestroyWithResponse request returning *DcimPowerPortTemplatesDestroyResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesDestroyResponse, error) { - rsp, err := c.DcimPowerPortTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesDestroyResponse(rsp) -} - -// DcimPowerPortTemplatesRetrieveWithResponse request returning *DcimPowerPortTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesRetrieveResponse, error) { - rsp, err := c.DcimPowerPortTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesRetrieveResponse(rsp) -} - -// DcimPowerPortTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesPartialUpdateResponse(rsp) -} - -// DcimPowerPortTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortTemplatesUpdateResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesUpdateResponse(rsp) -} - -// DcimPowerPortTemplatesNotesListWithResponse request returning *DcimPowerPortTemplatesNotesListResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesNotesListResponse, error) { - rsp, err := c.DcimPowerPortTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesNotesListResponse(rsp) -} - -// DcimPowerPortTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimPowerPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimPowerPortTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortTemplatesNotesCreateResponse(rsp) -} - -// DcimPowerPortsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimPowerPortsBulkDestroyResponse -func (c *ClientWithResponses) DcimPowerPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerPortsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortsBulkDestroyWithResponse(ctx context.Context, body DcimPowerPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkDestroyResponse, error) { - rsp, err := c.DcimPowerPortsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsBulkDestroyResponse(rsp) -} - -// DcimPowerPortsListWithResponse request returning *DcimPowerPortsListResponse -func (c *ClientWithResponses) DcimPowerPortsListWithResponse(ctx context.Context, params *DcimPowerPortsListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortsListResponse, error) { - rsp, err := c.DcimPowerPortsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsListResponse(rsp) -} - -// DcimPowerPortsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimPowerPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsBulkPartialUpdateResponse(rsp) -} - -// DcimPowerPortsCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortsCreateResponse -func (c *ClientWithResponses) DcimPowerPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsCreateResponse, error) { - rsp, err := c.DcimPowerPortsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortsCreateWithResponse(ctx context.Context, body DcimPowerPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsCreateResponse, error) { - rsp, err := c.DcimPowerPortsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsCreateResponse(rsp) -} - -// DcimPowerPortsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortsBulkUpdateResponse -func (c *ClientWithResponses) DcimPowerPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerPortsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortsBulkUpdateWithResponse(ctx context.Context, body DcimPowerPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsBulkUpdateResponse, error) { - rsp, err := c.DcimPowerPortsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsBulkUpdateResponse(rsp) -} - -// DcimPowerPortsDestroyWithResponse request returning *DcimPowerPortsDestroyResponse -func (c *ClientWithResponses) DcimPowerPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortsDestroyResponse, error) { - rsp, err := c.DcimPowerPortsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsDestroyResponse(rsp) -} - -// DcimPowerPortsRetrieveWithResponse request returning *DcimPowerPortsRetrieveResponse -func (c *ClientWithResponses) DcimPowerPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortsRetrieveResponse, error) { - rsp, err := c.DcimPowerPortsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsRetrieveResponse(rsp) -} - -// DcimPowerPortsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortsPartialUpdateResponse -func (c *ClientWithResponses) DcimPowerPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsPartialUpdateResponse, error) { - rsp, err := c.DcimPowerPortsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsPartialUpdateResponse(rsp) -} - -// DcimPowerPortsUpdateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortsUpdateResponse -func (c *ClientWithResponses) DcimPowerPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsUpdateResponse, error) { - rsp, err := c.DcimPowerPortsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsUpdateResponse, error) { - rsp, err := c.DcimPowerPortsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsUpdateResponse(rsp) -} - -// DcimPowerPortsNotesListWithResponse request returning *DcimPowerPortsNotesListResponse -func (c *ClientWithResponses) DcimPowerPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimPowerPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimPowerPortsNotesListResponse, error) { - rsp, err := c.DcimPowerPortsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsNotesListResponse(rsp) -} - -// DcimPowerPortsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimPowerPortsNotesCreateResponse -func (c *ClientWithResponses) DcimPowerPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimPowerPortsNotesCreateResponse, error) { - rsp, err := c.DcimPowerPortsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimPowerPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimPowerPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimPowerPortsNotesCreateResponse, error) { - rsp, err := c.DcimPowerPortsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsNotesCreateResponse(rsp) -} - -// DcimPowerPortsTraceRetrieveWithResponse request returning *DcimPowerPortsTraceRetrieveResponse -func (c *ClientWithResponses) DcimPowerPortsTraceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimPowerPortsTraceRetrieveResponse, error) { - rsp, err := c.DcimPowerPortsTraceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimPowerPortsTraceRetrieveResponse(rsp) -} - -// DcimRackGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimRackGroupsBulkDestroyResponse -func (c *ClientWithResponses) DcimRackGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkDestroyResponse, error) { - rsp, err := c.DcimRackGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackGroupsBulkDestroyWithResponse(ctx context.Context, body DcimRackGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkDestroyResponse, error) { - rsp, err := c.DcimRackGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsBulkDestroyResponse(rsp) -} - -// DcimRackGroupsListWithResponse request returning *DcimRackGroupsListResponse -func (c *ClientWithResponses) DcimRackGroupsListWithResponse(ctx context.Context, params *DcimRackGroupsListParams, reqEditors ...RequestEditorFn) (*DcimRackGroupsListResponse, error) { - rsp, err := c.DcimRackGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsListResponse(rsp) -} - -// DcimRackGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimRackGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRackGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackGroupsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRackGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRackGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsBulkPartialUpdateResponse(rsp) -} - -// DcimRackGroupsCreateWithBodyWithResponse request with arbitrary body returning *DcimRackGroupsCreateResponse -func (c *ClientWithResponses) DcimRackGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsCreateResponse, error) { - rsp, err := c.DcimRackGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackGroupsCreateWithResponse(ctx context.Context, body DcimRackGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsCreateResponse, error) { - rsp, err := c.DcimRackGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsCreateResponse(rsp) -} - -// DcimRackGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackGroupsBulkUpdateResponse -func (c *ClientWithResponses) DcimRackGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkUpdateResponse, error) { - rsp, err := c.DcimRackGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackGroupsBulkUpdateWithResponse(ctx context.Context, body DcimRackGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsBulkUpdateResponse, error) { - rsp, err := c.DcimRackGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsBulkUpdateResponse(rsp) -} - -// DcimRackGroupsDestroyWithResponse request returning *DcimRackGroupsDestroyResponse -func (c *ClientWithResponses) DcimRackGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackGroupsDestroyResponse, error) { - rsp, err := c.DcimRackGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsDestroyResponse(rsp) -} - -// DcimRackGroupsRetrieveWithResponse request returning *DcimRackGroupsRetrieveResponse -func (c *ClientWithResponses) DcimRackGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackGroupsRetrieveResponse, error) { - rsp, err := c.DcimRackGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsRetrieveResponse(rsp) -} - -// DcimRackGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackGroupsPartialUpdateResponse -func (c *ClientWithResponses) DcimRackGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsPartialUpdateResponse, error) { - rsp, err := c.DcimRackGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsPartialUpdateResponse, error) { - rsp, err := c.DcimRackGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsPartialUpdateResponse(rsp) -} - -// DcimRackGroupsUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackGroupsUpdateResponse -func (c *ClientWithResponses) DcimRackGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsUpdateResponse, error) { - rsp, err := c.DcimRackGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsUpdateResponse, error) { - rsp, err := c.DcimRackGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsUpdateResponse(rsp) -} - -// DcimRackGroupsNotesListWithResponse request returning *DcimRackGroupsNotesListResponse -func (c *ClientWithResponses) DcimRackGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRackGroupsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRackGroupsNotesListResponse, error) { - rsp, err := c.DcimRackGroupsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsNotesListResponse(rsp) -} - -// DcimRackGroupsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimRackGroupsNotesCreateResponse -func (c *ClientWithResponses) DcimRackGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackGroupsNotesCreateResponse, error) { - rsp, err := c.DcimRackGroupsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackGroupsNotesCreateResponse, error) { - rsp, err := c.DcimRackGroupsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackGroupsNotesCreateResponse(rsp) -} - -// DcimRackReservationsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimRackReservationsBulkDestroyResponse -func (c *ClientWithResponses) DcimRackReservationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkDestroyResponse, error) { - rsp, err := c.DcimRackReservationsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackReservationsBulkDestroyWithResponse(ctx context.Context, body DcimRackReservationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkDestroyResponse, error) { - rsp, err := c.DcimRackReservationsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsBulkDestroyResponse(rsp) -} - -// DcimRackReservationsListWithResponse request returning *DcimRackReservationsListResponse -func (c *ClientWithResponses) DcimRackReservationsListWithResponse(ctx context.Context, params *DcimRackReservationsListParams, reqEditors ...RequestEditorFn) (*DcimRackReservationsListResponse, error) { - rsp, err := c.DcimRackReservationsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsListResponse(rsp) -} - -// DcimRackReservationsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackReservationsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimRackReservationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRackReservationsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackReservationsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRackReservationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRackReservationsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsBulkPartialUpdateResponse(rsp) -} - -// DcimRackReservationsCreateWithBodyWithResponse request with arbitrary body returning *DcimRackReservationsCreateResponse -func (c *ClientWithResponses) DcimRackReservationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsCreateResponse, error) { - rsp, err := c.DcimRackReservationsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackReservationsCreateWithResponse(ctx context.Context, body DcimRackReservationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsCreateResponse, error) { - rsp, err := c.DcimRackReservationsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsCreateResponse(rsp) -} - -// DcimRackReservationsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackReservationsBulkUpdateResponse -func (c *ClientWithResponses) DcimRackReservationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkUpdateResponse, error) { - rsp, err := c.DcimRackReservationsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackReservationsBulkUpdateWithResponse(ctx context.Context, body DcimRackReservationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsBulkUpdateResponse, error) { - rsp, err := c.DcimRackReservationsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsBulkUpdateResponse(rsp) -} - -// DcimRackReservationsDestroyWithResponse request returning *DcimRackReservationsDestroyResponse -func (c *ClientWithResponses) DcimRackReservationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackReservationsDestroyResponse, error) { - rsp, err := c.DcimRackReservationsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsDestroyResponse(rsp) -} - -// DcimRackReservationsRetrieveWithResponse request returning *DcimRackReservationsRetrieveResponse -func (c *ClientWithResponses) DcimRackReservationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackReservationsRetrieveResponse, error) { - rsp, err := c.DcimRackReservationsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsRetrieveResponse(rsp) -} - -// DcimRackReservationsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackReservationsPartialUpdateResponse -func (c *ClientWithResponses) DcimRackReservationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsPartialUpdateResponse, error) { - rsp, err := c.DcimRackReservationsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackReservationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsPartialUpdateResponse, error) { - rsp, err := c.DcimRackReservationsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsPartialUpdateResponse(rsp) -} - -// DcimRackReservationsUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackReservationsUpdateResponse -func (c *ClientWithResponses) DcimRackReservationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsUpdateResponse, error) { - rsp, err := c.DcimRackReservationsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackReservationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsUpdateResponse, error) { - rsp, err := c.DcimRackReservationsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsUpdateResponse(rsp) -} - -// DcimRackReservationsNotesListWithResponse request returning *DcimRackReservationsNotesListResponse -func (c *ClientWithResponses) DcimRackReservationsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRackReservationsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRackReservationsNotesListResponse, error) { - rsp, err := c.DcimRackReservationsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsNotesListResponse(rsp) -} - -// DcimRackReservationsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimRackReservationsNotesCreateResponse -func (c *ClientWithResponses) DcimRackReservationsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackReservationsNotesCreateResponse, error) { - rsp, err := c.DcimRackReservationsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackReservationsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackReservationsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackReservationsNotesCreateResponse, error) { - rsp, err := c.DcimRackReservationsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackReservationsNotesCreateResponse(rsp) -} - -// DcimRackRolesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimRackRolesBulkDestroyResponse -func (c *ClientWithResponses) DcimRackRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkDestroyResponse, error) { - rsp, err := c.DcimRackRolesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackRolesBulkDestroyWithResponse(ctx context.Context, body DcimRackRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkDestroyResponse, error) { - rsp, err := c.DcimRackRolesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesBulkDestroyResponse(rsp) -} - -// DcimRackRolesListWithResponse request returning *DcimRackRolesListResponse -func (c *ClientWithResponses) DcimRackRolesListWithResponse(ctx context.Context, params *DcimRackRolesListParams, reqEditors ...RequestEditorFn) (*DcimRackRolesListResponse, error) { - rsp, err := c.DcimRackRolesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesListResponse(rsp) -} - -// DcimRackRolesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackRolesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimRackRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRackRolesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackRolesBulkPartialUpdateWithResponse(ctx context.Context, body DcimRackRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRackRolesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesBulkPartialUpdateResponse(rsp) -} - -// DcimRackRolesCreateWithBodyWithResponse request with arbitrary body returning *DcimRackRolesCreateResponse -func (c *ClientWithResponses) DcimRackRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesCreateResponse, error) { - rsp, err := c.DcimRackRolesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackRolesCreateWithResponse(ctx context.Context, body DcimRackRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesCreateResponse, error) { - rsp, err := c.DcimRackRolesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesCreateResponse(rsp) -} - -// DcimRackRolesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackRolesBulkUpdateResponse -func (c *ClientWithResponses) DcimRackRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkUpdateResponse, error) { - rsp, err := c.DcimRackRolesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackRolesBulkUpdateWithResponse(ctx context.Context, body DcimRackRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesBulkUpdateResponse, error) { - rsp, err := c.DcimRackRolesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesBulkUpdateResponse(rsp) -} - -// DcimRackRolesDestroyWithResponse request returning *DcimRackRolesDestroyResponse -func (c *ClientWithResponses) DcimRackRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackRolesDestroyResponse, error) { - rsp, err := c.DcimRackRolesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesDestroyResponse(rsp) -} - -// DcimRackRolesRetrieveWithResponse request returning *DcimRackRolesRetrieveResponse -func (c *ClientWithResponses) DcimRackRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRackRolesRetrieveResponse, error) { - rsp, err := c.DcimRackRolesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesRetrieveResponse(rsp) -} - -// DcimRackRolesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackRolesPartialUpdateResponse -func (c *ClientWithResponses) DcimRackRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesPartialUpdateResponse, error) { - rsp, err := c.DcimRackRolesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesPartialUpdateResponse, error) { - rsp, err := c.DcimRackRolesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesPartialUpdateResponse(rsp) -} - -// DcimRackRolesUpdateWithBodyWithResponse request with arbitrary body returning *DcimRackRolesUpdateResponse -func (c *ClientWithResponses) DcimRackRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesUpdateResponse, error) { - rsp, err := c.DcimRackRolesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesUpdateResponse, error) { - rsp, err := c.DcimRackRolesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesUpdateResponse(rsp) -} - -// DcimRackRolesNotesListWithResponse request returning *DcimRackRolesNotesListResponse -func (c *ClientWithResponses) DcimRackRolesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRackRolesNotesListParams, reqEditors ...RequestEditorFn) (*DcimRackRolesNotesListResponse, error) { - rsp, err := c.DcimRackRolesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesNotesListResponse(rsp) -} - -// DcimRackRolesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimRackRolesNotesCreateResponse -func (c *ClientWithResponses) DcimRackRolesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRackRolesNotesCreateResponse, error) { - rsp, err := c.DcimRackRolesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRackRolesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRackRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRackRolesNotesCreateResponse, error) { - rsp, err := c.DcimRackRolesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRackRolesNotesCreateResponse(rsp) -} - -// DcimRacksBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimRacksBulkDestroyResponse -func (c *ClientWithResponses) DcimRacksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksBulkDestroyResponse, error) { - rsp, err := c.DcimRacksBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimRacksBulkDestroyWithResponse(ctx context.Context, body DcimRacksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksBulkDestroyResponse, error) { - rsp, err := c.DcimRacksBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksBulkDestroyResponse(rsp) -} - -// DcimRacksListWithResponse request returning *DcimRacksListResponse -func (c *ClientWithResponses) DcimRacksListWithResponse(ctx context.Context, params *DcimRacksListParams, reqEditors ...RequestEditorFn) (*DcimRacksListResponse, error) { - rsp, err := c.DcimRacksList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksListResponse(rsp) -} - -// DcimRacksBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRacksBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimRacksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRacksBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRacksBulkPartialUpdateWithResponse(ctx context.Context, body DcimRacksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRacksBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksBulkPartialUpdateResponse(rsp) -} - -// DcimRacksCreateWithBodyWithResponse request with arbitrary body returning *DcimRacksCreateResponse -func (c *ClientWithResponses) DcimRacksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksCreateResponse, error) { - rsp, err := c.DcimRacksCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRacksCreateWithResponse(ctx context.Context, body DcimRacksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksCreateResponse, error) { - rsp, err := c.DcimRacksCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksCreateResponse(rsp) -} - -// DcimRacksBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimRacksBulkUpdateResponse -func (c *ClientWithResponses) DcimRacksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksBulkUpdateResponse, error) { - rsp, err := c.DcimRacksBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRacksBulkUpdateWithResponse(ctx context.Context, body DcimRacksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksBulkUpdateResponse, error) { - rsp, err := c.DcimRacksBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksBulkUpdateResponse(rsp) -} - -// DcimRacksDestroyWithResponse request returning *DcimRacksDestroyResponse -func (c *ClientWithResponses) DcimRacksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRacksDestroyResponse, error) { - rsp, err := c.DcimRacksDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksDestroyResponse(rsp) -} - -// DcimRacksRetrieveWithResponse request returning *DcimRacksRetrieveResponse -func (c *ClientWithResponses) DcimRacksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRacksRetrieveResponse, error) { - rsp, err := c.DcimRacksRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksRetrieveResponse(rsp) -} - -// DcimRacksPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRacksPartialUpdateResponse -func (c *ClientWithResponses) DcimRacksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksPartialUpdateResponse, error) { - rsp, err := c.DcimRacksPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRacksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRacksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksPartialUpdateResponse, error) { - rsp, err := c.DcimRacksPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksPartialUpdateResponse(rsp) -} - -// DcimRacksUpdateWithBodyWithResponse request with arbitrary body returning *DcimRacksUpdateResponse -func (c *ClientWithResponses) DcimRacksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksUpdateResponse, error) { - rsp, err := c.DcimRacksUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRacksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRacksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksUpdateResponse, error) { - rsp, err := c.DcimRacksUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksUpdateResponse(rsp) -} - -// DcimRacksElevationListWithResponse request returning *DcimRacksElevationListResponse -func (c *ClientWithResponses) DcimRacksElevationListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRacksElevationListParams, reqEditors ...RequestEditorFn) (*DcimRacksElevationListResponse, error) { - rsp, err := c.DcimRacksElevationList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksElevationListResponse(rsp) -} - -// DcimRacksNotesListWithResponse request returning *DcimRacksNotesListResponse -func (c *ClientWithResponses) DcimRacksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRacksNotesListParams, reqEditors ...RequestEditorFn) (*DcimRacksNotesListResponse, error) { - rsp, err := c.DcimRacksNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksNotesListResponse(rsp) -} - -// DcimRacksNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimRacksNotesCreateResponse -func (c *ClientWithResponses) DcimRacksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRacksNotesCreateResponse, error) { - rsp, err := c.DcimRacksNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRacksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRacksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRacksNotesCreateResponse, error) { - rsp, err := c.DcimRacksNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRacksNotesCreateResponse(rsp) -} - -// DcimRearPortTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimRearPortTemplatesBulkDestroyResponse -func (c *ClientWithResponses) DcimRearPortTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimRearPortTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortTemplatesBulkDestroyWithResponse(ctx context.Context, body DcimRearPortTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkDestroyResponse, error) { - rsp, err := c.DcimRearPortTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesBulkDestroyResponse(rsp) -} - -// DcimRearPortTemplatesListWithResponse request returning *DcimRearPortTemplatesListResponse -func (c *ClientWithResponses) DcimRearPortTemplatesListWithResponse(ctx context.Context, params *DcimRearPortTemplatesListParams, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesListResponse, error) { - rsp, err := c.DcimRearPortTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesListResponse(rsp) -} - -// DcimRearPortTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimRearPortTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body DcimRearPortTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesBulkPartialUpdateResponse(rsp) -} - -// DcimRearPortTemplatesCreateWithBodyWithResponse request with arbitrary body returning *DcimRearPortTemplatesCreateResponse -func (c *ClientWithResponses) DcimRearPortTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesCreateResponse, error) { - rsp, err := c.DcimRearPortTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortTemplatesCreateWithResponse(ctx context.Context, body DcimRearPortTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesCreateResponse, error) { - rsp, err := c.DcimRearPortTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesCreateResponse(rsp) -} - -// DcimRearPortTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortTemplatesBulkUpdateResponse -func (c *ClientWithResponses) DcimRearPortTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortTemplatesBulkUpdateWithResponse(ctx context.Context, body DcimRearPortTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesBulkUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesBulkUpdateResponse(rsp) -} - -// DcimRearPortTemplatesDestroyWithResponse request returning *DcimRearPortTemplatesDestroyResponse -func (c *ClientWithResponses) DcimRearPortTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesDestroyResponse, error) { - rsp, err := c.DcimRearPortTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesDestroyResponse(rsp) -} - -// DcimRearPortTemplatesRetrieveWithResponse request returning *DcimRearPortTemplatesRetrieveResponse -func (c *ClientWithResponses) DcimRearPortTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesRetrieveResponse, error) { - rsp, err := c.DcimRearPortTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesRetrieveResponse(rsp) -} - -// DcimRearPortTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortTemplatesPartialUpdateResponse -func (c *ClientWithResponses) DcimRearPortTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesPartialUpdateResponse(rsp) -} - -// DcimRearPortTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortTemplatesUpdateResponse -func (c *ClientWithResponses) DcimRearPortTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesUpdateResponse, error) { - rsp, err := c.DcimRearPortTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesUpdateResponse(rsp) -} - -// DcimRearPortTemplatesNotesListWithResponse request returning *DcimRearPortTemplatesNotesListResponse -func (c *ClientWithResponses) DcimRearPortTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRearPortTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesNotesListResponse, error) { - rsp, err := c.DcimRearPortTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesNotesListResponse(rsp) -} - -// DcimRearPortTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimRearPortTemplatesNotesCreateResponse -func (c *ClientWithResponses) DcimRearPortTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimRearPortTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortTemplatesNotesCreateResponse, error) { - rsp, err := c.DcimRearPortTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortTemplatesNotesCreateResponse(rsp) -} - -// DcimRearPortsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimRearPortsBulkDestroyResponse -func (c *ClientWithResponses) DcimRearPortsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkDestroyResponse, error) { - rsp, err := c.DcimRearPortsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortsBulkDestroyWithResponse(ctx context.Context, body DcimRearPortsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkDestroyResponse, error) { - rsp, err := c.DcimRearPortsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsBulkDestroyResponse(rsp) -} - -// DcimRearPortsListWithResponse request returning *DcimRearPortsListResponse -func (c *ClientWithResponses) DcimRearPortsListWithResponse(ctx context.Context, params *DcimRearPortsListParams, reqEditors ...RequestEditorFn) (*DcimRearPortsListResponse, error) { - rsp, err := c.DcimRearPortsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsListResponse(rsp) -} - -// DcimRearPortsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimRearPortsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRearPortsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsBulkPartialUpdateResponse(rsp) -} - -// DcimRearPortsCreateWithBodyWithResponse request with arbitrary body returning *DcimRearPortsCreateResponse -func (c *ClientWithResponses) DcimRearPortsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsCreateResponse, error) { - rsp, err := c.DcimRearPortsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortsCreateWithResponse(ctx context.Context, body DcimRearPortsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsCreateResponse, error) { - rsp, err := c.DcimRearPortsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsCreateResponse(rsp) -} - -// DcimRearPortsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortsBulkUpdateResponse -func (c *ClientWithResponses) DcimRearPortsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkUpdateResponse, error) { - rsp, err := c.DcimRearPortsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortsBulkUpdateWithResponse(ctx context.Context, body DcimRearPortsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsBulkUpdateResponse, error) { - rsp, err := c.DcimRearPortsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsBulkUpdateResponse(rsp) -} - -// DcimRearPortsDestroyWithResponse request returning *DcimRearPortsDestroyResponse -func (c *ClientWithResponses) DcimRearPortsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortsDestroyResponse, error) { - rsp, err := c.DcimRearPortsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsDestroyResponse(rsp) -} - -// DcimRearPortsRetrieveWithResponse request returning *DcimRearPortsRetrieveResponse -func (c *ClientWithResponses) DcimRearPortsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortsRetrieveResponse, error) { - rsp, err := c.DcimRearPortsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsRetrieveResponse(rsp) -} - -// DcimRearPortsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortsPartialUpdateResponse -func (c *ClientWithResponses) DcimRearPortsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsPartialUpdateResponse, error) { - rsp, err := c.DcimRearPortsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsPartialUpdateResponse(rsp) -} - -// DcimRearPortsUpdateWithBodyWithResponse request with arbitrary body returning *DcimRearPortsUpdateResponse -func (c *ClientWithResponses) DcimRearPortsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsUpdateResponse, error) { - rsp, err := c.DcimRearPortsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsUpdateResponse, error) { - rsp, err := c.DcimRearPortsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsUpdateResponse(rsp) -} - -// DcimRearPortsNotesListWithResponse request returning *DcimRearPortsNotesListResponse -func (c *ClientWithResponses) DcimRearPortsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRearPortsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRearPortsNotesListResponse, error) { - rsp, err := c.DcimRearPortsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsNotesListResponse(rsp) -} - -// DcimRearPortsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimRearPortsNotesCreateResponse -func (c *ClientWithResponses) DcimRearPortsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRearPortsNotesCreateResponse, error) { - rsp, err := c.DcimRearPortsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRearPortsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRearPortsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRearPortsNotesCreateResponse, error) { - rsp, err := c.DcimRearPortsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsNotesCreateResponse(rsp) -} - -// DcimRearPortsPathsRetrieveWithResponse request returning *DcimRearPortsPathsRetrieveResponse -func (c *ClientWithResponses) DcimRearPortsPathsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRearPortsPathsRetrieveResponse, error) { - rsp, err := c.DcimRearPortsPathsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRearPortsPathsRetrieveResponse(rsp) -} - -// DcimRegionsBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimRegionsBulkDestroyResponse -func (c *ClientWithResponses) DcimRegionsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsBulkDestroyResponse, error) { - rsp, err := c.DcimRegionsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimRegionsBulkDestroyWithResponse(ctx context.Context, body DcimRegionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsBulkDestroyResponse, error) { - rsp, err := c.DcimRegionsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsBulkDestroyResponse(rsp) -} - -// DcimRegionsListWithResponse request returning *DcimRegionsListResponse -func (c *ClientWithResponses) DcimRegionsListWithResponse(ctx context.Context, params *DcimRegionsListParams, reqEditors ...RequestEditorFn) (*DcimRegionsListResponse, error) { - rsp, err := c.DcimRegionsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsListResponse(rsp) -} - -// DcimRegionsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRegionsBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimRegionsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRegionsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRegionsBulkPartialUpdateWithResponse(ctx context.Context, body DcimRegionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsBulkPartialUpdateResponse, error) { - rsp, err := c.DcimRegionsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsBulkPartialUpdateResponse(rsp) -} - -// DcimRegionsCreateWithBodyWithResponse request with arbitrary body returning *DcimRegionsCreateResponse -func (c *ClientWithResponses) DcimRegionsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsCreateResponse, error) { - rsp, err := c.DcimRegionsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRegionsCreateWithResponse(ctx context.Context, body DcimRegionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsCreateResponse, error) { - rsp, err := c.DcimRegionsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsCreateResponse(rsp) -} - -// DcimRegionsBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimRegionsBulkUpdateResponse -func (c *ClientWithResponses) DcimRegionsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsBulkUpdateResponse, error) { - rsp, err := c.DcimRegionsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRegionsBulkUpdateWithResponse(ctx context.Context, body DcimRegionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsBulkUpdateResponse, error) { - rsp, err := c.DcimRegionsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsBulkUpdateResponse(rsp) -} - -// DcimRegionsDestroyWithResponse request returning *DcimRegionsDestroyResponse -func (c *ClientWithResponses) DcimRegionsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRegionsDestroyResponse, error) { - rsp, err := c.DcimRegionsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsDestroyResponse(rsp) -} - -// DcimRegionsRetrieveWithResponse request returning *DcimRegionsRetrieveResponse -func (c *ClientWithResponses) DcimRegionsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimRegionsRetrieveResponse, error) { - rsp, err := c.DcimRegionsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsRetrieveResponse(rsp) -} - -// DcimRegionsPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimRegionsPartialUpdateResponse -func (c *ClientWithResponses) DcimRegionsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsPartialUpdateResponse, error) { - rsp, err := c.DcimRegionsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRegionsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRegionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsPartialUpdateResponse, error) { - rsp, err := c.DcimRegionsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsPartialUpdateResponse(rsp) -} - -// DcimRegionsUpdateWithBodyWithResponse request with arbitrary body returning *DcimRegionsUpdateResponse -func (c *ClientWithResponses) DcimRegionsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsUpdateResponse, error) { - rsp, err := c.DcimRegionsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRegionsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRegionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsUpdateResponse, error) { - rsp, err := c.DcimRegionsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsUpdateResponse(rsp) -} - -// DcimRegionsNotesListWithResponse request returning *DcimRegionsNotesListResponse -func (c *ClientWithResponses) DcimRegionsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimRegionsNotesListParams, reqEditors ...RequestEditorFn) (*DcimRegionsNotesListResponse, error) { - rsp, err := c.DcimRegionsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsNotesListResponse(rsp) -} - -// DcimRegionsNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimRegionsNotesCreateResponse -func (c *ClientWithResponses) DcimRegionsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimRegionsNotesCreateResponse, error) { - rsp, err := c.DcimRegionsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimRegionsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimRegionsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimRegionsNotesCreateResponse, error) { - rsp, err := c.DcimRegionsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimRegionsNotesCreateResponse(rsp) -} - -// DcimSitesBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimSitesBulkDestroyResponse -func (c *ClientWithResponses) DcimSitesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesBulkDestroyResponse, error) { - rsp, err := c.DcimSitesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimSitesBulkDestroyWithResponse(ctx context.Context, body DcimSitesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesBulkDestroyResponse, error) { - rsp, err := c.DcimSitesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesBulkDestroyResponse(rsp) -} - -// DcimSitesListWithResponse request returning *DcimSitesListResponse -func (c *ClientWithResponses) DcimSitesListWithResponse(ctx context.Context, params *DcimSitesListParams, reqEditors ...RequestEditorFn) (*DcimSitesListResponse, error) { - rsp, err := c.DcimSitesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesListResponse(rsp) -} - -// DcimSitesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimSitesBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimSitesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimSitesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimSitesBulkPartialUpdateWithResponse(ctx context.Context, body DcimSitesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesBulkPartialUpdateResponse, error) { - rsp, err := c.DcimSitesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesBulkPartialUpdateResponse(rsp) -} - -// DcimSitesCreateWithBodyWithResponse request with arbitrary body returning *DcimSitesCreateResponse -func (c *ClientWithResponses) DcimSitesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesCreateResponse, error) { - rsp, err := c.DcimSitesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimSitesCreateWithResponse(ctx context.Context, body DcimSitesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesCreateResponse, error) { - rsp, err := c.DcimSitesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesCreateResponse(rsp) -} - -// DcimSitesBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimSitesBulkUpdateResponse -func (c *ClientWithResponses) DcimSitesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesBulkUpdateResponse, error) { - rsp, err := c.DcimSitesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimSitesBulkUpdateWithResponse(ctx context.Context, body DcimSitesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesBulkUpdateResponse, error) { - rsp, err := c.DcimSitesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesBulkUpdateResponse(rsp) -} - -// DcimSitesDestroyWithResponse request returning *DcimSitesDestroyResponse -func (c *ClientWithResponses) DcimSitesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimSitesDestroyResponse, error) { - rsp, err := c.DcimSitesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesDestroyResponse(rsp) -} - -// DcimSitesRetrieveWithResponse request returning *DcimSitesRetrieveResponse -func (c *ClientWithResponses) DcimSitesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimSitesRetrieveResponse, error) { - rsp, err := c.DcimSitesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesRetrieveResponse(rsp) -} - -// DcimSitesPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimSitesPartialUpdateResponse -func (c *ClientWithResponses) DcimSitesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesPartialUpdateResponse, error) { - rsp, err := c.DcimSitesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimSitesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimSitesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesPartialUpdateResponse, error) { - rsp, err := c.DcimSitesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesPartialUpdateResponse(rsp) -} - -// DcimSitesUpdateWithBodyWithResponse request with arbitrary body returning *DcimSitesUpdateResponse -func (c *ClientWithResponses) DcimSitesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesUpdateResponse, error) { - rsp, err := c.DcimSitesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimSitesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimSitesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesUpdateResponse, error) { - rsp, err := c.DcimSitesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesUpdateResponse(rsp) -} - -// DcimSitesNotesListWithResponse request returning *DcimSitesNotesListResponse -func (c *ClientWithResponses) DcimSitesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimSitesNotesListParams, reqEditors ...RequestEditorFn) (*DcimSitesNotesListResponse, error) { - rsp, err := c.DcimSitesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesNotesListResponse(rsp) -} - -// DcimSitesNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimSitesNotesCreateResponse -func (c *ClientWithResponses) DcimSitesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimSitesNotesCreateResponse, error) { - rsp, err := c.DcimSitesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimSitesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimSitesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimSitesNotesCreateResponse, error) { - rsp, err := c.DcimSitesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimSitesNotesCreateResponse(rsp) -} - -// DcimVirtualChassisBulkDestroyWithBodyWithResponse request with arbitrary body returning *DcimVirtualChassisBulkDestroyResponse -func (c *ClientWithResponses) DcimVirtualChassisBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkDestroyResponse, error) { - rsp, err := c.DcimVirtualChassisBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) DcimVirtualChassisBulkDestroyWithResponse(ctx context.Context, body DcimVirtualChassisBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkDestroyResponse, error) { - rsp, err := c.DcimVirtualChassisBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisBulkDestroyResponse(rsp) -} - -// DcimVirtualChassisListWithResponse request returning *DcimVirtualChassisListResponse -func (c *ClientWithResponses) DcimVirtualChassisListWithResponse(ctx context.Context, params *DcimVirtualChassisListParams, reqEditors ...RequestEditorFn) (*DcimVirtualChassisListResponse, error) { - rsp, err := c.DcimVirtualChassisList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisListResponse(rsp) -} - -// DcimVirtualChassisBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimVirtualChassisBulkPartialUpdateResponse -func (c *ClientWithResponses) DcimVirtualChassisBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkPartialUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimVirtualChassisBulkPartialUpdateWithResponse(ctx context.Context, body DcimVirtualChassisBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkPartialUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisBulkPartialUpdateResponse(rsp) -} - -// DcimVirtualChassisCreateWithBodyWithResponse request with arbitrary body returning *DcimVirtualChassisCreateResponse -func (c *ClientWithResponses) DcimVirtualChassisCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisCreateResponse, error) { - rsp, err := c.DcimVirtualChassisCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimVirtualChassisCreateWithResponse(ctx context.Context, body DcimVirtualChassisCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisCreateResponse, error) { - rsp, err := c.DcimVirtualChassisCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisCreateResponse(rsp) -} - -// DcimVirtualChassisBulkUpdateWithBodyWithResponse request with arbitrary body returning *DcimVirtualChassisBulkUpdateResponse -func (c *ClientWithResponses) DcimVirtualChassisBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimVirtualChassisBulkUpdateWithResponse(ctx context.Context, body DcimVirtualChassisBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisBulkUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisBulkUpdateResponse(rsp) -} - -// DcimVirtualChassisDestroyWithResponse request returning *DcimVirtualChassisDestroyResponse -func (c *ClientWithResponses) DcimVirtualChassisDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimVirtualChassisDestroyResponse, error) { - rsp, err := c.DcimVirtualChassisDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisDestroyResponse(rsp) -} - -// DcimVirtualChassisRetrieveWithResponse request returning *DcimVirtualChassisRetrieveResponse -func (c *ClientWithResponses) DcimVirtualChassisRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DcimVirtualChassisRetrieveResponse, error) { - rsp, err := c.DcimVirtualChassisRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisRetrieveResponse(rsp) -} - -// DcimVirtualChassisPartialUpdateWithBodyWithResponse request with arbitrary body returning *DcimVirtualChassisPartialUpdateResponse -func (c *ClientWithResponses) DcimVirtualChassisPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisPartialUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimVirtualChassisPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisPartialUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisPartialUpdateResponse(rsp) -} - -// DcimVirtualChassisUpdateWithBodyWithResponse request with arbitrary body returning *DcimVirtualChassisUpdateResponse -func (c *ClientWithResponses) DcimVirtualChassisUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisUpdateResponse(rsp) -} - -func (c *ClientWithResponses) DcimVirtualChassisUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisUpdateResponse, error) { - rsp, err := c.DcimVirtualChassisUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisUpdateResponse(rsp) -} - -// DcimVirtualChassisNotesListWithResponse request returning *DcimVirtualChassisNotesListResponse -func (c *ClientWithResponses) DcimVirtualChassisNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *DcimVirtualChassisNotesListParams, reqEditors ...RequestEditorFn) (*DcimVirtualChassisNotesListResponse, error) { - rsp, err := c.DcimVirtualChassisNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisNotesListResponse(rsp) -} - -// DcimVirtualChassisNotesCreateWithBodyWithResponse request with arbitrary body returning *DcimVirtualChassisNotesCreateResponse -func (c *ClientWithResponses) DcimVirtualChassisNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DcimVirtualChassisNotesCreateResponse, error) { - rsp, err := c.DcimVirtualChassisNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) DcimVirtualChassisNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body DcimVirtualChassisNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DcimVirtualChassisNotesCreateResponse, error) { - rsp, err := c.DcimVirtualChassisNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDcimVirtualChassisNotesCreateResponse(rsp) -} - -// ExtrasComputedFieldsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasComputedFieldsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasComputedFieldsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkDestroyResponse, error) { - rsp, err := c.ExtrasComputedFieldsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasComputedFieldsBulkDestroyWithResponse(ctx context.Context, body ExtrasComputedFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkDestroyResponse, error) { - rsp, err := c.ExtrasComputedFieldsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsBulkDestroyResponse(rsp) -} - -// ExtrasComputedFieldsListWithResponse request returning *ExtrasComputedFieldsListResponse -func (c *ClientWithResponses) ExtrasComputedFieldsListWithResponse(ctx context.Context, params *ExtrasComputedFieldsListParams, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsListResponse, error) { - rsp, err := c.ExtrasComputedFieldsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsListResponse(rsp) -} - -// ExtrasComputedFieldsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasComputedFieldsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasComputedFieldsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasComputedFieldsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasComputedFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsBulkPartialUpdateResponse(rsp) -} - -// ExtrasComputedFieldsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasComputedFieldsCreateResponse -func (c *ClientWithResponses) ExtrasComputedFieldsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsCreateResponse, error) { - rsp, err := c.ExtrasComputedFieldsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasComputedFieldsCreateWithResponse(ctx context.Context, body ExtrasComputedFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsCreateResponse, error) { - rsp, err := c.ExtrasComputedFieldsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsCreateResponse(rsp) -} - -// ExtrasComputedFieldsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasComputedFieldsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasComputedFieldsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasComputedFieldsBulkUpdateWithResponse(ctx context.Context, body ExtrasComputedFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsBulkUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsBulkUpdateResponse(rsp) -} - -// ExtrasComputedFieldsDestroyWithResponse request returning *ExtrasComputedFieldsDestroyResponse -func (c *ClientWithResponses) ExtrasComputedFieldsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsDestroyResponse, error) { - rsp, err := c.ExtrasComputedFieldsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsDestroyResponse(rsp) -} - -// ExtrasComputedFieldsRetrieveWithResponse request returning *ExtrasComputedFieldsRetrieveResponse -func (c *ClientWithResponses) ExtrasComputedFieldsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsRetrieveResponse, error) { - rsp, err := c.ExtrasComputedFieldsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsRetrieveResponse(rsp) -} - -// ExtrasComputedFieldsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasComputedFieldsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasComputedFieldsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsPartialUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasComputedFieldsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsPartialUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsPartialUpdateResponse(rsp) -} - -// ExtrasComputedFieldsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasComputedFieldsUpdateResponse -func (c *ClientWithResponses) ExtrasComputedFieldsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasComputedFieldsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsUpdateResponse, error) { - rsp, err := c.ExtrasComputedFieldsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsUpdateResponse(rsp) -} - -// ExtrasComputedFieldsNotesListWithResponse request returning *ExtrasComputedFieldsNotesListResponse -func (c *ClientWithResponses) ExtrasComputedFieldsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasComputedFieldsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsNotesListResponse, error) { - rsp, err := c.ExtrasComputedFieldsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsNotesListResponse(rsp) -} - -// ExtrasComputedFieldsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasComputedFieldsNotesCreateResponse -func (c *ClientWithResponses) ExtrasComputedFieldsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsNotesCreateResponse, error) { - rsp, err := c.ExtrasComputedFieldsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasComputedFieldsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasComputedFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasComputedFieldsNotesCreateResponse, error) { - rsp, err := c.ExtrasComputedFieldsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasComputedFieldsNotesCreateResponse(rsp) -} - -// ExtrasConfigContextSchemasBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextSchemasBulkDestroyResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkDestroyResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextSchemasBulkDestroyWithResponse(ctx context.Context, body ExtrasConfigContextSchemasBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkDestroyResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasBulkDestroyResponse(rsp) -} - -// ExtrasConfigContextSchemasListWithResponse request returning *ExtrasConfigContextSchemasListResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasListWithResponse(ctx context.Context, params *ExtrasConfigContextSchemasListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasListResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasListResponse(rsp) -} - -// ExtrasConfigContextSchemasBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextSchemasBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextSchemasBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasConfigContextSchemasBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasBulkPartialUpdateResponse(rsp) -} - -// ExtrasConfigContextSchemasCreateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextSchemasCreateResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasCreateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextSchemasCreateWithResponse(ctx context.Context, body ExtrasConfigContextSchemasCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasCreateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasCreateResponse(rsp) -} - -// ExtrasConfigContextSchemasBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextSchemasBulkUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextSchemasBulkUpdateWithResponse(ctx context.Context, body ExtrasConfigContextSchemasBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasBulkUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasBulkUpdateResponse(rsp) -} - -// ExtrasConfigContextSchemasDestroyWithResponse request returning *ExtrasConfigContextSchemasDestroyResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasDestroyResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasDestroyResponse(rsp) -} - -// ExtrasConfigContextSchemasRetrieveWithResponse request returning *ExtrasConfigContextSchemasRetrieveResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasRetrieveResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasRetrieveResponse(rsp) -} - -// ExtrasConfigContextSchemasPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextSchemasPartialUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextSchemasPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasPartialUpdateResponse(rsp) -} - -// ExtrasConfigContextSchemasUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextSchemasUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextSchemasUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasUpdateResponse(rsp) -} - -// ExtrasConfigContextSchemasNotesListWithResponse request returning *ExtrasConfigContextSchemasNotesListResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextSchemasNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasNotesListResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasNotesListResponse(rsp) -} - -// ExtrasConfigContextSchemasNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextSchemasNotesCreateResponse -func (c *ClientWithResponses) ExtrasConfigContextSchemasNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasNotesCreateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextSchemasNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextSchemasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextSchemasNotesCreateResponse, error) { - rsp, err := c.ExtrasConfigContextSchemasNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextSchemasNotesCreateResponse(rsp) -} - -// ExtrasConfigContextsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasConfigContextsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkDestroyResponse, error) { - rsp, err := c.ExtrasConfigContextsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextsBulkDestroyWithResponse(ctx context.Context, body ExtrasConfigContextsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkDestroyResponse, error) { - rsp, err := c.ExtrasConfigContextsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsBulkDestroyResponse(rsp) -} - -// ExtrasConfigContextsListWithResponse request returning *ExtrasConfigContextsListResponse -func (c *ClientWithResponses) ExtrasConfigContextsListWithResponse(ctx context.Context, params *ExtrasConfigContextsListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsListResponse, error) { - rsp, err := c.ExtrasConfigContextsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsListResponse(rsp) -} - -// ExtrasConfigContextsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasConfigContextsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsBulkPartialUpdateResponse(rsp) -} - -// ExtrasConfigContextsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextsCreateResponse -func (c *ClientWithResponses) ExtrasConfigContextsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsCreateResponse, error) { - rsp, err := c.ExtrasConfigContextsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextsCreateWithResponse(ctx context.Context, body ExtrasConfigContextsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsCreateResponse, error) { - rsp, err := c.ExtrasConfigContextsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsCreateResponse(rsp) -} - -// ExtrasConfigContextsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextsBulkUpdateWithResponse(ctx context.Context, body ExtrasConfigContextsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsBulkUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsBulkUpdateResponse(rsp) -} - -// ExtrasConfigContextsDestroyWithResponse request returning *ExtrasConfigContextsDestroyResponse -func (c *ClientWithResponses) ExtrasConfigContextsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsDestroyResponse, error) { - rsp, err := c.ExtrasConfigContextsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsDestroyResponse(rsp) -} - -// ExtrasConfigContextsRetrieveWithResponse request returning *ExtrasConfigContextsRetrieveResponse -func (c *ClientWithResponses) ExtrasConfigContextsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsRetrieveResponse, error) { - rsp, err := c.ExtrasConfigContextsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsRetrieveResponse(rsp) -} - -// ExtrasConfigContextsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsPartialUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsPartialUpdateResponse(rsp) -} - -// ExtrasConfigContextsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextsUpdateResponse -func (c *ClientWithResponses) ExtrasConfigContextsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsUpdateResponse, error) { - rsp, err := c.ExtrasConfigContextsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsUpdateResponse(rsp) -} - -// ExtrasConfigContextsNotesListWithResponse request returning *ExtrasConfigContextsNotesListResponse -func (c *ClientWithResponses) ExtrasConfigContextsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasConfigContextsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsNotesListResponse, error) { - rsp, err := c.ExtrasConfigContextsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsNotesListResponse(rsp) -} - -// ExtrasConfigContextsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasConfigContextsNotesCreateResponse -func (c *ClientWithResponses) ExtrasConfigContextsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsNotesCreateResponse, error) { - rsp, err := c.ExtrasConfigContextsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasConfigContextsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasConfigContextsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasConfigContextsNotesCreateResponse, error) { - rsp, err := c.ExtrasConfigContextsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasConfigContextsNotesCreateResponse(rsp) -} - -// ExtrasContentTypesListWithResponse request returning *ExtrasContentTypesListResponse -func (c *ClientWithResponses) ExtrasContentTypesListWithResponse(ctx context.Context, params *ExtrasContentTypesListParams, reqEditors ...RequestEditorFn) (*ExtrasContentTypesListResponse, error) { - rsp, err := c.ExtrasContentTypesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasContentTypesListResponse(rsp) -} - -// ExtrasContentTypesRetrieveWithResponse request returning *ExtrasContentTypesRetrieveResponse -func (c *ClientWithResponses) ExtrasContentTypesRetrieveWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*ExtrasContentTypesRetrieveResponse, error) { - rsp, err := c.ExtrasContentTypesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasContentTypesRetrieveResponse(rsp) -} - -// ExtrasCustomFieldChoicesBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldChoicesBulkDestroyResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkDestroyResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldChoicesBulkDestroyWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkDestroyResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesBulkDestroyResponse(rsp) -} - -// ExtrasCustomFieldChoicesListWithResponse request returning *ExtrasCustomFieldChoicesListResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesListWithResponse(ctx context.Context, params *ExtrasCustomFieldChoicesListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesListResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesListResponse(rsp) -} - -// ExtrasCustomFieldChoicesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldChoicesBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldChoicesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesBulkPartialUpdateResponse(rsp) -} - -// ExtrasCustomFieldChoicesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldChoicesCreateResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesCreateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldChoicesCreateWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesCreateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesCreateResponse(rsp) -} - -// ExtrasCustomFieldChoicesBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldChoicesBulkUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldChoicesBulkUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldChoicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesBulkUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesBulkUpdateResponse(rsp) -} - -// ExtrasCustomFieldChoicesDestroyWithResponse request returning *ExtrasCustomFieldChoicesDestroyResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesDestroyResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesDestroyResponse(rsp) -} - -// ExtrasCustomFieldChoicesRetrieveWithResponse request returning *ExtrasCustomFieldChoicesRetrieveResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesRetrieveResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesRetrieveResponse(rsp) -} - -// ExtrasCustomFieldChoicesPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldChoicesPartialUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldChoicesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesPartialUpdateResponse(rsp) -} - -// ExtrasCustomFieldChoicesUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldChoicesUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldChoicesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldChoicesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldChoicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldChoicesUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldChoicesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldChoicesUpdateResponse(rsp) -} - -// ExtrasCustomFieldsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasCustomFieldsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkDestroyResponse, error) { - rsp, err := c.ExtrasCustomFieldsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldsBulkDestroyWithResponse(ctx context.Context, body ExtrasCustomFieldsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkDestroyResponse, error) { - rsp, err := c.ExtrasCustomFieldsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsBulkDestroyResponse(rsp) -} - -// ExtrasCustomFieldsListWithResponse request returning *ExtrasCustomFieldsListResponse -func (c *ClientWithResponses) ExtrasCustomFieldsListWithResponse(ctx context.Context, params *ExtrasCustomFieldsListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsListResponse, error) { - rsp, err := c.ExtrasCustomFieldsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsListResponse(rsp) -} - -// ExtrasCustomFieldsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsBulkPartialUpdateResponse(rsp) -} - -// ExtrasCustomFieldsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldsCreateResponse -func (c *ClientWithResponses) ExtrasCustomFieldsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsCreateResponse, error) { - rsp, err := c.ExtrasCustomFieldsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldsCreateWithResponse(ctx context.Context, body ExtrasCustomFieldsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsCreateResponse, error) { - rsp, err := c.ExtrasCustomFieldsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsCreateResponse(rsp) -} - -// ExtrasCustomFieldsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldsBulkUpdateWithResponse(ctx context.Context, body ExtrasCustomFieldsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsBulkUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsBulkUpdateResponse(rsp) -} - -// ExtrasCustomFieldsDestroyWithResponse request returning *ExtrasCustomFieldsDestroyResponse -func (c *ClientWithResponses) ExtrasCustomFieldsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsDestroyResponse, error) { - rsp, err := c.ExtrasCustomFieldsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsDestroyResponse(rsp) -} - -// ExtrasCustomFieldsRetrieveWithResponse request returning *ExtrasCustomFieldsRetrieveResponse -func (c *ClientWithResponses) ExtrasCustomFieldsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsRetrieveResponse, error) { - rsp, err := c.ExtrasCustomFieldsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsRetrieveResponse(rsp) -} - -// ExtrasCustomFieldsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsPartialUpdateResponse(rsp) -} - -// ExtrasCustomFieldsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldsUpdateResponse -func (c *ClientWithResponses) ExtrasCustomFieldsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsUpdateResponse, error) { - rsp, err := c.ExtrasCustomFieldsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsUpdateResponse(rsp) -} - -// ExtrasCustomFieldsNotesListWithResponse request returning *ExtrasCustomFieldsNotesListResponse -func (c *ClientWithResponses) ExtrasCustomFieldsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomFieldsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsNotesListResponse, error) { - rsp, err := c.ExtrasCustomFieldsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsNotesListResponse(rsp) -} - -// ExtrasCustomFieldsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomFieldsNotesCreateResponse -func (c *ClientWithResponses) ExtrasCustomFieldsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsNotesCreateResponse, error) { - rsp, err := c.ExtrasCustomFieldsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomFieldsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomFieldsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomFieldsNotesCreateResponse, error) { - rsp, err := c.ExtrasCustomFieldsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomFieldsNotesCreateResponse(rsp) -} - -// ExtrasCustomLinksBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasCustomLinksBulkDestroyResponse -func (c *ClientWithResponses) ExtrasCustomLinksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkDestroyResponse, error) { - rsp, err := c.ExtrasCustomLinksBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomLinksBulkDestroyWithResponse(ctx context.Context, body ExtrasCustomLinksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkDestroyResponse, error) { - rsp, err := c.ExtrasCustomLinksBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksBulkDestroyResponse(rsp) -} - -// ExtrasCustomLinksListWithResponse request returning *ExtrasCustomLinksListResponse -func (c *ClientWithResponses) ExtrasCustomLinksListWithResponse(ctx context.Context, params *ExtrasCustomLinksListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksListResponse, error) { - rsp, err := c.ExtrasCustomLinksList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksListResponse(rsp) -} - -// ExtrasCustomLinksBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomLinksBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasCustomLinksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomLinksBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasCustomLinksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksBulkPartialUpdateResponse(rsp) -} - -// ExtrasCustomLinksCreateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomLinksCreateResponse -func (c *ClientWithResponses) ExtrasCustomLinksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksCreateResponse, error) { - rsp, err := c.ExtrasCustomLinksCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomLinksCreateWithResponse(ctx context.Context, body ExtrasCustomLinksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksCreateResponse, error) { - rsp, err := c.ExtrasCustomLinksCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksCreateResponse(rsp) -} - -// ExtrasCustomLinksBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomLinksBulkUpdateResponse -func (c *ClientWithResponses) ExtrasCustomLinksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomLinksBulkUpdateWithResponse(ctx context.Context, body ExtrasCustomLinksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksBulkUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksBulkUpdateResponse(rsp) -} - -// ExtrasCustomLinksDestroyWithResponse request returning *ExtrasCustomLinksDestroyResponse -func (c *ClientWithResponses) ExtrasCustomLinksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksDestroyResponse, error) { - rsp, err := c.ExtrasCustomLinksDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksDestroyResponse(rsp) -} - -// ExtrasCustomLinksRetrieveWithResponse request returning *ExtrasCustomLinksRetrieveResponse -func (c *ClientWithResponses) ExtrasCustomLinksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksRetrieveResponse, error) { - rsp, err := c.ExtrasCustomLinksRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksRetrieveResponse(rsp) -} - -// ExtrasCustomLinksPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomLinksPartialUpdateResponse -func (c *ClientWithResponses) ExtrasCustomLinksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomLinksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksPartialUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksPartialUpdateResponse(rsp) -} - -// ExtrasCustomLinksUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomLinksUpdateResponse -func (c *ClientWithResponses) ExtrasCustomLinksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomLinksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksUpdateResponse, error) { - rsp, err := c.ExtrasCustomLinksUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksUpdateResponse(rsp) -} - -// ExtrasCustomLinksNotesListWithResponse request returning *ExtrasCustomLinksNotesListResponse -func (c *ClientWithResponses) ExtrasCustomLinksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasCustomLinksNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksNotesListResponse, error) { - rsp, err := c.ExtrasCustomLinksNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksNotesListResponse(rsp) -} - -// ExtrasCustomLinksNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasCustomLinksNotesCreateResponse -func (c *ClientWithResponses) ExtrasCustomLinksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksNotesCreateResponse, error) { - rsp, err := c.ExtrasCustomLinksNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasCustomLinksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasCustomLinksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasCustomLinksNotesCreateResponse, error) { - rsp, err := c.ExtrasCustomLinksNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasCustomLinksNotesCreateResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupMembershipsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkDestroyResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsBulkDestroyWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkDestroyResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsBulkDestroyResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsListWithResponse request returning *ExtrasDynamicGroupMembershipsListResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsListWithResponse(ctx context.Context, params *ExtrasDynamicGroupMembershipsListParams, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsListResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsListResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsBulkPartialUpdateResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupMembershipsCreateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsCreateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsCreateWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsCreateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsCreateResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupMembershipsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsBulkUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupMembershipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsBulkUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsBulkUpdateResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsDestroyWithResponse request returning *ExtrasDynamicGroupMembershipsDestroyResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsDestroyResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsDestroyResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsRetrieveWithResponse request returning *ExtrasDynamicGroupMembershipsRetrieveResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsRetrieveResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsRetrieveResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupMembershipsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsPartialUpdateResponse(rsp) -} - -// ExtrasDynamicGroupMembershipsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupMembershipsUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupMembershipsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupMembershipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupMembershipsUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupMembershipsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupMembershipsUpdateResponse(rsp) -} - -// ExtrasDynamicGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkDestroyResponse, error) { - rsp, err := c.ExtrasDynamicGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupsBulkDestroyWithResponse(ctx context.Context, body ExtrasDynamicGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkDestroyResponse, error) { - rsp, err := c.ExtrasDynamicGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsBulkDestroyResponse(rsp) -} - -// ExtrasDynamicGroupsListWithResponse request returning *ExtrasDynamicGroupsListResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsListWithResponse(ctx context.Context, params *ExtrasDynamicGroupsListParams, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsListResponse, error) { - rsp, err := c.ExtrasDynamicGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsListResponse(rsp) -} - -// ExtrasDynamicGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsBulkPartialUpdateResponse(rsp) -} - -// ExtrasDynamicGroupsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupsCreateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsCreateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupsCreateWithResponse(ctx context.Context, body ExtrasDynamicGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsCreateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsCreateResponse(rsp) -} - -// ExtrasDynamicGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupsBulkUpdateWithResponse(ctx context.Context, body ExtrasDynamicGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsBulkUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsBulkUpdateResponse(rsp) -} - -// ExtrasDynamicGroupsDestroyWithResponse request returning *ExtrasDynamicGroupsDestroyResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsDestroyResponse, error) { - rsp, err := c.ExtrasDynamicGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsDestroyResponse(rsp) -} - -// ExtrasDynamicGroupsRetrieveWithResponse request returning *ExtrasDynamicGroupsRetrieveResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsRetrieveResponse, error) { - rsp, err := c.ExtrasDynamicGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsRetrieveResponse(rsp) -} - -// ExtrasDynamicGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsPartialUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsPartialUpdateResponse(rsp) -} - -// ExtrasDynamicGroupsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupsUpdateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsUpdateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsUpdateResponse(rsp) -} - -// ExtrasDynamicGroupsMembersRetrieveWithResponse request returning *ExtrasDynamicGroupsMembersRetrieveResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsMembersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsMembersRetrieveResponse, error) { - rsp, err := c.ExtrasDynamicGroupsMembersRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsMembersRetrieveResponse(rsp) -} - -// ExtrasDynamicGroupsNotesListWithResponse request returning *ExtrasDynamicGroupsNotesListResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasDynamicGroupsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsNotesListResponse, error) { - rsp, err := c.ExtrasDynamicGroupsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsNotesListResponse(rsp) -} - -// ExtrasDynamicGroupsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasDynamicGroupsNotesCreateResponse -func (c *ClientWithResponses) ExtrasDynamicGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsNotesCreateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasDynamicGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasDynamicGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasDynamicGroupsNotesCreateResponse, error) { - rsp, err := c.ExtrasDynamicGroupsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasDynamicGroupsNotesCreateResponse(rsp) -} - -// ExtrasExportTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasExportTemplatesBulkDestroyResponse -func (c *ClientWithResponses) ExtrasExportTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkDestroyResponse, error) { - rsp, err := c.ExtrasExportTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasExportTemplatesBulkDestroyWithResponse(ctx context.Context, body ExtrasExportTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkDestroyResponse, error) { - rsp, err := c.ExtrasExportTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesBulkDestroyResponse(rsp) -} - -// ExtrasExportTemplatesListWithResponse request returning *ExtrasExportTemplatesListResponse -func (c *ClientWithResponses) ExtrasExportTemplatesListWithResponse(ctx context.Context, params *ExtrasExportTemplatesListParams, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesListResponse, error) { - rsp, err := c.ExtrasExportTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesListResponse(rsp) -} - -// ExtrasExportTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasExportTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasExportTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasExportTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasExportTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesBulkPartialUpdateResponse(rsp) -} - -// ExtrasExportTemplatesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasExportTemplatesCreateResponse -func (c *ClientWithResponses) ExtrasExportTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesCreateResponse, error) { - rsp, err := c.ExtrasExportTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasExportTemplatesCreateWithResponse(ctx context.Context, body ExtrasExportTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesCreateResponse, error) { - rsp, err := c.ExtrasExportTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesCreateResponse(rsp) -} - -// ExtrasExportTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasExportTemplatesBulkUpdateResponse -func (c *ClientWithResponses) ExtrasExportTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasExportTemplatesBulkUpdateWithResponse(ctx context.Context, body ExtrasExportTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesBulkUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesBulkUpdateResponse(rsp) -} - -// ExtrasExportTemplatesDestroyWithResponse request returning *ExtrasExportTemplatesDestroyResponse -func (c *ClientWithResponses) ExtrasExportTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesDestroyResponse, error) { - rsp, err := c.ExtrasExportTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesDestroyResponse(rsp) -} - -// ExtrasExportTemplatesRetrieveWithResponse request returning *ExtrasExportTemplatesRetrieveResponse -func (c *ClientWithResponses) ExtrasExportTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesRetrieveResponse, error) { - rsp, err := c.ExtrasExportTemplatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesRetrieveResponse(rsp) -} - -// ExtrasExportTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasExportTemplatesPartialUpdateResponse -func (c *ClientWithResponses) ExtrasExportTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesPartialUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasExportTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesPartialUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesPartialUpdateResponse(rsp) -} - -// ExtrasExportTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasExportTemplatesUpdateResponse -func (c *ClientWithResponses) ExtrasExportTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasExportTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesUpdateResponse, error) { - rsp, err := c.ExtrasExportTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesUpdateResponse(rsp) -} - -// ExtrasExportTemplatesNotesListWithResponse request returning *ExtrasExportTemplatesNotesListResponse -func (c *ClientWithResponses) ExtrasExportTemplatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasExportTemplatesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesNotesListResponse, error) { - rsp, err := c.ExtrasExportTemplatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesNotesListResponse(rsp) -} - -// ExtrasExportTemplatesNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasExportTemplatesNotesCreateResponse -func (c *ClientWithResponses) ExtrasExportTemplatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesNotesCreateResponse, error) { - rsp, err := c.ExtrasExportTemplatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasExportTemplatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasExportTemplatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasExportTemplatesNotesCreateResponse, error) { - rsp, err := c.ExtrasExportTemplatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasExportTemplatesNotesCreateResponse(rsp) -} - -// ExtrasGitRepositoriesBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesBulkDestroyResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkDestroyResponse, error) { - rsp, err := c.ExtrasGitRepositoriesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesBulkDestroyWithResponse(ctx context.Context, body ExtrasGitRepositoriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkDestroyResponse, error) { - rsp, err := c.ExtrasGitRepositoriesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesBulkDestroyResponse(rsp) -} - -// ExtrasGitRepositoriesListWithResponse request returning *ExtrasGitRepositoriesListResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesListWithResponse(ctx context.Context, params *ExtrasGitRepositoriesListParams, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesListResponse, error) { - rsp, err := c.ExtrasGitRepositoriesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesListResponse(rsp) -} - -// ExtrasGitRepositoriesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasGitRepositoriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesBulkPartialUpdateResponse(rsp) -} - -// ExtrasGitRepositoriesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesCreateResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesCreateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesCreateWithResponse(ctx context.Context, body ExtrasGitRepositoriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesCreateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesCreateResponse(rsp) -} - -// ExtrasGitRepositoriesBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesBulkUpdateResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesBulkUpdateWithResponse(ctx context.Context, body ExtrasGitRepositoriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesBulkUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesBulkUpdateResponse(rsp) -} - -// ExtrasGitRepositoriesDestroyWithResponse request returning *ExtrasGitRepositoriesDestroyResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesDestroyResponse, error) { - rsp, err := c.ExtrasGitRepositoriesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesDestroyResponse(rsp) -} - -// ExtrasGitRepositoriesRetrieveWithResponse request returning *ExtrasGitRepositoriesRetrieveResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesRetrieveResponse, error) { - rsp, err := c.ExtrasGitRepositoriesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesRetrieveResponse(rsp) -} - -// ExtrasGitRepositoriesPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesPartialUpdateResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesPartialUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesPartialUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesPartialUpdateResponse(rsp) -} - -// ExtrasGitRepositoriesUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesUpdateResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesUpdateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesUpdateResponse(rsp) -} - -// ExtrasGitRepositoriesNotesListWithResponse request returning *ExtrasGitRepositoriesNotesListResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasGitRepositoriesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesNotesListResponse, error) { - rsp, err := c.ExtrasGitRepositoriesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesNotesListResponse(rsp) -} - -// ExtrasGitRepositoriesNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesNotesCreateResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesNotesCreateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesNotesCreateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesNotesCreateResponse(rsp) -} - -// ExtrasGitRepositoriesSyncCreateWithBodyWithResponse request with arbitrary body returning *ExtrasGitRepositoriesSyncCreateResponse -func (c *ClientWithResponses) ExtrasGitRepositoriesSyncCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesSyncCreateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesSyncCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesSyncCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGitRepositoriesSyncCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGitRepositoriesSyncCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGitRepositoriesSyncCreateResponse, error) { - rsp, err := c.ExtrasGitRepositoriesSyncCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGitRepositoriesSyncCreateResponse(rsp) -} - -// ExtrasGraphqlQueriesBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesBulkDestroyResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkDestroyResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesBulkDestroyWithResponse(ctx context.Context, body ExtrasGraphqlQueriesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkDestroyResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesBulkDestroyResponse(rsp) -} - -// ExtrasGraphqlQueriesListWithResponse request returning *ExtrasGraphqlQueriesListResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesListWithResponse(ctx context.Context, params *ExtrasGraphqlQueriesListParams, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesListResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesListResponse(rsp) -} - -// ExtrasGraphqlQueriesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasGraphqlQueriesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesBulkPartialUpdateResponse(rsp) -} - -// ExtrasGraphqlQueriesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesCreateResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesCreateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesCreateWithResponse(ctx context.Context, body ExtrasGraphqlQueriesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesCreateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesCreateResponse(rsp) -} - -// ExtrasGraphqlQueriesBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesBulkUpdateResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesBulkUpdateWithResponse(ctx context.Context, body ExtrasGraphqlQueriesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesBulkUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesBulkUpdateResponse(rsp) -} - -// ExtrasGraphqlQueriesDestroyWithResponse request returning *ExtrasGraphqlQueriesDestroyResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesDestroyResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesDestroyResponse(rsp) -} - -// ExtrasGraphqlQueriesRetrieveWithResponse request returning *ExtrasGraphqlQueriesRetrieveResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesRetrieveResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesRetrieveResponse(rsp) -} - -// ExtrasGraphqlQueriesPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesPartialUpdateResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesPartialUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesPartialUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesPartialUpdateResponse(rsp) -} - -// ExtrasGraphqlQueriesUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesUpdateResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesUpdateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesUpdateResponse(rsp) -} - -// ExtrasGraphqlQueriesNotesListWithResponse request returning *ExtrasGraphqlQueriesNotesListResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasGraphqlQueriesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesNotesListResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesNotesListResponse(rsp) -} - -// ExtrasGraphqlQueriesNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesNotesCreateResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesNotesCreateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesNotesCreateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesNotesCreateResponse(rsp) -} - -// ExtrasGraphqlQueriesRunCreateWithBodyWithResponse request with arbitrary body returning *ExtrasGraphqlQueriesRunCreateResponse -func (c *ClientWithResponses) ExtrasGraphqlQueriesRunCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesRunCreateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesRunCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesRunCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasGraphqlQueriesRunCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasGraphqlQueriesRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasGraphqlQueriesRunCreateResponse, error) { - rsp, err := c.ExtrasGraphqlQueriesRunCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasGraphqlQueriesRunCreateResponse(rsp) -} - -// ExtrasImageAttachmentsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasImageAttachmentsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkDestroyResponse, error) { - rsp, err := c.ExtrasImageAttachmentsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasImageAttachmentsBulkDestroyWithResponse(ctx context.Context, body ExtrasImageAttachmentsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkDestroyResponse, error) { - rsp, err := c.ExtrasImageAttachmentsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsBulkDestroyResponse(rsp) -} - -// ExtrasImageAttachmentsListWithResponse request returning *ExtrasImageAttachmentsListResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsListWithResponse(ctx context.Context, params *ExtrasImageAttachmentsListParams, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsListResponse, error) { - rsp, err := c.ExtrasImageAttachmentsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsListResponse(rsp) -} - -// ExtrasImageAttachmentsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasImageAttachmentsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasImageAttachmentsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasImageAttachmentsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsBulkPartialUpdateResponse(rsp) -} - -// ExtrasImageAttachmentsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasImageAttachmentsCreateResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsCreateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasImageAttachmentsCreateWithResponse(ctx context.Context, body ExtrasImageAttachmentsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsCreateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsCreateResponse(rsp) -} - -// ExtrasImageAttachmentsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasImageAttachmentsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasImageAttachmentsBulkUpdateWithResponse(ctx context.Context, body ExtrasImageAttachmentsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsBulkUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsBulkUpdateResponse(rsp) -} - -// ExtrasImageAttachmentsDestroyWithResponse request returning *ExtrasImageAttachmentsDestroyResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsDestroyResponse, error) { - rsp, err := c.ExtrasImageAttachmentsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsDestroyResponse(rsp) -} - -// ExtrasImageAttachmentsRetrieveWithResponse request returning *ExtrasImageAttachmentsRetrieveResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsRetrieveResponse, error) { - rsp, err := c.ExtrasImageAttachmentsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsRetrieveResponse(rsp) -} - -// ExtrasImageAttachmentsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasImageAttachmentsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsPartialUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasImageAttachmentsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsPartialUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsPartialUpdateResponse(rsp) -} - -// ExtrasImageAttachmentsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasImageAttachmentsUpdateResponse -func (c *ClientWithResponses) ExtrasImageAttachmentsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasImageAttachmentsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasImageAttachmentsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasImageAttachmentsUpdateResponse, error) { - rsp, err := c.ExtrasImageAttachmentsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasImageAttachmentsUpdateResponse(rsp) -} - -// ExtrasJobHooksBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasJobHooksBulkDestroyResponse -func (c *ClientWithResponses) ExtrasJobHooksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkDestroyResponse, error) { - rsp, err := c.ExtrasJobHooksBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobHooksBulkDestroyWithResponse(ctx context.Context, body ExtrasJobHooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkDestroyResponse, error) { - rsp, err := c.ExtrasJobHooksBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksBulkDestroyResponse(rsp) -} - -// ExtrasJobHooksListWithResponse request returning *ExtrasJobHooksListResponse -func (c *ClientWithResponses) ExtrasJobHooksListWithResponse(ctx context.Context, params *ExtrasJobHooksListParams, reqEditors ...RequestEditorFn) (*ExtrasJobHooksListResponse, error) { - rsp, err := c.ExtrasJobHooksList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksListResponse(rsp) -} - -// ExtrasJobHooksBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobHooksBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasJobHooksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobHooksBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasJobHooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksBulkPartialUpdateResponse(rsp) -} - -// ExtrasJobHooksCreateWithBodyWithResponse request with arbitrary body returning *ExtrasJobHooksCreateResponse -func (c *ClientWithResponses) ExtrasJobHooksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksCreateResponse, error) { - rsp, err := c.ExtrasJobHooksCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobHooksCreateWithResponse(ctx context.Context, body ExtrasJobHooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksCreateResponse, error) { - rsp, err := c.ExtrasJobHooksCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksCreateResponse(rsp) -} - -// ExtrasJobHooksBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobHooksBulkUpdateResponse -func (c *ClientWithResponses) ExtrasJobHooksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobHooksBulkUpdateWithResponse(ctx context.Context, body ExtrasJobHooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksBulkUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksBulkUpdateResponse(rsp) -} - -// ExtrasJobHooksDestroyWithResponse request returning *ExtrasJobHooksDestroyResponse -func (c *ClientWithResponses) ExtrasJobHooksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobHooksDestroyResponse, error) { - rsp, err := c.ExtrasJobHooksDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksDestroyResponse(rsp) -} - -// ExtrasJobHooksRetrieveWithResponse request returning *ExtrasJobHooksRetrieveResponse -func (c *ClientWithResponses) ExtrasJobHooksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobHooksRetrieveResponse, error) { - rsp, err := c.ExtrasJobHooksRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksRetrieveResponse(rsp) -} - -// ExtrasJobHooksPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobHooksPartialUpdateResponse -func (c *ClientWithResponses) ExtrasJobHooksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobHooksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksPartialUpdateResponse(rsp) -} - -// ExtrasJobHooksUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobHooksUpdateResponse -func (c *ClientWithResponses) ExtrasJobHooksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobHooksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksUpdateResponse, error) { - rsp, err := c.ExtrasJobHooksUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksUpdateResponse(rsp) -} - -// ExtrasJobHooksNotesListWithResponse request returning *ExtrasJobHooksNotesListResponse -func (c *ClientWithResponses) ExtrasJobHooksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasJobHooksNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasJobHooksNotesListResponse, error) { - rsp, err := c.ExtrasJobHooksNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksNotesListResponse(rsp) -} - -// ExtrasJobHooksNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasJobHooksNotesCreateResponse -func (c *ClientWithResponses) ExtrasJobHooksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobHooksNotesCreateResponse, error) { - rsp, err := c.ExtrasJobHooksNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobHooksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobHooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobHooksNotesCreateResponse, error) { - rsp, err := c.ExtrasJobHooksNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobHooksNotesCreateResponse(rsp) -} - -// ExtrasJobLogsListWithResponse request returning *ExtrasJobLogsListResponse -func (c *ClientWithResponses) ExtrasJobLogsListWithResponse(ctx context.Context, params *ExtrasJobLogsListParams, reqEditors ...RequestEditorFn) (*ExtrasJobLogsListResponse, error) { - rsp, err := c.ExtrasJobLogsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobLogsListResponse(rsp) -} - -// ExtrasJobLogsRetrieveWithResponse request returning *ExtrasJobLogsRetrieveResponse -func (c *ClientWithResponses) ExtrasJobLogsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobLogsRetrieveResponse, error) { - rsp, err := c.ExtrasJobLogsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobLogsRetrieveResponse(rsp) -} - -// ExtrasJobResultsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasJobResultsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasJobResultsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobResultsBulkDestroyResponse, error) { - rsp, err := c.ExtrasJobResultsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobResultsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobResultsBulkDestroyWithResponse(ctx context.Context, body ExtrasJobResultsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobResultsBulkDestroyResponse, error) { - rsp, err := c.ExtrasJobResultsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobResultsBulkDestroyResponse(rsp) -} - -// ExtrasJobResultsListWithResponse request returning *ExtrasJobResultsListResponse -func (c *ClientWithResponses) ExtrasJobResultsListWithResponse(ctx context.Context, params *ExtrasJobResultsListParams, reqEditors ...RequestEditorFn) (*ExtrasJobResultsListResponse, error) { - rsp, err := c.ExtrasJobResultsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobResultsListResponse(rsp) -} - -// ExtrasJobResultsDestroyWithResponse request returning *ExtrasJobResultsDestroyResponse -func (c *ClientWithResponses) ExtrasJobResultsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobResultsDestroyResponse, error) { - rsp, err := c.ExtrasJobResultsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobResultsDestroyResponse(rsp) -} - -// ExtrasJobResultsRetrieveWithResponse request returning *ExtrasJobResultsRetrieveResponse -func (c *ClientWithResponses) ExtrasJobResultsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobResultsRetrieveResponse, error) { - rsp, err := c.ExtrasJobResultsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobResultsRetrieveResponse(rsp) -} - -// ExtrasJobResultsLogsRetrieveWithResponse request returning *ExtrasJobResultsLogsRetrieveResponse -func (c *ClientWithResponses) ExtrasJobResultsLogsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobResultsLogsRetrieveResponse, error) { - rsp, err := c.ExtrasJobResultsLogsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobResultsLogsRetrieveResponse(rsp) -} - -// ExtrasJobsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasJobsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasJobsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkDestroyResponse, error) { - rsp, err := c.ExtrasJobsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsBulkDestroyWithResponse(ctx context.Context, body ExtrasJobsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkDestroyResponse, error) { - rsp, err := c.ExtrasJobsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsBulkDestroyResponse(rsp) -} - -// ExtrasJobsListWithResponse request returning *ExtrasJobsListResponse -func (c *ClientWithResponses) ExtrasJobsListWithResponse(ctx context.Context, params *ExtrasJobsListParams, reqEditors ...RequestEditorFn) (*ExtrasJobsListResponse, error) { - rsp, err := c.ExtrasJobsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsListResponse(rsp) -} - -// ExtrasJobsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasJobsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasJobsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsBulkPartialUpdateResponse(rsp) -} - -// ExtrasJobsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasJobsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkUpdateResponse, error) { - rsp, err := c.ExtrasJobsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsBulkUpdateWithResponse(ctx context.Context, body ExtrasJobsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsBulkUpdateResponse, error) { - rsp, err := c.ExtrasJobsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsBulkUpdateResponse(rsp) -} - -// ExtrasJobsReadDeprecatedWithResponse request returning *ExtrasJobsReadDeprecatedResponse -func (c *ClientWithResponses) ExtrasJobsReadDeprecatedWithResponse(ctx context.Context, classPath string, reqEditors ...RequestEditorFn) (*ExtrasJobsReadDeprecatedResponse, error) { - rsp, err := c.ExtrasJobsReadDeprecated(ctx, classPath, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsReadDeprecatedResponse(rsp) -} - -// ExtrasJobsRunDeprecatedWithBodyWithResponse request with arbitrary body returning *ExtrasJobsRunDeprecatedResponse -func (c *ClientWithResponses) ExtrasJobsRunDeprecatedWithBodyWithResponse(ctx context.Context, classPath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsRunDeprecatedResponse, error) { - rsp, err := c.ExtrasJobsRunDeprecatedWithBody(ctx, classPath, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsRunDeprecatedResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsRunDeprecatedWithResponse(ctx context.Context, classPath string, body ExtrasJobsRunDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsRunDeprecatedResponse, error) { - rsp, err := c.ExtrasJobsRunDeprecated(ctx, classPath, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsRunDeprecatedResponse(rsp) -} - -// ExtrasJobsDestroyWithResponse request returning *ExtrasJobsDestroyResponse -func (c *ClientWithResponses) ExtrasJobsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobsDestroyResponse, error) { - rsp, err := c.ExtrasJobsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsDestroyResponse(rsp) -} - -// ExtrasJobsRetrieveWithResponse request returning *ExtrasJobsRetrieveResponse -func (c *ClientWithResponses) ExtrasJobsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasJobsRetrieveResponse, error) { - rsp, err := c.ExtrasJobsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsRetrieveResponse(rsp) -} - -// ExtrasJobsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasJobsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsPartialUpdateResponse, error) { - rsp, err := c.ExtrasJobsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsPartialUpdateResponse(rsp) -} - -// ExtrasJobsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasJobsUpdateResponse -func (c *ClientWithResponses) ExtrasJobsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsUpdateResponse, error) { - rsp, err := c.ExtrasJobsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsUpdateResponse, error) { - rsp, err := c.ExtrasJobsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsUpdateResponse(rsp) -} - -// ExtrasJobsNotesListWithResponse request returning *ExtrasJobsNotesListResponse -func (c *ClientWithResponses) ExtrasJobsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasJobsNotesListResponse, error) { - rsp, err := c.ExtrasJobsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsNotesListResponse(rsp) -} - -// ExtrasJobsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasJobsNotesCreateResponse -func (c *ClientWithResponses) ExtrasJobsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsNotesCreateResponse, error) { - rsp, err := c.ExtrasJobsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsNotesCreateResponse, error) { - rsp, err := c.ExtrasJobsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsNotesCreateResponse(rsp) -} - -// ExtrasJobsRunCreateWithBodyWithResponse request with arbitrary body returning *ExtrasJobsRunCreateResponse -func (c *ClientWithResponses) ExtrasJobsRunCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasJobsRunCreateResponse, error) { - rsp, err := c.ExtrasJobsRunCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsRunCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasJobsRunCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasJobsRunCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasJobsRunCreateResponse, error) { - rsp, err := c.ExtrasJobsRunCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsRunCreateResponse(rsp) -} - -// ExtrasJobsVariablesListWithResponse request returning *ExtrasJobsVariablesListResponse -func (c *ClientWithResponses) ExtrasJobsVariablesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasJobsVariablesListParams, reqEditors ...RequestEditorFn) (*ExtrasJobsVariablesListResponse, error) { - rsp, err := c.ExtrasJobsVariablesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasJobsVariablesListResponse(rsp) -} - -// ExtrasNotesBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasNotesBulkDestroyResponse -func (c *ClientWithResponses) ExtrasNotesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkDestroyResponse, error) { - rsp, err := c.ExtrasNotesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasNotesBulkDestroyWithResponse(ctx context.Context, body ExtrasNotesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkDestroyResponse, error) { - rsp, err := c.ExtrasNotesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesBulkDestroyResponse(rsp) -} - -// ExtrasNotesListWithResponse request returning *ExtrasNotesListResponse -func (c *ClientWithResponses) ExtrasNotesListWithResponse(ctx context.Context, params *ExtrasNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasNotesListResponse, error) { - rsp, err := c.ExtrasNotesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesListResponse(rsp) -} - -// ExtrasNotesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasNotesBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasNotesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasNotesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasNotesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasNotesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasNotesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesBulkPartialUpdateResponse(rsp) -} - -// ExtrasNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasNotesCreateResponse -func (c *ClientWithResponses) ExtrasNotesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesCreateResponse, error) { - rsp, err := c.ExtrasNotesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasNotesCreateWithResponse(ctx context.Context, body ExtrasNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesCreateResponse, error) { - rsp, err := c.ExtrasNotesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesCreateResponse(rsp) -} - -// ExtrasNotesBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasNotesBulkUpdateResponse -func (c *ClientWithResponses) ExtrasNotesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkUpdateResponse, error) { - rsp, err := c.ExtrasNotesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasNotesBulkUpdateWithResponse(ctx context.Context, body ExtrasNotesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesBulkUpdateResponse, error) { - rsp, err := c.ExtrasNotesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesBulkUpdateResponse(rsp) -} - -// ExtrasNotesDestroyWithResponse request returning *ExtrasNotesDestroyResponse -func (c *ClientWithResponses) ExtrasNotesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasNotesDestroyResponse, error) { - rsp, err := c.ExtrasNotesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesDestroyResponse(rsp) -} - -// ExtrasNotesRetrieveWithResponse request returning *ExtrasNotesRetrieveResponse -func (c *ClientWithResponses) ExtrasNotesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasNotesRetrieveResponse, error) { - rsp, err := c.ExtrasNotesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesRetrieveResponse(rsp) -} - -// ExtrasNotesPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasNotesPartialUpdateResponse -func (c *ClientWithResponses) ExtrasNotesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesPartialUpdateResponse, error) { - rsp, err := c.ExtrasNotesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasNotesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasNotesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesPartialUpdateResponse, error) { - rsp, err := c.ExtrasNotesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesPartialUpdateResponse(rsp) -} - -// ExtrasNotesUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasNotesUpdateResponse -func (c *ClientWithResponses) ExtrasNotesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasNotesUpdateResponse, error) { - rsp, err := c.ExtrasNotesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasNotesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasNotesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasNotesUpdateResponse, error) { - rsp, err := c.ExtrasNotesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasNotesUpdateResponse(rsp) -} - -// ExtrasObjectChangesListWithResponse request returning *ExtrasObjectChangesListResponse -func (c *ClientWithResponses) ExtrasObjectChangesListWithResponse(ctx context.Context, params *ExtrasObjectChangesListParams, reqEditors ...RequestEditorFn) (*ExtrasObjectChangesListResponse, error) { - rsp, err := c.ExtrasObjectChangesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasObjectChangesListResponse(rsp) -} - -// ExtrasObjectChangesRetrieveWithResponse request returning *ExtrasObjectChangesRetrieveResponse -func (c *ClientWithResponses) ExtrasObjectChangesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasObjectChangesRetrieveResponse, error) { - rsp, err := c.ExtrasObjectChangesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasObjectChangesRetrieveResponse(rsp) -} - -// ExtrasRelationshipAssociationsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipAssociationsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkDestroyResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipAssociationsBulkDestroyWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkDestroyResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsBulkDestroyResponse(rsp) -} - -// ExtrasRelationshipAssociationsListWithResponse request returning *ExtrasRelationshipAssociationsListResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsListWithResponse(ctx context.Context, params *ExtrasRelationshipAssociationsListParams, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsListResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsListResponse(rsp) -} - -// ExtrasRelationshipAssociationsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipAssociationsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipAssociationsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsBulkPartialUpdateResponse(rsp) -} - -// ExtrasRelationshipAssociationsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipAssociationsCreateResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsCreateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipAssociationsCreateWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsCreateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsCreateResponse(rsp) -} - -// ExtrasRelationshipAssociationsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipAssociationsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipAssociationsBulkUpdateWithResponse(ctx context.Context, body ExtrasRelationshipAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsBulkUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsBulkUpdateResponse(rsp) -} - -// ExtrasRelationshipAssociationsDestroyWithResponse request returning *ExtrasRelationshipAssociationsDestroyResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsDestroyResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsDestroyResponse(rsp) -} - -// ExtrasRelationshipAssociationsRetrieveWithResponse request returning *ExtrasRelationshipAssociationsRetrieveResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsRetrieveResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsRetrieveResponse(rsp) -} - -// ExtrasRelationshipAssociationsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipAssociationsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipAssociationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsPartialUpdateResponse(rsp) -} - -// ExtrasRelationshipAssociationsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipAssociationsUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipAssociationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipAssociationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipAssociationsUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipAssociationsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipAssociationsUpdateResponse(rsp) -} - -// ExtrasRelationshipsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasRelationshipsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkDestroyResponse, error) { - rsp, err := c.ExtrasRelationshipsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipsBulkDestroyWithResponse(ctx context.Context, body ExtrasRelationshipsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkDestroyResponse, error) { - rsp, err := c.ExtrasRelationshipsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsBulkDestroyResponse(rsp) -} - -// ExtrasRelationshipsListWithResponse request returning *ExtrasRelationshipsListResponse -func (c *ClientWithResponses) ExtrasRelationshipsListWithResponse(ctx context.Context, params *ExtrasRelationshipsListParams, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsListResponse, error) { - rsp, err := c.ExtrasRelationshipsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsListResponse(rsp) -} - -// ExtrasRelationshipsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasRelationshipsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsBulkPartialUpdateResponse(rsp) -} - -// ExtrasRelationshipsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipsCreateResponse -func (c *ClientWithResponses) ExtrasRelationshipsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsCreateResponse, error) { - rsp, err := c.ExtrasRelationshipsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipsCreateWithResponse(ctx context.Context, body ExtrasRelationshipsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsCreateResponse, error) { - rsp, err := c.ExtrasRelationshipsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsCreateResponse(rsp) -} - -// ExtrasRelationshipsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipsBulkUpdateWithResponse(ctx context.Context, body ExtrasRelationshipsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsBulkUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsBulkUpdateResponse(rsp) -} - -// ExtrasRelationshipsDestroyWithResponse request returning *ExtrasRelationshipsDestroyResponse -func (c *ClientWithResponses) ExtrasRelationshipsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsDestroyResponse, error) { - rsp, err := c.ExtrasRelationshipsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsDestroyResponse(rsp) -} - -// ExtrasRelationshipsRetrieveWithResponse request returning *ExtrasRelationshipsRetrieveResponse -func (c *ClientWithResponses) ExtrasRelationshipsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsRetrieveResponse, error) { - rsp, err := c.ExtrasRelationshipsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsRetrieveResponse(rsp) -} - -// ExtrasRelationshipsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsPartialUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsPartialUpdateResponse(rsp) -} - -// ExtrasRelationshipsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipsUpdateResponse -func (c *ClientWithResponses) ExtrasRelationshipsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsUpdateResponse, error) { - rsp, err := c.ExtrasRelationshipsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsUpdateResponse(rsp) -} - -// ExtrasRelationshipsNotesListWithResponse request returning *ExtrasRelationshipsNotesListResponse -func (c *ClientWithResponses) ExtrasRelationshipsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasRelationshipsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsNotesListResponse, error) { - rsp, err := c.ExtrasRelationshipsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsNotesListResponse(rsp) -} - -// ExtrasRelationshipsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasRelationshipsNotesCreateResponse -func (c *ClientWithResponses) ExtrasRelationshipsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsNotesCreateResponse, error) { - rsp, err := c.ExtrasRelationshipsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasRelationshipsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasRelationshipsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasRelationshipsNotesCreateResponse, error) { - rsp, err := c.ExtrasRelationshipsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasRelationshipsNotesCreateResponse(rsp) -} - -// ExtrasScheduledJobsListWithResponse request returning *ExtrasScheduledJobsListResponse -func (c *ClientWithResponses) ExtrasScheduledJobsListWithResponse(ctx context.Context, params *ExtrasScheduledJobsListParams, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsListResponse, error) { - rsp, err := c.ExtrasScheduledJobsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasScheduledJobsListResponse(rsp) -} - -// ExtrasScheduledJobsRetrieveWithResponse request returning *ExtrasScheduledJobsRetrieveResponse -func (c *ClientWithResponses) ExtrasScheduledJobsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsRetrieveResponse, error) { - rsp, err := c.ExtrasScheduledJobsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasScheduledJobsRetrieveResponse(rsp) -} - -// ExtrasScheduledJobsApproveCreateWithResponse request returning *ExtrasScheduledJobsApproveCreateResponse -func (c *ClientWithResponses) ExtrasScheduledJobsApproveCreateWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasScheduledJobsApproveCreateParams, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsApproveCreateResponse, error) { - rsp, err := c.ExtrasScheduledJobsApproveCreate(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasScheduledJobsApproveCreateResponse(rsp) -} - -// ExtrasScheduledJobsDenyCreateWithResponse request returning *ExtrasScheduledJobsDenyCreateResponse -func (c *ClientWithResponses) ExtrasScheduledJobsDenyCreateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsDenyCreateResponse, error) { - rsp, err := c.ExtrasScheduledJobsDenyCreate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasScheduledJobsDenyCreateResponse(rsp) -} - -// ExtrasScheduledJobsDryRunCreateWithResponse request returning *ExtrasScheduledJobsDryRunCreateResponse -func (c *ClientWithResponses) ExtrasScheduledJobsDryRunCreateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasScheduledJobsDryRunCreateResponse, error) { - rsp, err := c.ExtrasScheduledJobsDryRunCreate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasScheduledJobsDryRunCreateResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsAssociationsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkDestroyResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsBulkDestroyWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkDestroyResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsBulkDestroyResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsListWithResponse request returning *ExtrasSecretsGroupsAssociationsListResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsListWithResponse(ctx context.Context, params *ExtrasSecretsGroupsAssociationsListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsListResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsListResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsAssociationsCreateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsCreateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsCreateWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsCreateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsCreateResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsAssociationsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsBulkUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsAssociationsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsBulkUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsBulkUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsDestroyWithResponse request returning *ExtrasSecretsGroupsAssociationsDestroyResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsDestroyResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsDestroyResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsRetrieveWithResponse request returning *ExtrasSecretsGroupsAssociationsRetrieveResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsRetrieveResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsRetrieveResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsAssociationsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsPartialUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsAssociationsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsAssociationsUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsAssociationsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsAssociationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsAssociationsUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsAssociationsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsAssociationsUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkDestroyResponse, error) { - rsp, err := c.ExtrasSecretsGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsBulkDestroyWithResponse(ctx context.Context, body ExtrasSecretsGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkDestroyResponse, error) { - rsp, err := c.ExtrasSecretsGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsBulkDestroyResponse(rsp) -} - -// ExtrasSecretsGroupsListWithResponse request returning *ExtrasSecretsGroupsListResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsListWithResponse(ctx context.Context, params *ExtrasSecretsGroupsListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsListResponse, error) { - rsp, err := c.ExtrasSecretsGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsListResponse(rsp) -} - -// ExtrasSecretsGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsBulkPartialUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsCreateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsCreateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsCreateWithResponse(ctx context.Context, body ExtrasSecretsGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsCreateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsCreateResponse(rsp) -} - -// ExtrasSecretsGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsBulkUpdateWithResponse(ctx context.Context, body ExtrasSecretsGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsBulkUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsBulkUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsDestroyWithResponse request returning *ExtrasSecretsGroupsDestroyResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsDestroyResponse, error) { - rsp, err := c.ExtrasSecretsGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsDestroyResponse(rsp) -} - -// ExtrasSecretsGroupsRetrieveWithResponse request returning *ExtrasSecretsGroupsRetrieveResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsRetrieveResponse, error) { - rsp, err := c.ExtrasSecretsGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsRetrieveResponse(rsp) -} - -// ExtrasSecretsGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsPartialUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsUpdateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsUpdateResponse(rsp) -} - -// ExtrasSecretsGroupsNotesListWithResponse request returning *ExtrasSecretsGroupsNotesListResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsGroupsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsNotesListResponse, error) { - rsp, err := c.ExtrasSecretsGroupsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsNotesListResponse(rsp) -} - -// ExtrasSecretsGroupsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsGroupsNotesCreateResponse -func (c *ClientWithResponses) ExtrasSecretsGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsNotesCreateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsGroupsNotesCreateResponse, error) { - rsp, err := c.ExtrasSecretsGroupsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsGroupsNotesCreateResponse(rsp) -} - -// ExtrasSecretsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasSecretsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkDestroyResponse, error) { - rsp, err := c.ExtrasSecretsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsBulkDestroyWithResponse(ctx context.Context, body ExtrasSecretsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkDestroyResponse, error) { - rsp, err := c.ExtrasSecretsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsBulkDestroyResponse(rsp) -} - -// ExtrasSecretsListWithResponse request returning *ExtrasSecretsListResponse -func (c *ClientWithResponses) ExtrasSecretsListWithResponse(ctx context.Context, params *ExtrasSecretsListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsListResponse, error) { - rsp, err := c.ExtrasSecretsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsListResponse(rsp) -} - -// ExtrasSecretsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasSecretsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsBulkPartialUpdateResponse(rsp) -} - -// ExtrasSecretsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsCreateResponse -func (c *ClientWithResponses) ExtrasSecretsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsCreateResponse, error) { - rsp, err := c.ExtrasSecretsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsCreateWithResponse(ctx context.Context, body ExtrasSecretsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsCreateResponse, error) { - rsp, err := c.ExtrasSecretsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsCreateResponse(rsp) -} - -// ExtrasSecretsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkUpdateResponse, error) { - rsp, err := c.ExtrasSecretsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsBulkUpdateWithResponse(ctx context.Context, body ExtrasSecretsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsBulkUpdateResponse, error) { - rsp, err := c.ExtrasSecretsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsBulkUpdateResponse(rsp) -} - -// ExtrasSecretsDestroyWithResponse request returning *ExtrasSecretsDestroyResponse -func (c *ClientWithResponses) ExtrasSecretsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsDestroyResponse, error) { - rsp, err := c.ExtrasSecretsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsDestroyResponse(rsp) -} - -// ExtrasSecretsRetrieveWithResponse request returning *ExtrasSecretsRetrieveResponse -func (c *ClientWithResponses) ExtrasSecretsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasSecretsRetrieveResponse, error) { - rsp, err := c.ExtrasSecretsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsRetrieveResponse(rsp) -} - -// ExtrasSecretsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsPartialUpdateResponse, error) { - rsp, err := c.ExtrasSecretsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsPartialUpdateResponse(rsp) -} - -// ExtrasSecretsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsUpdateResponse -func (c *ClientWithResponses) ExtrasSecretsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsUpdateResponse, error) { - rsp, err := c.ExtrasSecretsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsUpdateResponse, error) { - rsp, err := c.ExtrasSecretsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsUpdateResponse(rsp) -} - -// ExtrasSecretsNotesListWithResponse request returning *ExtrasSecretsNotesListResponse -func (c *ClientWithResponses) ExtrasSecretsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasSecretsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasSecretsNotesListResponse, error) { - rsp, err := c.ExtrasSecretsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsNotesListResponse(rsp) -} - -// ExtrasSecretsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasSecretsNotesCreateResponse -func (c *ClientWithResponses) ExtrasSecretsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasSecretsNotesCreateResponse, error) { - rsp, err := c.ExtrasSecretsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasSecretsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasSecretsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasSecretsNotesCreateResponse, error) { - rsp, err := c.ExtrasSecretsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasSecretsNotesCreateResponse(rsp) -} - -// ExtrasStatusesBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasStatusesBulkDestroyResponse -func (c *ClientWithResponses) ExtrasStatusesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkDestroyResponse, error) { - rsp, err := c.ExtrasStatusesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasStatusesBulkDestroyWithResponse(ctx context.Context, body ExtrasStatusesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkDestroyResponse, error) { - rsp, err := c.ExtrasStatusesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesBulkDestroyResponse(rsp) -} - -// ExtrasStatusesListWithResponse request returning *ExtrasStatusesListResponse -func (c *ClientWithResponses) ExtrasStatusesListWithResponse(ctx context.Context, params *ExtrasStatusesListParams, reqEditors ...RequestEditorFn) (*ExtrasStatusesListResponse, error) { - rsp, err := c.ExtrasStatusesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesListResponse(rsp) -} - -// ExtrasStatusesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasStatusesBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasStatusesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasStatusesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasStatusesBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasStatusesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasStatusesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesBulkPartialUpdateResponse(rsp) -} - -// ExtrasStatusesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasStatusesCreateResponse -func (c *ClientWithResponses) ExtrasStatusesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesCreateResponse, error) { - rsp, err := c.ExtrasStatusesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasStatusesCreateWithResponse(ctx context.Context, body ExtrasStatusesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesCreateResponse, error) { - rsp, err := c.ExtrasStatusesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesCreateResponse(rsp) -} - -// ExtrasStatusesBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasStatusesBulkUpdateResponse -func (c *ClientWithResponses) ExtrasStatusesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkUpdateResponse, error) { - rsp, err := c.ExtrasStatusesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasStatusesBulkUpdateWithResponse(ctx context.Context, body ExtrasStatusesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesBulkUpdateResponse, error) { - rsp, err := c.ExtrasStatusesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesBulkUpdateResponse(rsp) -} - -// ExtrasStatusesDestroyWithResponse request returning *ExtrasStatusesDestroyResponse -func (c *ClientWithResponses) ExtrasStatusesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasStatusesDestroyResponse, error) { - rsp, err := c.ExtrasStatusesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesDestroyResponse(rsp) -} - -// ExtrasStatusesRetrieveWithResponse request returning *ExtrasStatusesRetrieveResponse -func (c *ClientWithResponses) ExtrasStatusesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasStatusesRetrieveResponse, error) { - rsp, err := c.ExtrasStatusesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesRetrieveResponse(rsp) -} - -// ExtrasStatusesPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasStatusesPartialUpdateResponse -func (c *ClientWithResponses) ExtrasStatusesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesPartialUpdateResponse, error) { - rsp, err := c.ExtrasStatusesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasStatusesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesPartialUpdateResponse, error) { - rsp, err := c.ExtrasStatusesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesPartialUpdateResponse(rsp) -} - -// ExtrasStatusesUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasStatusesUpdateResponse -func (c *ClientWithResponses) ExtrasStatusesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesUpdateResponse, error) { - rsp, err := c.ExtrasStatusesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasStatusesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesUpdateResponse, error) { - rsp, err := c.ExtrasStatusesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesUpdateResponse(rsp) -} - -// ExtrasStatusesNotesListWithResponse request returning *ExtrasStatusesNotesListResponse -func (c *ClientWithResponses) ExtrasStatusesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasStatusesNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasStatusesNotesListResponse, error) { - rsp, err := c.ExtrasStatusesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesNotesListResponse(rsp) -} - -// ExtrasStatusesNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasStatusesNotesCreateResponse -func (c *ClientWithResponses) ExtrasStatusesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasStatusesNotesCreateResponse, error) { - rsp, err := c.ExtrasStatusesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasStatusesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasStatusesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasStatusesNotesCreateResponse, error) { - rsp, err := c.ExtrasStatusesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasStatusesNotesCreateResponse(rsp) -} - -// ExtrasTagsBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasTagsBulkDestroyResponse -func (c *ClientWithResponses) ExtrasTagsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkDestroyResponse, error) { - rsp, err := c.ExtrasTagsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasTagsBulkDestroyWithResponse(ctx context.Context, body ExtrasTagsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkDestroyResponse, error) { - rsp, err := c.ExtrasTagsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsBulkDestroyResponse(rsp) -} - -// ExtrasTagsListWithResponse request returning *ExtrasTagsListResponse -func (c *ClientWithResponses) ExtrasTagsListWithResponse(ctx context.Context, params *ExtrasTagsListParams, reqEditors ...RequestEditorFn) (*ExtrasTagsListResponse, error) { - rsp, err := c.ExtrasTagsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsListResponse(rsp) -} - -// ExtrasTagsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasTagsBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasTagsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasTagsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasTagsBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasTagsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasTagsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsBulkPartialUpdateResponse(rsp) -} - -// ExtrasTagsCreateWithBodyWithResponse request with arbitrary body returning *ExtrasTagsCreateResponse -func (c *ClientWithResponses) ExtrasTagsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsCreateResponse, error) { - rsp, err := c.ExtrasTagsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasTagsCreateWithResponse(ctx context.Context, body ExtrasTagsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsCreateResponse, error) { - rsp, err := c.ExtrasTagsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsCreateResponse(rsp) -} - -// ExtrasTagsBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasTagsBulkUpdateResponse -func (c *ClientWithResponses) ExtrasTagsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkUpdateResponse, error) { - rsp, err := c.ExtrasTagsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasTagsBulkUpdateWithResponse(ctx context.Context, body ExtrasTagsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsBulkUpdateResponse, error) { - rsp, err := c.ExtrasTagsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsBulkUpdateResponse(rsp) -} - -// ExtrasTagsDestroyWithResponse request returning *ExtrasTagsDestroyResponse -func (c *ClientWithResponses) ExtrasTagsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasTagsDestroyResponse, error) { - rsp, err := c.ExtrasTagsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsDestroyResponse(rsp) -} - -// ExtrasTagsRetrieveWithResponse request returning *ExtrasTagsRetrieveResponse -func (c *ClientWithResponses) ExtrasTagsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasTagsRetrieveResponse, error) { - rsp, err := c.ExtrasTagsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsRetrieveResponse(rsp) -} - -// ExtrasTagsPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasTagsPartialUpdateResponse -func (c *ClientWithResponses) ExtrasTagsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsPartialUpdateResponse, error) { - rsp, err := c.ExtrasTagsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasTagsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasTagsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsPartialUpdateResponse, error) { - rsp, err := c.ExtrasTagsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsPartialUpdateResponse(rsp) -} - -// ExtrasTagsUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasTagsUpdateResponse -func (c *ClientWithResponses) ExtrasTagsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsUpdateResponse, error) { - rsp, err := c.ExtrasTagsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasTagsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasTagsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsUpdateResponse, error) { - rsp, err := c.ExtrasTagsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsUpdateResponse(rsp) -} - -// ExtrasTagsNotesListWithResponse request returning *ExtrasTagsNotesListResponse -func (c *ClientWithResponses) ExtrasTagsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasTagsNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasTagsNotesListResponse, error) { - rsp, err := c.ExtrasTagsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsNotesListResponse(rsp) -} - -// ExtrasTagsNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasTagsNotesCreateResponse -func (c *ClientWithResponses) ExtrasTagsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasTagsNotesCreateResponse, error) { - rsp, err := c.ExtrasTagsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasTagsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasTagsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasTagsNotesCreateResponse, error) { - rsp, err := c.ExtrasTagsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasTagsNotesCreateResponse(rsp) -} - -// ExtrasWebhooksBulkDestroyWithBodyWithResponse request with arbitrary body returning *ExtrasWebhooksBulkDestroyResponse -func (c *ClientWithResponses) ExtrasWebhooksBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkDestroyResponse, error) { - rsp, err := c.ExtrasWebhooksBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasWebhooksBulkDestroyWithResponse(ctx context.Context, body ExtrasWebhooksBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkDestroyResponse, error) { - rsp, err := c.ExtrasWebhooksBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksBulkDestroyResponse(rsp) -} - -// ExtrasWebhooksListWithResponse request returning *ExtrasWebhooksListResponse -func (c *ClientWithResponses) ExtrasWebhooksListWithResponse(ctx context.Context, params *ExtrasWebhooksListParams, reqEditors ...RequestEditorFn) (*ExtrasWebhooksListResponse, error) { - rsp, err := c.ExtrasWebhooksList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksListResponse(rsp) -} - -// ExtrasWebhooksBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasWebhooksBulkPartialUpdateResponse -func (c *ClientWithResponses) ExtrasWebhooksBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasWebhooksBulkPartialUpdateWithResponse(ctx context.Context, body ExtrasWebhooksBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkPartialUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksBulkPartialUpdateResponse(rsp) -} - -// ExtrasWebhooksCreateWithBodyWithResponse request with arbitrary body returning *ExtrasWebhooksCreateResponse -func (c *ClientWithResponses) ExtrasWebhooksCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksCreateResponse, error) { - rsp, err := c.ExtrasWebhooksCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasWebhooksCreateWithResponse(ctx context.Context, body ExtrasWebhooksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksCreateResponse, error) { - rsp, err := c.ExtrasWebhooksCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksCreateResponse(rsp) -} - -// ExtrasWebhooksBulkUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasWebhooksBulkUpdateResponse -func (c *ClientWithResponses) ExtrasWebhooksBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasWebhooksBulkUpdateWithResponse(ctx context.Context, body ExtrasWebhooksBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksBulkUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksBulkUpdateResponse(rsp) -} - -// ExtrasWebhooksDestroyWithResponse request returning *ExtrasWebhooksDestroyResponse -func (c *ClientWithResponses) ExtrasWebhooksDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasWebhooksDestroyResponse, error) { - rsp, err := c.ExtrasWebhooksDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksDestroyResponse(rsp) -} - -// ExtrasWebhooksRetrieveWithResponse request returning *ExtrasWebhooksRetrieveResponse -func (c *ClientWithResponses) ExtrasWebhooksRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ExtrasWebhooksRetrieveResponse, error) { - rsp, err := c.ExtrasWebhooksRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksRetrieveResponse(rsp) -} - -// ExtrasWebhooksPartialUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasWebhooksPartialUpdateResponse -func (c *ClientWithResponses) ExtrasWebhooksPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksPartialUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasWebhooksPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksPartialUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksPartialUpdateResponse(rsp) -} - -// ExtrasWebhooksUpdateWithBodyWithResponse request with arbitrary body returning *ExtrasWebhooksUpdateResponse -func (c *ClientWithResponses) ExtrasWebhooksUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksUpdateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasWebhooksUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksUpdateResponse, error) { - rsp, err := c.ExtrasWebhooksUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksUpdateResponse(rsp) -} - -// ExtrasWebhooksNotesListWithResponse request returning *ExtrasWebhooksNotesListResponse -func (c *ClientWithResponses) ExtrasWebhooksNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *ExtrasWebhooksNotesListParams, reqEditors ...RequestEditorFn) (*ExtrasWebhooksNotesListResponse, error) { - rsp, err := c.ExtrasWebhooksNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksNotesListResponse(rsp) -} - -// ExtrasWebhooksNotesCreateWithBodyWithResponse request with arbitrary body returning *ExtrasWebhooksNotesCreateResponse -func (c *ClientWithResponses) ExtrasWebhooksNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExtrasWebhooksNotesCreateResponse, error) { - rsp, err := c.ExtrasWebhooksNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) ExtrasWebhooksNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body ExtrasWebhooksNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ExtrasWebhooksNotesCreateResponse, error) { - rsp, err := c.ExtrasWebhooksNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExtrasWebhooksNotesCreateResponse(rsp) -} - -// GraphqlCreateWithBodyWithResponse request with arbitrary body returning *GraphqlCreateResponse -func (c *ClientWithResponses) GraphqlCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GraphqlCreateResponse, error) { - rsp, err := c.GraphqlCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGraphqlCreateResponse(rsp) -} - -func (c *ClientWithResponses) GraphqlCreateWithResponse(ctx context.Context, body GraphqlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*GraphqlCreateResponse, error) { - rsp, err := c.GraphqlCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGraphqlCreateResponse(rsp) -} - -// IpamAggregatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamAggregatesBulkDestroyResponse -func (c *ClientWithResponses) IpamAggregatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkDestroyResponse, error) { - rsp, err := c.IpamAggregatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamAggregatesBulkDestroyWithResponse(ctx context.Context, body IpamAggregatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkDestroyResponse, error) { - rsp, err := c.IpamAggregatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesBulkDestroyResponse(rsp) -} - -// IpamAggregatesListWithResponse request returning *IpamAggregatesListResponse -func (c *ClientWithResponses) IpamAggregatesListWithResponse(ctx context.Context, params *IpamAggregatesListParams, reqEditors ...RequestEditorFn) (*IpamAggregatesListResponse, error) { - rsp, err := c.IpamAggregatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesListResponse(rsp) -} - -// IpamAggregatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamAggregatesBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamAggregatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamAggregatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamAggregatesBulkPartialUpdateWithResponse(ctx context.Context, body IpamAggregatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamAggregatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesBulkPartialUpdateResponse(rsp) -} - -// IpamAggregatesCreateWithBodyWithResponse request with arbitrary body returning *IpamAggregatesCreateResponse -func (c *ClientWithResponses) IpamAggregatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesCreateResponse, error) { - rsp, err := c.IpamAggregatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamAggregatesCreateWithResponse(ctx context.Context, body IpamAggregatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesCreateResponse, error) { - rsp, err := c.IpamAggregatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesCreateResponse(rsp) -} - -// IpamAggregatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamAggregatesBulkUpdateResponse -func (c *ClientWithResponses) IpamAggregatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkUpdateResponse, error) { - rsp, err := c.IpamAggregatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamAggregatesBulkUpdateWithResponse(ctx context.Context, body IpamAggregatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesBulkUpdateResponse, error) { - rsp, err := c.IpamAggregatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesBulkUpdateResponse(rsp) -} - -// IpamAggregatesDestroyWithResponse request returning *IpamAggregatesDestroyResponse -func (c *ClientWithResponses) IpamAggregatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamAggregatesDestroyResponse, error) { - rsp, err := c.IpamAggregatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesDestroyResponse(rsp) -} - -// IpamAggregatesRetrieveWithResponse request returning *IpamAggregatesRetrieveResponse -func (c *ClientWithResponses) IpamAggregatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamAggregatesRetrieveResponse, error) { - rsp, err := c.IpamAggregatesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesRetrieveResponse(rsp) -} - -// IpamAggregatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamAggregatesPartialUpdateResponse -func (c *ClientWithResponses) IpamAggregatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesPartialUpdateResponse, error) { - rsp, err := c.IpamAggregatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamAggregatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamAggregatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesPartialUpdateResponse, error) { - rsp, err := c.IpamAggregatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesPartialUpdateResponse(rsp) -} - -// IpamAggregatesUpdateWithBodyWithResponse request with arbitrary body returning *IpamAggregatesUpdateResponse -func (c *ClientWithResponses) IpamAggregatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesUpdateResponse, error) { - rsp, err := c.IpamAggregatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamAggregatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamAggregatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesUpdateResponse, error) { - rsp, err := c.IpamAggregatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesUpdateResponse(rsp) -} - -// IpamAggregatesNotesListWithResponse request returning *IpamAggregatesNotesListResponse -func (c *ClientWithResponses) IpamAggregatesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamAggregatesNotesListParams, reqEditors ...RequestEditorFn) (*IpamAggregatesNotesListResponse, error) { - rsp, err := c.IpamAggregatesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesNotesListResponse(rsp) -} - -// IpamAggregatesNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamAggregatesNotesCreateResponse -func (c *ClientWithResponses) IpamAggregatesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamAggregatesNotesCreateResponse, error) { - rsp, err := c.IpamAggregatesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamAggregatesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamAggregatesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamAggregatesNotesCreateResponse, error) { - rsp, err := c.IpamAggregatesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamAggregatesNotesCreateResponse(rsp) -} - -// IpamIpAddressesBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamIpAddressesBulkDestroyResponse -func (c *ClientWithResponses) IpamIpAddressesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkDestroyResponse, error) { - rsp, err := c.IpamIpAddressesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamIpAddressesBulkDestroyWithResponse(ctx context.Context, body IpamIpAddressesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkDestroyResponse, error) { - rsp, err := c.IpamIpAddressesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesBulkDestroyResponse(rsp) -} - -// IpamIpAddressesListWithResponse request returning *IpamIpAddressesListResponse -func (c *ClientWithResponses) IpamIpAddressesListWithResponse(ctx context.Context, params *IpamIpAddressesListParams, reqEditors ...RequestEditorFn) (*IpamIpAddressesListResponse, error) { - rsp, err := c.IpamIpAddressesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesListResponse(rsp) -} - -// IpamIpAddressesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamIpAddressesBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamIpAddressesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamIpAddressesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamIpAddressesBulkPartialUpdateWithResponse(ctx context.Context, body IpamIpAddressesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamIpAddressesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesBulkPartialUpdateResponse(rsp) -} - -// IpamIpAddressesCreateWithBodyWithResponse request with arbitrary body returning *IpamIpAddressesCreateResponse -func (c *ClientWithResponses) IpamIpAddressesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesCreateResponse, error) { - rsp, err := c.IpamIpAddressesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamIpAddressesCreateWithResponse(ctx context.Context, body IpamIpAddressesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesCreateResponse, error) { - rsp, err := c.IpamIpAddressesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesCreateResponse(rsp) -} - -// IpamIpAddressesBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamIpAddressesBulkUpdateResponse -func (c *ClientWithResponses) IpamIpAddressesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkUpdateResponse, error) { - rsp, err := c.IpamIpAddressesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamIpAddressesBulkUpdateWithResponse(ctx context.Context, body IpamIpAddressesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesBulkUpdateResponse, error) { - rsp, err := c.IpamIpAddressesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesBulkUpdateResponse(rsp) -} - -// IpamIpAddressesDestroyWithResponse request returning *IpamIpAddressesDestroyResponse -func (c *ClientWithResponses) IpamIpAddressesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamIpAddressesDestroyResponse, error) { - rsp, err := c.IpamIpAddressesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesDestroyResponse(rsp) -} - -// IpamIpAddressesRetrieveWithResponse request returning *IpamIpAddressesRetrieveResponse -func (c *ClientWithResponses) IpamIpAddressesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamIpAddressesRetrieveResponse, error) { - rsp, err := c.IpamIpAddressesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesRetrieveResponse(rsp) -} - -// IpamIpAddressesPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamIpAddressesPartialUpdateResponse -func (c *ClientWithResponses) IpamIpAddressesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesPartialUpdateResponse, error) { - rsp, err := c.IpamIpAddressesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamIpAddressesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesPartialUpdateResponse, error) { - rsp, err := c.IpamIpAddressesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesPartialUpdateResponse(rsp) -} - -// IpamIpAddressesUpdateWithBodyWithResponse request with arbitrary body returning *IpamIpAddressesUpdateResponse -func (c *ClientWithResponses) IpamIpAddressesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesUpdateResponse, error) { - rsp, err := c.IpamIpAddressesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamIpAddressesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesUpdateResponse, error) { - rsp, err := c.IpamIpAddressesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesUpdateResponse(rsp) -} - -// IpamIpAddressesNotesListWithResponse request returning *IpamIpAddressesNotesListResponse -func (c *ClientWithResponses) IpamIpAddressesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamIpAddressesNotesListParams, reqEditors ...RequestEditorFn) (*IpamIpAddressesNotesListResponse, error) { - rsp, err := c.IpamIpAddressesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesNotesListResponse(rsp) -} - -// IpamIpAddressesNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamIpAddressesNotesCreateResponse -func (c *ClientWithResponses) IpamIpAddressesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamIpAddressesNotesCreateResponse, error) { - rsp, err := c.IpamIpAddressesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamIpAddressesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamIpAddressesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamIpAddressesNotesCreateResponse, error) { - rsp, err := c.IpamIpAddressesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamIpAddressesNotesCreateResponse(rsp) -} - -// IpamPrefixesBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamPrefixesBulkDestroyResponse -func (c *ClientWithResponses) IpamPrefixesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkDestroyResponse, error) { - rsp, err := c.IpamPrefixesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesBulkDestroyWithResponse(ctx context.Context, body IpamPrefixesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkDestroyResponse, error) { - rsp, err := c.IpamPrefixesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesBulkDestroyResponse(rsp) -} - -// IpamPrefixesListWithResponse request returning *IpamPrefixesListResponse -func (c *ClientWithResponses) IpamPrefixesListWithResponse(ctx context.Context, params *IpamPrefixesListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesListResponse, error) { - rsp, err := c.IpamPrefixesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesListResponse(rsp) -} - -// IpamPrefixesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamPrefixesBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamPrefixesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamPrefixesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesBulkPartialUpdateWithResponse(ctx context.Context, body IpamPrefixesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamPrefixesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesBulkPartialUpdateResponse(rsp) -} - -// IpamPrefixesCreateWithBodyWithResponse request with arbitrary body returning *IpamPrefixesCreateResponse -func (c *ClientWithResponses) IpamPrefixesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesCreateResponse, error) { - rsp, err := c.IpamPrefixesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesCreateWithResponse(ctx context.Context, body IpamPrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesCreateResponse, error) { - rsp, err := c.IpamPrefixesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesCreateResponse(rsp) -} - -// IpamPrefixesBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamPrefixesBulkUpdateResponse -func (c *ClientWithResponses) IpamPrefixesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkUpdateResponse, error) { - rsp, err := c.IpamPrefixesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesBulkUpdateWithResponse(ctx context.Context, body IpamPrefixesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesBulkUpdateResponse, error) { - rsp, err := c.IpamPrefixesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesBulkUpdateResponse(rsp) -} - -// IpamPrefixesDestroyWithResponse request returning *IpamPrefixesDestroyResponse -func (c *ClientWithResponses) IpamPrefixesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamPrefixesDestroyResponse, error) { - rsp, err := c.IpamPrefixesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesDestroyResponse(rsp) -} - -// IpamPrefixesRetrieveWithResponse request returning *IpamPrefixesRetrieveResponse -func (c *ClientWithResponses) IpamPrefixesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamPrefixesRetrieveResponse, error) { - rsp, err := c.IpamPrefixesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesRetrieveResponse(rsp) -} - -// IpamPrefixesPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamPrefixesPartialUpdateResponse -func (c *ClientWithResponses) IpamPrefixesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesPartialUpdateResponse, error) { - rsp, err := c.IpamPrefixesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesPartialUpdateResponse, error) { - rsp, err := c.IpamPrefixesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesPartialUpdateResponse(rsp) -} - -// IpamPrefixesUpdateWithBodyWithResponse request with arbitrary body returning *IpamPrefixesUpdateResponse -func (c *ClientWithResponses) IpamPrefixesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesUpdateResponse, error) { - rsp, err := c.IpamPrefixesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesUpdateResponse, error) { - rsp, err := c.IpamPrefixesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesUpdateResponse(rsp) -} - -// IpamPrefixesAvailableIpsListWithResponse request returning *IpamPrefixesAvailableIpsListResponse -func (c *ClientWithResponses) IpamPrefixesAvailableIpsListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailableIpsListResponse, error) { - rsp, err := c.IpamPrefixesAvailableIpsList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesAvailableIpsListResponse(rsp) -} - -// IpamPrefixesAvailableIpsCreateWithResponse request returning *IpamPrefixesAvailableIpsCreateResponse -func (c *ClientWithResponses) IpamPrefixesAvailableIpsCreateWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailableIpsCreateParams, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailableIpsCreateResponse, error) { - rsp, err := c.IpamPrefixesAvailableIpsCreate(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesAvailableIpsCreateResponse(rsp) -} - -// IpamPrefixesAvailablePrefixesListWithResponse request returning *IpamPrefixesAvailablePrefixesListResponse -func (c *ClientWithResponses) IpamPrefixesAvailablePrefixesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesAvailablePrefixesListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailablePrefixesListResponse, error) { - rsp, err := c.IpamPrefixesAvailablePrefixesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesAvailablePrefixesListResponse(rsp) -} - -// IpamPrefixesAvailablePrefixesCreateWithBodyWithResponse request with arbitrary body returning *IpamPrefixesAvailablePrefixesCreateResponse -func (c *ClientWithResponses) IpamPrefixesAvailablePrefixesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailablePrefixesCreateResponse, error) { - rsp, err := c.IpamPrefixesAvailablePrefixesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesAvailablePrefixesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesAvailablePrefixesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesAvailablePrefixesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesAvailablePrefixesCreateResponse, error) { - rsp, err := c.IpamPrefixesAvailablePrefixesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesAvailablePrefixesCreateResponse(rsp) -} - -// IpamPrefixesNotesListWithResponse request returning *IpamPrefixesNotesListResponse -func (c *ClientWithResponses) IpamPrefixesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamPrefixesNotesListParams, reqEditors ...RequestEditorFn) (*IpamPrefixesNotesListResponse, error) { - rsp, err := c.IpamPrefixesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesNotesListResponse(rsp) -} - -// IpamPrefixesNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamPrefixesNotesCreateResponse -func (c *ClientWithResponses) IpamPrefixesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamPrefixesNotesCreateResponse, error) { - rsp, err := c.IpamPrefixesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamPrefixesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamPrefixesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamPrefixesNotesCreateResponse, error) { - rsp, err := c.IpamPrefixesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamPrefixesNotesCreateResponse(rsp) -} - -// IpamRirsBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamRirsBulkDestroyResponse -func (c *ClientWithResponses) IpamRirsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsBulkDestroyResponse, error) { - rsp, err := c.IpamRirsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamRirsBulkDestroyWithResponse(ctx context.Context, body IpamRirsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsBulkDestroyResponse, error) { - rsp, err := c.IpamRirsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsBulkDestroyResponse(rsp) -} - -// IpamRirsListWithResponse request returning *IpamRirsListResponse -func (c *ClientWithResponses) IpamRirsListWithResponse(ctx context.Context, params *IpamRirsListParams, reqEditors ...RequestEditorFn) (*IpamRirsListResponse, error) { - rsp, err := c.IpamRirsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsListResponse(rsp) -} - -// IpamRirsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamRirsBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamRirsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamRirsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRirsBulkPartialUpdateWithResponse(ctx context.Context, body IpamRirsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamRirsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsBulkPartialUpdateResponse(rsp) -} - -// IpamRirsCreateWithBodyWithResponse request with arbitrary body returning *IpamRirsCreateResponse -func (c *ClientWithResponses) IpamRirsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsCreateResponse, error) { - rsp, err := c.IpamRirsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRirsCreateWithResponse(ctx context.Context, body IpamRirsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsCreateResponse, error) { - rsp, err := c.IpamRirsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsCreateResponse(rsp) -} - -// IpamRirsBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamRirsBulkUpdateResponse -func (c *ClientWithResponses) IpamRirsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsBulkUpdateResponse, error) { - rsp, err := c.IpamRirsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRirsBulkUpdateWithResponse(ctx context.Context, body IpamRirsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsBulkUpdateResponse, error) { - rsp, err := c.IpamRirsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsBulkUpdateResponse(rsp) -} - -// IpamRirsDestroyWithResponse request returning *IpamRirsDestroyResponse -func (c *ClientWithResponses) IpamRirsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRirsDestroyResponse, error) { - rsp, err := c.IpamRirsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsDestroyResponse(rsp) -} - -// IpamRirsRetrieveWithResponse request returning *IpamRirsRetrieveResponse -func (c *ClientWithResponses) IpamRirsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRirsRetrieveResponse, error) { - rsp, err := c.IpamRirsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsRetrieveResponse(rsp) -} - -// IpamRirsPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamRirsPartialUpdateResponse -func (c *ClientWithResponses) IpamRirsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsPartialUpdateResponse, error) { - rsp, err := c.IpamRirsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRirsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRirsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsPartialUpdateResponse, error) { - rsp, err := c.IpamRirsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsPartialUpdateResponse(rsp) -} - -// IpamRirsUpdateWithBodyWithResponse request with arbitrary body returning *IpamRirsUpdateResponse -func (c *ClientWithResponses) IpamRirsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsUpdateResponse, error) { - rsp, err := c.IpamRirsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRirsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRirsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsUpdateResponse, error) { - rsp, err := c.IpamRirsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsUpdateResponse(rsp) -} - -// IpamRirsNotesListWithResponse request returning *IpamRirsNotesListResponse -func (c *ClientWithResponses) IpamRirsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamRirsNotesListParams, reqEditors ...RequestEditorFn) (*IpamRirsNotesListResponse, error) { - rsp, err := c.IpamRirsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsNotesListResponse(rsp) -} - -// IpamRirsNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamRirsNotesCreateResponse -func (c *ClientWithResponses) IpamRirsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRirsNotesCreateResponse, error) { - rsp, err := c.IpamRirsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRirsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRirsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRirsNotesCreateResponse, error) { - rsp, err := c.IpamRirsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRirsNotesCreateResponse(rsp) -} - -// IpamRolesBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamRolesBulkDestroyResponse -func (c *ClientWithResponses) IpamRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesBulkDestroyResponse, error) { - rsp, err := c.IpamRolesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamRolesBulkDestroyWithResponse(ctx context.Context, body IpamRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesBulkDestroyResponse, error) { - rsp, err := c.IpamRolesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesBulkDestroyResponse(rsp) -} - -// IpamRolesListWithResponse request returning *IpamRolesListResponse -func (c *ClientWithResponses) IpamRolesListWithResponse(ctx context.Context, params *IpamRolesListParams, reqEditors ...RequestEditorFn) (*IpamRolesListResponse, error) { - rsp, err := c.IpamRolesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesListResponse(rsp) -} - -// IpamRolesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamRolesBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamRolesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRolesBulkPartialUpdateWithResponse(ctx context.Context, body IpamRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamRolesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesBulkPartialUpdateResponse(rsp) -} - -// IpamRolesCreateWithBodyWithResponse request with arbitrary body returning *IpamRolesCreateResponse -func (c *ClientWithResponses) IpamRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesCreateResponse, error) { - rsp, err := c.IpamRolesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRolesCreateWithResponse(ctx context.Context, body IpamRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesCreateResponse, error) { - rsp, err := c.IpamRolesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesCreateResponse(rsp) -} - -// IpamRolesBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamRolesBulkUpdateResponse -func (c *ClientWithResponses) IpamRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesBulkUpdateResponse, error) { - rsp, err := c.IpamRolesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRolesBulkUpdateWithResponse(ctx context.Context, body IpamRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesBulkUpdateResponse, error) { - rsp, err := c.IpamRolesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesBulkUpdateResponse(rsp) -} - -// IpamRolesDestroyWithResponse request returning *IpamRolesDestroyResponse -func (c *ClientWithResponses) IpamRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRolesDestroyResponse, error) { - rsp, err := c.IpamRolesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesDestroyResponse(rsp) -} - -// IpamRolesRetrieveWithResponse request returning *IpamRolesRetrieveResponse -func (c *ClientWithResponses) IpamRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRolesRetrieveResponse, error) { - rsp, err := c.IpamRolesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesRetrieveResponse(rsp) -} - -// IpamRolesPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamRolesPartialUpdateResponse -func (c *ClientWithResponses) IpamRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesPartialUpdateResponse, error) { - rsp, err := c.IpamRolesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesPartialUpdateResponse, error) { - rsp, err := c.IpamRolesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesPartialUpdateResponse(rsp) -} - -// IpamRolesUpdateWithBodyWithResponse request with arbitrary body returning *IpamRolesUpdateResponse -func (c *ClientWithResponses) IpamRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesUpdateResponse, error) { - rsp, err := c.IpamRolesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesUpdateResponse, error) { - rsp, err := c.IpamRolesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesUpdateResponse(rsp) -} - -// IpamRolesNotesListWithResponse request returning *IpamRolesNotesListResponse -func (c *ClientWithResponses) IpamRolesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamRolesNotesListParams, reqEditors ...RequestEditorFn) (*IpamRolesNotesListResponse, error) { - rsp, err := c.IpamRolesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesNotesListResponse(rsp) -} - -// IpamRolesNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamRolesNotesCreateResponse -func (c *ClientWithResponses) IpamRolesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRolesNotesCreateResponse, error) { - rsp, err := c.IpamRolesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRolesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRolesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRolesNotesCreateResponse, error) { - rsp, err := c.IpamRolesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRolesNotesCreateResponse(rsp) -} - -// IpamRouteTargetsBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamRouteTargetsBulkDestroyResponse -func (c *ClientWithResponses) IpamRouteTargetsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkDestroyResponse, error) { - rsp, err := c.IpamRouteTargetsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamRouteTargetsBulkDestroyWithResponse(ctx context.Context, body IpamRouteTargetsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkDestroyResponse, error) { - rsp, err := c.IpamRouteTargetsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsBulkDestroyResponse(rsp) -} - -// IpamRouteTargetsListWithResponse request returning *IpamRouteTargetsListResponse -func (c *ClientWithResponses) IpamRouteTargetsListWithResponse(ctx context.Context, params *IpamRouteTargetsListParams, reqEditors ...RequestEditorFn) (*IpamRouteTargetsListResponse, error) { - rsp, err := c.IpamRouteTargetsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsListResponse(rsp) -} - -// IpamRouteTargetsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamRouteTargetsBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamRouteTargetsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRouteTargetsBulkPartialUpdateWithResponse(ctx context.Context, body IpamRouteTargetsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsBulkPartialUpdateResponse(rsp) -} - -// IpamRouteTargetsCreateWithBodyWithResponse request with arbitrary body returning *IpamRouteTargetsCreateResponse -func (c *ClientWithResponses) IpamRouteTargetsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsCreateResponse, error) { - rsp, err := c.IpamRouteTargetsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRouteTargetsCreateWithResponse(ctx context.Context, body IpamRouteTargetsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsCreateResponse, error) { - rsp, err := c.IpamRouteTargetsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsCreateResponse(rsp) -} - -// IpamRouteTargetsBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamRouteTargetsBulkUpdateResponse -func (c *ClientWithResponses) IpamRouteTargetsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRouteTargetsBulkUpdateWithResponse(ctx context.Context, body IpamRouteTargetsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsBulkUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsBulkUpdateResponse(rsp) -} - -// IpamRouteTargetsDestroyWithResponse request returning *IpamRouteTargetsDestroyResponse -func (c *ClientWithResponses) IpamRouteTargetsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRouteTargetsDestroyResponse, error) { - rsp, err := c.IpamRouteTargetsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsDestroyResponse(rsp) -} - -// IpamRouteTargetsRetrieveWithResponse request returning *IpamRouteTargetsRetrieveResponse -func (c *ClientWithResponses) IpamRouteTargetsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamRouteTargetsRetrieveResponse, error) { - rsp, err := c.IpamRouteTargetsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsRetrieveResponse(rsp) -} - -// IpamRouteTargetsPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamRouteTargetsPartialUpdateResponse -func (c *ClientWithResponses) IpamRouteTargetsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsPartialUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRouteTargetsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsPartialUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsPartialUpdateResponse(rsp) -} - -// IpamRouteTargetsUpdateWithBodyWithResponse request with arbitrary body returning *IpamRouteTargetsUpdateResponse -func (c *ClientWithResponses) IpamRouteTargetsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRouteTargetsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsUpdateResponse, error) { - rsp, err := c.IpamRouteTargetsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsUpdateResponse(rsp) -} - -// IpamRouteTargetsNotesListWithResponse request returning *IpamRouteTargetsNotesListResponse -func (c *ClientWithResponses) IpamRouteTargetsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamRouteTargetsNotesListParams, reqEditors ...RequestEditorFn) (*IpamRouteTargetsNotesListResponse, error) { - rsp, err := c.IpamRouteTargetsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsNotesListResponse(rsp) -} - -// IpamRouteTargetsNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamRouteTargetsNotesCreateResponse -func (c *ClientWithResponses) IpamRouteTargetsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamRouteTargetsNotesCreateResponse, error) { - rsp, err := c.IpamRouteTargetsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamRouteTargetsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamRouteTargetsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamRouteTargetsNotesCreateResponse, error) { - rsp, err := c.IpamRouteTargetsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamRouteTargetsNotesCreateResponse(rsp) -} - -// IpamServicesBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamServicesBulkDestroyResponse -func (c *ClientWithResponses) IpamServicesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesBulkDestroyResponse, error) { - rsp, err := c.IpamServicesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamServicesBulkDestroyWithResponse(ctx context.Context, body IpamServicesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesBulkDestroyResponse, error) { - rsp, err := c.IpamServicesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesBulkDestroyResponse(rsp) -} - -// IpamServicesListWithResponse request returning *IpamServicesListResponse -func (c *ClientWithResponses) IpamServicesListWithResponse(ctx context.Context, params *IpamServicesListParams, reqEditors ...RequestEditorFn) (*IpamServicesListResponse, error) { - rsp, err := c.IpamServicesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesListResponse(rsp) -} - -// IpamServicesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamServicesBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamServicesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamServicesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamServicesBulkPartialUpdateWithResponse(ctx context.Context, body IpamServicesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesBulkPartialUpdateResponse, error) { - rsp, err := c.IpamServicesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesBulkPartialUpdateResponse(rsp) -} - -// IpamServicesCreateWithBodyWithResponse request with arbitrary body returning *IpamServicesCreateResponse -func (c *ClientWithResponses) IpamServicesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesCreateResponse, error) { - rsp, err := c.IpamServicesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamServicesCreateWithResponse(ctx context.Context, body IpamServicesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesCreateResponse, error) { - rsp, err := c.IpamServicesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesCreateResponse(rsp) -} - -// IpamServicesBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamServicesBulkUpdateResponse -func (c *ClientWithResponses) IpamServicesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesBulkUpdateResponse, error) { - rsp, err := c.IpamServicesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamServicesBulkUpdateWithResponse(ctx context.Context, body IpamServicesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesBulkUpdateResponse, error) { - rsp, err := c.IpamServicesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesBulkUpdateResponse(rsp) -} - -// IpamServicesDestroyWithResponse request returning *IpamServicesDestroyResponse -func (c *ClientWithResponses) IpamServicesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamServicesDestroyResponse, error) { - rsp, err := c.IpamServicesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesDestroyResponse(rsp) -} - -// IpamServicesRetrieveWithResponse request returning *IpamServicesRetrieveResponse -func (c *ClientWithResponses) IpamServicesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamServicesRetrieveResponse, error) { - rsp, err := c.IpamServicesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesRetrieveResponse(rsp) -} - -// IpamServicesPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamServicesPartialUpdateResponse -func (c *ClientWithResponses) IpamServicesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesPartialUpdateResponse, error) { - rsp, err := c.IpamServicesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamServicesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamServicesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesPartialUpdateResponse, error) { - rsp, err := c.IpamServicesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesPartialUpdateResponse(rsp) -} - -// IpamServicesUpdateWithBodyWithResponse request with arbitrary body returning *IpamServicesUpdateResponse -func (c *ClientWithResponses) IpamServicesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesUpdateResponse, error) { - rsp, err := c.IpamServicesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamServicesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamServicesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesUpdateResponse, error) { - rsp, err := c.IpamServicesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesUpdateResponse(rsp) -} - -// IpamServicesNotesListWithResponse request returning *IpamServicesNotesListResponse -func (c *ClientWithResponses) IpamServicesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamServicesNotesListParams, reqEditors ...RequestEditorFn) (*IpamServicesNotesListResponse, error) { - rsp, err := c.IpamServicesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesNotesListResponse(rsp) -} - -// IpamServicesNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamServicesNotesCreateResponse -func (c *ClientWithResponses) IpamServicesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamServicesNotesCreateResponse, error) { - rsp, err := c.IpamServicesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamServicesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamServicesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamServicesNotesCreateResponse, error) { - rsp, err := c.IpamServicesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamServicesNotesCreateResponse(rsp) -} - -// IpamVlanGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamVlanGroupsBulkDestroyResponse -func (c *ClientWithResponses) IpamVlanGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkDestroyResponse, error) { - rsp, err := c.IpamVlanGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlanGroupsBulkDestroyWithResponse(ctx context.Context, body IpamVlanGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkDestroyResponse, error) { - rsp, err := c.IpamVlanGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsBulkDestroyResponse(rsp) -} - -// IpamVlanGroupsListWithResponse request returning *IpamVlanGroupsListResponse -func (c *ClientWithResponses) IpamVlanGroupsListWithResponse(ctx context.Context, params *IpamVlanGroupsListParams, reqEditors ...RequestEditorFn) (*IpamVlanGroupsListResponse, error) { - rsp, err := c.IpamVlanGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsListResponse(rsp) -} - -// IpamVlanGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlanGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamVlanGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlanGroupsBulkPartialUpdateWithResponse(ctx context.Context, body IpamVlanGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsBulkPartialUpdateResponse(rsp) -} - -// IpamVlanGroupsCreateWithBodyWithResponse request with arbitrary body returning *IpamVlanGroupsCreateResponse -func (c *ClientWithResponses) IpamVlanGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsCreateResponse, error) { - rsp, err := c.IpamVlanGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlanGroupsCreateWithResponse(ctx context.Context, body IpamVlanGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsCreateResponse, error) { - rsp, err := c.IpamVlanGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsCreateResponse(rsp) -} - -// IpamVlanGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlanGroupsBulkUpdateResponse -func (c *ClientWithResponses) IpamVlanGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlanGroupsBulkUpdateWithResponse(ctx context.Context, body IpamVlanGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsBulkUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsBulkUpdateResponse(rsp) -} - -// IpamVlanGroupsDestroyWithResponse request returning *IpamVlanGroupsDestroyResponse -func (c *ClientWithResponses) IpamVlanGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlanGroupsDestroyResponse, error) { - rsp, err := c.IpamVlanGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsDestroyResponse(rsp) -} - -// IpamVlanGroupsRetrieveWithResponse request returning *IpamVlanGroupsRetrieveResponse -func (c *ClientWithResponses) IpamVlanGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlanGroupsRetrieveResponse, error) { - rsp, err := c.IpamVlanGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsRetrieveResponse(rsp) -} - -// IpamVlanGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlanGroupsPartialUpdateResponse -func (c *ClientWithResponses) IpamVlanGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsPartialUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlanGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsPartialUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsPartialUpdateResponse(rsp) -} - -// IpamVlanGroupsUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlanGroupsUpdateResponse -func (c *ClientWithResponses) IpamVlanGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlanGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsUpdateResponse, error) { - rsp, err := c.IpamVlanGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsUpdateResponse(rsp) -} - -// IpamVlanGroupsNotesListWithResponse request returning *IpamVlanGroupsNotesListResponse -func (c *ClientWithResponses) IpamVlanGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamVlanGroupsNotesListParams, reqEditors ...RequestEditorFn) (*IpamVlanGroupsNotesListResponse, error) { - rsp, err := c.IpamVlanGroupsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsNotesListResponse(rsp) -} - -// IpamVlanGroupsNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamVlanGroupsNotesCreateResponse -func (c *ClientWithResponses) IpamVlanGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlanGroupsNotesCreateResponse, error) { - rsp, err := c.IpamVlanGroupsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlanGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlanGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlanGroupsNotesCreateResponse, error) { - rsp, err := c.IpamVlanGroupsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlanGroupsNotesCreateResponse(rsp) -} - -// IpamVlansBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamVlansBulkDestroyResponse -func (c *ClientWithResponses) IpamVlansBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansBulkDestroyResponse, error) { - rsp, err := c.IpamVlansBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlansBulkDestroyWithResponse(ctx context.Context, body IpamVlansBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansBulkDestroyResponse, error) { - rsp, err := c.IpamVlansBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansBulkDestroyResponse(rsp) -} - -// IpamVlansListWithResponse request returning *IpamVlansListResponse -func (c *ClientWithResponses) IpamVlansListWithResponse(ctx context.Context, params *IpamVlansListParams, reqEditors ...RequestEditorFn) (*IpamVlansListResponse, error) { - rsp, err := c.IpamVlansList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansListResponse(rsp) -} - -// IpamVlansBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlansBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamVlansBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansBulkPartialUpdateResponse, error) { - rsp, err := c.IpamVlansBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlansBulkPartialUpdateWithResponse(ctx context.Context, body IpamVlansBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansBulkPartialUpdateResponse, error) { - rsp, err := c.IpamVlansBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansBulkPartialUpdateResponse(rsp) -} - -// IpamVlansCreateWithBodyWithResponse request with arbitrary body returning *IpamVlansCreateResponse -func (c *ClientWithResponses) IpamVlansCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansCreateResponse, error) { - rsp, err := c.IpamVlansCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlansCreateWithResponse(ctx context.Context, body IpamVlansCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansCreateResponse, error) { - rsp, err := c.IpamVlansCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansCreateResponse(rsp) -} - -// IpamVlansBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlansBulkUpdateResponse -func (c *ClientWithResponses) IpamVlansBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansBulkUpdateResponse, error) { - rsp, err := c.IpamVlansBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlansBulkUpdateWithResponse(ctx context.Context, body IpamVlansBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansBulkUpdateResponse, error) { - rsp, err := c.IpamVlansBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansBulkUpdateResponse(rsp) -} - -// IpamVlansDestroyWithResponse request returning *IpamVlansDestroyResponse -func (c *ClientWithResponses) IpamVlansDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlansDestroyResponse, error) { - rsp, err := c.IpamVlansDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansDestroyResponse(rsp) -} - -// IpamVlansRetrieveWithResponse request returning *IpamVlansRetrieveResponse -func (c *ClientWithResponses) IpamVlansRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVlansRetrieveResponse, error) { - rsp, err := c.IpamVlansRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansRetrieveResponse(rsp) -} - -// IpamVlansPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlansPartialUpdateResponse -func (c *ClientWithResponses) IpamVlansPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansPartialUpdateResponse, error) { - rsp, err := c.IpamVlansPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlansPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlansPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansPartialUpdateResponse, error) { - rsp, err := c.IpamVlansPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansPartialUpdateResponse(rsp) -} - -// IpamVlansUpdateWithBodyWithResponse request with arbitrary body returning *IpamVlansUpdateResponse -func (c *ClientWithResponses) IpamVlansUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansUpdateResponse, error) { - rsp, err := c.IpamVlansUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlansUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlansUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansUpdateResponse, error) { - rsp, err := c.IpamVlansUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansUpdateResponse(rsp) -} - -// IpamVlansNotesListWithResponse request returning *IpamVlansNotesListResponse -func (c *ClientWithResponses) IpamVlansNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamVlansNotesListParams, reqEditors ...RequestEditorFn) (*IpamVlansNotesListResponse, error) { - rsp, err := c.IpamVlansNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansNotesListResponse(rsp) -} - -// IpamVlansNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamVlansNotesCreateResponse -func (c *ClientWithResponses) IpamVlansNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVlansNotesCreateResponse, error) { - rsp, err := c.IpamVlansNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVlansNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVlansNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVlansNotesCreateResponse, error) { - rsp, err := c.IpamVlansNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVlansNotesCreateResponse(rsp) -} - -// IpamVrfsBulkDestroyWithBodyWithResponse request with arbitrary body returning *IpamVrfsBulkDestroyResponse -func (c *ClientWithResponses) IpamVrfsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsBulkDestroyResponse, error) { - rsp, err := c.IpamVrfsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) IpamVrfsBulkDestroyWithResponse(ctx context.Context, body IpamVrfsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsBulkDestroyResponse, error) { - rsp, err := c.IpamVrfsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsBulkDestroyResponse(rsp) -} - -// IpamVrfsListWithResponse request returning *IpamVrfsListResponse -func (c *ClientWithResponses) IpamVrfsListWithResponse(ctx context.Context, params *IpamVrfsListParams, reqEditors ...RequestEditorFn) (*IpamVrfsListResponse, error) { - rsp, err := c.IpamVrfsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsListResponse(rsp) -} - -// IpamVrfsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamVrfsBulkPartialUpdateResponse -func (c *ClientWithResponses) IpamVrfsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamVrfsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVrfsBulkPartialUpdateWithResponse(ctx context.Context, body IpamVrfsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsBulkPartialUpdateResponse, error) { - rsp, err := c.IpamVrfsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsBulkPartialUpdateResponse(rsp) -} - -// IpamVrfsCreateWithBodyWithResponse request with arbitrary body returning *IpamVrfsCreateResponse -func (c *ClientWithResponses) IpamVrfsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsCreateResponse, error) { - rsp, err := c.IpamVrfsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVrfsCreateWithResponse(ctx context.Context, body IpamVrfsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsCreateResponse, error) { - rsp, err := c.IpamVrfsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsCreateResponse(rsp) -} - -// IpamVrfsBulkUpdateWithBodyWithResponse request with arbitrary body returning *IpamVrfsBulkUpdateResponse -func (c *ClientWithResponses) IpamVrfsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsBulkUpdateResponse, error) { - rsp, err := c.IpamVrfsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVrfsBulkUpdateWithResponse(ctx context.Context, body IpamVrfsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsBulkUpdateResponse, error) { - rsp, err := c.IpamVrfsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsBulkUpdateResponse(rsp) -} - -// IpamVrfsDestroyWithResponse request returning *IpamVrfsDestroyResponse -func (c *ClientWithResponses) IpamVrfsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVrfsDestroyResponse, error) { - rsp, err := c.IpamVrfsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsDestroyResponse(rsp) -} - -// IpamVrfsRetrieveWithResponse request returning *IpamVrfsRetrieveResponse -func (c *ClientWithResponses) IpamVrfsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*IpamVrfsRetrieveResponse, error) { - rsp, err := c.IpamVrfsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsRetrieveResponse(rsp) -} - -// IpamVrfsPartialUpdateWithBodyWithResponse request with arbitrary body returning *IpamVrfsPartialUpdateResponse -func (c *ClientWithResponses) IpamVrfsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsPartialUpdateResponse, error) { - rsp, err := c.IpamVrfsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVrfsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVrfsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsPartialUpdateResponse, error) { - rsp, err := c.IpamVrfsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsPartialUpdateResponse(rsp) -} - -// IpamVrfsUpdateWithBodyWithResponse request with arbitrary body returning *IpamVrfsUpdateResponse -func (c *ClientWithResponses) IpamVrfsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsUpdateResponse, error) { - rsp, err := c.IpamVrfsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVrfsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVrfsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsUpdateResponse, error) { - rsp, err := c.IpamVrfsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsUpdateResponse(rsp) -} - -// IpamVrfsNotesListWithResponse request returning *IpamVrfsNotesListResponse -func (c *ClientWithResponses) IpamVrfsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *IpamVrfsNotesListParams, reqEditors ...RequestEditorFn) (*IpamVrfsNotesListResponse, error) { - rsp, err := c.IpamVrfsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsNotesListResponse(rsp) -} - -// IpamVrfsNotesCreateWithBodyWithResponse request with arbitrary body returning *IpamVrfsNotesCreateResponse -func (c *ClientWithResponses) IpamVrfsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IpamVrfsNotesCreateResponse, error) { - rsp, err := c.IpamVrfsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) IpamVrfsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body IpamVrfsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IpamVrfsNotesCreateResponse, error) { - rsp, err := c.IpamVrfsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIpamVrfsNotesCreateResponse(rsp) -} - -// PluginsBgpAddressFamiliesBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpAddressFamiliesBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAddressFamiliesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesBulkDestroyResponse(rsp) -} - -// PluginsBgpAddressFamiliesListWithResponse request returning *PluginsBgpAddressFamiliesListResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesListWithResponse(ctx context.Context, params *PluginsBgpAddressFamiliesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesListResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesListResponse(rsp) -} - -// PluginsBgpAddressFamiliesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAddressFamiliesBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAddressFamiliesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpAddressFamiliesCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAddressFamiliesCreateResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesCreateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAddressFamiliesCreateWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesCreateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesCreateResponse(rsp) -} - -// PluginsBgpAddressFamiliesBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAddressFamiliesBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAddressFamiliesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpAddressFamiliesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesBulkUpdateResponse(rsp) -} - -// PluginsBgpAddressFamiliesDestroyWithResponse request returning *PluginsBgpAddressFamiliesDestroyResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesDestroyResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesDestroyResponse(rsp) -} - -// PluginsBgpAddressFamiliesRetrieveWithResponse request returning *PluginsBgpAddressFamiliesRetrieveResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpAddressFamiliesRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesRetrieveResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesRetrieve(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesRetrieveResponse(rsp) -} - -// PluginsBgpAddressFamiliesPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAddressFamiliesPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAddressFamiliesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesPartialUpdateResponse(rsp) -} - -// PluginsBgpAddressFamiliesUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAddressFamiliesUpdateResponse -func (c *ClientWithResponses) PluginsBgpAddressFamiliesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAddressFamiliesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAddressFamiliesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAddressFamiliesUpdateResponse, error) { - rsp, err := c.PluginsBgpAddressFamiliesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAddressFamiliesUpdateResponse(rsp) -} - -// PluginsBgpAutonomousSystemsBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpAutonomousSystemsBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsBulkDestroyResponse(rsp) -} - -// PluginsBgpAutonomousSystemsListWithResponse request returning *PluginsBgpAutonomousSystemsListResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsListWithResponse(ctx context.Context, params *PluginsBgpAutonomousSystemsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsListResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsListResponse(rsp) -} - -// PluginsBgpAutonomousSystemsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAutonomousSystemsBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpAutonomousSystemsCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAutonomousSystemsCreateResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsCreateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsCreateWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsCreateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsCreateResponse(rsp) -} - -// PluginsBgpAutonomousSystemsBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAutonomousSystemsBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpAutonomousSystemsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsBulkUpdateResponse(rsp) -} - -// PluginsBgpAutonomousSystemsDestroyWithResponse request returning *PluginsBgpAutonomousSystemsDestroyResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsDestroyResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsDestroyResponse(rsp) -} - -// PluginsBgpAutonomousSystemsRetrieveWithResponse request returning *PluginsBgpAutonomousSystemsRetrieveResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsRetrieveResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsRetrieveResponse(rsp) -} - -// PluginsBgpAutonomousSystemsPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAutonomousSystemsPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsPartialUpdateResponse(rsp) -} - -// PluginsBgpAutonomousSystemsUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpAutonomousSystemsUpdateResponse -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpAutonomousSystemsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpAutonomousSystemsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpAutonomousSystemsUpdateResponse, error) { - rsp, err := c.PluginsBgpAutonomousSystemsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpAutonomousSystemsUpdateResponse(rsp) -} - -// PluginsBgpPeerEndpointsBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerEndpointsBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerEndpointsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsBulkDestroyResponse(rsp) -} - -// PluginsBgpPeerEndpointsListWithResponse request returning *PluginsBgpPeerEndpointsListResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsListWithResponse(ctx context.Context, params *PluginsBgpPeerEndpointsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsListResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsListResponse(rsp) -} - -// PluginsBgpPeerEndpointsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerEndpointsBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerEndpointsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpPeerEndpointsCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerEndpointsCreateResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsCreateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerEndpointsCreateWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsCreateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsCreateResponse(rsp) -} - -// PluginsBgpPeerEndpointsBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerEndpointsBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerEndpointsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeerEndpointsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsBulkUpdateResponse(rsp) -} - -// PluginsBgpPeerEndpointsDestroyWithResponse request returning *PluginsBgpPeerEndpointsDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsDestroyResponse(rsp) -} - -// PluginsBgpPeerEndpointsRetrieveWithResponse request returning *PluginsBgpPeerEndpointsRetrieveResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerEndpointsRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsRetrieveResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsRetrieve(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsRetrieveResponse(rsp) -} - -// PluginsBgpPeerEndpointsPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerEndpointsPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerEndpointsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsPartialUpdateResponse(rsp) -} - -// PluginsBgpPeerEndpointsUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerEndpointsUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerEndpointsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerEndpointsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerEndpointsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerEndpointsUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerEndpointsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerEndpointsUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupTemplatesBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesBulkDestroyResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesListWithResponse request returning *PluginsBgpPeerGroupTemplatesListResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesListWithResponse(ctx context.Context, params *PluginsBgpPeerGroupTemplatesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesListResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesListResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupTemplatesCreateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesCreateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesCreateWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesCreateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesCreateResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupTemplatesBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupTemplatesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesBulkUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesDestroyWithResponse request returning *PluginsBgpPeerGroupTemplatesDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesDestroyResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesRetrieveWithResponse request returning *PluginsBgpPeerGroupTemplatesRetrieveResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupTemplatesRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesRetrieveResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesRetrieve(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesRetrieveResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupTemplatesPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesPartialUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupTemplatesUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupTemplatesUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupTemplatesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupTemplatesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupTemplatesUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupTemplatesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupTemplatesUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupsBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeerGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsBulkDestroyResponse(rsp) -} - -// PluginsBgpPeerGroupsListWithResponse request returning *PluginsBgpPeerGroupsListResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsListWithResponse(ctx context.Context, params *PluginsBgpPeerGroupsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsListResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsListResponse(rsp) -} - -// PluginsBgpPeerGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupsCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupsCreateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsCreateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupsCreateWithResponse(ctx context.Context, body PluginsBgpPeerGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsCreateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsCreateResponse(rsp) -} - -// PluginsBgpPeerGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupsBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeerGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsBulkUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupsDestroyWithResponse request returning *PluginsBgpPeerGroupsDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsDestroyResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsDestroyResponse(rsp) -} - -// PluginsBgpPeerGroupsRetrieveWithResponse request returning *PluginsBgpPeerGroupsRetrieveResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsBgpPeerGroupsRetrieveParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsRetrieveResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsRetrieve(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsRetrieveResponse(rsp) -} - -// PluginsBgpPeerGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupsPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsPartialUpdateResponse(rsp) -} - -// PluginsBgpPeerGroupsUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeerGroupsUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeerGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeerGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeerGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeerGroupsUpdateResponse, error) { - rsp, err := c.PluginsBgpPeerGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeerGroupsUpdateResponse(rsp) -} - -// PluginsBgpPeeringRolesBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringRolesBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringRolesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeeringRolesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesBulkDestroyResponse(rsp) -} - -// PluginsBgpPeeringRolesListWithResponse request returning *PluginsBgpPeeringRolesListResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesListWithResponse(ctx context.Context, params *PluginsBgpPeeringRolesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesListResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesListResponse(rsp) -} - -// PluginsBgpPeeringRolesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringRolesBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringRolesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringRolesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpPeeringRolesCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringRolesCreateResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesCreateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringRolesCreateWithResponse(ctx context.Context, body PluginsBgpPeeringRolesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesCreateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesCreateResponse(rsp) -} - -// PluginsBgpPeeringRolesBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringRolesBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringRolesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringRolesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesBulkUpdateResponse(rsp) -} - -// PluginsBgpPeeringRolesDestroyWithResponse request returning *PluginsBgpPeeringRolesDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesDestroyResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesDestroyResponse(rsp) -} - -// PluginsBgpPeeringRolesRetrieveWithResponse request returning *PluginsBgpPeeringRolesRetrieveResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesRetrieveResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesRetrieveResponse(rsp) -} - -// PluginsBgpPeeringRolesPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringRolesPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringRolesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesPartialUpdateResponse(rsp) -} - -// PluginsBgpPeeringRolesUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringRolesUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringRolesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringRolesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringRolesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringRolesUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringRolesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringRolesUpdateResponse(rsp) -} - -// PluginsBgpPeeringsBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringsBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeeringsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeeringsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringsBulkDestroyWithResponse(ctx context.Context, body PluginsBgpPeeringsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpPeeringsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsBulkDestroyResponse(rsp) -} - -// PluginsBgpPeeringsListWithResponse request returning *PluginsBgpPeeringsListResponse -func (c *ClientWithResponses) PluginsBgpPeeringsListWithResponse(ctx context.Context, params *PluginsBgpPeeringsListParams, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsListResponse, error) { - rsp, err := c.PluginsBgpPeeringsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsListResponse(rsp) -} - -// PluginsBgpPeeringsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringsBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpPeeringsCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringsCreateResponse -func (c *ClientWithResponses) PluginsBgpPeeringsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsCreateResponse, error) { - rsp, err := c.PluginsBgpPeeringsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringsCreateWithResponse(ctx context.Context, body PluginsBgpPeeringsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsCreateResponse, error) { - rsp, err := c.PluginsBgpPeeringsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsCreateResponse(rsp) -} - -// PluginsBgpPeeringsBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringsBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringsBulkUpdateWithResponse(ctx context.Context, body PluginsBgpPeeringsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsBulkUpdateResponse(rsp) -} - -// PluginsBgpPeeringsDestroyWithResponse request returning *PluginsBgpPeeringsDestroyResponse -func (c *ClientWithResponses) PluginsBgpPeeringsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsDestroyResponse, error) { - rsp, err := c.PluginsBgpPeeringsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsDestroyResponse(rsp) -} - -// PluginsBgpPeeringsRetrieveWithResponse request returning *PluginsBgpPeeringsRetrieveResponse -func (c *ClientWithResponses) PluginsBgpPeeringsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsRetrieveResponse, error) { - rsp, err := c.PluginsBgpPeeringsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsRetrieveResponse(rsp) -} - -// PluginsBgpPeeringsPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringsPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsPartialUpdateResponse(rsp) -} - -// PluginsBgpPeeringsUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpPeeringsUpdateResponse -func (c *ClientWithResponses) PluginsBgpPeeringsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpPeeringsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpPeeringsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpPeeringsUpdateResponse, error) { - rsp, err := c.PluginsBgpPeeringsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpPeeringsUpdateResponse(rsp) -} - -// PluginsBgpRoutingInstancesBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsBgpRoutingInstancesBulkDestroyResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpRoutingInstancesBulkDestroyWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkDestroyResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesBulkDestroyResponse(rsp) -} - -// PluginsBgpRoutingInstancesListWithResponse request returning *PluginsBgpRoutingInstancesListResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesListWithResponse(ctx context.Context, params *PluginsBgpRoutingInstancesListParams, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesListResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesListResponse(rsp) -} - -// PluginsBgpRoutingInstancesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpRoutingInstancesBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpRoutingInstancesBulkPartialUpdateWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesBulkPartialUpdateResponse(rsp) -} - -// PluginsBgpRoutingInstancesCreateWithBodyWithResponse request with arbitrary body returning *PluginsBgpRoutingInstancesCreateResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesCreateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpRoutingInstancesCreateWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesCreateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesCreateResponse(rsp) -} - -// PluginsBgpRoutingInstancesBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpRoutingInstancesBulkUpdateResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpRoutingInstancesBulkUpdateWithResponse(ctx context.Context, body PluginsBgpRoutingInstancesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesBulkUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesBulkUpdateResponse(rsp) -} - -// PluginsBgpRoutingInstancesDestroyWithResponse request returning *PluginsBgpRoutingInstancesDestroyResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesDestroyResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesDestroyResponse(rsp) -} - -// PluginsBgpRoutingInstancesRetrieveWithResponse request returning *PluginsBgpRoutingInstancesRetrieveResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesRetrieveResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesRetrieveResponse(rsp) -} - -// PluginsBgpRoutingInstancesPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpRoutingInstancesPartialUpdateResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpRoutingInstancesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesPartialUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesPartialUpdateResponse(rsp) -} - -// PluginsBgpRoutingInstancesUpdateWithBodyWithResponse request with arbitrary body returning *PluginsBgpRoutingInstancesUpdateResponse -func (c *ClientWithResponses) PluginsBgpRoutingInstancesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsBgpRoutingInstancesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsBgpRoutingInstancesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsBgpRoutingInstancesUpdateResponse, error) { - rsp, err := c.PluginsBgpRoutingInstancesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsBgpRoutingInstancesUpdateResponse(rsp) -} - -// PluginsChatopsAccessgrantBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsChatopsAccessgrantBulkDestroyResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkDestroyResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsAccessgrantBulkDestroyWithResponse(ctx context.Context, body PluginsChatopsAccessgrantBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkDestroyResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantBulkDestroyResponse(rsp) -} - -// PluginsChatopsAccessgrantListWithResponse request returning *PluginsChatopsAccessgrantListResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantListWithResponse(ctx context.Context, params *PluginsChatopsAccessgrantListParams, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantListResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantListResponse(rsp) -} - -// PluginsChatopsAccessgrantBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsAccessgrantBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsAccessgrantBulkPartialUpdateWithResponse(ctx context.Context, body PluginsChatopsAccessgrantBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantBulkPartialUpdateResponse(rsp) -} - -// PluginsChatopsAccessgrantCreateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsAccessgrantCreateResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantCreateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsAccessgrantCreateWithResponse(ctx context.Context, body PluginsChatopsAccessgrantCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantCreateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantCreateResponse(rsp) -} - -// PluginsChatopsAccessgrantBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsAccessgrantBulkUpdateResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsAccessgrantBulkUpdateWithResponse(ctx context.Context, body PluginsChatopsAccessgrantBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantBulkUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantBulkUpdateResponse(rsp) -} - -// PluginsChatopsAccessgrantDestroyWithResponse request returning *PluginsChatopsAccessgrantDestroyResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantDestroyResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantDestroyResponse(rsp) -} - -// PluginsChatopsAccessgrantRetrieveWithResponse request returning *PluginsChatopsAccessgrantRetrieveResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantRetrieveResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantRetrieveResponse(rsp) -} - -// PluginsChatopsAccessgrantPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsAccessgrantPartialUpdateResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsAccessgrantPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantPartialUpdateResponse(rsp) -} - -// PluginsChatopsAccessgrantUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsAccessgrantUpdateResponse -func (c *ClientWithResponses) PluginsChatopsAccessgrantUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsAccessgrantUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsAccessgrantUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsAccessgrantUpdateResponse, error) { - rsp, err := c.PluginsChatopsAccessgrantUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsAccessgrantUpdateResponse(rsp) -} - -// PluginsChatopsCommandtokenBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsChatopsCommandtokenBulkDestroyResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkDestroyResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsCommandtokenBulkDestroyWithResponse(ctx context.Context, body PluginsChatopsCommandtokenBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkDestroyResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenBulkDestroyResponse(rsp) -} - -// PluginsChatopsCommandtokenListWithResponse request returning *PluginsChatopsCommandtokenListResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenListWithResponse(ctx context.Context, params *PluginsChatopsCommandtokenListParams, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenListResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenListResponse(rsp) -} - -// PluginsChatopsCommandtokenBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsCommandtokenBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsCommandtokenBulkPartialUpdateWithResponse(ctx context.Context, body PluginsChatopsCommandtokenBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenBulkPartialUpdateResponse(rsp) -} - -// PluginsChatopsCommandtokenCreateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsCommandtokenCreateResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenCreateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsCommandtokenCreateWithResponse(ctx context.Context, body PluginsChatopsCommandtokenCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenCreateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenCreateResponse(rsp) -} - -// PluginsChatopsCommandtokenBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsCommandtokenBulkUpdateResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsCommandtokenBulkUpdateWithResponse(ctx context.Context, body PluginsChatopsCommandtokenBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenBulkUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenBulkUpdateResponse(rsp) -} - -// PluginsChatopsCommandtokenDestroyWithResponse request returning *PluginsChatopsCommandtokenDestroyResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenDestroyResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenDestroyResponse(rsp) -} - -// PluginsChatopsCommandtokenRetrieveWithResponse request returning *PluginsChatopsCommandtokenRetrieveResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenRetrieveResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenRetrieveResponse(rsp) -} - -// PluginsChatopsCommandtokenPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsCommandtokenPartialUpdateResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsCommandtokenPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenPartialUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenPartialUpdateResponse(rsp) -} - -// PluginsChatopsCommandtokenUpdateWithBodyWithResponse request with arbitrary body returning *PluginsChatopsCommandtokenUpdateResponse -func (c *ClientWithResponses) PluginsChatopsCommandtokenUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsChatopsCommandtokenUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsChatopsCommandtokenUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsChatopsCommandtokenUpdateResponse, error) { - rsp, err := c.PluginsChatopsCommandtokenUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsChatopsCommandtokenUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactListWithResponse request returning *PluginsCircuitMaintenanceCircuitimpactListResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceCircuitimpactListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactListResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactListResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactCreateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceCircuitimpactCreateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactCreateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactCreateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactCreateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactCreateResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactDestroyWithResponse request returning *PluginsCircuitMaintenanceCircuitimpactDestroyResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactDestroyResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactRetrieveWithResponse request returning *PluginsCircuitMaintenanceCircuitimpactRetrieveResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactRetrieveResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactRetrieveResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceCircuitimpactUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceCircuitimpactUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceCircuitimpactUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceCircuitimpactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceCircuitimpactUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceCircuitimpactUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceCircuitimpactUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceBulkDestroyWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceBulkDestroyResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceListWithResponse request returning *PluginsCircuitMaintenanceMaintenanceListResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceMaintenanceListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceListResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceListResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceCreateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceMaintenanceCreateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceCreateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceCreateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceCreateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceCreateResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceBulkUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceBulkUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceDestroyWithResponse request returning *PluginsCircuitMaintenanceMaintenanceDestroyResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceDestroyResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceRetrieveWithResponse request returning *PluginsCircuitMaintenanceMaintenanceRetrieveResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceRetrieveResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceRetrieveResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenancePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceMaintenancePartialUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenancePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenancePartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenancePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenancePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenancePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenancePartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenancePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenancePartialUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceMaintenanceUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceMaintenanceUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceMaintenanceUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceMaintenanceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceMaintenanceUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceMaintenanceUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceMaintenanceUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceNoteBulkDestroyResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteBulkDestroyWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteBulkDestroyResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteListWithResponse request returning *PluginsCircuitMaintenanceNoteListResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceNoteListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteListResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteListResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteBulkPartialUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteBulkPartialUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteCreateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceNoteCreateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteCreateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteCreateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteCreateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteCreateResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceNoteBulkUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteBulkUpdateWithResponse(ctx context.Context, body PluginsCircuitMaintenanceNoteBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteBulkUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteBulkUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteDestroyWithResponse request returning *PluginsCircuitMaintenanceNoteDestroyResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteDestroyResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteDestroyResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteRetrieveWithResponse request returning *PluginsCircuitMaintenanceNoteRetrieveResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteRetrieveResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteRetrieveResponse(rsp) -} - -// PluginsCircuitMaintenanceNotePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceNotePartialUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNotePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotePartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNotePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNotePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceNotePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNotePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotePartialUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNotePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNotePartialUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceNoteUpdateWithBodyWithResponse request with arbitrary body returning *PluginsCircuitMaintenanceNoteUpdateResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsCircuitMaintenanceNoteUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsCircuitMaintenanceNoteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNoteUpdateResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNoteUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNoteUpdateResponse(rsp) -} - -// PluginsCircuitMaintenanceNotificationsourceListWithResponse request returning *PluginsCircuitMaintenanceNotificationsourceListResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNotificationsourceListWithResponse(ctx context.Context, params *PluginsCircuitMaintenanceNotificationsourceListParams, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotificationsourceListResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNotificationsourceList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNotificationsourceListResponse(rsp) -} - -// PluginsCircuitMaintenanceNotificationsourceRetrieveWithResponse request returning *PluginsCircuitMaintenanceNotificationsourceRetrieveResponse -func (c *ClientWithResponses) PluginsCircuitMaintenanceNotificationsourceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsCircuitMaintenanceNotificationsourceRetrieveResponse, error) { - rsp, err := c.PluginsCircuitMaintenanceNotificationsourceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsCircuitMaintenanceNotificationsourceRetrieveResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxBulkDestroyWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxBulkDestroyResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxListWithResponse request returning *PluginsDataValidationEngineRulesMinMaxListResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxListWithResponse(ctx context.Context, params *PluginsDataValidationEngineRulesMinMaxListParams, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxListResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxListResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxCreateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesMinMaxCreateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxCreateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxCreateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxCreateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxCreateResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxBulkUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxBulkUpdateResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxDestroyWithResponse request returning *PluginsDataValidationEngineRulesMinMaxDestroyResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxDestroyResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxDestroyResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxRetrieveWithResponse request returning *PluginsDataValidationEngineRulesMinMaxRetrieveResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxRetrieveResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxRetrieveResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxPartialUpdateResponse(rsp) -} - -// PluginsDataValidationEngineRulesMinMaxUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesMinMaxUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesMinMaxUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesMinMaxUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesMinMaxUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesMinMaxUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesMinMaxUpdateResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesRegexBulkDestroyResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkDestroyResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexBulkDestroyWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkDestroyResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexBulkDestroyResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexListWithResponse request returning *PluginsDataValidationEngineRulesRegexListResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexListWithResponse(ctx context.Context, params *PluginsDataValidationEngineRulesRegexListParams, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexListResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexListResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexCreateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesRegexCreateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexCreateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexCreateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexCreateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexCreateResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesRegexBulkUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexBulkUpdateWithResponse(ctx context.Context, body PluginsDataValidationEngineRulesRegexBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexBulkUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexBulkUpdateResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexDestroyWithResponse request returning *PluginsDataValidationEngineRulesRegexDestroyResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexDestroyResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexDestroyResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexRetrieveWithResponse request returning *PluginsDataValidationEngineRulesRegexRetrieveResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexRetrieveResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexRetrieveResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesRegexPartialUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexPartialUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexPartialUpdateResponse(rsp) -} - -// PluginsDataValidationEngineRulesRegexUpdateWithBodyWithResponse request with arbitrary body returning *PluginsDataValidationEngineRulesRegexUpdateResponse -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDataValidationEngineRulesRegexUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsDataValidationEngineRulesRegexUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDataValidationEngineRulesRegexUpdateResponse, error) { - rsp, err := c.PluginsDataValidationEngineRulesRegexUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDataValidationEngineRulesRegexUpdateResponse(rsp) -} - -// PluginsDeviceOnboardingOnboardingListWithResponse request returning *PluginsDeviceOnboardingOnboardingListResponse -func (c *ClientWithResponses) PluginsDeviceOnboardingOnboardingListWithResponse(ctx context.Context, params *PluginsDeviceOnboardingOnboardingListParams, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingListResponse, error) { - rsp, err := c.PluginsDeviceOnboardingOnboardingList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDeviceOnboardingOnboardingListResponse(rsp) -} - -// PluginsDeviceOnboardingOnboardingCreateWithBodyWithResponse request with arbitrary body returning *PluginsDeviceOnboardingOnboardingCreateResponse -func (c *ClientWithResponses) PluginsDeviceOnboardingOnboardingCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingCreateResponse, error) { - rsp, err := c.PluginsDeviceOnboardingOnboardingCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDeviceOnboardingOnboardingCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsDeviceOnboardingOnboardingCreateWithResponse(ctx context.Context, body PluginsDeviceOnboardingOnboardingCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingCreateResponse, error) { - rsp, err := c.PluginsDeviceOnboardingOnboardingCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDeviceOnboardingOnboardingCreateResponse(rsp) -} - -// PluginsDeviceOnboardingOnboardingDestroyWithResponse request returning *PluginsDeviceOnboardingOnboardingDestroyResponse -func (c *ClientWithResponses) PluginsDeviceOnboardingOnboardingDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingDestroyResponse, error) { - rsp, err := c.PluginsDeviceOnboardingOnboardingDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDeviceOnboardingOnboardingDestroyResponse(rsp) -} - -// PluginsDeviceOnboardingOnboardingRetrieveWithResponse request returning *PluginsDeviceOnboardingOnboardingRetrieveResponse -func (c *ClientWithResponses) PluginsDeviceOnboardingOnboardingRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsDeviceOnboardingOnboardingRetrieveResponse, error) { - rsp, err := c.PluginsDeviceOnboardingOnboardingRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsDeviceOnboardingOnboardingRetrieveResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectGroupBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupBulkDestroyResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupListWithResponse request returning *PluginsFirewallAddressObjectGroupListResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupListWithResponse(ctx context.Context, params *PluginsFirewallAddressObjectGroupListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupListResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupListResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectGroupCreateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupCreateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupCreateResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectGroupBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupBulkUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupDestroyWithResponse request returning *PluginsFirewallAddressObjectGroupDestroyResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupDestroyResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupDestroyResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupRetrieveWithResponse request returning *PluginsFirewallAddressObjectGroupRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupRetrieveResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupRetrieveResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectGroupPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupPartialUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectGroupUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupNotesListWithResponse request returning *PluginsFirewallAddressObjectGroupNotesListResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupNotesListResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupNotesListResponse(rsp) -} - -// PluginsFirewallAddressObjectGroupNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectGroupNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectGroupNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectGroupNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectGroupNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectGroupNotesCreateResponse(rsp) -} - -// PluginsFirewallAddressObjectBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallAddressObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectBulkDestroyResponse(rsp) -} - -// PluginsFirewallAddressObjectListWithResponse request returning *PluginsFirewallAddressObjectListResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectListWithResponse(ctx context.Context, params *PluginsFirewallAddressObjectListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectListResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectListResponse(rsp) -} - -// PluginsFirewallAddressObjectBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectCreateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectCreateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectCreateResponse(rsp) -} - -// PluginsFirewallAddressObjectBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallAddressObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectBulkUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectDestroyWithResponse request returning *PluginsFirewallAddressObjectDestroyResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectDestroyResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectDestroyResponse(rsp) -} - -// PluginsFirewallAddressObjectRetrieveWithResponse request returning *PluginsFirewallAddressObjectRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectRetrieveResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectRetrieveResponse(rsp) -} - -// PluginsFirewallAddressObjectPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectPartialUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectUpdateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectUpdateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectUpdateResponse(rsp) -} - -// PluginsFirewallAddressObjectNotesListWithResponse request returning *PluginsFirewallAddressObjectNotesListResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallAddressObjectNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectNotesListResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectNotesListResponse(rsp) -} - -// PluginsFirewallAddressObjectNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallAddressObjectNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallAddressObjectNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallAddressObjectNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallAddressObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallAddressObjectNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallAddressObjectNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallAddressObjectNotesCreateResponse(rsp) -} - -// PluginsFirewallCapircaPolicyBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallCapircaPolicyBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyBulkDestroyResponse(rsp) -} - -// PluginsFirewallCapircaPolicyListWithResponse request returning *PluginsFirewallCapircaPolicyListResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyListWithResponse(ctx context.Context, params *PluginsFirewallCapircaPolicyListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyListResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyListResponse(rsp) -} - -// PluginsFirewallCapircaPolicyBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallCapircaPolicyBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallCapircaPolicyCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallCapircaPolicyCreateResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyCreateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyCreateWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyCreateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyCreateResponse(rsp) -} - -// PluginsFirewallCapircaPolicyBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallCapircaPolicyBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallCapircaPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyBulkUpdateResponse(rsp) -} - -// PluginsFirewallCapircaPolicyDestroyWithResponse request returning *PluginsFirewallCapircaPolicyDestroyResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyDestroyResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyDestroyResponse(rsp) -} - -// PluginsFirewallCapircaPolicyRetrieveWithResponse request returning *PluginsFirewallCapircaPolicyRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyRetrieveResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyRetrieveResponse(rsp) -} - -// PluginsFirewallCapircaPolicyPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallCapircaPolicyPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyPartialUpdateResponse(rsp) -} - -// PluginsFirewallCapircaPolicyUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallCapircaPolicyUpdateResponse -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallCapircaPolicyUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallCapircaPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallCapircaPolicyUpdateResponse, error) { - rsp, err := c.PluginsFirewallCapircaPolicyUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallCapircaPolicyUpdateResponse(rsp) -} - -// PluginsFirewallFqdnBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallFqdnBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallFqdnBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallFqdnBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallFqdnBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallFqdnBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallFqdnBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnBulkDestroyResponse(rsp) -} - -// PluginsFirewallFqdnListWithResponse request returning *PluginsFirewallFqdnListResponse -func (c *ClientWithResponses) PluginsFirewallFqdnListWithResponse(ctx context.Context, params *PluginsFirewallFqdnListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnListResponse, error) { - rsp, err := c.PluginsFirewallFqdnList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnListResponse(rsp) -} - -// PluginsFirewallFqdnBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallFqdnBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallFqdnBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallFqdnBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallFqdnBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallFqdnCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallFqdnCreateResponse -func (c *ClientWithResponses) PluginsFirewallFqdnCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnCreateResponse, error) { - rsp, err := c.PluginsFirewallFqdnCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallFqdnCreateWithResponse(ctx context.Context, body PluginsFirewallFqdnCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnCreateResponse, error) { - rsp, err := c.PluginsFirewallFqdnCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnCreateResponse(rsp) -} - -// PluginsFirewallFqdnBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallFqdnBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallFqdnBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallFqdnBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallFqdnBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnBulkUpdateResponse(rsp) -} - -// PluginsFirewallFqdnDestroyWithResponse request returning *PluginsFirewallFqdnDestroyResponse -func (c *ClientWithResponses) PluginsFirewallFqdnDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnDestroyResponse, error) { - rsp, err := c.PluginsFirewallFqdnDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnDestroyResponse(rsp) -} - -// PluginsFirewallFqdnRetrieveWithResponse request returning *PluginsFirewallFqdnRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallFqdnRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnRetrieveResponse, error) { - rsp, err := c.PluginsFirewallFqdnRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnRetrieveResponse(rsp) -} - -// PluginsFirewallFqdnPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallFqdnPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallFqdnPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallFqdnPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnPartialUpdateResponse(rsp) -} - -// PluginsFirewallFqdnUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallFqdnUpdateResponse -func (c *ClientWithResponses) PluginsFirewallFqdnUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallFqdnUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnUpdateResponse, error) { - rsp, err := c.PluginsFirewallFqdnUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnUpdateResponse(rsp) -} - -// PluginsFirewallFqdnNotesListWithResponse request returning *PluginsFirewallFqdnNotesListResponse -func (c *ClientWithResponses) PluginsFirewallFqdnNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallFqdnNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnNotesListResponse, error) { - rsp, err := c.PluginsFirewallFqdnNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnNotesListResponse(rsp) -} - -// PluginsFirewallFqdnNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallFqdnNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallFqdnNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallFqdnNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallFqdnNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallFqdnNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallFqdnNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallFqdnNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallFqdnNotesCreateResponse(rsp) -} - -// PluginsFirewallIpRangeBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallIpRangeBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallIpRangeBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallIpRangeBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallIpRangeBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallIpRangeBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeBulkDestroyResponse(rsp) -} - -// PluginsFirewallIpRangeListWithResponse request returning *PluginsFirewallIpRangeListResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeListWithResponse(ctx context.Context, params *PluginsFirewallIpRangeListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeListResponse, error) { - rsp, err := c.PluginsFirewallIpRangeList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeListResponse(rsp) -} - -// PluginsFirewallIpRangeBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallIpRangeBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallIpRangeBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallIpRangeBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallIpRangeCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallIpRangeCreateResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeCreateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallIpRangeCreateWithResponse(ctx context.Context, body PluginsFirewallIpRangeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeCreateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeCreateResponse(rsp) -} - -// PluginsFirewallIpRangeBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallIpRangeBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallIpRangeBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallIpRangeBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeBulkUpdateResponse(rsp) -} - -// PluginsFirewallIpRangeDestroyWithResponse request returning *PluginsFirewallIpRangeDestroyResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeDestroyResponse, error) { - rsp, err := c.PluginsFirewallIpRangeDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeDestroyResponse(rsp) -} - -// PluginsFirewallIpRangeRetrieveWithResponse request returning *PluginsFirewallIpRangeRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeRetrieveResponse, error) { - rsp, err := c.PluginsFirewallIpRangeRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeRetrieveResponse(rsp) -} - -// PluginsFirewallIpRangePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallIpRangePartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallIpRangePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallIpRangePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangePartialUpdateResponse(rsp) -} - -// PluginsFirewallIpRangeUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallIpRangeUpdateResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallIpRangeUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeUpdateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeUpdateResponse(rsp) -} - -// PluginsFirewallIpRangeNotesListWithResponse request returning *PluginsFirewallIpRangeNotesListResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallIpRangeNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeNotesListResponse, error) { - rsp, err := c.PluginsFirewallIpRangeNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeNotesListResponse(rsp) -} - -// PluginsFirewallIpRangeNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallIpRangeNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallIpRangeNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallIpRangeNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallIpRangeNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallIpRangeNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallIpRangeNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallIpRangeNotesCreateResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyRuleBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleBulkDestroyResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleListWithResponse request returning *PluginsFirewallNatPolicyRuleListResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleListWithResponse(ctx context.Context, params *PluginsFirewallNatPolicyRuleListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleListResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleListResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyRuleCreateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleCreateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleCreateResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyRuleBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleBulkUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleDestroyWithResponse request returning *PluginsFirewallNatPolicyRuleDestroyResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleDestroyResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleDestroyResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleRetrieveWithResponse request returning *PluginsFirewallNatPolicyRuleRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleRetrieveResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleRetrieveResponse(rsp) -} - -// PluginsFirewallNatPolicyRulePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyRulePartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRulePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRulePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRulePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRulePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyRulePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRulePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRulePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRulePartialUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyRuleUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleNotesListWithResponse request returning *PluginsFirewallNatPolicyRuleNotesListResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleNotesListResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleNotesListResponse(rsp) -} - -// PluginsFirewallNatPolicyRuleNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyRuleNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyRuleNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRuleNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRuleNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRuleNotesCreateResponse(rsp) -} - -// PluginsFirewallNatPolicyBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallNatPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyBulkDestroyResponse(rsp) -} - -// PluginsFirewallNatPolicyListWithResponse request returning *PluginsFirewallNatPolicyListResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyListWithResponse(ctx context.Context, params *PluginsFirewallNatPolicyListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyListResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyListResponse(rsp) -} - -// PluginsFirewallNatPolicyBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyCreateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyCreateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyCreateResponse(rsp) -} - -// PluginsFirewallNatPolicyBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallNatPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyBulkUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyDestroyWithResponse request returning *PluginsFirewallNatPolicyDestroyResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyDestroyResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyDestroyResponse(rsp) -} - -// PluginsFirewallNatPolicyRetrieveWithResponse request returning *PluginsFirewallNatPolicyRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyRetrieveResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyRetrieveResponse(rsp) -} - -// PluginsFirewallNatPolicyPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyPartialUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyUpdateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyUpdateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyUpdateResponse(rsp) -} - -// PluginsFirewallNatPolicyNotesListWithResponse request returning *PluginsFirewallNatPolicyNotesListResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallNatPolicyNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyNotesListResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyNotesListResponse(rsp) -} - -// PluginsFirewallNatPolicyNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallNatPolicyNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallNatPolicyNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallNatPolicyNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallNatPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallNatPolicyNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallNatPolicyNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallNatPolicyNotesCreateResponse(rsp) -} - -// PluginsFirewallPolicyRuleBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyRuleBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyRuleBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleBulkDestroyResponse(rsp) -} - -// PluginsFirewallPolicyRuleListWithResponse request returning *PluginsFirewallPolicyRuleListResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleListWithResponse(ctx context.Context, params *PluginsFirewallPolicyRuleListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleListResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleListResponse(rsp) -} - -// PluginsFirewallPolicyRuleBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyRuleBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyRuleBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallPolicyRuleCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyRuleCreateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyRuleCreateWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleCreateResponse(rsp) -} - -// PluginsFirewallPolicyRuleBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyRuleBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyRuleBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleBulkUpdateResponse(rsp) -} - -// PluginsFirewallPolicyRuleDestroyWithResponse request returning *PluginsFirewallPolicyRuleDestroyResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleDestroyResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleDestroyResponse(rsp) -} - -// PluginsFirewallPolicyRuleRetrieveWithResponse request returning *PluginsFirewallPolicyRuleRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleRetrieveResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleRetrieveResponse(rsp) -} - -// PluginsFirewallPolicyRulePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyRulePartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRulePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRulePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRulePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRulePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyRulePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRulePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRulePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRulePartialUpdateResponse(rsp) -} - -// PluginsFirewallPolicyRuleUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyRuleUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyRuleUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleUpdateResponse(rsp) -} - -// PluginsFirewallPolicyRuleNotesListWithResponse request returning *PluginsFirewallPolicyRuleNotesListResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyRuleNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleNotesListResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleNotesListResponse(rsp) -} - -// PluginsFirewallPolicyRuleNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyRuleNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRuleNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyRuleNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyRuleNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRuleNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyRuleNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRuleNotesCreateResponse(rsp) -} - -// PluginsFirewallPolicyBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallPolicyBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallPolicyBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallPolicyBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallPolicyBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyBulkDestroyResponse(rsp) -} - -// PluginsFirewallPolicyListWithResponse request returning *PluginsFirewallPolicyListResponse -func (c *ClientWithResponses) PluginsFirewallPolicyListWithResponse(ctx context.Context, params *PluginsFirewallPolicyListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyListResponse, error) { - rsp, err := c.PluginsFirewallPolicyList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyListResponse(rsp) -} - -// PluginsFirewallPolicyBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallPolicyCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyCreateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyCreateWithResponse(ctx context.Context, body PluginsFirewallPolicyCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyCreateResponse(rsp) -} - -// PluginsFirewallPolicyBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallPolicyBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyBulkUpdateResponse(rsp) -} - -// PluginsFirewallPolicyDestroyWithResponse request returning *PluginsFirewallPolicyDestroyResponse -func (c *ClientWithResponses) PluginsFirewallPolicyDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyDestroyResponse, error) { - rsp, err := c.PluginsFirewallPolicyDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyDestroyResponse(rsp) -} - -// PluginsFirewallPolicyRetrieveWithResponse request returning *PluginsFirewallPolicyRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallPolicyRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyRetrieveResponse, error) { - rsp, err := c.PluginsFirewallPolicyRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyRetrieveResponse(rsp) -} - -// PluginsFirewallPolicyPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyPartialUpdateResponse(rsp) -} - -// PluginsFirewallPolicyUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyUpdateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyUpdateResponse, error) { - rsp, err := c.PluginsFirewallPolicyUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyUpdateResponse(rsp) -} - -// PluginsFirewallPolicyNotesListWithResponse request returning *PluginsFirewallPolicyNotesListResponse -func (c *ClientWithResponses) PluginsFirewallPolicyNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallPolicyNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyNotesListResponse, error) { - rsp, err := c.PluginsFirewallPolicyNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyNotesListResponse(rsp) -} - -// PluginsFirewallPolicyNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallPolicyNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallPolicyNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallPolicyNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallPolicyNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallPolicyNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallPolicyNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallPolicyNotesCreateResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectGroupBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupBulkDestroyResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupListWithResponse request returning *PluginsFirewallServiceObjectGroupListResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupListWithResponse(ctx context.Context, params *PluginsFirewallServiceObjectGroupListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupListResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupListResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectGroupCreateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupCreateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupCreateResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectGroupBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupBulkUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupDestroyWithResponse request returning *PluginsFirewallServiceObjectGroupDestroyResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupDestroyResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupDestroyResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupRetrieveWithResponse request returning *PluginsFirewallServiceObjectGroupRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupRetrieveResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupRetrieveResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectGroupPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupPartialUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectGroupUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupNotesListWithResponse request returning *PluginsFirewallServiceObjectGroupNotesListResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupNotesListResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupNotesListResponse(rsp) -} - -// PluginsFirewallServiceObjectGroupNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectGroupNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectGroupNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectGroupNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectGroupNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectGroupNotesCreateResponse(rsp) -} - -// PluginsFirewallServiceObjectBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallServiceObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectBulkDestroyResponse(rsp) -} - -// PluginsFirewallServiceObjectListWithResponse request returning *PluginsFirewallServiceObjectListResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectListWithResponse(ctx context.Context, params *PluginsFirewallServiceObjectListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectListResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectListResponse(rsp) -} - -// PluginsFirewallServiceObjectBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectCreateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectCreateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectCreateResponse(rsp) -} - -// PluginsFirewallServiceObjectBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallServiceObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectBulkUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectDestroyWithResponse request returning *PluginsFirewallServiceObjectDestroyResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectDestroyResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectDestroyResponse(rsp) -} - -// PluginsFirewallServiceObjectRetrieveWithResponse request returning *PluginsFirewallServiceObjectRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectRetrieveResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectRetrieveResponse(rsp) -} - -// PluginsFirewallServiceObjectPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectPartialUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectUpdateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectUpdateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectUpdateResponse(rsp) -} - -// PluginsFirewallServiceObjectNotesListWithResponse request returning *PluginsFirewallServiceObjectNotesListResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallServiceObjectNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectNotesListResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectNotesListResponse(rsp) -} - -// PluginsFirewallServiceObjectNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallServiceObjectNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallServiceObjectNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallServiceObjectNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallServiceObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallServiceObjectNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallServiceObjectNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallServiceObjectNotesCreateResponse(rsp) -} - -// PluginsFirewallUserObjectGroupBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectGroupBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupBulkDestroyResponse(rsp) -} - -// PluginsFirewallUserObjectGroupListWithResponse request returning *PluginsFirewallUserObjectGroupListResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupListWithResponse(ctx context.Context, params *PluginsFirewallUserObjectGroupListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupListResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupListResponse(rsp) -} - -// PluginsFirewallUserObjectGroupBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectGroupBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectGroupCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectGroupCreateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupCreateWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupCreateResponse(rsp) -} - -// PluginsFirewallUserObjectGroupBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectGroupBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectGroupBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupBulkUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectGroupDestroyWithResponse request returning *PluginsFirewallUserObjectGroupDestroyResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupDestroyResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupDestroyResponse(rsp) -} - -// PluginsFirewallUserObjectGroupRetrieveWithResponse request returning *PluginsFirewallUserObjectGroupRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupRetrieveResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupRetrieveResponse(rsp) -} - -// PluginsFirewallUserObjectGroupPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectGroupPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupPartialUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectGroupUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectGroupUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectGroupNotesListWithResponse request returning *PluginsFirewallUserObjectGroupNotesListResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectGroupNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupNotesListResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupNotesListResponse(rsp) -} - -// PluginsFirewallUserObjectGroupNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectGroupNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectGroupNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectGroupNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectGroupNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectGroupNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectGroupNotesCreateResponse(rsp) -} - -// PluginsFirewallUserObjectBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallUserObjectBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallUserObjectBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallUserObjectBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectBulkDestroyResponse(rsp) -} - -// PluginsFirewallUserObjectListWithResponse request returning *PluginsFirewallUserObjectListResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectListWithResponse(ctx context.Context, params *PluginsFirewallUserObjectListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectListResponse, error) { - rsp, err := c.PluginsFirewallUserObjectList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectListResponse(rsp) -} - -// PluginsFirewallUserObjectBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectCreateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectCreateWithResponse(ctx context.Context, body PluginsFirewallUserObjectCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectCreateResponse(rsp) -} - -// PluginsFirewallUserObjectBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallUserObjectBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectBulkUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectDestroyWithResponse request returning *PluginsFirewallUserObjectDestroyResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectDestroyResponse, error) { - rsp, err := c.PluginsFirewallUserObjectDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectDestroyResponse(rsp) -} - -// PluginsFirewallUserObjectRetrieveWithResponse request returning *PluginsFirewallUserObjectRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectRetrieveResponse, error) { - rsp, err := c.PluginsFirewallUserObjectRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectRetrieveResponse(rsp) -} - -// PluginsFirewallUserObjectPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectPartialUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectUpdateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectUpdateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectUpdateResponse(rsp) -} - -// PluginsFirewallUserObjectNotesListWithResponse request returning *PluginsFirewallUserObjectNotesListResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallUserObjectNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectNotesListResponse, error) { - rsp, err := c.PluginsFirewallUserObjectNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectNotesListResponse(rsp) -} - -// PluginsFirewallUserObjectNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallUserObjectNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallUserObjectNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallUserObjectNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallUserObjectNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallUserObjectNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallUserObjectNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallUserObjectNotesCreateResponse(rsp) -} - -// PluginsFirewallZoneBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsFirewallZoneBulkDestroyResponse -func (c *ClientWithResponses) PluginsFirewallZoneBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallZoneBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallZoneBulkDestroyWithResponse(ctx context.Context, body PluginsFirewallZoneBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkDestroyResponse, error) { - rsp, err := c.PluginsFirewallZoneBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneBulkDestroyResponse(rsp) -} - -// PluginsFirewallZoneListWithResponse request returning *PluginsFirewallZoneListResponse -func (c *ClientWithResponses) PluginsFirewallZoneListWithResponse(ctx context.Context, params *PluginsFirewallZoneListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneListResponse, error) { - rsp, err := c.PluginsFirewallZoneList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneListResponse(rsp) -} - -// PluginsFirewallZoneBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallZoneBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallZoneBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallZoneBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallZoneBulkPartialUpdateWithResponse(ctx context.Context, body PluginsFirewallZoneBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallZoneBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneBulkPartialUpdateResponse(rsp) -} - -// PluginsFirewallZoneCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallZoneCreateResponse -func (c *ClientWithResponses) PluginsFirewallZoneCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneCreateResponse, error) { - rsp, err := c.PluginsFirewallZoneCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallZoneCreateWithResponse(ctx context.Context, body PluginsFirewallZoneCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneCreateResponse, error) { - rsp, err := c.PluginsFirewallZoneCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneCreateResponse(rsp) -} - -// PluginsFirewallZoneBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallZoneBulkUpdateResponse -func (c *ClientWithResponses) PluginsFirewallZoneBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallZoneBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallZoneBulkUpdateWithResponse(ctx context.Context, body PluginsFirewallZoneBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneBulkUpdateResponse, error) { - rsp, err := c.PluginsFirewallZoneBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneBulkUpdateResponse(rsp) -} - -// PluginsFirewallZoneDestroyWithResponse request returning *PluginsFirewallZoneDestroyResponse -func (c *ClientWithResponses) PluginsFirewallZoneDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneDestroyResponse, error) { - rsp, err := c.PluginsFirewallZoneDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneDestroyResponse(rsp) -} - -// PluginsFirewallZoneRetrieveWithResponse request returning *PluginsFirewallZoneRetrieveResponse -func (c *ClientWithResponses) PluginsFirewallZoneRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneRetrieveResponse, error) { - rsp, err := c.PluginsFirewallZoneRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneRetrieveResponse(rsp) -} - -// PluginsFirewallZonePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallZonePartialUpdateResponse -func (c *ClientWithResponses) PluginsFirewallZonePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZonePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallZonePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZonePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallZonePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZonePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZonePartialUpdateResponse, error) { - rsp, err := c.PluginsFirewallZonePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZonePartialUpdateResponse(rsp) -} - -// PluginsFirewallZoneUpdateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallZoneUpdateResponse -func (c *ClientWithResponses) PluginsFirewallZoneUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneUpdateResponse, error) { - rsp, err := c.PluginsFirewallZoneUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallZoneUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneUpdateResponse, error) { - rsp, err := c.PluginsFirewallZoneUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneUpdateResponse(rsp) -} - -// PluginsFirewallZoneNotesListWithResponse request returning *PluginsFirewallZoneNotesListResponse -func (c *ClientWithResponses) PluginsFirewallZoneNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *PluginsFirewallZoneNotesListParams, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneNotesListResponse, error) { - rsp, err := c.PluginsFirewallZoneNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneNotesListResponse(rsp) -} - -// PluginsFirewallZoneNotesCreateWithBodyWithResponse request with arbitrary body returning *PluginsFirewallZoneNotesCreateResponse -func (c *ClientWithResponses) PluginsFirewallZoneNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallZoneNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsFirewallZoneNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsFirewallZoneNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsFirewallZoneNotesCreateResponse, error) { - rsp, err := c.PluginsFirewallZoneNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsFirewallZoneNotesCreateResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceFeatureBulkDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureBulkDestroyResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureListWithResponse request returning *PluginsGoldenConfigComplianceFeatureListResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureListWithResponse(ctx context.Context, params *PluginsGoldenConfigComplianceFeatureListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureListResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureListResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureCreateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceFeatureCreateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureCreateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureCreateResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceFeatureBulkUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceFeatureBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureBulkUpdateResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureDestroyWithResponse request returning *PluginsGoldenConfigComplianceFeatureDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureDestroyResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureRetrieveWithResponse request returning *PluginsGoldenConfigComplianceFeatureRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureRetrieveResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeaturePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceFeaturePartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeaturePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeaturePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeaturePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeaturePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeaturePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeaturePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeaturePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeaturePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeaturePartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigComplianceFeatureUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceFeatureUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceFeatureUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceFeatureUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceFeatureUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceFeatureUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceFeatureUpdateResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceRuleBulkDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleBulkDestroyResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleListWithResponse request returning *PluginsGoldenConfigComplianceRuleListResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleListWithResponse(ctx context.Context, params *PluginsGoldenConfigComplianceRuleListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleListResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleListResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleCreateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceRuleCreateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleCreateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleCreateResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceRuleBulkUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigComplianceRuleBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleBulkUpdateResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleDestroyWithResponse request returning *PluginsGoldenConfigComplianceRuleDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleDestroyResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleRetrieveWithResponse request returning *PluginsGoldenConfigComplianceRuleRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleRetrieveResponse(rsp) -} - -// PluginsGoldenConfigComplianceRulePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceRulePartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRulePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRulePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRulePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRulePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRulePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRulePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRulePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRulePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRulePartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigComplianceRuleUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigComplianceRuleUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigComplianceRuleUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigComplianceRuleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigComplianceRuleUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigComplianceRuleUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigComplianceRuleUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigComplianceBulkDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceBulkDestroyResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceListWithResponse request returning *PluginsGoldenConfigConfigComplianceListResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceListWithResponse(ctx context.Context, params *PluginsGoldenConfigConfigComplianceListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceListResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceListResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceCreateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigComplianceCreateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceCreateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceCreateResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigComplianceBulkUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigComplianceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceBulkUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceDestroyWithResponse request returning *PluginsGoldenConfigConfigComplianceDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceDestroyResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceRetrieveWithResponse request returning *PluginsGoldenConfigConfigComplianceRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceRetrieveResponse(rsp) -} - -// PluginsGoldenConfigConfigCompliancePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigCompliancePartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigCompliancePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigCompliancePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigCompliancePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigCompliancePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigCompliancePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigCompliancePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigCompliancePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigCompliancePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigCompliancePartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigComplianceUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigComplianceUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigComplianceUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigComplianceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigComplianceUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigComplianceUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigComplianceUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigPostprocessingRetrieveWithResponse request returning *PluginsGoldenConfigConfigPostprocessingRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigPostprocessingRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigPostprocessingRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigPostprocessingRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigPostprocessingRetrieveResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigRemoveBulkDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveBulkDestroyResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveListWithResponse request returning *PluginsGoldenConfigConfigRemoveListResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveListWithResponse(ctx context.Context, params *PluginsGoldenConfigConfigRemoveListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveListResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveListResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveCreateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigRemoveCreateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveCreateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveCreateResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigRemoveBulkUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigRemoveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveBulkUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveDestroyWithResponse request returning *PluginsGoldenConfigConfigRemoveDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveDestroyResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveRetrieveWithResponse request returning *PluginsGoldenConfigConfigRemoveRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveRetrieveResponse(rsp) -} - -// PluginsGoldenConfigConfigRemovePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigRemovePartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemovePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemovePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemovePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemovePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemovePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemovePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemovePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemovePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemovePartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigRemoveUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigRemoveUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigRemoveUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigRemoveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigRemoveUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigRemoveUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigRemoveUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigReplaceBulkDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceBulkDestroyResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceListWithResponse request returning *PluginsGoldenConfigConfigReplaceListResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceListWithResponse(ctx context.Context, params *PluginsGoldenConfigConfigReplaceListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceListResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceListResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceCreateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigReplaceCreateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceCreateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceCreateResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigReplaceBulkUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigConfigReplaceBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceBulkUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceDestroyWithResponse request returning *PluginsGoldenConfigConfigReplaceDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceDestroyResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceRetrieveWithResponse request returning *PluginsGoldenConfigConfigReplaceRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceRetrieveResponse(rsp) -} - -// PluginsGoldenConfigConfigReplacePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigReplacePartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplacePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplacePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplacePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplacePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplacePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplacePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplacePartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplacePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplacePartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigConfigReplaceUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigConfigReplaceUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigConfigReplaceUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigConfigReplaceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigConfigReplaceUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigConfigReplaceUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigConfigReplaceUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsListWithResponse request returning *PluginsGoldenConfigGoldenConfigSettingsListResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsListWithResponse(ctx context.Context, params *PluginsGoldenConfigGoldenConfigSettingsListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsListResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsListResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsCreateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigSettingsCreateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsCreateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsCreateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsDestroyWithResponse request returning *PluginsGoldenConfigGoldenConfigSettingsDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsDestroyResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsRetrieveWithResponse request returning *PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsRetrieveResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigSettingsUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigSettingsUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigSettingsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigSettingsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigSettingsUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigSettingsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigSettingsUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigBulkDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigBulkDestroyWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigBulkDestroyResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigListWithResponse request returning *PluginsGoldenConfigGoldenConfigListResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigListWithResponse(ctx context.Context, params *PluginsGoldenConfigGoldenConfigListParams, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigListResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigListResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigCreateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigCreateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigCreateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigCreateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigCreateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigBulkUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigBulkUpdateWithResponse(ctx context.Context, body PluginsGoldenConfigGoldenConfigBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigBulkUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigBulkUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigDestroyWithResponse request returning *PluginsGoldenConfigGoldenConfigDestroyResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigDestroyResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigDestroyResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigRetrieveWithResponse request returning *PluginsGoldenConfigGoldenConfigRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigRetrieveResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigPartialUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigPartialUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigPartialUpdateResponse(rsp) -} - -// PluginsGoldenConfigGoldenConfigUpdateWithBodyWithResponse request with arbitrary body returning *PluginsGoldenConfigGoldenConfigUpdateResponse -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsGoldenConfigGoldenConfigUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsGoldenConfigGoldenConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigGoldenConfigUpdateResponse, error) { - rsp, err := c.PluginsGoldenConfigGoldenConfigUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigGoldenConfigUpdateResponse(rsp) -} - -// PluginsGoldenConfigSotaggRetrieveWithResponse request returning *PluginsGoldenConfigSotaggRetrieveResponse -func (c *ClientWithResponses) PluginsGoldenConfigSotaggRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsGoldenConfigSotaggRetrieveResponse, error) { - rsp, err := c.PluginsGoldenConfigSotaggRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsGoldenConfigSotaggRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtContactListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContactListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContactCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContactUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContactUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContactUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContactUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContactUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtContractListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtContractListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContractCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtContractUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtContractUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtContractUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtContractUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtContractUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtCveListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtCveListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtCveCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtCveUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtCveUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtCveUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtCveUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtCveUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtHardwareListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtHardwareListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtHardwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtHardwareUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtProviderListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtProviderListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtProviderUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtProviderUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareImageListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtSoftwareListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityListWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityListWithResponse(ctx context.Context, params *PluginsNautobotDeviceLifecycleMgmtVulnerabilityListParams, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithResponse(ctx context.Context, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveWithResponse request returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse(rsp) -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithBodyWithResponse request with arbitrary body returning *PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse(rsp) -} - -func (c *ClientWithResponses) PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse, error) { - rsp, err := c.PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse(rsp) -} - -// StatusRetrieveWithResponse request returning *StatusRetrieveResponse -func (c *ClientWithResponses) StatusRetrieveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatusRetrieveResponse, error) { - rsp, err := c.StatusRetrieve(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseStatusRetrieveResponse(rsp) -} - -// SwaggerJsonRetrieveWithResponse request returning *SwaggerJsonRetrieveResponse -func (c *ClientWithResponses) SwaggerJsonRetrieveWithResponse(ctx context.Context, params *SwaggerJsonRetrieveParams, reqEditors ...RequestEditorFn) (*SwaggerJsonRetrieveResponse, error) { - rsp, err := c.SwaggerJsonRetrieve(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseSwaggerJsonRetrieveResponse(rsp) -} - -// SwaggerYamlRetrieveWithResponse request returning *SwaggerYamlRetrieveResponse -func (c *ClientWithResponses) SwaggerYamlRetrieveWithResponse(ctx context.Context, params *SwaggerYamlRetrieveParams, reqEditors ...RequestEditorFn) (*SwaggerYamlRetrieveResponse, error) { - rsp, err := c.SwaggerYamlRetrieve(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseSwaggerYamlRetrieveResponse(rsp) -} - -// SwaggerRetrieveWithResponse request returning *SwaggerRetrieveResponse -func (c *ClientWithResponses) SwaggerRetrieveWithResponse(ctx context.Context, params *SwaggerRetrieveParams, reqEditors ...RequestEditorFn) (*SwaggerRetrieveResponse, error) { - rsp, err := c.SwaggerRetrieve(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseSwaggerRetrieveResponse(rsp) -} - -// TenancyTenantGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *TenancyTenantGroupsBulkDestroyResponse -func (c *ClientWithResponses) TenancyTenantGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkDestroyResponse, error) { - rsp, err := c.TenancyTenantGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantGroupsBulkDestroyWithResponse(ctx context.Context, body TenancyTenantGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkDestroyResponse, error) { - rsp, err := c.TenancyTenantGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsBulkDestroyResponse(rsp) -} - -// TenancyTenantGroupsListWithResponse request returning *TenancyTenantGroupsListResponse -func (c *ClientWithResponses) TenancyTenantGroupsListWithResponse(ctx context.Context, params *TenancyTenantGroupsListParams, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsListResponse, error) { - rsp, err := c.TenancyTenantGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsListResponse(rsp) -} - -// TenancyTenantGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) TenancyTenantGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantGroupsBulkPartialUpdateWithResponse(ctx context.Context, body TenancyTenantGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsBulkPartialUpdateResponse(rsp) -} - -// TenancyTenantGroupsCreateWithBodyWithResponse request with arbitrary body returning *TenancyTenantGroupsCreateResponse -func (c *ClientWithResponses) TenancyTenantGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsCreateResponse, error) { - rsp, err := c.TenancyTenantGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantGroupsCreateWithResponse(ctx context.Context, body TenancyTenantGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsCreateResponse, error) { - rsp, err := c.TenancyTenantGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsCreateResponse(rsp) -} - -// TenancyTenantGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantGroupsBulkUpdateResponse -func (c *ClientWithResponses) TenancyTenantGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantGroupsBulkUpdateWithResponse(ctx context.Context, body TenancyTenantGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsBulkUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsBulkUpdateResponse(rsp) -} - -// TenancyTenantGroupsDestroyWithResponse request returning *TenancyTenantGroupsDestroyResponse -func (c *ClientWithResponses) TenancyTenantGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsDestroyResponse, error) { - rsp, err := c.TenancyTenantGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsDestroyResponse(rsp) -} - -// TenancyTenantGroupsRetrieveWithResponse request returning *TenancyTenantGroupsRetrieveResponse -func (c *ClientWithResponses) TenancyTenantGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsRetrieveResponse, error) { - rsp, err := c.TenancyTenantGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsRetrieveResponse(rsp) -} - -// TenancyTenantGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantGroupsPartialUpdateResponse -func (c *ClientWithResponses) TenancyTenantGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsPartialUpdateResponse(rsp) -} - -// TenancyTenantGroupsUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantGroupsUpdateResponse -func (c *ClientWithResponses) TenancyTenantGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsUpdateResponse, error) { - rsp, err := c.TenancyTenantGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsUpdateResponse(rsp) -} - -// TenancyTenantGroupsNotesListWithResponse request returning *TenancyTenantGroupsNotesListResponse -func (c *ClientWithResponses) TenancyTenantGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *TenancyTenantGroupsNotesListParams, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsNotesListResponse, error) { - rsp, err := c.TenancyTenantGroupsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsNotesListResponse(rsp) -} - -// TenancyTenantGroupsNotesCreateWithBodyWithResponse request with arbitrary body returning *TenancyTenantGroupsNotesCreateResponse -func (c *ClientWithResponses) TenancyTenantGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsNotesCreateResponse, error) { - rsp, err := c.TenancyTenantGroupsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantGroupsNotesCreateResponse, error) { - rsp, err := c.TenancyTenantGroupsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantGroupsNotesCreateResponse(rsp) -} - -// TenancyTenantsBulkDestroyWithBodyWithResponse request with arbitrary body returning *TenancyTenantsBulkDestroyResponse -func (c *ClientWithResponses) TenancyTenantsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkDestroyResponse, error) { - rsp, err := c.TenancyTenantsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantsBulkDestroyWithResponse(ctx context.Context, body TenancyTenantsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkDestroyResponse, error) { - rsp, err := c.TenancyTenantsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsBulkDestroyResponse(rsp) -} - -// TenancyTenantsListWithResponse request returning *TenancyTenantsListResponse -func (c *ClientWithResponses) TenancyTenantsListWithResponse(ctx context.Context, params *TenancyTenantsListParams, reqEditors ...RequestEditorFn) (*TenancyTenantsListResponse, error) { - rsp, err := c.TenancyTenantsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsListResponse(rsp) -} - -// TenancyTenantsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantsBulkPartialUpdateResponse -func (c *ClientWithResponses) TenancyTenantsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantsBulkPartialUpdateWithResponse(ctx context.Context, body TenancyTenantsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsBulkPartialUpdateResponse(rsp) -} - -// TenancyTenantsCreateWithBodyWithResponse request with arbitrary body returning *TenancyTenantsCreateResponse -func (c *ClientWithResponses) TenancyTenantsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsCreateResponse, error) { - rsp, err := c.TenancyTenantsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsCreateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantsCreateWithResponse(ctx context.Context, body TenancyTenantsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsCreateResponse, error) { - rsp, err := c.TenancyTenantsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsCreateResponse(rsp) -} - -// TenancyTenantsBulkUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantsBulkUpdateResponse -func (c *ClientWithResponses) TenancyTenantsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkUpdateResponse, error) { - rsp, err := c.TenancyTenantsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantsBulkUpdateWithResponse(ctx context.Context, body TenancyTenantsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsBulkUpdateResponse, error) { - rsp, err := c.TenancyTenantsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsBulkUpdateResponse(rsp) -} - -// TenancyTenantsDestroyWithResponse request returning *TenancyTenantsDestroyResponse -func (c *ClientWithResponses) TenancyTenantsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantsDestroyResponse, error) { - rsp, err := c.TenancyTenantsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsDestroyResponse(rsp) -} - -// TenancyTenantsRetrieveWithResponse request returning *TenancyTenantsRetrieveResponse -func (c *ClientWithResponses) TenancyTenantsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenancyTenantsRetrieveResponse, error) { - rsp, err := c.TenancyTenantsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsRetrieveResponse(rsp) -} - -// TenancyTenantsPartialUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantsPartialUpdateResponse -func (c *ClientWithResponses) TenancyTenantsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsPartialUpdateResponse, error) { - rsp, err := c.TenancyTenantsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsPartialUpdateResponse(rsp) -} - -// TenancyTenantsUpdateWithBodyWithResponse request with arbitrary body returning *TenancyTenantsUpdateResponse -func (c *ClientWithResponses) TenancyTenantsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsUpdateResponse, error) { - rsp, err := c.TenancyTenantsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsUpdateResponse, error) { - rsp, err := c.TenancyTenantsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsUpdateResponse(rsp) -} - -// TenancyTenantsNotesListWithResponse request returning *TenancyTenantsNotesListResponse -func (c *ClientWithResponses) TenancyTenantsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *TenancyTenantsNotesListParams, reqEditors ...RequestEditorFn) (*TenancyTenantsNotesListResponse, error) { - rsp, err := c.TenancyTenantsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsNotesListResponse(rsp) -} - -// TenancyTenantsNotesCreateWithBodyWithResponse request with arbitrary body returning *TenancyTenantsNotesCreateResponse -func (c *ClientWithResponses) TenancyTenantsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenancyTenantsNotesCreateResponse, error) { - rsp, err := c.TenancyTenantsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) TenancyTenantsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body TenancyTenantsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*TenancyTenantsNotesCreateResponse, error) { - rsp, err := c.TenancyTenantsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTenancyTenantsNotesCreateResponse(rsp) -} - -// UsersConfigRetrieveWithResponse request returning *UsersConfigRetrieveResponse -func (c *ClientWithResponses) UsersConfigRetrieveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UsersConfigRetrieveResponse, error) { - rsp, err := c.UsersConfigRetrieve(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersConfigRetrieveResponse(rsp) -} - -// UsersGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *UsersGroupsBulkDestroyResponse -func (c *ClientWithResponses) UsersGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsBulkDestroyResponse, error) { - rsp, err := c.UsersGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) UsersGroupsBulkDestroyWithResponse(ctx context.Context, body UsersGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsBulkDestroyResponse, error) { - rsp, err := c.UsersGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsBulkDestroyResponse(rsp) -} - -// UsersGroupsListWithResponse request returning *UsersGroupsListResponse -func (c *ClientWithResponses) UsersGroupsListWithResponse(ctx context.Context, params *UsersGroupsListParams, reqEditors ...RequestEditorFn) (*UsersGroupsListResponse, error) { - rsp, err := c.UsersGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsListResponse(rsp) -} - -// UsersGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) UsersGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.UsersGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersGroupsBulkPartialUpdateWithResponse(ctx context.Context, body UsersGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.UsersGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsBulkPartialUpdateResponse(rsp) -} - -// UsersGroupsCreateWithBodyWithResponse request with arbitrary body returning *UsersGroupsCreateResponse -func (c *ClientWithResponses) UsersGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsCreateResponse, error) { - rsp, err := c.UsersGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) UsersGroupsCreateWithResponse(ctx context.Context, body UsersGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsCreateResponse, error) { - rsp, err := c.UsersGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsCreateResponse(rsp) -} - -// UsersGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *UsersGroupsBulkUpdateResponse -func (c *ClientWithResponses) UsersGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsBulkUpdateResponse, error) { - rsp, err := c.UsersGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersGroupsBulkUpdateWithResponse(ctx context.Context, body UsersGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsBulkUpdateResponse, error) { - rsp, err := c.UsersGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsBulkUpdateResponse(rsp) -} - -// UsersGroupsDestroyWithResponse request returning *UsersGroupsDestroyResponse -func (c *ClientWithResponses) UsersGroupsDestroyWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*UsersGroupsDestroyResponse, error) { - rsp, err := c.UsersGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsDestroyResponse(rsp) -} - -// UsersGroupsRetrieveWithResponse request returning *UsersGroupsRetrieveResponse -func (c *ClientWithResponses) UsersGroupsRetrieveWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*UsersGroupsRetrieveResponse, error) { - rsp, err := c.UsersGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsRetrieveResponse(rsp) -} - -// UsersGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersGroupsPartialUpdateResponse -func (c *ClientWithResponses) UsersGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsPartialUpdateResponse, error) { - rsp, err := c.UsersGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersGroupsPartialUpdateWithResponse(ctx context.Context, id int, body UsersGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsPartialUpdateResponse, error) { - rsp, err := c.UsersGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsPartialUpdateResponse(rsp) -} - -// UsersGroupsUpdateWithBodyWithResponse request with arbitrary body returning *UsersGroupsUpdateResponse -func (c *ClientWithResponses) UsersGroupsUpdateWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersGroupsUpdateResponse, error) { - rsp, err := c.UsersGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersGroupsUpdateWithResponse(ctx context.Context, id int, body UsersGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersGroupsUpdateResponse, error) { - rsp, err := c.UsersGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersGroupsUpdateResponse(rsp) -} - -// UsersPermissionsBulkDestroyWithBodyWithResponse request with arbitrary body returning *UsersPermissionsBulkDestroyResponse -func (c *ClientWithResponses) UsersPermissionsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkDestroyResponse, error) { - rsp, err := c.UsersPermissionsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) UsersPermissionsBulkDestroyWithResponse(ctx context.Context, body UsersPermissionsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkDestroyResponse, error) { - rsp, err := c.UsersPermissionsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsBulkDestroyResponse(rsp) -} - -// UsersPermissionsListWithResponse request returning *UsersPermissionsListResponse -func (c *ClientWithResponses) UsersPermissionsListWithResponse(ctx context.Context, params *UsersPermissionsListParams, reqEditors ...RequestEditorFn) (*UsersPermissionsListResponse, error) { - rsp, err := c.UsersPermissionsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsListResponse(rsp) -} - -// UsersPermissionsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersPermissionsBulkPartialUpdateResponse -func (c *ClientWithResponses) UsersPermissionsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkPartialUpdateResponse, error) { - rsp, err := c.UsersPermissionsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersPermissionsBulkPartialUpdateWithResponse(ctx context.Context, body UsersPermissionsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkPartialUpdateResponse, error) { - rsp, err := c.UsersPermissionsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsBulkPartialUpdateResponse(rsp) -} - -// UsersPermissionsCreateWithBodyWithResponse request with arbitrary body returning *UsersPermissionsCreateResponse -func (c *ClientWithResponses) UsersPermissionsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsCreateResponse, error) { - rsp, err := c.UsersPermissionsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsCreateResponse(rsp) -} - -func (c *ClientWithResponses) UsersPermissionsCreateWithResponse(ctx context.Context, body UsersPermissionsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsCreateResponse, error) { - rsp, err := c.UsersPermissionsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsCreateResponse(rsp) -} - -// UsersPermissionsBulkUpdateWithBodyWithResponse request with arbitrary body returning *UsersPermissionsBulkUpdateResponse -func (c *ClientWithResponses) UsersPermissionsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkUpdateResponse, error) { - rsp, err := c.UsersPermissionsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersPermissionsBulkUpdateWithResponse(ctx context.Context, body UsersPermissionsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsBulkUpdateResponse, error) { - rsp, err := c.UsersPermissionsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsBulkUpdateResponse(rsp) -} - -// UsersPermissionsDestroyWithResponse request returning *UsersPermissionsDestroyResponse -func (c *ClientWithResponses) UsersPermissionsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersPermissionsDestroyResponse, error) { - rsp, err := c.UsersPermissionsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsDestroyResponse(rsp) -} - -// UsersPermissionsRetrieveWithResponse request returning *UsersPermissionsRetrieveResponse -func (c *ClientWithResponses) UsersPermissionsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersPermissionsRetrieveResponse, error) { - rsp, err := c.UsersPermissionsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsRetrieveResponse(rsp) -} - -// UsersPermissionsPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersPermissionsPartialUpdateResponse -func (c *ClientWithResponses) UsersPermissionsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsPartialUpdateResponse, error) { - rsp, err := c.UsersPermissionsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersPermissionsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersPermissionsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsPartialUpdateResponse, error) { - rsp, err := c.UsersPermissionsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsPartialUpdateResponse(rsp) -} - -// UsersPermissionsUpdateWithBodyWithResponse request with arbitrary body returning *UsersPermissionsUpdateResponse -func (c *ClientWithResponses) UsersPermissionsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersPermissionsUpdateResponse, error) { - rsp, err := c.UsersPermissionsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersPermissionsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersPermissionsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersPermissionsUpdateResponse, error) { - rsp, err := c.UsersPermissionsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersPermissionsUpdateResponse(rsp) -} - -// UsersTokensBulkDestroyWithBodyWithResponse request with arbitrary body returning *UsersTokensBulkDestroyResponse -func (c *ClientWithResponses) UsersTokensBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensBulkDestroyResponse, error) { - rsp, err := c.UsersTokensBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) UsersTokensBulkDestroyWithResponse(ctx context.Context, body UsersTokensBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensBulkDestroyResponse, error) { - rsp, err := c.UsersTokensBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensBulkDestroyResponse(rsp) -} - -// UsersTokensListWithResponse request returning *UsersTokensListResponse -func (c *ClientWithResponses) UsersTokensListWithResponse(ctx context.Context, params *UsersTokensListParams, reqEditors ...RequestEditorFn) (*UsersTokensListResponse, error) { - rsp, err := c.UsersTokensList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensListResponse(rsp) -} - -// UsersTokensBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersTokensBulkPartialUpdateResponse -func (c *ClientWithResponses) UsersTokensBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensBulkPartialUpdateResponse, error) { - rsp, err := c.UsersTokensBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersTokensBulkPartialUpdateWithResponse(ctx context.Context, body UsersTokensBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensBulkPartialUpdateResponse, error) { - rsp, err := c.UsersTokensBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensBulkPartialUpdateResponse(rsp) -} - -// UsersTokensCreateWithBodyWithResponse request with arbitrary body returning *UsersTokensCreateResponse -func (c *ClientWithResponses) UsersTokensCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensCreateResponse, error) { - rsp, err := c.UsersTokensCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensCreateResponse(rsp) -} - -func (c *ClientWithResponses) UsersTokensCreateWithResponse(ctx context.Context, body UsersTokensCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensCreateResponse, error) { - rsp, err := c.UsersTokensCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensCreateResponse(rsp) -} - -// UsersTokensBulkUpdateWithBodyWithResponse request with arbitrary body returning *UsersTokensBulkUpdateResponse -func (c *ClientWithResponses) UsersTokensBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensBulkUpdateResponse, error) { - rsp, err := c.UsersTokensBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersTokensBulkUpdateWithResponse(ctx context.Context, body UsersTokensBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensBulkUpdateResponse, error) { - rsp, err := c.UsersTokensBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensBulkUpdateResponse(rsp) -} - -// UsersTokensDestroyWithResponse request returning *UsersTokensDestroyResponse -func (c *ClientWithResponses) UsersTokensDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersTokensDestroyResponse, error) { - rsp, err := c.UsersTokensDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensDestroyResponse(rsp) -} - -// UsersTokensRetrieveWithResponse request returning *UsersTokensRetrieveResponse -func (c *ClientWithResponses) UsersTokensRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersTokensRetrieveResponse, error) { - rsp, err := c.UsersTokensRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensRetrieveResponse(rsp) -} - -// UsersTokensPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersTokensPartialUpdateResponse -func (c *ClientWithResponses) UsersTokensPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensPartialUpdateResponse, error) { - rsp, err := c.UsersTokensPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersTokensPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersTokensPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensPartialUpdateResponse, error) { - rsp, err := c.UsersTokensPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensPartialUpdateResponse(rsp) -} - -// UsersTokensUpdateWithBodyWithResponse request with arbitrary body returning *UsersTokensUpdateResponse -func (c *ClientWithResponses) UsersTokensUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersTokensUpdateResponse, error) { - rsp, err := c.UsersTokensUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersTokensUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersTokensUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersTokensUpdateResponse, error) { - rsp, err := c.UsersTokensUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersTokensUpdateResponse(rsp) -} - -// UsersUsersBulkDestroyWithBodyWithResponse request with arbitrary body returning *UsersUsersBulkDestroyResponse -func (c *ClientWithResponses) UsersUsersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersBulkDestroyResponse, error) { - rsp, err := c.UsersUsersBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) UsersUsersBulkDestroyWithResponse(ctx context.Context, body UsersUsersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersBulkDestroyResponse, error) { - rsp, err := c.UsersUsersBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersBulkDestroyResponse(rsp) -} - -// UsersUsersListWithResponse request returning *UsersUsersListResponse -func (c *ClientWithResponses) UsersUsersListWithResponse(ctx context.Context, params *UsersUsersListParams, reqEditors ...RequestEditorFn) (*UsersUsersListResponse, error) { - rsp, err := c.UsersUsersList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersListResponse(rsp) -} - -// UsersUsersBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersUsersBulkPartialUpdateResponse -func (c *ClientWithResponses) UsersUsersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersBulkPartialUpdateResponse, error) { - rsp, err := c.UsersUsersBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersUsersBulkPartialUpdateWithResponse(ctx context.Context, body UsersUsersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersBulkPartialUpdateResponse, error) { - rsp, err := c.UsersUsersBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersBulkPartialUpdateResponse(rsp) -} - -// UsersUsersCreateWithBodyWithResponse request with arbitrary body returning *UsersUsersCreateResponse -func (c *ClientWithResponses) UsersUsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersCreateResponse, error) { - rsp, err := c.UsersUsersCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersCreateResponse(rsp) -} - -func (c *ClientWithResponses) UsersUsersCreateWithResponse(ctx context.Context, body UsersUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersCreateResponse, error) { - rsp, err := c.UsersUsersCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersCreateResponse(rsp) -} - -// UsersUsersBulkUpdateWithBodyWithResponse request with arbitrary body returning *UsersUsersBulkUpdateResponse -func (c *ClientWithResponses) UsersUsersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersBulkUpdateResponse, error) { - rsp, err := c.UsersUsersBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersUsersBulkUpdateWithResponse(ctx context.Context, body UsersUsersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersBulkUpdateResponse, error) { - rsp, err := c.UsersUsersBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersBulkUpdateResponse(rsp) -} - -// UsersUsersDestroyWithResponse request returning *UsersUsersDestroyResponse -func (c *ClientWithResponses) UsersUsersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersUsersDestroyResponse, error) { - rsp, err := c.UsersUsersDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersDestroyResponse(rsp) -} - -// UsersUsersRetrieveWithResponse request returning *UsersUsersRetrieveResponse -func (c *ClientWithResponses) UsersUsersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersUsersRetrieveResponse, error) { - rsp, err := c.UsersUsersRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersRetrieveResponse(rsp) -} - -// UsersUsersPartialUpdateWithBodyWithResponse request with arbitrary body returning *UsersUsersPartialUpdateResponse -func (c *ClientWithResponses) UsersUsersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersPartialUpdateResponse, error) { - rsp, err := c.UsersUsersPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersUsersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersUsersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersPartialUpdateResponse, error) { - rsp, err := c.UsersUsersPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersPartialUpdateResponse(rsp) -} - -// UsersUsersUpdateWithBodyWithResponse request with arbitrary body returning *UsersUsersUpdateResponse -func (c *ClientWithResponses) UsersUsersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUsersUpdateResponse, error) { - rsp, err := c.UsersUsersUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersUpdateResponse(rsp) -} - -func (c *ClientWithResponses) UsersUsersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body UsersUsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUsersUpdateResponse, error) { - rsp, err := c.UsersUsersUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsersUsersUpdateResponse(rsp) -} - -// VirtualizationClusterGroupsBulkDestroyWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterGroupsBulkDestroyResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkDestroyResponse, error) { - rsp, err := c.VirtualizationClusterGroupsBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterGroupsBulkDestroyWithResponse(ctx context.Context, body VirtualizationClusterGroupsBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkDestroyResponse, error) { - rsp, err := c.VirtualizationClusterGroupsBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsBulkDestroyResponse(rsp) -} - -// VirtualizationClusterGroupsListWithResponse request returning *VirtualizationClusterGroupsListResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsListWithResponse(ctx context.Context, params *VirtualizationClusterGroupsListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsListResponse, error) { - rsp, err := c.VirtualizationClusterGroupsList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsListResponse(rsp) -} - -// VirtualizationClusterGroupsBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterGroupsBulkPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterGroupsBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationClusterGroupsBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsBulkPartialUpdateResponse(rsp) -} - -// VirtualizationClusterGroupsCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterGroupsCreateResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsCreateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterGroupsCreateWithResponse(ctx context.Context, body VirtualizationClusterGroupsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsCreateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsCreateResponse(rsp) -} - -// VirtualizationClusterGroupsBulkUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterGroupsBulkUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterGroupsBulkUpdateWithResponse(ctx context.Context, body VirtualizationClusterGroupsBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsBulkUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsBulkUpdateResponse(rsp) -} - -// VirtualizationClusterGroupsDestroyWithResponse request returning *VirtualizationClusterGroupsDestroyResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsDestroyResponse, error) { - rsp, err := c.VirtualizationClusterGroupsDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsDestroyResponse(rsp) -} - -// VirtualizationClusterGroupsRetrieveWithResponse request returning *VirtualizationClusterGroupsRetrieveResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsRetrieveResponse, error) { - rsp, err := c.VirtualizationClusterGroupsRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsRetrieveResponse(rsp) -} - -// VirtualizationClusterGroupsPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterGroupsPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterGroupsPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsPartialUpdateResponse(rsp) -} - -// VirtualizationClusterGroupsUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterGroupsUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterGroupsUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsUpdateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsUpdateResponse(rsp) -} - -// VirtualizationClusterGroupsNotesListWithResponse request returning *VirtualizationClusterGroupsNotesListResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterGroupsNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsNotesListResponse, error) { - rsp, err := c.VirtualizationClusterGroupsNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsNotesListResponse(rsp) -} - -// VirtualizationClusterGroupsNotesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterGroupsNotesCreateResponse -func (c *ClientWithResponses) VirtualizationClusterGroupsNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsNotesCreateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterGroupsNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterGroupsNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterGroupsNotesCreateResponse, error) { - rsp, err := c.VirtualizationClusterGroupsNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterGroupsNotesCreateResponse(rsp) -} - -// VirtualizationClusterTypesBulkDestroyWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterTypesBulkDestroyResponse -func (c *ClientWithResponses) VirtualizationClusterTypesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkDestroyResponse, error) { - rsp, err := c.VirtualizationClusterTypesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterTypesBulkDestroyWithResponse(ctx context.Context, body VirtualizationClusterTypesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkDestroyResponse, error) { - rsp, err := c.VirtualizationClusterTypesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesBulkDestroyResponse(rsp) -} - -// VirtualizationClusterTypesListWithResponse request returning *VirtualizationClusterTypesListResponse -func (c *ClientWithResponses) VirtualizationClusterTypesListWithResponse(ctx context.Context, params *VirtualizationClusterTypesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesListResponse, error) { - rsp, err := c.VirtualizationClusterTypesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesListResponse(rsp) -} - -// VirtualizationClusterTypesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterTypesBulkPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterTypesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterTypesBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationClusterTypesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesBulkPartialUpdateResponse(rsp) -} - -// VirtualizationClusterTypesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterTypesCreateResponse -func (c *ClientWithResponses) VirtualizationClusterTypesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesCreateResponse, error) { - rsp, err := c.VirtualizationClusterTypesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterTypesCreateWithResponse(ctx context.Context, body VirtualizationClusterTypesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesCreateResponse, error) { - rsp, err := c.VirtualizationClusterTypesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesCreateResponse(rsp) -} - -// VirtualizationClusterTypesBulkUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterTypesBulkUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterTypesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterTypesBulkUpdateWithResponse(ctx context.Context, body VirtualizationClusterTypesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesBulkUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesBulkUpdateResponse(rsp) -} - -// VirtualizationClusterTypesDestroyWithResponse request returning *VirtualizationClusterTypesDestroyResponse -func (c *ClientWithResponses) VirtualizationClusterTypesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesDestroyResponse, error) { - rsp, err := c.VirtualizationClusterTypesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesDestroyResponse(rsp) -} - -// VirtualizationClusterTypesRetrieveWithResponse request returning *VirtualizationClusterTypesRetrieveResponse -func (c *ClientWithResponses) VirtualizationClusterTypesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesRetrieveResponse, error) { - rsp, err := c.VirtualizationClusterTypesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesRetrieveResponse(rsp) -} - -// VirtualizationClusterTypesPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterTypesPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterTypesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterTypesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesPartialUpdateResponse(rsp) -} - -// VirtualizationClusterTypesUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterTypesUpdateResponse -func (c *ClientWithResponses) VirtualizationClusterTypesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterTypesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesUpdateResponse, error) { - rsp, err := c.VirtualizationClusterTypesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesUpdateResponse(rsp) -} - -// VirtualizationClusterTypesNotesListWithResponse request returning *VirtualizationClusterTypesNotesListResponse -func (c *ClientWithResponses) VirtualizationClusterTypesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationClusterTypesNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesNotesListResponse, error) { - rsp, err := c.VirtualizationClusterTypesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesNotesListResponse(rsp) -} - -// VirtualizationClusterTypesNotesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationClusterTypesNotesCreateResponse -func (c *ClientWithResponses) VirtualizationClusterTypesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesNotesCreateResponse, error) { - rsp, err := c.VirtualizationClusterTypesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClusterTypesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClusterTypesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClusterTypesNotesCreateResponse, error) { - rsp, err := c.VirtualizationClusterTypesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClusterTypesNotesCreateResponse(rsp) -} - -// VirtualizationClustersBulkDestroyWithBodyWithResponse request with arbitrary body returning *VirtualizationClustersBulkDestroyResponse -func (c *ClientWithResponses) VirtualizationClustersBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkDestroyResponse, error) { - rsp, err := c.VirtualizationClustersBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClustersBulkDestroyWithResponse(ctx context.Context, body VirtualizationClustersBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkDestroyResponse, error) { - rsp, err := c.VirtualizationClustersBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersBulkDestroyResponse(rsp) -} - -// VirtualizationClustersListWithResponse request returning *VirtualizationClustersListResponse -func (c *ClientWithResponses) VirtualizationClustersListWithResponse(ctx context.Context, params *VirtualizationClustersListParams, reqEditors ...RequestEditorFn) (*VirtualizationClustersListResponse, error) { - rsp, err := c.VirtualizationClustersList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersListResponse(rsp) -} - -// VirtualizationClustersBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClustersBulkPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationClustersBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClustersBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClustersBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationClustersBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClustersBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersBulkPartialUpdateResponse(rsp) -} - -// VirtualizationClustersCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationClustersCreateResponse -func (c *ClientWithResponses) VirtualizationClustersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersCreateResponse, error) { - rsp, err := c.VirtualizationClustersCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClustersCreateWithResponse(ctx context.Context, body VirtualizationClustersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersCreateResponse, error) { - rsp, err := c.VirtualizationClustersCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersCreateResponse(rsp) -} - -// VirtualizationClustersBulkUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClustersBulkUpdateResponse -func (c *ClientWithResponses) VirtualizationClustersBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkUpdateResponse, error) { - rsp, err := c.VirtualizationClustersBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClustersBulkUpdateWithResponse(ctx context.Context, body VirtualizationClustersBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersBulkUpdateResponse, error) { - rsp, err := c.VirtualizationClustersBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersBulkUpdateResponse(rsp) -} - -// VirtualizationClustersDestroyWithResponse request returning *VirtualizationClustersDestroyResponse -func (c *ClientWithResponses) VirtualizationClustersDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClustersDestroyResponse, error) { - rsp, err := c.VirtualizationClustersDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersDestroyResponse(rsp) -} - -// VirtualizationClustersRetrieveWithResponse request returning *VirtualizationClustersRetrieveResponse -func (c *ClientWithResponses) VirtualizationClustersRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationClustersRetrieveResponse, error) { - rsp, err := c.VirtualizationClustersRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersRetrieveResponse(rsp) -} - -// VirtualizationClustersPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClustersPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationClustersPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClustersPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClustersPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersPartialUpdateResponse, error) { - rsp, err := c.VirtualizationClustersPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersPartialUpdateResponse(rsp) -} - -// VirtualizationClustersUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationClustersUpdateResponse -func (c *ClientWithResponses) VirtualizationClustersUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersUpdateResponse, error) { - rsp, err := c.VirtualizationClustersUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClustersUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersUpdateResponse, error) { - rsp, err := c.VirtualizationClustersUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersUpdateResponse(rsp) -} - -// VirtualizationClustersNotesListWithResponse request returning *VirtualizationClustersNotesListResponse -func (c *ClientWithResponses) VirtualizationClustersNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationClustersNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationClustersNotesListResponse, error) { - rsp, err := c.VirtualizationClustersNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersNotesListResponse(rsp) -} - -// VirtualizationClustersNotesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationClustersNotesCreateResponse -func (c *ClientWithResponses) VirtualizationClustersNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationClustersNotesCreateResponse, error) { - rsp, err := c.VirtualizationClustersNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationClustersNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationClustersNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationClustersNotesCreateResponse, error) { - rsp, err := c.VirtualizationClustersNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationClustersNotesCreateResponse(rsp) -} - -// VirtualizationInterfacesBulkDestroyWithBodyWithResponse request with arbitrary body returning *VirtualizationInterfacesBulkDestroyResponse -func (c *ClientWithResponses) VirtualizationInterfacesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkDestroyResponse, error) { - rsp, err := c.VirtualizationInterfacesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationInterfacesBulkDestroyWithResponse(ctx context.Context, body VirtualizationInterfacesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkDestroyResponse, error) { - rsp, err := c.VirtualizationInterfacesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesBulkDestroyResponse(rsp) -} - -// VirtualizationInterfacesListWithResponse request returning *VirtualizationInterfacesListResponse -func (c *ClientWithResponses) VirtualizationInterfacesListWithResponse(ctx context.Context, params *VirtualizationInterfacesListParams, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesListResponse, error) { - rsp, err := c.VirtualizationInterfacesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesListResponse(rsp) -} - -// VirtualizationInterfacesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationInterfacesBulkPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationInterfacesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationInterfacesBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationInterfacesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesBulkPartialUpdateResponse(rsp) -} - -// VirtualizationInterfacesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationInterfacesCreateResponse -func (c *ClientWithResponses) VirtualizationInterfacesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesCreateResponse, error) { - rsp, err := c.VirtualizationInterfacesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationInterfacesCreateWithResponse(ctx context.Context, body VirtualizationInterfacesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesCreateResponse, error) { - rsp, err := c.VirtualizationInterfacesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesCreateResponse(rsp) -} - -// VirtualizationInterfacesBulkUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationInterfacesBulkUpdateResponse -func (c *ClientWithResponses) VirtualizationInterfacesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationInterfacesBulkUpdateWithResponse(ctx context.Context, body VirtualizationInterfacesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesBulkUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesBulkUpdateResponse(rsp) -} - -// VirtualizationInterfacesDestroyWithResponse request returning *VirtualizationInterfacesDestroyResponse -func (c *ClientWithResponses) VirtualizationInterfacesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesDestroyResponse, error) { - rsp, err := c.VirtualizationInterfacesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesDestroyResponse(rsp) -} - -// VirtualizationInterfacesRetrieveWithResponse request returning *VirtualizationInterfacesRetrieveResponse -func (c *ClientWithResponses) VirtualizationInterfacesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesRetrieveResponse, error) { - rsp, err := c.VirtualizationInterfacesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesRetrieveResponse(rsp) -} - -// VirtualizationInterfacesPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationInterfacesPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationInterfacesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesPartialUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationInterfacesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesPartialUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesPartialUpdateResponse(rsp) -} - -// VirtualizationInterfacesUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationInterfacesUpdateResponse -func (c *ClientWithResponses) VirtualizationInterfacesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationInterfacesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesUpdateResponse, error) { - rsp, err := c.VirtualizationInterfacesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesUpdateResponse(rsp) -} - -// VirtualizationInterfacesNotesListWithResponse request returning *VirtualizationInterfacesNotesListResponse -func (c *ClientWithResponses) VirtualizationInterfacesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationInterfacesNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesNotesListResponse, error) { - rsp, err := c.VirtualizationInterfacesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesNotesListResponse(rsp) -} - -// VirtualizationInterfacesNotesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationInterfacesNotesCreateResponse -func (c *ClientWithResponses) VirtualizationInterfacesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesNotesCreateResponse, error) { - rsp, err := c.VirtualizationInterfacesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationInterfacesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationInterfacesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationInterfacesNotesCreateResponse, error) { - rsp, err := c.VirtualizationInterfacesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationInterfacesNotesCreateResponse(rsp) -} - -// VirtualizationVirtualMachinesBulkDestroyWithBodyWithResponse request with arbitrary body returning *VirtualizationVirtualMachinesBulkDestroyResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesBulkDestroyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkDestroyResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesBulkDestroyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesBulkDestroyResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationVirtualMachinesBulkDestroyWithResponse(ctx context.Context, body VirtualizationVirtualMachinesBulkDestroyJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkDestroyResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesBulkDestroy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesBulkDestroyResponse(rsp) -} - -// VirtualizationVirtualMachinesListWithResponse request returning *VirtualizationVirtualMachinesListResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesListWithResponse(ctx context.Context, params *VirtualizationVirtualMachinesListParams, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesListResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesList(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesListResponse(rsp) -} - -// VirtualizationVirtualMachinesBulkPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationVirtualMachinesBulkPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesBulkPartialUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesBulkPartialUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesBulkPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationVirtualMachinesBulkPartialUpdateWithResponse(ctx context.Context, body VirtualizationVirtualMachinesBulkPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkPartialUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesBulkPartialUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesBulkPartialUpdateResponse(rsp) -} - -// VirtualizationVirtualMachinesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationVirtualMachinesCreateResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesCreateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesCreateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationVirtualMachinesCreateWithResponse(ctx context.Context, body VirtualizationVirtualMachinesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesCreateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesCreate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesCreateResponse(rsp) -} - -// VirtualizationVirtualMachinesBulkUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationVirtualMachinesBulkUpdateResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesBulkUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesBulkUpdateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesBulkUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationVirtualMachinesBulkUpdateWithResponse(ctx context.Context, body VirtualizationVirtualMachinesBulkUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesBulkUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesBulkUpdate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesBulkUpdateResponse(rsp) -} - -// VirtualizationVirtualMachinesDestroyWithResponse request returning *VirtualizationVirtualMachinesDestroyResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesDestroyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesDestroyResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesDestroy(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesDestroyResponse(rsp) -} - -// VirtualizationVirtualMachinesRetrieveWithResponse request returning *VirtualizationVirtualMachinesRetrieveResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesRetrieveWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesRetrieveResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesRetrieve(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesRetrieveResponse(rsp) -} - -// VirtualizationVirtualMachinesPartialUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationVirtualMachinesPartialUpdateResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesPartialUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesPartialUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesPartialUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesPartialUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationVirtualMachinesPartialUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesPartialUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesPartialUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesPartialUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesPartialUpdateResponse(rsp) -} - -// VirtualizationVirtualMachinesUpdateWithBodyWithResponse request with arbitrary body returning *VirtualizationVirtualMachinesUpdateResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesUpdateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesUpdateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesUpdateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationVirtualMachinesUpdateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesUpdateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesUpdate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesUpdateResponse(rsp) -} - -// VirtualizationVirtualMachinesNotesListWithResponse request returning *VirtualizationVirtualMachinesNotesListResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesNotesListWithResponse(ctx context.Context, id openapi_types.UUID, params *VirtualizationVirtualMachinesNotesListParams, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesNotesListResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesNotesList(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesNotesListResponse(rsp) -} - -// VirtualizationVirtualMachinesNotesCreateWithBodyWithResponse request with arbitrary body returning *VirtualizationVirtualMachinesNotesCreateResponse -func (c *ClientWithResponses) VirtualizationVirtualMachinesNotesCreateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesNotesCreateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesNotesCreateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesNotesCreateResponse(rsp) -} - -func (c *ClientWithResponses) VirtualizationVirtualMachinesNotesCreateWithResponse(ctx context.Context, id openapi_types.UUID, body VirtualizationVirtualMachinesNotesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualizationVirtualMachinesNotesCreateResponse, error) { - rsp, err := c.VirtualizationVirtualMachinesNotesCreate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualizationVirtualMachinesNotesCreateResponse(rsp) -} - -// ParseCircuitsCircuitTerminationsBulkDestroyResponse parses an HTTP response from a CircuitsCircuitTerminationsBulkDestroyWithResponse call -func ParseCircuitsCircuitTerminationsBulkDestroyResponse(rsp *http.Response) (*CircuitsCircuitTerminationsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsListResponse parses an HTTP response from a CircuitsCircuitTerminationsListWithResponse call -func ParseCircuitsCircuitTerminationsListResponse(rsp *http.Response) (*CircuitsCircuitTerminationsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsBulkPartialUpdateResponse parses an HTTP response from a CircuitsCircuitTerminationsBulkPartialUpdateWithResponse call -func ParseCircuitsCircuitTerminationsBulkPartialUpdateResponse(rsp *http.Response) (*CircuitsCircuitTerminationsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsCreateResponse parses an HTTP response from a CircuitsCircuitTerminationsCreateWithResponse call -func ParseCircuitsCircuitTerminationsCreateResponse(rsp *http.Response) (*CircuitsCircuitTerminationsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsBulkUpdateResponse parses an HTTP response from a CircuitsCircuitTerminationsBulkUpdateWithResponse call -func ParseCircuitsCircuitTerminationsBulkUpdateResponse(rsp *http.Response) (*CircuitsCircuitTerminationsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsDestroyResponse parses an HTTP response from a CircuitsCircuitTerminationsDestroyWithResponse call -func ParseCircuitsCircuitTerminationsDestroyResponse(rsp *http.Response) (*CircuitsCircuitTerminationsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsRetrieveResponse parses an HTTP response from a CircuitsCircuitTerminationsRetrieveWithResponse call -func ParseCircuitsCircuitTerminationsRetrieveResponse(rsp *http.Response) (*CircuitsCircuitTerminationsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsPartialUpdateResponse parses an HTTP response from a CircuitsCircuitTerminationsPartialUpdateWithResponse call -func ParseCircuitsCircuitTerminationsPartialUpdateResponse(rsp *http.Response) (*CircuitsCircuitTerminationsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsUpdateResponse parses an HTTP response from a CircuitsCircuitTerminationsUpdateWithResponse call -func ParseCircuitsCircuitTerminationsUpdateResponse(rsp *http.Response) (*CircuitsCircuitTerminationsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsNotesListResponse parses an HTTP response from a CircuitsCircuitTerminationsNotesListWithResponse call -func ParseCircuitsCircuitTerminationsNotesListResponse(rsp *http.Response) (*CircuitsCircuitTerminationsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsNotesCreateResponse parses an HTTP response from a CircuitsCircuitTerminationsNotesCreateWithResponse call -func ParseCircuitsCircuitTerminationsNotesCreateResponse(rsp *http.Response) (*CircuitsCircuitTerminationsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTerminationsTraceRetrieveResponse parses an HTTP response from a CircuitsCircuitTerminationsTraceRetrieveWithResponse call -func ParseCircuitsCircuitTerminationsTraceRetrieveResponse(rsp *http.Response) (*CircuitsCircuitTerminationsTraceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTerminationsTraceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesBulkDestroyResponse parses an HTTP response from a CircuitsCircuitTypesBulkDestroyWithResponse call -func ParseCircuitsCircuitTypesBulkDestroyResponse(rsp *http.Response) (*CircuitsCircuitTypesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesListResponse parses an HTTP response from a CircuitsCircuitTypesListWithResponse call -func ParseCircuitsCircuitTypesListResponse(rsp *http.Response) (*CircuitsCircuitTypesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesBulkPartialUpdateResponse parses an HTTP response from a CircuitsCircuitTypesBulkPartialUpdateWithResponse call -func ParseCircuitsCircuitTypesBulkPartialUpdateResponse(rsp *http.Response) (*CircuitsCircuitTypesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesCreateResponse parses an HTTP response from a CircuitsCircuitTypesCreateWithResponse call -func ParseCircuitsCircuitTypesCreateResponse(rsp *http.Response) (*CircuitsCircuitTypesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesBulkUpdateResponse parses an HTTP response from a CircuitsCircuitTypesBulkUpdateWithResponse call -func ParseCircuitsCircuitTypesBulkUpdateResponse(rsp *http.Response) (*CircuitsCircuitTypesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesDestroyResponse parses an HTTP response from a CircuitsCircuitTypesDestroyWithResponse call -func ParseCircuitsCircuitTypesDestroyResponse(rsp *http.Response) (*CircuitsCircuitTypesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesRetrieveResponse parses an HTTP response from a CircuitsCircuitTypesRetrieveWithResponse call -func ParseCircuitsCircuitTypesRetrieveResponse(rsp *http.Response) (*CircuitsCircuitTypesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesPartialUpdateResponse parses an HTTP response from a CircuitsCircuitTypesPartialUpdateWithResponse call -func ParseCircuitsCircuitTypesPartialUpdateResponse(rsp *http.Response) (*CircuitsCircuitTypesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesUpdateResponse parses an HTTP response from a CircuitsCircuitTypesUpdateWithResponse call -func ParseCircuitsCircuitTypesUpdateResponse(rsp *http.Response) (*CircuitsCircuitTypesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesNotesListResponse parses an HTTP response from a CircuitsCircuitTypesNotesListWithResponse call -func ParseCircuitsCircuitTypesNotesListResponse(rsp *http.Response) (*CircuitsCircuitTypesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitTypesNotesCreateResponse parses an HTTP response from a CircuitsCircuitTypesNotesCreateWithResponse call -func ParseCircuitsCircuitTypesNotesCreateResponse(rsp *http.Response) (*CircuitsCircuitTypesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitTypesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsBulkDestroyResponse parses an HTTP response from a CircuitsCircuitsBulkDestroyWithResponse call -func ParseCircuitsCircuitsBulkDestroyResponse(rsp *http.Response) (*CircuitsCircuitsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsListResponse parses an HTTP response from a CircuitsCircuitsListWithResponse call -func ParseCircuitsCircuitsListResponse(rsp *http.Response) (*CircuitsCircuitsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsBulkPartialUpdateResponse parses an HTTP response from a CircuitsCircuitsBulkPartialUpdateWithResponse call -func ParseCircuitsCircuitsBulkPartialUpdateResponse(rsp *http.Response) (*CircuitsCircuitsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsCreateResponse parses an HTTP response from a CircuitsCircuitsCreateWithResponse call -func ParseCircuitsCircuitsCreateResponse(rsp *http.Response) (*CircuitsCircuitsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsBulkUpdateResponse parses an HTTP response from a CircuitsCircuitsBulkUpdateWithResponse call -func ParseCircuitsCircuitsBulkUpdateResponse(rsp *http.Response) (*CircuitsCircuitsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsDestroyResponse parses an HTTP response from a CircuitsCircuitsDestroyWithResponse call -func ParseCircuitsCircuitsDestroyResponse(rsp *http.Response) (*CircuitsCircuitsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsRetrieveResponse parses an HTTP response from a CircuitsCircuitsRetrieveWithResponse call -func ParseCircuitsCircuitsRetrieveResponse(rsp *http.Response) (*CircuitsCircuitsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsPartialUpdateResponse parses an HTTP response from a CircuitsCircuitsPartialUpdateWithResponse call -func ParseCircuitsCircuitsPartialUpdateResponse(rsp *http.Response) (*CircuitsCircuitsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsUpdateResponse parses an HTTP response from a CircuitsCircuitsUpdateWithResponse call -func ParseCircuitsCircuitsUpdateResponse(rsp *http.Response) (*CircuitsCircuitsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsNotesListResponse parses an HTTP response from a CircuitsCircuitsNotesListWithResponse call -func ParseCircuitsCircuitsNotesListResponse(rsp *http.Response) (*CircuitsCircuitsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsCircuitsNotesCreateResponse parses an HTTP response from a CircuitsCircuitsNotesCreateWithResponse call -func ParseCircuitsCircuitsNotesCreateResponse(rsp *http.Response) (*CircuitsCircuitsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsCircuitsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksBulkDestroyResponse parses an HTTP response from a CircuitsProviderNetworksBulkDestroyWithResponse call -func ParseCircuitsProviderNetworksBulkDestroyResponse(rsp *http.Response) (*CircuitsProviderNetworksBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksListResponse parses an HTTP response from a CircuitsProviderNetworksListWithResponse call -func ParseCircuitsProviderNetworksListResponse(rsp *http.Response) (*CircuitsProviderNetworksListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksBulkPartialUpdateResponse parses an HTTP response from a CircuitsProviderNetworksBulkPartialUpdateWithResponse call -func ParseCircuitsProviderNetworksBulkPartialUpdateResponse(rsp *http.Response) (*CircuitsProviderNetworksBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksCreateResponse parses an HTTP response from a CircuitsProviderNetworksCreateWithResponse call -func ParseCircuitsProviderNetworksCreateResponse(rsp *http.Response) (*CircuitsProviderNetworksCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksBulkUpdateResponse parses an HTTP response from a CircuitsProviderNetworksBulkUpdateWithResponse call -func ParseCircuitsProviderNetworksBulkUpdateResponse(rsp *http.Response) (*CircuitsProviderNetworksBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksDestroyResponse parses an HTTP response from a CircuitsProviderNetworksDestroyWithResponse call -func ParseCircuitsProviderNetworksDestroyResponse(rsp *http.Response) (*CircuitsProviderNetworksDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksRetrieveResponse parses an HTTP response from a CircuitsProviderNetworksRetrieveWithResponse call -func ParseCircuitsProviderNetworksRetrieveResponse(rsp *http.Response) (*CircuitsProviderNetworksRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksPartialUpdateResponse parses an HTTP response from a CircuitsProviderNetworksPartialUpdateWithResponse call -func ParseCircuitsProviderNetworksPartialUpdateResponse(rsp *http.Response) (*CircuitsProviderNetworksPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksUpdateResponse parses an HTTP response from a CircuitsProviderNetworksUpdateWithResponse call -func ParseCircuitsProviderNetworksUpdateResponse(rsp *http.Response) (*CircuitsProviderNetworksUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksNotesListResponse parses an HTTP response from a CircuitsProviderNetworksNotesListWithResponse call -func ParseCircuitsProviderNetworksNotesListResponse(rsp *http.Response) (*CircuitsProviderNetworksNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProviderNetworksNotesCreateResponse parses an HTTP response from a CircuitsProviderNetworksNotesCreateWithResponse call -func ParseCircuitsProviderNetworksNotesCreateResponse(rsp *http.Response) (*CircuitsProviderNetworksNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProviderNetworksNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersBulkDestroyResponse parses an HTTP response from a CircuitsProvidersBulkDestroyWithResponse call -func ParseCircuitsProvidersBulkDestroyResponse(rsp *http.Response) (*CircuitsProvidersBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersListResponse parses an HTTP response from a CircuitsProvidersListWithResponse call -func ParseCircuitsProvidersListResponse(rsp *http.Response) (*CircuitsProvidersListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersBulkPartialUpdateResponse parses an HTTP response from a CircuitsProvidersBulkPartialUpdateWithResponse call -func ParseCircuitsProvidersBulkPartialUpdateResponse(rsp *http.Response) (*CircuitsProvidersBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersCreateResponse parses an HTTP response from a CircuitsProvidersCreateWithResponse call -func ParseCircuitsProvidersCreateResponse(rsp *http.Response) (*CircuitsProvidersCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersBulkUpdateResponse parses an HTTP response from a CircuitsProvidersBulkUpdateWithResponse call -func ParseCircuitsProvidersBulkUpdateResponse(rsp *http.Response) (*CircuitsProvidersBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersDestroyResponse parses an HTTP response from a CircuitsProvidersDestroyWithResponse call -func ParseCircuitsProvidersDestroyResponse(rsp *http.Response) (*CircuitsProvidersDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersRetrieveResponse parses an HTTP response from a CircuitsProvidersRetrieveWithResponse call -func ParseCircuitsProvidersRetrieveResponse(rsp *http.Response) (*CircuitsProvidersRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersPartialUpdateResponse parses an HTTP response from a CircuitsProvidersPartialUpdateWithResponse call -func ParseCircuitsProvidersPartialUpdateResponse(rsp *http.Response) (*CircuitsProvidersPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersUpdateResponse parses an HTTP response from a CircuitsProvidersUpdateWithResponse call -func ParseCircuitsProvidersUpdateResponse(rsp *http.Response) (*CircuitsProvidersUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersNotesListResponse parses an HTTP response from a CircuitsProvidersNotesListWithResponse call -func ParseCircuitsProvidersNotesListResponse(rsp *http.Response) (*CircuitsProvidersNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseCircuitsProvidersNotesCreateResponse parses an HTTP response from a CircuitsProvidersNotesCreateWithResponse call -func ParseCircuitsProvidersNotesCreateResponse(rsp *http.Response) (*CircuitsProvidersNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CircuitsProvidersNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesBulkDestroyResponse parses an HTTP response from a DcimCablesBulkDestroyWithResponse call -func ParseDcimCablesBulkDestroyResponse(rsp *http.Response) (*DcimCablesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesListResponse parses an HTTP response from a DcimCablesListWithResponse call -func ParseDcimCablesListResponse(rsp *http.Response) (*DcimCablesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesBulkPartialUpdateResponse parses an HTTP response from a DcimCablesBulkPartialUpdateWithResponse call -func ParseDcimCablesBulkPartialUpdateResponse(rsp *http.Response) (*DcimCablesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesCreateResponse parses an HTTP response from a DcimCablesCreateWithResponse call -func ParseDcimCablesCreateResponse(rsp *http.Response) (*DcimCablesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesBulkUpdateResponse parses an HTTP response from a DcimCablesBulkUpdateWithResponse call -func ParseDcimCablesBulkUpdateResponse(rsp *http.Response) (*DcimCablesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesDestroyResponse parses an HTTP response from a DcimCablesDestroyWithResponse call -func ParseDcimCablesDestroyResponse(rsp *http.Response) (*DcimCablesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesRetrieveResponse parses an HTTP response from a DcimCablesRetrieveWithResponse call -func ParseDcimCablesRetrieveResponse(rsp *http.Response) (*DcimCablesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesPartialUpdateResponse parses an HTTP response from a DcimCablesPartialUpdateWithResponse call -func ParseDcimCablesPartialUpdateResponse(rsp *http.Response) (*DcimCablesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesUpdateResponse parses an HTTP response from a DcimCablesUpdateWithResponse call -func ParseDcimCablesUpdateResponse(rsp *http.Response) (*DcimCablesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesNotesListResponse parses an HTTP response from a DcimCablesNotesListWithResponse call -func ParseDcimCablesNotesListResponse(rsp *http.Response) (*DcimCablesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimCablesNotesCreateResponse parses an HTTP response from a DcimCablesNotesCreateWithResponse call -func ParseDcimCablesNotesCreateResponse(rsp *http.Response) (*DcimCablesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimCablesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConnectedDeviceListResponse parses an HTTP response from a DcimConnectedDeviceListWithResponse call -func ParseDcimConnectedDeviceListResponse(rsp *http.Response) (*DcimConnectedDeviceListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConnectedDeviceListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleConnectionsListResponse parses an HTTP response from a DcimConsoleConnectionsListWithResponse call -func ParseDcimConsoleConnectionsListResponse(rsp *http.Response) (*DcimConsoleConnectionsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleConnectionsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesBulkDestroyResponse parses an HTTP response from a DcimConsolePortTemplatesBulkDestroyWithResponse call -func ParseDcimConsolePortTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimConsolePortTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesListResponse parses an HTTP response from a DcimConsolePortTemplatesListWithResponse call -func ParseDcimConsolePortTemplatesListResponse(rsp *http.Response) (*DcimConsolePortTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimConsolePortTemplatesBulkPartialUpdateWithResponse call -func ParseDcimConsolePortTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimConsolePortTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesCreateResponse parses an HTTP response from a DcimConsolePortTemplatesCreateWithResponse call -func ParseDcimConsolePortTemplatesCreateResponse(rsp *http.Response) (*DcimConsolePortTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesBulkUpdateResponse parses an HTTP response from a DcimConsolePortTemplatesBulkUpdateWithResponse call -func ParseDcimConsolePortTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimConsolePortTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesDestroyResponse parses an HTTP response from a DcimConsolePortTemplatesDestroyWithResponse call -func ParseDcimConsolePortTemplatesDestroyResponse(rsp *http.Response) (*DcimConsolePortTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesRetrieveResponse parses an HTTP response from a DcimConsolePortTemplatesRetrieveWithResponse call -func ParseDcimConsolePortTemplatesRetrieveResponse(rsp *http.Response) (*DcimConsolePortTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesPartialUpdateResponse parses an HTTP response from a DcimConsolePortTemplatesPartialUpdateWithResponse call -func ParseDcimConsolePortTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimConsolePortTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesUpdateResponse parses an HTTP response from a DcimConsolePortTemplatesUpdateWithResponse call -func ParseDcimConsolePortTemplatesUpdateResponse(rsp *http.Response) (*DcimConsolePortTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesNotesListResponse parses an HTTP response from a DcimConsolePortTemplatesNotesListWithResponse call -func ParseDcimConsolePortTemplatesNotesListResponse(rsp *http.Response) (*DcimConsolePortTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortTemplatesNotesCreateResponse parses an HTTP response from a DcimConsolePortTemplatesNotesCreateWithResponse call -func ParseDcimConsolePortTemplatesNotesCreateResponse(rsp *http.Response) (*DcimConsolePortTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsBulkDestroyResponse parses an HTTP response from a DcimConsolePortsBulkDestroyWithResponse call -func ParseDcimConsolePortsBulkDestroyResponse(rsp *http.Response) (*DcimConsolePortsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsListResponse parses an HTTP response from a DcimConsolePortsListWithResponse call -func ParseDcimConsolePortsListResponse(rsp *http.Response) (*DcimConsolePortsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsBulkPartialUpdateResponse parses an HTTP response from a DcimConsolePortsBulkPartialUpdateWithResponse call -func ParseDcimConsolePortsBulkPartialUpdateResponse(rsp *http.Response) (*DcimConsolePortsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsCreateResponse parses an HTTP response from a DcimConsolePortsCreateWithResponse call -func ParseDcimConsolePortsCreateResponse(rsp *http.Response) (*DcimConsolePortsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsBulkUpdateResponse parses an HTTP response from a DcimConsolePortsBulkUpdateWithResponse call -func ParseDcimConsolePortsBulkUpdateResponse(rsp *http.Response) (*DcimConsolePortsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsDestroyResponse parses an HTTP response from a DcimConsolePortsDestroyWithResponse call -func ParseDcimConsolePortsDestroyResponse(rsp *http.Response) (*DcimConsolePortsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsRetrieveResponse parses an HTTP response from a DcimConsolePortsRetrieveWithResponse call -func ParseDcimConsolePortsRetrieveResponse(rsp *http.Response) (*DcimConsolePortsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsPartialUpdateResponse parses an HTTP response from a DcimConsolePortsPartialUpdateWithResponse call -func ParseDcimConsolePortsPartialUpdateResponse(rsp *http.Response) (*DcimConsolePortsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsUpdateResponse parses an HTTP response from a DcimConsolePortsUpdateWithResponse call -func ParseDcimConsolePortsUpdateResponse(rsp *http.Response) (*DcimConsolePortsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsNotesListResponse parses an HTTP response from a DcimConsolePortsNotesListWithResponse call -func ParseDcimConsolePortsNotesListResponse(rsp *http.Response) (*DcimConsolePortsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsNotesCreateResponse parses an HTTP response from a DcimConsolePortsNotesCreateWithResponse call -func ParseDcimConsolePortsNotesCreateResponse(rsp *http.Response) (*DcimConsolePortsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsolePortsTraceRetrieveResponse parses an HTTP response from a DcimConsolePortsTraceRetrieveWithResponse call -func ParseDcimConsolePortsTraceRetrieveResponse(rsp *http.Response) (*DcimConsolePortsTraceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsolePortsTraceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesBulkDestroyResponse parses an HTTP response from a DcimConsoleServerPortTemplatesBulkDestroyWithResponse call -func ParseDcimConsoleServerPortTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesListResponse parses an HTTP response from a DcimConsoleServerPortTemplatesListWithResponse call -func ParseDcimConsoleServerPortTemplatesListResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimConsoleServerPortTemplatesBulkPartialUpdateWithResponse call -func ParseDcimConsoleServerPortTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesCreateResponse parses an HTTP response from a DcimConsoleServerPortTemplatesCreateWithResponse call -func ParseDcimConsoleServerPortTemplatesCreateResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesBulkUpdateResponse parses an HTTP response from a DcimConsoleServerPortTemplatesBulkUpdateWithResponse call -func ParseDcimConsoleServerPortTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesDestroyResponse parses an HTTP response from a DcimConsoleServerPortTemplatesDestroyWithResponse call -func ParseDcimConsoleServerPortTemplatesDestroyResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesRetrieveResponse parses an HTTP response from a DcimConsoleServerPortTemplatesRetrieveWithResponse call -func ParseDcimConsoleServerPortTemplatesRetrieveResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesPartialUpdateResponse parses an HTTP response from a DcimConsoleServerPortTemplatesPartialUpdateWithResponse call -func ParseDcimConsoleServerPortTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesUpdateResponse parses an HTTP response from a DcimConsoleServerPortTemplatesUpdateWithResponse call -func ParseDcimConsoleServerPortTemplatesUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesNotesListResponse parses an HTTP response from a DcimConsoleServerPortTemplatesNotesListWithResponse call -func ParseDcimConsoleServerPortTemplatesNotesListResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortTemplatesNotesCreateResponse parses an HTTP response from a DcimConsoleServerPortTemplatesNotesCreateWithResponse call -func ParseDcimConsoleServerPortTemplatesNotesCreateResponse(rsp *http.Response) (*DcimConsoleServerPortTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsBulkDestroyResponse parses an HTTP response from a DcimConsoleServerPortsBulkDestroyWithResponse call -func ParseDcimConsoleServerPortsBulkDestroyResponse(rsp *http.Response) (*DcimConsoleServerPortsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsListResponse parses an HTTP response from a DcimConsoleServerPortsListWithResponse call -func ParseDcimConsoleServerPortsListResponse(rsp *http.Response) (*DcimConsoleServerPortsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsBulkPartialUpdateResponse parses an HTTP response from a DcimConsoleServerPortsBulkPartialUpdateWithResponse call -func ParseDcimConsoleServerPortsBulkPartialUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsCreateResponse parses an HTTP response from a DcimConsoleServerPortsCreateWithResponse call -func ParseDcimConsoleServerPortsCreateResponse(rsp *http.Response) (*DcimConsoleServerPortsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsBulkUpdateResponse parses an HTTP response from a DcimConsoleServerPortsBulkUpdateWithResponse call -func ParseDcimConsoleServerPortsBulkUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsDestroyResponse parses an HTTP response from a DcimConsoleServerPortsDestroyWithResponse call -func ParseDcimConsoleServerPortsDestroyResponse(rsp *http.Response) (*DcimConsoleServerPortsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsRetrieveResponse parses an HTTP response from a DcimConsoleServerPortsRetrieveWithResponse call -func ParseDcimConsoleServerPortsRetrieveResponse(rsp *http.Response) (*DcimConsoleServerPortsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsPartialUpdateResponse parses an HTTP response from a DcimConsoleServerPortsPartialUpdateWithResponse call -func ParseDcimConsoleServerPortsPartialUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsUpdateResponse parses an HTTP response from a DcimConsoleServerPortsUpdateWithResponse call -func ParseDcimConsoleServerPortsUpdateResponse(rsp *http.Response) (*DcimConsoleServerPortsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsNotesListResponse parses an HTTP response from a DcimConsoleServerPortsNotesListWithResponse call -func ParseDcimConsoleServerPortsNotesListResponse(rsp *http.Response) (*DcimConsoleServerPortsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsNotesCreateResponse parses an HTTP response from a DcimConsoleServerPortsNotesCreateWithResponse call -func ParseDcimConsoleServerPortsNotesCreateResponse(rsp *http.Response) (*DcimConsoleServerPortsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimConsoleServerPortsTraceRetrieveResponse parses an HTTP response from a DcimConsoleServerPortsTraceRetrieveWithResponse call -func ParseDcimConsoleServerPortsTraceRetrieveResponse(rsp *http.Response) (*DcimConsoleServerPortsTraceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimConsoleServerPortsTraceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesBulkDestroyResponse parses an HTTP response from a DcimDeviceBayTemplatesBulkDestroyWithResponse call -func ParseDcimDeviceBayTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimDeviceBayTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesListResponse parses an HTTP response from a DcimDeviceBayTemplatesListWithResponse call -func ParseDcimDeviceBayTemplatesListResponse(rsp *http.Response) (*DcimDeviceBayTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimDeviceBayTemplatesBulkPartialUpdateWithResponse call -func ParseDcimDeviceBayTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimDeviceBayTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesCreateResponse parses an HTTP response from a DcimDeviceBayTemplatesCreateWithResponse call -func ParseDcimDeviceBayTemplatesCreateResponse(rsp *http.Response) (*DcimDeviceBayTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesBulkUpdateResponse parses an HTTP response from a DcimDeviceBayTemplatesBulkUpdateWithResponse call -func ParseDcimDeviceBayTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimDeviceBayTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesDestroyResponse parses an HTTP response from a DcimDeviceBayTemplatesDestroyWithResponse call -func ParseDcimDeviceBayTemplatesDestroyResponse(rsp *http.Response) (*DcimDeviceBayTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesRetrieveResponse parses an HTTP response from a DcimDeviceBayTemplatesRetrieveWithResponse call -func ParseDcimDeviceBayTemplatesRetrieveResponse(rsp *http.Response) (*DcimDeviceBayTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesPartialUpdateResponse parses an HTTP response from a DcimDeviceBayTemplatesPartialUpdateWithResponse call -func ParseDcimDeviceBayTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimDeviceBayTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesUpdateResponse parses an HTTP response from a DcimDeviceBayTemplatesUpdateWithResponse call -func ParseDcimDeviceBayTemplatesUpdateResponse(rsp *http.Response) (*DcimDeviceBayTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesNotesListResponse parses an HTTP response from a DcimDeviceBayTemplatesNotesListWithResponse call -func ParseDcimDeviceBayTemplatesNotesListResponse(rsp *http.Response) (*DcimDeviceBayTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBayTemplatesNotesCreateResponse parses an HTTP response from a DcimDeviceBayTemplatesNotesCreateWithResponse call -func ParseDcimDeviceBayTemplatesNotesCreateResponse(rsp *http.Response) (*DcimDeviceBayTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBayTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysBulkDestroyResponse parses an HTTP response from a DcimDeviceBaysBulkDestroyWithResponse call -func ParseDcimDeviceBaysBulkDestroyResponse(rsp *http.Response) (*DcimDeviceBaysBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysListResponse parses an HTTP response from a DcimDeviceBaysListWithResponse call -func ParseDcimDeviceBaysListResponse(rsp *http.Response) (*DcimDeviceBaysListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysBulkPartialUpdateResponse parses an HTTP response from a DcimDeviceBaysBulkPartialUpdateWithResponse call -func ParseDcimDeviceBaysBulkPartialUpdateResponse(rsp *http.Response) (*DcimDeviceBaysBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysCreateResponse parses an HTTP response from a DcimDeviceBaysCreateWithResponse call -func ParseDcimDeviceBaysCreateResponse(rsp *http.Response) (*DcimDeviceBaysCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysBulkUpdateResponse parses an HTTP response from a DcimDeviceBaysBulkUpdateWithResponse call -func ParseDcimDeviceBaysBulkUpdateResponse(rsp *http.Response) (*DcimDeviceBaysBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysDestroyResponse parses an HTTP response from a DcimDeviceBaysDestroyWithResponse call -func ParseDcimDeviceBaysDestroyResponse(rsp *http.Response) (*DcimDeviceBaysDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysRetrieveResponse parses an HTTP response from a DcimDeviceBaysRetrieveWithResponse call -func ParseDcimDeviceBaysRetrieveResponse(rsp *http.Response) (*DcimDeviceBaysRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysPartialUpdateResponse parses an HTTP response from a DcimDeviceBaysPartialUpdateWithResponse call -func ParseDcimDeviceBaysPartialUpdateResponse(rsp *http.Response) (*DcimDeviceBaysPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysUpdateResponse parses an HTTP response from a DcimDeviceBaysUpdateWithResponse call -func ParseDcimDeviceBaysUpdateResponse(rsp *http.Response) (*DcimDeviceBaysUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysNotesListResponse parses an HTTP response from a DcimDeviceBaysNotesListWithResponse call -func ParseDcimDeviceBaysNotesListResponse(rsp *http.Response) (*DcimDeviceBaysNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceBaysNotesCreateResponse parses an HTTP response from a DcimDeviceBaysNotesCreateWithResponse call -func ParseDcimDeviceBaysNotesCreateResponse(rsp *http.Response) (*DcimDeviceBaysNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceBaysNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsBulkDestroyResponse parses an HTTP response from a DcimDeviceRedundancyGroupsBulkDestroyWithResponse call -func ParseDcimDeviceRedundancyGroupsBulkDestroyResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsListResponse parses an HTTP response from a DcimDeviceRedundancyGroupsListWithResponse call -func ParseDcimDeviceRedundancyGroupsListResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsBulkPartialUpdateResponse parses an HTTP response from a DcimDeviceRedundancyGroupsBulkPartialUpdateWithResponse call -func ParseDcimDeviceRedundancyGroupsBulkPartialUpdateResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsCreateResponse parses an HTTP response from a DcimDeviceRedundancyGroupsCreateWithResponse call -func ParseDcimDeviceRedundancyGroupsCreateResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsBulkUpdateResponse parses an HTTP response from a DcimDeviceRedundancyGroupsBulkUpdateWithResponse call -func ParseDcimDeviceRedundancyGroupsBulkUpdateResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsDestroyResponse parses an HTTP response from a DcimDeviceRedundancyGroupsDestroyWithResponse call -func ParseDcimDeviceRedundancyGroupsDestroyResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsRetrieveResponse parses an HTTP response from a DcimDeviceRedundancyGroupsRetrieveWithResponse call -func ParseDcimDeviceRedundancyGroupsRetrieveResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsPartialUpdateResponse parses an HTTP response from a DcimDeviceRedundancyGroupsPartialUpdateWithResponse call -func ParseDcimDeviceRedundancyGroupsPartialUpdateResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsUpdateResponse parses an HTTP response from a DcimDeviceRedundancyGroupsUpdateWithResponse call -func ParseDcimDeviceRedundancyGroupsUpdateResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsNotesListResponse parses an HTTP response from a DcimDeviceRedundancyGroupsNotesListWithResponse call -func ParseDcimDeviceRedundancyGroupsNotesListResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRedundancyGroupsNotesCreateResponse parses an HTTP response from a DcimDeviceRedundancyGroupsNotesCreateWithResponse call -func ParseDcimDeviceRedundancyGroupsNotesCreateResponse(rsp *http.Response) (*DcimDeviceRedundancyGroupsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRedundancyGroupsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesBulkDestroyResponse parses an HTTP response from a DcimDeviceRolesBulkDestroyWithResponse call -func ParseDcimDeviceRolesBulkDestroyResponse(rsp *http.Response) (*DcimDeviceRolesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesListResponse parses an HTTP response from a DcimDeviceRolesListWithResponse call -func ParseDcimDeviceRolesListResponse(rsp *http.Response) (*DcimDeviceRolesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesBulkPartialUpdateResponse parses an HTTP response from a DcimDeviceRolesBulkPartialUpdateWithResponse call -func ParseDcimDeviceRolesBulkPartialUpdateResponse(rsp *http.Response) (*DcimDeviceRolesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesCreateResponse parses an HTTP response from a DcimDeviceRolesCreateWithResponse call -func ParseDcimDeviceRolesCreateResponse(rsp *http.Response) (*DcimDeviceRolesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesBulkUpdateResponse parses an HTTP response from a DcimDeviceRolesBulkUpdateWithResponse call -func ParseDcimDeviceRolesBulkUpdateResponse(rsp *http.Response) (*DcimDeviceRolesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesDestroyResponse parses an HTTP response from a DcimDeviceRolesDestroyWithResponse call -func ParseDcimDeviceRolesDestroyResponse(rsp *http.Response) (*DcimDeviceRolesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesRetrieveResponse parses an HTTP response from a DcimDeviceRolesRetrieveWithResponse call -func ParseDcimDeviceRolesRetrieveResponse(rsp *http.Response) (*DcimDeviceRolesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesPartialUpdateResponse parses an HTTP response from a DcimDeviceRolesPartialUpdateWithResponse call -func ParseDcimDeviceRolesPartialUpdateResponse(rsp *http.Response) (*DcimDeviceRolesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesUpdateResponse parses an HTTP response from a DcimDeviceRolesUpdateWithResponse call -func ParseDcimDeviceRolesUpdateResponse(rsp *http.Response) (*DcimDeviceRolesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesNotesListResponse parses an HTTP response from a DcimDeviceRolesNotesListWithResponse call -func ParseDcimDeviceRolesNotesListResponse(rsp *http.Response) (*DcimDeviceRolesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceRolesNotesCreateResponse parses an HTTP response from a DcimDeviceRolesNotesCreateWithResponse call -func ParseDcimDeviceRolesNotesCreateResponse(rsp *http.Response) (*DcimDeviceRolesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceRolesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesBulkDestroyResponse parses an HTTP response from a DcimDeviceTypesBulkDestroyWithResponse call -func ParseDcimDeviceTypesBulkDestroyResponse(rsp *http.Response) (*DcimDeviceTypesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesListResponse parses an HTTP response from a DcimDeviceTypesListWithResponse call -func ParseDcimDeviceTypesListResponse(rsp *http.Response) (*DcimDeviceTypesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesBulkPartialUpdateResponse parses an HTTP response from a DcimDeviceTypesBulkPartialUpdateWithResponse call -func ParseDcimDeviceTypesBulkPartialUpdateResponse(rsp *http.Response) (*DcimDeviceTypesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesCreateResponse parses an HTTP response from a DcimDeviceTypesCreateWithResponse call -func ParseDcimDeviceTypesCreateResponse(rsp *http.Response) (*DcimDeviceTypesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesBulkUpdateResponse parses an HTTP response from a DcimDeviceTypesBulkUpdateWithResponse call -func ParseDcimDeviceTypesBulkUpdateResponse(rsp *http.Response) (*DcimDeviceTypesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesDestroyResponse parses an HTTP response from a DcimDeviceTypesDestroyWithResponse call -func ParseDcimDeviceTypesDestroyResponse(rsp *http.Response) (*DcimDeviceTypesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesRetrieveResponse parses an HTTP response from a DcimDeviceTypesRetrieveWithResponse call -func ParseDcimDeviceTypesRetrieveResponse(rsp *http.Response) (*DcimDeviceTypesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesPartialUpdateResponse parses an HTTP response from a DcimDeviceTypesPartialUpdateWithResponse call -func ParseDcimDeviceTypesPartialUpdateResponse(rsp *http.Response) (*DcimDeviceTypesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesUpdateResponse parses an HTTP response from a DcimDeviceTypesUpdateWithResponse call -func ParseDcimDeviceTypesUpdateResponse(rsp *http.Response) (*DcimDeviceTypesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesNotesListResponse parses an HTTP response from a DcimDeviceTypesNotesListWithResponse call -func ParseDcimDeviceTypesNotesListResponse(rsp *http.Response) (*DcimDeviceTypesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDeviceTypesNotesCreateResponse parses an HTTP response from a DcimDeviceTypesNotesCreateWithResponse call -func ParseDcimDeviceTypesNotesCreateResponse(rsp *http.Response) (*DcimDeviceTypesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDeviceTypesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesBulkDestroyResponse parses an HTTP response from a DcimDevicesBulkDestroyWithResponse call -func ParseDcimDevicesBulkDestroyResponse(rsp *http.Response) (*DcimDevicesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesListResponse parses an HTTP response from a DcimDevicesListWithResponse call -func ParseDcimDevicesListResponse(rsp *http.Response) (*DcimDevicesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesBulkPartialUpdateResponse parses an HTTP response from a DcimDevicesBulkPartialUpdateWithResponse call -func ParseDcimDevicesBulkPartialUpdateResponse(rsp *http.Response) (*DcimDevicesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesCreateResponse parses an HTTP response from a DcimDevicesCreateWithResponse call -func ParseDcimDevicesCreateResponse(rsp *http.Response) (*DcimDevicesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesBulkUpdateResponse parses an HTTP response from a DcimDevicesBulkUpdateWithResponse call -func ParseDcimDevicesBulkUpdateResponse(rsp *http.Response) (*DcimDevicesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesDestroyResponse parses an HTTP response from a DcimDevicesDestroyWithResponse call -func ParseDcimDevicesDestroyResponse(rsp *http.Response) (*DcimDevicesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesRetrieveResponse parses an HTTP response from a DcimDevicesRetrieveWithResponse call -func ParseDcimDevicesRetrieveResponse(rsp *http.Response) (*DcimDevicesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesPartialUpdateResponse parses an HTTP response from a DcimDevicesPartialUpdateWithResponse call -func ParseDcimDevicesPartialUpdateResponse(rsp *http.Response) (*DcimDevicesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesUpdateResponse parses an HTTP response from a DcimDevicesUpdateWithResponse call -func ParseDcimDevicesUpdateResponse(rsp *http.Response) (*DcimDevicesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesNapalmRetrieveResponse parses an HTTP response from a DcimDevicesNapalmRetrieveWithResponse call -func ParseDcimDevicesNapalmRetrieveResponse(rsp *http.Response) (*DcimDevicesNapalmRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesNapalmRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesNotesListResponse parses an HTTP response from a DcimDevicesNotesListWithResponse call -func ParseDcimDevicesNotesListResponse(rsp *http.Response) (*DcimDevicesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimDevicesNotesCreateResponse parses an HTTP response from a DcimDevicesNotesCreateWithResponse call -func ParseDcimDevicesNotesCreateResponse(rsp *http.Response) (*DcimDevicesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimDevicesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesBulkDestroyResponse parses an HTTP response from a DcimFrontPortTemplatesBulkDestroyWithResponse call -func ParseDcimFrontPortTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimFrontPortTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesListResponse parses an HTTP response from a DcimFrontPortTemplatesListWithResponse call -func ParseDcimFrontPortTemplatesListResponse(rsp *http.Response) (*DcimFrontPortTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimFrontPortTemplatesBulkPartialUpdateWithResponse call -func ParseDcimFrontPortTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimFrontPortTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesCreateResponse parses an HTTP response from a DcimFrontPortTemplatesCreateWithResponse call -func ParseDcimFrontPortTemplatesCreateResponse(rsp *http.Response) (*DcimFrontPortTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesBulkUpdateResponse parses an HTTP response from a DcimFrontPortTemplatesBulkUpdateWithResponse call -func ParseDcimFrontPortTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimFrontPortTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesDestroyResponse parses an HTTP response from a DcimFrontPortTemplatesDestroyWithResponse call -func ParseDcimFrontPortTemplatesDestroyResponse(rsp *http.Response) (*DcimFrontPortTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesRetrieveResponse parses an HTTP response from a DcimFrontPortTemplatesRetrieveWithResponse call -func ParseDcimFrontPortTemplatesRetrieveResponse(rsp *http.Response) (*DcimFrontPortTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesPartialUpdateResponse parses an HTTP response from a DcimFrontPortTemplatesPartialUpdateWithResponse call -func ParseDcimFrontPortTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimFrontPortTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesUpdateResponse parses an HTTP response from a DcimFrontPortTemplatesUpdateWithResponse call -func ParseDcimFrontPortTemplatesUpdateResponse(rsp *http.Response) (*DcimFrontPortTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesNotesListResponse parses an HTTP response from a DcimFrontPortTemplatesNotesListWithResponse call -func ParseDcimFrontPortTemplatesNotesListResponse(rsp *http.Response) (*DcimFrontPortTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortTemplatesNotesCreateResponse parses an HTTP response from a DcimFrontPortTemplatesNotesCreateWithResponse call -func ParseDcimFrontPortTemplatesNotesCreateResponse(rsp *http.Response) (*DcimFrontPortTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsBulkDestroyResponse parses an HTTP response from a DcimFrontPortsBulkDestroyWithResponse call -func ParseDcimFrontPortsBulkDestroyResponse(rsp *http.Response) (*DcimFrontPortsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsListResponse parses an HTTP response from a DcimFrontPortsListWithResponse call -func ParseDcimFrontPortsListResponse(rsp *http.Response) (*DcimFrontPortsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsBulkPartialUpdateResponse parses an HTTP response from a DcimFrontPortsBulkPartialUpdateWithResponse call -func ParseDcimFrontPortsBulkPartialUpdateResponse(rsp *http.Response) (*DcimFrontPortsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsCreateResponse parses an HTTP response from a DcimFrontPortsCreateWithResponse call -func ParseDcimFrontPortsCreateResponse(rsp *http.Response) (*DcimFrontPortsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsBulkUpdateResponse parses an HTTP response from a DcimFrontPortsBulkUpdateWithResponse call -func ParseDcimFrontPortsBulkUpdateResponse(rsp *http.Response) (*DcimFrontPortsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsDestroyResponse parses an HTTP response from a DcimFrontPortsDestroyWithResponse call -func ParseDcimFrontPortsDestroyResponse(rsp *http.Response) (*DcimFrontPortsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsRetrieveResponse parses an HTTP response from a DcimFrontPortsRetrieveWithResponse call -func ParseDcimFrontPortsRetrieveResponse(rsp *http.Response) (*DcimFrontPortsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsPartialUpdateResponse parses an HTTP response from a DcimFrontPortsPartialUpdateWithResponse call -func ParseDcimFrontPortsPartialUpdateResponse(rsp *http.Response) (*DcimFrontPortsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsUpdateResponse parses an HTTP response from a DcimFrontPortsUpdateWithResponse call -func ParseDcimFrontPortsUpdateResponse(rsp *http.Response) (*DcimFrontPortsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsNotesListResponse parses an HTTP response from a DcimFrontPortsNotesListWithResponse call -func ParseDcimFrontPortsNotesListResponse(rsp *http.Response) (*DcimFrontPortsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsNotesCreateResponse parses an HTTP response from a DcimFrontPortsNotesCreateWithResponse call -func ParseDcimFrontPortsNotesCreateResponse(rsp *http.Response) (*DcimFrontPortsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimFrontPortsPathsRetrieveResponse parses an HTTP response from a DcimFrontPortsPathsRetrieveWithResponse call -func ParseDcimFrontPortsPathsRetrieveResponse(rsp *http.Response) (*DcimFrontPortsPathsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimFrontPortsPathsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceConnectionsListResponse parses an HTTP response from a DcimInterfaceConnectionsListWithResponse call -func ParseDcimInterfaceConnectionsListResponse(rsp *http.Response) (*DcimInterfaceConnectionsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceConnectionsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesBulkDestroyResponse parses an HTTP response from a DcimInterfaceTemplatesBulkDestroyWithResponse call -func ParseDcimInterfaceTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimInterfaceTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesListResponse parses an HTTP response from a DcimInterfaceTemplatesListWithResponse call -func ParseDcimInterfaceTemplatesListResponse(rsp *http.Response) (*DcimInterfaceTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimInterfaceTemplatesBulkPartialUpdateWithResponse call -func ParseDcimInterfaceTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimInterfaceTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesCreateResponse parses an HTTP response from a DcimInterfaceTemplatesCreateWithResponse call -func ParseDcimInterfaceTemplatesCreateResponse(rsp *http.Response) (*DcimInterfaceTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesBulkUpdateResponse parses an HTTP response from a DcimInterfaceTemplatesBulkUpdateWithResponse call -func ParseDcimInterfaceTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimInterfaceTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesDestroyResponse parses an HTTP response from a DcimInterfaceTemplatesDestroyWithResponse call -func ParseDcimInterfaceTemplatesDestroyResponse(rsp *http.Response) (*DcimInterfaceTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesRetrieveResponse parses an HTTP response from a DcimInterfaceTemplatesRetrieveWithResponse call -func ParseDcimInterfaceTemplatesRetrieveResponse(rsp *http.Response) (*DcimInterfaceTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesPartialUpdateResponse parses an HTTP response from a DcimInterfaceTemplatesPartialUpdateWithResponse call -func ParseDcimInterfaceTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimInterfaceTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesUpdateResponse parses an HTTP response from a DcimInterfaceTemplatesUpdateWithResponse call -func ParseDcimInterfaceTemplatesUpdateResponse(rsp *http.Response) (*DcimInterfaceTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesNotesListResponse parses an HTTP response from a DcimInterfaceTemplatesNotesListWithResponse call -func ParseDcimInterfaceTemplatesNotesListResponse(rsp *http.Response) (*DcimInterfaceTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfaceTemplatesNotesCreateResponse parses an HTTP response from a DcimInterfaceTemplatesNotesCreateWithResponse call -func ParseDcimInterfaceTemplatesNotesCreateResponse(rsp *http.Response) (*DcimInterfaceTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfaceTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesBulkDestroyResponse parses an HTTP response from a DcimInterfacesBulkDestroyWithResponse call -func ParseDcimInterfacesBulkDestroyResponse(rsp *http.Response) (*DcimInterfacesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesListResponse parses an HTTP response from a DcimInterfacesListWithResponse call -func ParseDcimInterfacesListResponse(rsp *http.Response) (*DcimInterfacesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesBulkPartialUpdateResponse parses an HTTP response from a DcimInterfacesBulkPartialUpdateWithResponse call -func ParseDcimInterfacesBulkPartialUpdateResponse(rsp *http.Response) (*DcimInterfacesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesCreateResponse parses an HTTP response from a DcimInterfacesCreateWithResponse call -func ParseDcimInterfacesCreateResponse(rsp *http.Response) (*DcimInterfacesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesBulkUpdateResponse parses an HTTP response from a DcimInterfacesBulkUpdateWithResponse call -func ParseDcimInterfacesBulkUpdateResponse(rsp *http.Response) (*DcimInterfacesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesDestroyResponse parses an HTTP response from a DcimInterfacesDestroyWithResponse call -func ParseDcimInterfacesDestroyResponse(rsp *http.Response) (*DcimInterfacesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesRetrieveResponse parses an HTTP response from a DcimInterfacesRetrieveWithResponse call -func ParseDcimInterfacesRetrieveResponse(rsp *http.Response) (*DcimInterfacesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesPartialUpdateResponse parses an HTTP response from a DcimInterfacesPartialUpdateWithResponse call -func ParseDcimInterfacesPartialUpdateResponse(rsp *http.Response) (*DcimInterfacesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesUpdateResponse parses an HTTP response from a DcimInterfacesUpdateWithResponse call -func ParseDcimInterfacesUpdateResponse(rsp *http.Response) (*DcimInterfacesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesNotesListResponse parses an HTTP response from a DcimInterfacesNotesListWithResponse call -func ParseDcimInterfacesNotesListResponse(rsp *http.Response) (*DcimInterfacesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesNotesCreateResponse parses an HTTP response from a DcimInterfacesNotesCreateWithResponse call -func ParseDcimInterfacesNotesCreateResponse(rsp *http.Response) (*DcimInterfacesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInterfacesTraceRetrieveResponse parses an HTTP response from a DcimInterfacesTraceRetrieveWithResponse call -func ParseDcimInterfacesTraceRetrieveResponse(rsp *http.Response) (*DcimInterfacesTraceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInterfacesTraceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsBulkDestroyResponse parses an HTTP response from a DcimInventoryItemsBulkDestroyWithResponse call -func ParseDcimInventoryItemsBulkDestroyResponse(rsp *http.Response) (*DcimInventoryItemsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsListResponse parses an HTTP response from a DcimInventoryItemsListWithResponse call -func ParseDcimInventoryItemsListResponse(rsp *http.Response) (*DcimInventoryItemsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsBulkPartialUpdateResponse parses an HTTP response from a DcimInventoryItemsBulkPartialUpdateWithResponse call -func ParseDcimInventoryItemsBulkPartialUpdateResponse(rsp *http.Response) (*DcimInventoryItemsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsCreateResponse parses an HTTP response from a DcimInventoryItemsCreateWithResponse call -func ParseDcimInventoryItemsCreateResponse(rsp *http.Response) (*DcimInventoryItemsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsBulkUpdateResponse parses an HTTP response from a DcimInventoryItemsBulkUpdateWithResponse call -func ParseDcimInventoryItemsBulkUpdateResponse(rsp *http.Response) (*DcimInventoryItemsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsDestroyResponse parses an HTTP response from a DcimInventoryItemsDestroyWithResponse call -func ParseDcimInventoryItemsDestroyResponse(rsp *http.Response) (*DcimInventoryItemsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsRetrieveResponse parses an HTTP response from a DcimInventoryItemsRetrieveWithResponse call -func ParseDcimInventoryItemsRetrieveResponse(rsp *http.Response) (*DcimInventoryItemsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsPartialUpdateResponse parses an HTTP response from a DcimInventoryItemsPartialUpdateWithResponse call -func ParseDcimInventoryItemsPartialUpdateResponse(rsp *http.Response) (*DcimInventoryItemsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsUpdateResponse parses an HTTP response from a DcimInventoryItemsUpdateWithResponse call -func ParseDcimInventoryItemsUpdateResponse(rsp *http.Response) (*DcimInventoryItemsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsNotesListResponse parses an HTTP response from a DcimInventoryItemsNotesListWithResponse call -func ParseDcimInventoryItemsNotesListResponse(rsp *http.Response) (*DcimInventoryItemsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimInventoryItemsNotesCreateResponse parses an HTTP response from a DcimInventoryItemsNotesCreateWithResponse call -func ParseDcimInventoryItemsNotesCreateResponse(rsp *http.Response) (*DcimInventoryItemsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimInventoryItemsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesBulkDestroyResponse parses an HTTP response from a DcimLocationTypesBulkDestroyWithResponse call -func ParseDcimLocationTypesBulkDestroyResponse(rsp *http.Response) (*DcimLocationTypesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesListResponse parses an HTTP response from a DcimLocationTypesListWithResponse call -func ParseDcimLocationTypesListResponse(rsp *http.Response) (*DcimLocationTypesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesBulkPartialUpdateResponse parses an HTTP response from a DcimLocationTypesBulkPartialUpdateWithResponse call -func ParseDcimLocationTypesBulkPartialUpdateResponse(rsp *http.Response) (*DcimLocationTypesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesCreateResponse parses an HTTP response from a DcimLocationTypesCreateWithResponse call -func ParseDcimLocationTypesCreateResponse(rsp *http.Response) (*DcimLocationTypesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesBulkUpdateResponse parses an HTTP response from a DcimLocationTypesBulkUpdateWithResponse call -func ParseDcimLocationTypesBulkUpdateResponse(rsp *http.Response) (*DcimLocationTypesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesDestroyResponse parses an HTTP response from a DcimLocationTypesDestroyWithResponse call -func ParseDcimLocationTypesDestroyResponse(rsp *http.Response) (*DcimLocationTypesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesRetrieveResponse parses an HTTP response from a DcimLocationTypesRetrieveWithResponse call -func ParseDcimLocationTypesRetrieveResponse(rsp *http.Response) (*DcimLocationTypesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesPartialUpdateResponse parses an HTTP response from a DcimLocationTypesPartialUpdateWithResponse call -func ParseDcimLocationTypesPartialUpdateResponse(rsp *http.Response) (*DcimLocationTypesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesUpdateResponse parses an HTTP response from a DcimLocationTypesUpdateWithResponse call -func ParseDcimLocationTypesUpdateResponse(rsp *http.Response) (*DcimLocationTypesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesNotesListResponse parses an HTTP response from a DcimLocationTypesNotesListWithResponse call -func ParseDcimLocationTypesNotesListResponse(rsp *http.Response) (*DcimLocationTypesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationTypesNotesCreateResponse parses an HTTP response from a DcimLocationTypesNotesCreateWithResponse call -func ParseDcimLocationTypesNotesCreateResponse(rsp *http.Response) (*DcimLocationTypesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationTypesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsBulkDestroyResponse parses an HTTP response from a DcimLocationsBulkDestroyWithResponse call -func ParseDcimLocationsBulkDestroyResponse(rsp *http.Response) (*DcimLocationsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsListResponse parses an HTTP response from a DcimLocationsListWithResponse call -func ParseDcimLocationsListResponse(rsp *http.Response) (*DcimLocationsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsBulkPartialUpdateResponse parses an HTTP response from a DcimLocationsBulkPartialUpdateWithResponse call -func ParseDcimLocationsBulkPartialUpdateResponse(rsp *http.Response) (*DcimLocationsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsCreateResponse parses an HTTP response from a DcimLocationsCreateWithResponse call -func ParseDcimLocationsCreateResponse(rsp *http.Response) (*DcimLocationsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsBulkUpdateResponse parses an HTTP response from a DcimLocationsBulkUpdateWithResponse call -func ParseDcimLocationsBulkUpdateResponse(rsp *http.Response) (*DcimLocationsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsDestroyResponse parses an HTTP response from a DcimLocationsDestroyWithResponse call -func ParseDcimLocationsDestroyResponse(rsp *http.Response) (*DcimLocationsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsRetrieveResponse parses an HTTP response from a DcimLocationsRetrieveWithResponse call -func ParseDcimLocationsRetrieveResponse(rsp *http.Response) (*DcimLocationsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsPartialUpdateResponse parses an HTTP response from a DcimLocationsPartialUpdateWithResponse call -func ParseDcimLocationsPartialUpdateResponse(rsp *http.Response) (*DcimLocationsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsUpdateResponse parses an HTTP response from a DcimLocationsUpdateWithResponse call -func ParseDcimLocationsUpdateResponse(rsp *http.Response) (*DcimLocationsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsNotesListResponse parses an HTTP response from a DcimLocationsNotesListWithResponse call -func ParseDcimLocationsNotesListResponse(rsp *http.Response) (*DcimLocationsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimLocationsNotesCreateResponse parses an HTTP response from a DcimLocationsNotesCreateWithResponse call -func ParseDcimLocationsNotesCreateResponse(rsp *http.Response) (*DcimLocationsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimLocationsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersBulkDestroyResponse parses an HTTP response from a DcimManufacturersBulkDestroyWithResponse call -func ParseDcimManufacturersBulkDestroyResponse(rsp *http.Response) (*DcimManufacturersBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersListResponse parses an HTTP response from a DcimManufacturersListWithResponse call -func ParseDcimManufacturersListResponse(rsp *http.Response) (*DcimManufacturersListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersBulkPartialUpdateResponse parses an HTTP response from a DcimManufacturersBulkPartialUpdateWithResponse call -func ParseDcimManufacturersBulkPartialUpdateResponse(rsp *http.Response) (*DcimManufacturersBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersCreateResponse parses an HTTP response from a DcimManufacturersCreateWithResponse call -func ParseDcimManufacturersCreateResponse(rsp *http.Response) (*DcimManufacturersCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersBulkUpdateResponse parses an HTTP response from a DcimManufacturersBulkUpdateWithResponse call -func ParseDcimManufacturersBulkUpdateResponse(rsp *http.Response) (*DcimManufacturersBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersDestroyResponse parses an HTTP response from a DcimManufacturersDestroyWithResponse call -func ParseDcimManufacturersDestroyResponse(rsp *http.Response) (*DcimManufacturersDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersRetrieveResponse parses an HTTP response from a DcimManufacturersRetrieveWithResponse call -func ParseDcimManufacturersRetrieveResponse(rsp *http.Response) (*DcimManufacturersRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersPartialUpdateResponse parses an HTTP response from a DcimManufacturersPartialUpdateWithResponse call -func ParseDcimManufacturersPartialUpdateResponse(rsp *http.Response) (*DcimManufacturersPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersUpdateResponse parses an HTTP response from a DcimManufacturersUpdateWithResponse call -func ParseDcimManufacturersUpdateResponse(rsp *http.Response) (*DcimManufacturersUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersNotesListResponse parses an HTTP response from a DcimManufacturersNotesListWithResponse call -func ParseDcimManufacturersNotesListResponse(rsp *http.Response) (*DcimManufacturersNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimManufacturersNotesCreateResponse parses an HTTP response from a DcimManufacturersNotesCreateWithResponse call -func ParseDcimManufacturersNotesCreateResponse(rsp *http.Response) (*DcimManufacturersNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimManufacturersNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsBulkDestroyResponse parses an HTTP response from a DcimPlatformsBulkDestroyWithResponse call -func ParseDcimPlatformsBulkDestroyResponse(rsp *http.Response) (*DcimPlatformsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsListResponse parses an HTTP response from a DcimPlatformsListWithResponse call -func ParseDcimPlatformsListResponse(rsp *http.Response) (*DcimPlatformsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsBulkPartialUpdateResponse parses an HTTP response from a DcimPlatformsBulkPartialUpdateWithResponse call -func ParseDcimPlatformsBulkPartialUpdateResponse(rsp *http.Response) (*DcimPlatformsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsCreateResponse parses an HTTP response from a DcimPlatformsCreateWithResponse call -func ParseDcimPlatformsCreateResponse(rsp *http.Response) (*DcimPlatformsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsBulkUpdateResponse parses an HTTP response from a DcimPlatformsBulkUpdateWithResponse call -func ParseDcimPlatformsBulkUpdateResponse(rsp *http.Response) (*DcimPlatformsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsDestroyResponse parses an HTTP response from a DcimPlatformsDestroyWithResponse call -func ParseDcimPlatformsDestroyResponse(rsp *http.Response) (*DcimPlatformsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsRetrieveResponse parses an HTTP response from a DcimPlatformsRetrieveWithResponse call -func ParseDcimPlatformsRetrieveResponse(rsp *http.Response) (*DcimPlatformsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsPartialUpdateResponse parses an HTTP response from a DcimPlatformsPartialUpdateWithResponse call -func ParseDcimPlatformsPartialUpdateResponse(rsp *http.Response) (*DcimPlatformsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsUpdateResponse parses an HTTP response from a DcimPlatformsUpdateWithResponse call -func ParseDcimPlatformsUpdateResponse(rsp *http.Response) (*DcimPlatformsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsNotesListResponse parses an HTTP response from a DcimPlatformsNotesListWithResponse call -func ParseDcimPlatformsNotesListResponse(rsp *http.Response) (*DcimPlatformsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPlatformsNotesCreateResponse parses an HTTP response from a DcimPlatformsNotesCreateWithResponse call -func ParseDcimPlatformsNotesCreateResponse(rsp *http.Response) (*DcimPlatformsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPlatformsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerConnectionsListResponse parses an HTTP response from a DcimPowerConnectionsListWithResponse call -func ParseDcimPowerConnectionsListResponse(rsp *http.Response) (*DcimPowerConnectionsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerConnectionsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsBulkDestroyResponse parses an HTTP response from a DcimPowerFeedsBulkDestroyWithResponse call -func ParseDcimPowerFeedsBulkDestroyResponse(rsp *http.Response) (*DcimPowerFeedsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsListResponse parses an HTTP response from a DcimPowerFeedsListWithResponse call -func ParseDcimPowerFeedsListResponse(rsp *http.Response) (*DcimPowerFeedsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsBulkPartialUpdateResponse parses an HTTP response from a DcimPowerFeedsBulkPartialUpdateWithResponse call -func ParseDcimPowerFeedsBulkPartialUpdateResponse(rsp *http.Response) (*DcimPowerFeedsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsCreateResponse parses an HTTP response from a DcimPowerFeedsCreateWithResponse call -func ParseDcimPowerFeedsCreateResponse(rsp *http.Response) (*DcimPowerFeedsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsBulkUpdateResponse parses an HTTP response from a DcimPowerFeedsBulkUpdateWithResponse call -func ParseDcimPowerFeedsBulkUpdateResponse(rsp *http.Response) (*DcimPowerFeedsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsDestroyResponse parses an HTTP response from a DcimPowerFeedsDestroyWithResponse call -func ParseDcimPowerFeedsDestroyResponse(rsp *http.Response) (*DcimPowerFeedsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsRetrieveResponse parses an HTTP response from a DcimPowerFeedsRetrieveWithResponse call -func ParseDcimPowerFeedsRetrieveResponse(rsp *http.Response) (*DcimPowerFeedsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsPartialUpdateResponse parses an HTTP response from a DcimPowerFeedsPartialUpdateWithResponse call -func ParseDcimPowerFeedsPartialUpdateResponse(rsp *http.Response) (*DcimPowerFeedsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsUpdateResponse parses an HTTP response from a DcimPowerFeedsUpdateWithResponse call -func ParseDcimPowerFeedsUpdateResponse(rsp *http.Response) (*DcimPowerFeedsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsNotesListResponse parses an HTTP response from a DcimPowerFeedsNotesListWithResponse call -func ParseDcimPowerFeedsNotesListResponse(rsp *http.Response) (*DcimPowerFeedsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsNotesCreateResponse parses an HTTP response from a DcimPowerFeedsNotesCreateWithResponse call -func ParseDcimPowerFeedsNotesCreateResponse(rsp *http.Response) (*DcimPowerFeedsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerFeedsTraceRetrieveResponse parses an HTTP response from a DcimPowerFeedsTraceRetrieveWithResponse call -func ParseDcimPowerFeedsTraceRetrieveResponse(rsp *http.Response) (*DcimPowerFeedsTraceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerFeedsTraceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesBulkDestroyResponse parses an HTTP response from a DcimPowerOutletTemplatesBulkDestroyWithResponse call -func ParseDcimPowerOutletTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimPowerOutletTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesListResponse parses an HTTP response from a DcimPowerOutletTemplatesListWithResponse call -func ParseDcimPowerOutletTemplatesListResponse(rsp *http.Response) (*DcimPowerOutletTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimPowerOutletTemplatesBulkPartialUpdateWithResponse call -func ParseDcimPowerOutletTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimPowerOutletTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesCreateResponse parses an HTTP response from a DcimPowerOutletTemplatesCreateWithResponse call -func ParseDcimPowerOutletTemplatesCreateResponse(rsp *http.Response) (*DcimPowerOutletTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesBulkUpdateResponse parses an HTTP response from a DcimPowerOutletTemplatesBulkUpdateWithResponse call -func ParseDcimPowerOutletTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimPowerOutletTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesDestroyResponse parses an HTTP response from a DcimPowerOutletTemplatesDestroyWithResponse call -func ParseDcimPowerOutletTemplatesDestroyResponse(rsp *http.Response) (*DcimPowerOutletTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesRetrieveResponse parses an HTTP response from a DcimPowerOutletTemplatesRetrieveWithResponse call -func ParseDcimPowerOutletTemplatesRetrieveResponse(rsp *http.Response) (*DcimPowerOutletTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesPartialUpdateResponse parses an HTTP response from a DcimPowerOutletTemplatesPartialUpdateWithResponse call -func ParseDcimPowerOutletTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimPowerOutletTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesUpdateResponse parses an HTTP response from a DcimPowerOutletTemplatesUpdateWithResponse call -func ParseDcimPowerOutletTemplatesUpdateResponse(rsp *http.Response) (*DcimPowerOutletTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesNotesListResponse parses an HTTP response from a DcimPowerOutletTemplatesNotesListWithResponse call -func ParseDcimPowerOutletTemplatesNotesListResponse(rsp *http.Response) (*DcimPowerOutletTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletTemplatesNotesCreateResponse parses an HTTP response from a DcimPowerOutletTemplatesNotesCreateWithResponse call -func ParseDcimPowerOutletTemplatesNotesCreateResponse(rsp *http.Response) (*DcimPowerOutletTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsBulkDestroyResponse parses an HTTP response from a DcimPowerOutletsBulkDestroyWithResponse call -func ParseDcimPowerOutletsBulkDestroyResponse(rsp *http.Response) (*DcimPowerOutletsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsListResponse parses an HTTP response from a DcimPowerOutletsListWithResponse call -func ParseDcimPowerOutletsListResponse(rsp *http.Response) (*DcimPowerOutletsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsBulkPartialUpdateResponse parses an HTTP response from a DcimPowerOutletsBulkPartialUpdateWithResponse call -func ParseDcimPowerOutletsBulkPartialUpdateResponse(rsp *http.Response) (*DcimPowerOutletsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsCreateResponse parses an HTTP response from a DcimPowerOutletsCreateWithResponse call -func ParseDcimPowerOutletsCreateResponse(rsp *http.Response) (*DcimPowerOutletsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsBulkUpdateResponse parses an HTTP response from a DcimPowerOutletsBulkUpdateWithResponse call -func ParseDcimPowerOutletsBulkUpdateResponse(rsp *http.Response) (*DcimPowerOutletsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsDestroyResponse parses an HTTP response from a DcimPowerOutletsDestroyWithResponse call -func ParseDcimPowerOutletsDestroyResponse(rsp *http.Response) (*DcimPowerOutletsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsRetrieveResponse parses an HTTP response from a DcimPowerOutletsRetrieveWithResponse call -func ParseDcimPowerOutletsRetrieveResponse(rsp *http.Response) (*DcimPowerOutletsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsPartialUpdateResponse parses an HTTP response from a DcimPowerOutletsPartialUpdateWithResponse call -func ParseDcimPowerOutletsPartialUpdateResponse(rsp *http.Response) (*DcimPowerOutletsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsUpdateResponse parses an HTTP response from a DcimPowerOutletsUpdateWithResponse call -func ParseDcimPowerOutletsUpdateResponse(rsp *http.Response) (*DcimPowerOutletsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsNotesListResponse parses an HTTP response from a DcimPowerOutletsNotesListWithResponse call -func ParseDcimPowerOutletsNotesListResponse(rsp *http.Response) (*DcimPowerOutletsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsNotesCreateResponse parses an HTTP response from a DcimPowerOutletsNotesCreateWithResponse call -func ParseDcimPowerOutletsNotesCreateResponse(rsp *http.Response) (*DcimPowerOutletsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerOutletsTraceRetrieveResponse parses an HTTP response from a DcimPowerOutletsTraceRetrieveWithResponse call -func ParseDcimPowerOutletsTraceRetrieveResponse(rsp *http.Response) (*DcimPowerOutletsTraceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerOutletsTraceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsBulkDestroyResponse parses an HTTP response from a DcimPowerPanelsBulkDestroyWithResponse call -func ParseDcimPowerPanelsBulkDestroyResponse(rsp *http.Response) (*DcimPowerPanelsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsListResponse parses an HTTP response from a DcimPowerPanelsListWithResponse call -func ParseDcimPowerPanelsListResponse(rsp *http.Response) (*DcimPowerPanelsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsBulkPartialUpdateResponse parses an HTTP response from a DcimPowerPanelsBulkPartialUpdateWithResponse call -func ParseDcimPowerPanelsBulkPartialUpdateResponse(rsp *http.Response) (*DcimPowerPanelsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsCreateResponse parses an HTTP response from a DcimPowerPanelsCreateWithResponse call -func ParseDcimPowerPanelsCreateResponse(rsp *http.Response) (*DcimPowerPanelsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsBulkUpdateResponse parses an HTTP response from a DcimPowerPanelsBulkUpdateWithResponse call -func ParseDcimPowerPanelsBulkUpdateResponse(rsp *http.Response) (*DcimPowerPanelsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsDestroyResponse parses an HTTP response from a DcimPowerPanelsDestroyWithResponse call -func ParseDcimPowerPanelsDestroyResponse(rsp *http.Response) (*DcimPowerPanelsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsRetrieveResponse parses an HTTP response from a DcimPowerPanelsRetrieveWithResponse call -func ParseDcimPowerPanelsRetrieveResponse(rsp *http.Response) (*DcimPowerPanelsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsPartialUpdateResponse parses an HTTP response from a DcimPowerPanelsPartialUpdateWithResponse call -func ParseDcimPowerPanelsPartialUpdateResponse(rsp *http.Response) (*DcimPowerPanelsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsUpdateResponse parses an HTTP response from a DcimPowerPanelsUpdateWithResponse call -func ParseDcimPowerPanelsUpdateResponse(rsp *http.Response) (*DcimPowerPanelsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsNotesListResponse parses an HTTP response from a DcimPowerPanelsNotesListWithResponse call -func ParseDcimPowerPanelsNotesListResponse(rsp *http.Response) (*DcimPowerPanelsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPanelsNotesCreateResponse parses an HTTP response from a DcimPowerPanelsNotesCreateWithResponse call -func ParseDcimPowerPanelsNotesCreateResponse(rsp *http.Response) (*DcimPowerPanelsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPanelsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesBulkDestroyResponse parses an HTTP response from a DcimPowerPortTemplatesBulkDestroyWithResponse call -func ParseDcimPowerPortTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimPowerPortTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesListResponse parses an HTTP response from a DcimPowerPortTemplatesListWithResponse call -func ParseDcimPowerPortTemplatesListResponse(rsp *http.Response) (*DcimPowerPortTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimPowerPortTemplatesBulkPartialUpdateWithResponse call -func ParseDcimPowerPortTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimPowerPortTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesCreateResponse parses an HTTP response from a DcimPowerPortTemplatesCreateWithResponse call -func ParseDcimPowerPortTemplatesCreateResponse(rsp *http.Response) (*DcimPowerPortTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesBulkUpdateResponse parses an HTTP response from a DcimPowerPortTemplatesBulkUpdateWithResponse call -func ParseDcimPowerPortTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimPowerPortTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesDestroyResponse parses an HTTP response from a DcimPowerPortTemplatesDestroyWithResponse call -func ParseDcimPowerPortTemplatesDestroyResponse(rsp *http.Response) (*DcimPowerPortTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesRetrieveResponse parses an HTTP response from a DcimPowerPortTemplatesRetrieveWithResponse call -func ParseDcimPowerPortTemplatesRetrieveResponse(rsp *http.Response) (*DcimPowerPortTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesPartialUpdateResponse parses an HTTP response from a DcimPowerPortTemplatesPartialUpdateWithResponse call -func ParseDcimPowerPortTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimPowerPortTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesUpdateResponse parses an HTTP response from a DcimPowerPortTemplatesUpdateWithResponse call -func ParseDcimPowerPortTemplatesUpdateResponse(rsp *http.Response) (*DcimPowerPortTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesNotesListResponse parses an HTTP response from a DcimPowerPortTemplatesNotesListWithResponse call -func ParseDcimPowerPortTemplatesNotesListResponse(rsp *http.Response) (*DcimPowerPortTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortTemplatesNotesCreateResponse parses an HTTP response from a DcimPowerPortTemplatesNotesCreateWithResponse call -func ParseDcimPowerPortTemplatesNotesCreateResponse(rsp *http.Response) (*DcimPowerPortTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsBulkDestroyResponse parses an HTTP response from a DcimPowerPortsBulkDestroyWithResponse call -func ParseDcimPowerPortsBulkDestroyResponse(rsp *http.Response) (*DcimPowerPortsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsListResponse parses an HTTP response from a DcimPowerPortsListWithResponse call -func ParseDcimPowerPortsListResponse(rsp *http.Response) (*DcimPowerPortsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsBulkPartialUpdateResponse parses an HTTP response from a DcimPowerPortsBulkPartialUpdateWithResponse call -func ParseDcimPowerPortsBulkPartialUpdateResponse(rsp *http.Response) (*DcimPowerPortsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsCreateResponse parses an HTTP response from a DcimPowerPortsCreateWithResponse call -func ParseDcimPowerPortsCreateResponse(rsp *http.Response) (*DcimPowerPortsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsBulkUpdateResponse parses an HTTP response from a DcimPowerPortsBulkUpdateWithResponse call -func ParseDcimPowerPortsBulkUpdateResponse(rsp *http.Response) (*DcimPowerPortsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsDestroyResponse parses an HTTP response from a DcimPowerPortsDestroyWithResponse call -func ParseDcimPowerPortsDestroyResponse(rsp *http.Response) (*DcimPowerPortsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsRetrieveResponse parses an HTTP response from a DcimPowerPortsRetrieveWithResponse call -func ParseDcimPowerPortsRetrieveResponse(rsp *http.Response) (*DcimPowerPortsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsPartialUpdateResponse parses an HTTP response from a DcimPowerPortsPartialUpdateWithResponse call -func ParseDcimPowerPortsPartialUpdateResponse(rsp *http.Response) (*DcimPowerPortsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsUpdateResponse parses an HTTP response from a DcimPowerPortsUpdateWithResponse call -func ParseDcimPowerPortsUpdateResponse(rsp *http.Response) (*DcimPowerPortsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsNotesListResponse parses an HTTP response from a DcimPowerPortsNotesListWithResponse call -func ParseDcimPowerPortsNotesListResponse(rsp *http.Response) (*DcimPowerPortsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsNotesCreateResponse parses an HTTP response from a DcimPowerPortsNotesCreateWithResponse call -func ParseDcimPowerPortsNotesCreateResponse(rsp *http.Response) (*DcimPowerPortsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimPowerPortsTraceRetrieveResponse parses an HTTP response from a DcimPowerPortsTraceRetrieveWithResponse call -func ParseDcimPowerPortsTraceRetrieveResponse(rsp *http.Response) (*DcimPowerPortsTraceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimPowerPortsTraceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsBulkDestroyResponse parses an HTTP response from a DcimRackGroupsBulkDestroyWithResponse call -func ParseDcimRackGroupsBulkDestroyResponse(rsp *http.Response) (*DcimRackGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsListResponse parses an HTTP response from a DcimRackGroupsListWithResponse call -func ParseDcimRackGroupsListResponse(rsp *http.Response) (*DcimRackGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsBulkPartialUpdateResponse parses an HTTP response from a DcimRackGroupsBulkPartialUpdateWithResponse call -func ParseDcimRackGroupsBulkPartialUpdateResponse(rsp *http.Response) (*DcimRackGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsCreateResponse parses an HTTP response from a DcimRackGroupsCreateWithResponse call -func ParseDcimRackGroupsCreateResponse(rsp *http.Response) (*DcimRackGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsBulkUpdateResponse parses an HTTP response from a DcimRackGroupsBulkUpdateWithResponse call -func ParseDcimRackGroupsBulkUpdateResponse(rsp *http.Response) (*DcimRackGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsDestroyResponse parses an HTTP response from a DcimRackGroupsDestroyWithResponse call -func ParseDcimRackGroupsDestroyResponse(rsp *http.Response) (*DcimRackGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsRetrieveResponse parses an HTTP response from a DcimRackGroupsRetrieveWithResponse call -func ParseDcimRackGroupsRetrieveResponse(rsp *http.Response) (*DcimRackGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsPartialUpdateResponse parses an HTTP response from a DcimRackGroupsPartialUpdateWithResponse call -func ParseDcimRackGroupsPartialUpdateResponse(rsp *http.Response) (*DcimRackGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsUpdateResponse parses an HTTP response from a DcimRackGroupsUpdateWithResponse call -func ParseDcimRackGroupsUpdateResponse(rsp *http.Response) (*DcimRackGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsNotesListResponse parses an HTTP response from a DcimRackGroupsNotesListWithResponse call -func ParseDcimRackGroupsNotesListResponse(rsp *http.Response) (*DcimRackGroupsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackGroupsNotesCreateResponse parses an HTTP response from a DcimRackGroupsNotesCreateWithResponse call -func ParseDcimRackGroupsNotesCreateResponse(rsp *http.Response) (*DcimRackGroupsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackGroupsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsBulkDestroyResponse parses an HTTP response from a DcimRackReservationsBulkDestroyWithResponse call -func ParseDcimRackReservationsBulkDestroyResponse(rsp *http.Response) (*DcimRackReservationsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsListResponse parses an HTTP response from a DcimRackReservationsListWithResponse call -func ParseDcimRackReservationsListResponse(rsp *http.Response) (*DcimRackReservationsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsBulkPartialUpdateResponse parses an HTTP response from a DcimRackReservationsBulkPartialUpdateWithResponse call -func ParseDcimRackReservationsBulkPartialUpdateResponse(rsp *http.Response) (*DcimRackReservationsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsCreateResponse parses an HTTP response from a DcimRackReservationsCreateWithResponse call -func ParseDcimRackReservationsCreateResponse(rsp *http.Response) (*DcimRackReservationsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsBulkUpdateResponse parses an HTTP response from a DcimRackReservationsBulkUpdateWithResponse call -func ParseDcimRackReservationsBulkUpdateResponse(rsp *http.Response) (*DcimRackReservationsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsDestroyResponse parses an HTTP response from a DcimRackReservationsDestroyWithResponse call -func ParseDcimRackReservationsDestroyResponse(rsp *http.Response) (*DcimRackReservationsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsRetrieveResponse parses an HTTP response from a DcimRackReservationsRetrieveWithResponse call -func ParseDcimRackReservationsRetrieveResponse(rsp *http.Response) (*DcimRackReservationsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsPartialUpdateResponse parses an HTTP response from a DcimRackReservationsPartialUpdateWithResponse call -func ParseDcimRackReservationsPartialUpdateResponse(rsp *http.Response) (*DcimRackReservationsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsUpdateResponse parses an HTTP response from a DcimRackReservationsUpdateWithResponse call -func ParseDcimRackReservationsUpdateResponse(rsp *http.Response) (*DcimRackReservationsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsNotesListResponse parses an HTTP response from a DcimRackReservationsNotesListWithResponse call -func ParseDcimRackReservationsNotesListResponse(rsp *http.Response) (*DcimRackReservationsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackReservationsNotesCreateResponse parses an HTTP response from a DcimRackReservationsNotesCreateWithResponse call -func ParseDcimRackReservationsNotesCreateResponse(rsp *http.Response) (*DcimRackReservationsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackReservationsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesBulkDestroyResponse parses an HTTP response from a DcimRackRolesBulkDestroyWithResponse call -func ParseDcimRackRolesBulkDestroyResponse(rsp *http.Response) (*DcimRackRolesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesListResponse parses an HTTP response from a DcimRackRolesListWithResponse call -func ParseDcimRackRolesListResponse(rsp *http.Response) (*DcimRackRolesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesBulkPartialUpdateResponse parses an HTTP response from a DcimRackRolesBulkPartialUpdateWithResponse call -func ParseDcimRackRolesBulkPartialUpdateResponse(rsp *http.Response) (*DcimRackRolesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesCreateResponse parses an HTTP response from a DcimRackRolesCreateWithResponse call -func ParseDcimRackRolesCreateResponse(rsp *http.Response) (*DcimRackRolesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesBulkUpdateResponse parses an HTTP response from a DcimRackRolesBulkUpdateWithResponse call -func ParseDcimRackRolesBulkUpdateResponse(rsp *http.Response) (*DcimRackRolesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesDestroyResponse parses an HTTP response from a DcimRackRolesDestroyWithResponse call -func ParseDcimRackRolesDestroyResponse(rsp *http.Response) (*DcimRackRolesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesRetrieveResponse parses an HTTP response from a DcimRackRolesRetrieveWithResponse call -func ParseDcimRackRolesRetrieveResponse(rsp *http.Response) (*DcimRackRolesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesPartialUpdateResponse parses an HTTP response from a DcimRackRolesPartialUpdateWithResponse call -func ParseDcimRackRolesPartialUpdateResponse(rsp *http.Response) (*DcimRackRolesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesUpdateResponse parses an HTTP response from a DcimRackRolesUpdateWithResponse call -func ParseDcimRackRolesUpdateResponse(rsp *http.Response) (*DcimRackRolesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesNotesListResponse parses an HTTP response from a DcimRackRolesNotesListWithResponse call -func ParseDcimRackRolesNotesListResponse(rsp *http.Response) (*DcimRackRolesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRackRolesNotesCreateResponse parses an HTTP response from a DcimRackRolesNotesCreateWithResponse call -func ParseDcimRackRolesNotesCreateResponse(rsp *http.Response) (*DcimRackRolesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRackRolesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksBulkDestroyResponse parses an HTTP response from a DcimRacksBulkDestroyWithResponse call -func ParseDcimRacksBulkDestroyResponse(rsp *http.Response) (*DcimRacksBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksListResponse parses an HTTP response from a DcimRacksListWithResponse call -func ParseDcimRacksListResponse(rsp *http.Response) (*DcimRacksListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksBulkPartialUpdateResponse parses an HTTP response from a DcimRacksBulkPartialUpdateWithResponse call -func ParseDcimRacksBulkPartialUpdateResponse(rsp *http.Response) (*DcimRacksBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksCreateResponse parses an HTTP response from a DcimRacksCreateWithResponse call -func ParseDcimRacksCreateResponse(rsp *http.Response) (*DcimRacksCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksBulkUpdateResponse parses an HTTP response from a DcimRacksBulkUpdateWithResponse call -func ParseDcimRacksBulkUpdateResponse(rsp *http.Response) (*DcimRacksBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksDestroyResponse parses an HTTP response from a DcimRacksDestroyWithResponse call -func ParseDcimRacksDestroyResponse(rsp *http.Response) (*DcimRacksDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksRetrieveResponse parses an HTTP response from a DcimRacksRetrieveWithResponse call -func ParseDcimRacksRetrieveResponse(rsp *http.Response) (*DcimRacksRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksPartialUpdateResponse parses an HTTP response from a DcimRacksPartialUpdateWithResponse call -func ParseDcimRacksPartialUpdateResponse(rsp *http.Response) (*DcimRacksPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksUpdateResponse parses an HTTP response from a DcimRacksUpdateWithResponse call -func ParseDcimRacksUpdateResponse(rsp *http.Response) (*DcimRacksUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksElevationListResponse parses an HTTP response from a DcimRacksElevationListWithResponse call -func ParseDcimRacksElevationListResponse(rsp *http.Response) (*DcimRacksElevationListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksElevationListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksNotesListResponse parses an HTTP response from a DcimRacksNotesListWithResponse call -func ParseDcimRacksNotesListResponse(rsp *http.Response) (*DcimRacksNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRacksNotesCreateResponse parses an HTTP response from a DcimRacksNotesCreateWithResponse call -func ParseDcimRacksNotesCreateResponse(rsp *http.Response) (*DcimRacksNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRacksNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesBulkDestroyResponse parses an HTTP response from a DcimRearPortTemplatesBulkDestroyWithResponse call -func ParseDcimRearPortTemplatesBulkDestroyResponse(rsp *http.Response) (*DcimRearPortTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesListResponse parses an HTTP response from a DcimRearPortTemplatesListWithResponse call -func ParseDcimRearPortTemplatesListResponse(rsp *http.Response) (*DcimRearPortTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesBulkPartialUpdateResponse parses an HTTP response from a DcimRearPortTemplatesBulkPartialUpdateWithResponse call -func ParseDcimRearPortTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*DcimRearPortTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesCreateResponse parses an HTTP response from a DcimRearPortTemplatesCreateWithResponse call -func ParseDcimRearPortTemplatesCreateResponse(rsp *http.Response) (*DcimRearPortTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesBulkUpdateResponse parses an HTTP response from a DcimRearPortTemplatesBulkUpdateWithResponse call -func ParseDcimRearPortTemplatesBulkUpdateResponse(rsp *http.Response) (*DcimRearPortTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesDestroyResponse parses an HTTP response from a DcimRearPortTemplatesDestroyWithResponse call -func ParseDcimRearPortTemplatesDestroyResponse(rsp *http.Response) (*DcimRearPortTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesRetrieveResponse parses an HTTP response from a DcimRearPortTemplatesRetrieveWithResponse call -func ParseDcimRearPortTemplatesRetrieveResponse(rsp *http.Response) (*DcimRearPortTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesPartialUpdateResponse parses an HTTP response from a DcimRearPortTemplatesPartialUpdateWithResponse call -func ParseDcimRearPortTemplatesPartialUpdateResponse(rsp *http.Response) (*DcimRearPortTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesUpdateResponse parses an HTTP response from a DcimRearPortTemplatesUpdateWithResponse call -func ParseDcimRearPortTemplatesUpdateResponse(rsp *http.Response) (*DcimRearPortTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesNotesListResponse parses an HTTP response from a DcimRearPortTemplatesNotesListWithResponse call -func ParseDcimRearPortTemplatesNotesListResponse(rsp *http.Response) (*DcimRearPortTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortTemplatesNotesCreateResponse parses an HTTP response from a DcimRearPortTemplatesNotesCreateWithResponse call -func ParseDcimRearPortTemplatesNotesCreateResponse(rsp *http.Response) (*DcimRearPortTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsBulkDestroyResponse parses an HTTP response from a DcimRearPortsBulkDestroyWithResponse call -func ParseDcimRearPortsBulkDestroyResponse(rsp *http.Response) (*DcimRearPortsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsListResponse parses an HTTP response from a DcimRearPortsListWithResponse call -func ParseDcimRearPortsListResponse(rsp *http.Response) (*DcimRearPortsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsBulkPartialUpdateResponse parses an HTTP response from a DcimRearPortsBulkPartialUpdateWithResponse call -func ParseDcimRearPortsBulkPartialUpdateResponse(rsp *http.Response) (*DcimRearPortsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsCreateResponse parses an HTTP response from a DcimRearPortsCreateWithResponse call -func ParseDcimRearPortsCreateResponse(rsp *http.Response) (*DcimRearPortsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsBulkUpdateResponse parses an HTTP response from a DcimRearPortsBulkUpdateWithResponse call -func ParseDcimRearPortsBulkUpdateResponse(rsp *http.Response) (*DcimRearPortsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsDestroyResponse parses an HTTP response from a DcimRearPortsDestroyWithResponse call -func ParseDcimRearPortsDestroyResponse(rsp *http.Response) (*DcimRearPortsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsRetrieveResponse parses an HTTP response from a DcimRearPortsRetrieveWithResponse call -func ParseDcimRearPortsRetrieveResponse(rsp *http.Response) (*DcimRearPortsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsPartialUpdateResponse parses an HTTP response from a DcimRearPortsPartialUpdateWithResponse call -func ParseDcimRearPortsPartialUpdateResponse(rsp *http.Response) (*DcimRearPortsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsUpdateResponse parses an HTTP response from a DcimRearPortsUpdateWithResponse call -func ParseDcimRearPortsUpdateResponse(rsp *http.Response) (*DcimRearPortsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsNotesListResponse parses an HTTP response from a DcimRearPortsNotesListWithResponse call -func ParseDcimRearPortsNotesListResponse(rsp *http.Response) (*DcimRearPortsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsNotesCreateResponse parses an HTTP response from a DcimRearPortsNotesCreateWithResponse call -func ParseDcimRearPortsNotesCreateResponse(rsp *http.Response) (*DcimRearPortsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRearPortsPathsRetrieveResponse parses an HTTP response from a DcimRearPortsPathsRetrieveWithResponse call -func ParseDcimRearPortsPathsRetrieveResponse(rsp *http.Response) (*DcimRearPortsPathsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRearPortsPathsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsBulkDestroyResponse parses an HTTP response from a DcimRegionsBulkDestroyWithResponse call -func ParseDcimRegionsBulkDestroyResponse(rsp *http.Response) (*DcimRegionsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsListResponse parses an HTTP response from a DcimRegionsListWithResponse call -func ParseDcimRegionsListResponse(rsp *http.Response) (*DcimRegionsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsBulkPartialUpdateResponse parses an HTTP response from a DcimRegionsBulkPartialUpdateWithResponse call -func ParseDcimRegionsBulkPartialUpdateResponse(rsp *http.Response) (*DcimRegionsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsCreateResponse parses an HTTP response from a DcimRegionsCreateWithResponse call -func ParseDcimRegionsCreateResponse(rsp *http.Response) (*DcimRegionsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsBulkUpdateResponse parses an HTTP response from a DcimRegionsBulkUpdateWithResponse call -func ParseDcimRegionsBulkUpdateResponse(rsp *http.Response) (*DcimRegionsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsDestroyResponse parses an HTTP response from a DcimRegionsDestroyWithResponse call -func ParseDcimRegionsDestroyResponse(rsp *http.Response) (*DcimRegionsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsRetrieveResponse parses an HTTP response from a DcimRegionsRetrieveWithResponse call -func ParseDcimRegionsRetrieveResponse(rsp *http.Response) (*DcimRegionsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsPartialUpdateResponse parses an HTTP response from a DcimRegionsPartialUpdateWithResponse call -func ParseDcimRegionsPartialUpdateResponse(rsp *http.Response) (*DcimRegionsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsUpdateResponse parses an HTTP response from a DcimRegionsUpdateWithResponse call -func ParseDcimRegionsUpdateResponse(rsp *http.Response) (*DcimRegionsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsNotesListResponse parses an HTTP response from a DcimRegionsNotesListWithResponse call -func ParseDcimRegionsNotesListResponse(rsp *http.Response) (*DcimRegionsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimRegionsNotesCreateResponse parses an HTTP response from a DcimRegionsNotesCreateWithResponse call -func ParseDcimRegionsNotesCreateResponse(rsp *http.Response) (*DcimRegionsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimRegionsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesBulkDestroyResponse parses an HTTP response from a DcimSitesBulkDestroyWithResponse call -func ParseDcimSitesBulkDestroyResponse(rsp *http.Response) (*DcimSitesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesListResponse parses an HTTP response from a DcimSitesListWithResponse call -func ParseDcimSitesListResponse(rsp *http.Response) (*DcimSitesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesBulkPartialUpdateResponse parses an HTTP response from a DcimSitesBulkPartialUpdateWithResponse call -func ParseDcimSitesBulkPartialUpdateResponse(rsp *http.Response) (*DcimSitesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesCreateResponse parses an HTTP response from a DcimSitesCreateWithResponse call -func ParseDcimSitesCreateResponse(rsp *http.Response) (*DcimSitesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesBulkUpdateResponse parses an HTTP response from a DcimSitesBulkUpdateWithResponse call -func ParseDcimSitesBulkUpdateResponse(rsp *http.Response) (*DcimSitesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesDestroyResponse parses an HTTP response from a DcimSitesDestroyWithResponse call -func ParseDcimSitesDestroyResponse(rsp *http.Response) (*DcimSitesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesRetrieveResponse parses an HTTP response from a DcimSitesRetrieveWithResponse call -func ParseDcimSitesRetrieveResponse(rsp *http.Response) (*DcimSitesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesPartialUpdateResponse parses an HTTP response from a DcimSitesPartialUpdateWithResponse call -func ParseDcimSitesPartialUpdateResponse(rsp *http.Response) (*DcimSitesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesUpdateResponse parses an HTTP response from a DcimSitesUpdateWithResponse call -func ParseDcimSitesUpdateResponse(rsp *http.Response) (*DcimSitesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesNotesListResponse parses an HTTP response from a DcimSitesNotesListWithResponse call -func ParseDcimSitesNotesListResponse(rsp *http.Response) (*DcimSitesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimSitesNotesCreateResponse parses an HTTP response from a DcimSitesNotesCreateWithResponse call -func ParseDcimSitesNotesCreateResponse(rsp *http.Response) (*DcimSitesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimSitesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisBulkDestroyResponse parses an HTTP response from a DcimVirtualChassisBulkDestroyWithResponse call -func ParseDcimVirtualChassisBulkDestroyResponse(rsp *http.Response) (*DcimVirtualChassisBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisListResponse parses an HTTP response from a DcimVirtualChassisListWithResponse call -func ParseDcimVirtualChassisListResponse(rsp *http.Response) (*DcimVirtualChassisListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisBulkPartialUpdateResponse parses an HTTP response from a DcimVirtualChassisBulkPartialUpdateWithResponse call -func ParseDcimVirtualChassisBulkPartialUpdateResponse(rsp *http.Response) (*DcimVirtualChassisBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisCreateResponse parses an HTTP response from a DcimVirtualChassisCreateWithResponse call -func ParseDcimVirtualChassisCreateResponse(rsp *http.Response) (*DcimVirtualChassisCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisBulkUpdateResponse parses an HTTP response from a DcimVirtualChassisBulkUpdateWithResponse call -func ParseDcimVirtualChassisBulkUpdateResponse(rsp *http.Response) (*DcimVirtualChassisBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisDestroyResponse parses an HTTP response from a DcimVirtualChassisDestroyWithResponse call -func ParseDcimVirtualChassisDestroyResponse(rsp *http.Response) (*DcimVirtualChassisDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisRetrieveResponse parses an HTTP response from a DcimVirtualChassisRetrieveWithResponse call -func ParseDcimVirtualChassisRetrieveResponse(rsp *http.Response) (*DcimVirtualChassisRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisPartialUpdateResponse parses an HTTP response from a DcimVirtualChassisPartialUpdateWithResponse call -func ParseDcimVirtualChassisPartialUpdateResponse(rsp *http.Response) (*DcimVirtualChassisPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisUpdateResponse parses an HTTP response from a DcimVirtualChassisUpdateWithResponse call -func ParseDcimVirtualChassisUpdateResponse(rsp *http.Response) (*DcimVirtualChassisUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisNotesListResponse parses an HTTP response from a DcimVirtualChassisNotesListWithResponse call -func ParseDcimVirtualChassisNotesListResponse(rsp *http.Response) (*DcimVirtualChassisNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDcimVirtualChassisNotesCreateResponse parses an HTTP response from a DcimVirtualChassisNotesCreateWithResponse call -func ParseDcimVirtualChassisNotesCreateResponse(rsp *http.Response) (*DcimVirtualChassisNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DcimVirtualChassisNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsBulkDestroyResponse parses an HTTP response from a ExtrasComputedFieldsBulkDestroyWithResponse call -func ParseExtrasComputedFieldsBulkDestroyResponse(rsp *http.Response) (*ExtrasComputedFieldsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsListResponse parses an HTTP response from a ExtrasComputedFieldsListWithResponse call -func ParseExtrasComputedFieldsListResponse(rsp *http.Response) (*ExtrasComputedFieldsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsBulkPartialUpdateResponse parses an HTTP response from a ExtrasComputedFieldsBulkPartialUpdateWithResponse call -func ParseExtrasComputedFieldsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasComputedFieldsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsCreateResponse parses an HTTP response from a ExtrasComputedFieldsCreateWithResponse call -func ParseExtrasComputedFieldsCreateResponse(rsp *http.Response) (*ExtrasComputedFieldsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsBulkUpdateResponse parses an HTTP response from a ExtrasComputedFieldsBulkUpdateWithResponse call -func ParseExtrasComputedFieldsBulkUpdateResponse(rsp *http.Response) (*ExtrasComputedFieldsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsDestroyResponse parses an HTTP response from a ExtrasComputedFieldsDestroyWithResponse call -func ParseExtrasComputedFieldsDestroyResponse(rsp *http.Response) (*ExtrasComputedFieldsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsRetrieveResponse parses an HTTP response from a ExtrasComputedFieldsRetrieveWithResponse call -func ParseExtrasComputedFieldsRetrieveResponse(rsp *http.Response) (*ExtrasComputedFieldsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsPartialUpdateResponse parses an HTTP response from a ExtrasComputedFieldsPartialUpdateWithResponse call -func ParseExtrasComputedFieldsPartialUpdateResponse(rsp *http.Response) (*ExtrasComputedFieldsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsUpdateResponse parses an HTTP response from a ExtrasComputedFieldsUpdateWithResponse call -func ParseExtrasComputedFieldsUpdateResponse(rsp *http.Response) (*ExtrasComputedFieldsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsNotesListResponse parses an HTTP response from a ExtrasComputedFieldsNotesListWithResponse call -func ParseExtrasComputedFieldsNotesListResponse(rsp *http.Response) (*ExtrasComputedFieldsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasComputedFieldsNotesCreateResponse parses an HTTP response from a ExtrasComputedFieldsNotesCreateWithResponse call -func ParseExtrasComputedFieldsNotesCreateResponse(rsp *http.Response) (*ExtrasComputedFieldsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasComputedFieldsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasBulkDestroyResponse parses an HTTP response from a ExtrasConfigContextSchemasBulkDestroyWithResponse call -func ParseExtrasConfigContextSchemasBulkDestroyResponse(rsp *http.Response) (*ExtrasConfigContextSchemasBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasListResponse parses an HTTP response from a ExtrasConfigContextSchemasListWithResponse call -func ParseExtrasConfigContextSchemasListResponse(rsp *http.Response) (*ExtrasConfigContextSchemasListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasBulkPartialUpdateResponse parses an HTTP response from a ExtrasConfigContextSchemasBulkPartialUpdateWithResponse call -func ParseExtrasConfigContextSchemasBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasConfigContextSchemasBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasCreateResponse parses an HTTP response from a ExtrasConfigContextSchemasCreateWithResponse call -func ParseExtrasConfigContextSchemasCreateResponse(rsp *http.Response) (*ExtrasConfigContextSchemasCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasBulkUpdateResponse parses an HTTP response from a ExtrasConfigContextSchemasBulkUpdateWithResponse call -func ParseExtrasConfigContextSchemasBulkUpdateResponse(rsp *http.Response) (*ExtrasConfigContextSchemasBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasDestroyResponse parses an HTTP response from a ExtrasConfigContextSchemasDestroyWithResponse call -func ParseExtrasConfigContextSchemasDestroyResponse(rsp *http.Response) (*ExtrasConfigContextSchemasDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasRetrieveResponse parses an HTTP response from a ExtrasConfigContextSchemasRetrieveWithResponse call -func ParseExtrasConfigContextSchemasRetrieveResponse(rsp *http.Response) (*ExtrasConfigContextSchemasRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasPartialUpdateResponse parses an HTTP response from a ExtrasConfigContextSchemasPartialUpdateWithResponse call -func ParseExtrasConfigContextSchemasPartialUpdateResponse(rsp *http.Response) (*ExtrasConfigContextSchemasPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasUpdateResponse parses an HTTP response from a ExtrasConfigContextSchemasUpdateWithResponse call -func ParseExtrasConfigContextSchemasUpdateResponse(rsp *http.Response) (*ExtrasConfigContextSchemasUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasNotesListResponse parses an HTTP response from a ExtrasConfigContextSchemasNotesListWithResponse call -func ParseExtrasConfigContextSchemasNotesListResponse(rsp *http.Response) (*ExtrasConfigContextSchemasNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextSchemasNotesCreateResponse parses an HTTP response from a ExtrasConfigContextSchemasNotesCreateWithResponse call -func ParseExtrasConfigContextSchemasNotesCreateResponse(rsp *http.Response) (*ExtrasConfigContextSchemasNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextSchemasNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsBulkDestroyResponse parses an HTTP response from a ExtrasConfigContextsBulkDestroyWithResponse call -func ParseExtrasConfigContextsBulkDestroyResponse(rsp *http.Response) (*ExtrasConfigContextsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsListResponse parses an HTTP response from a ExtrasConfigContextsListWithResponse call -func ParseExtrasConfigContextsListResponse(rsp *http.Response) (*ExtrasConfigContextsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsBulkPartialUpdateResponse parses an HTTP response from a ExtrasConfigContextsBulkPartialUpdateWithResponse call -func ParseExtrasConfigContextsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasConfigContextsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsCreateResponse parses an HTTP response from a ExtrasConfigContextsCreateWithResponse call -func ParseExtrasConfigContextsCreateResponse(rsp *http.Response) (*ExtrasConfigContextsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsBulkUpdateResponse parses an HTTP response from a ExtrasConfigContextsBulkUpdateWithResponse call -func ParseExtrasConfigContextsBulkUpdateResponse(rsp *http.Response) (*ExtrasConfigContextsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsDestroyResponse parses an HTTP response from a ExtrasConfigContextsDestroyWithResponse call -func ParseExtrasConfigContextsDestroyResponse(rsp *http.Response) (*ExtrasConfigContextsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsRetrieveResponse parses an HTTP response from a ExtrasConfigContextsRetrieveWithResponse call -func ParseExtrasConfigContextsRetrieveResponse(rsp *http.Response) (*ExtrasConfigContextsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsPartialUpdateResponse parses an HTTP response from a ExtrasConfigContextsPartialUpdateWithResponse call -func ParseExtrasConfigContextsPartialUpdateResponse(rsp *http.Response) (*ExtrasConfigContextsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsUpdateResponse parses an HTTP response from a ExtrasConfigContextsUpdateWithResponse call -func ParseExtrasConfigContextsUpdateResponse(rsp *http.Response) (*ExtrasConfigContextsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsNotesListResponse parses an HTTP response from a ExtrasConfigContextsNotesListWithResponse call -func ParseExtrasConfigContextsNotesListResponse(rsp *http.Response) (*ExtrasConfigContextsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasConfigContextsNotesCreateResponse parses an HTTP response from a ExtrasConfigContextsNotesCreateWithResponse call -func ParseExtrasConfigContextsNotesCreateResponse(rsp *http.Response) (*ExtrasConfigContextsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasConfigContextsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasContentTypesListResponse parses an HTTP response from a ExtrasContentTypesListWithResponse call -func ParseExtrasContentTypesListResponse(rsp *http.Response) (*ExtrasContentTypesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasContentTypesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasContentTypesRetrieveResponse parses an HTTP response from a ExtrasContentTypesRetrieveWithResponse call -func ParseExtrasContentTypesRetrieveResponse(rsp *http.Response) (*ExtrasContentTypesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasContentTypesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesBulkDestroyResponse parses an HTTP response from a ExtrasCustomFieldChoicesBulkDestroyWithResponse call -func ParseExtrasCustomFieldChoicesBulkDestroyResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesListResponse parses an HTTP response from a ExtrasCustomFieldChoicesListWithResponse call -func ParseExtrasCustomFieldChoicesListResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesBulkPartialUpdateResponse parses an HTTP response from a ExtrasCustomFieldChoicesBulkPartialUpdateWithResponse call -func ParseExtrasCustomFieldChoicesBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesCreateResponse parses an HTTP response from a ExtrasCustomFieldChoicesCreateWithResponse call -func ParseExtrasCustomFieldChoicesCreateResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesBulkUpdateResponse parses an HTTP response from a ExtrasCustomFieldChoicesBulkUpdateWithResponse call -func ParseExtrasCustomFieldChoicesBulkUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesDestroyResponse parses an HTTP response from a ExtrasCustomFieldChoicesDestroyWithResponse call -func ParseExtrasCustomFieldChoicesDestroyResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesRetrieveResponse parses an HTTP response from a ExtrasCustomFieldChoicesRetrieveWithResponse call -func ParseExtrasCustomFieldChoicesRetrieveResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesPartialUpdateResponse parses an HTTP response from a ExtrasCustomFieldChoicesPartialUpdateWithResponse call -func ParseExtrasCustomFieldChoicesPartialUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldChoicesUpdateResponse parses an HTTP response from a ExtrasCustomFieldChoicesUpdateWithResponse call -func ParseExtrasCustomFieldChoicesUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldChoicesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldChoicesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsBulkDestroyResponse parses an HTTP response from a ExtrasCustomFieldsBulkDestroyWithResponse call -func ParseExtrasCustomFieldsBulkDestroyResponse(rsp *http.Response) (*ExtrasCustomFieldsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsListResponse parses an HTTP response from a ExtrasCustomFieldsListWithResponse call -func ParseExtrasCustomFieldsListResponse(rsp *http.Response) (*ExtrasCustomFieldsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsBulkPartialUpdateResponse parses an HTTP response from a ExtrasCustomFieldsBulkPartialUpdateWithResponse call -func ParseExtrasCustomFieldsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsCreateResponse parses an HTTP response from a ExtrasCustomFieldsCreateWithResponse call -func ParseExtrasCustomFieldsCreateResponse(rsp *http.Response) (*ExtrasCustomFieldsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsBulkUpdateResponse parses an HTTP response from a ExtrasCustomFieldsBulkUpdateWithResponse call -func ParseExtrasCustomFieldsBulkUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsDestroyResponse parses an HTTP response from a ExtrasCustomFieldsDestroyWithResponse call -func ParseExtrasCustomFieldsDestroyResponse(rsp *http.Response) (*ExtrasCustomFieldsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsRetrieveResponse parses an HTTP response from a ExtrasCustomFieldsRetrieveWithResponse call -func ParseExtrasCustomFieldsRetrieveResponse(rsp *http.Response) (*ExtrasCustomFieldsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsPartialUpdateResponse parses an HTTP response from a ExtrasCustomFieldsPartialUpdateWithResponse call -func ParseExtrasCustomFieldsPartialUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsUpdateResponse parses an HTTP response from a ExtrasCustomFieldsUpdateWithResponse call -func ParseExtrasCustomFieldsUpdateResponse(rsp *http.Response) (*ExtrasCustomFieldsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsNotesListResponse parses an HTTP response from a ExtrasCustomFieldsNotesListWithResponse call -func ParseExtrasCustomFieldsNotesListResponse(rsp *http.Response) (*ExtrasCustomFieldsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomFieldsNotesCreateResponse parses an HTTP response from a ExtrasCustomFieldsNotesCreateWithResponse call -func ParseExtrasCustomFieldsNotesCreateResponse(rsp *http.Response) (*ExtrasCustomFieldsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomFieldsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksBulkDestroyResponse parses an HTTP response from a ExtrasCustomLinksBulkDestroyWithResponse call -func ParseExtrasCustomLinksBulkDestroyResponse(rsp *http.Response) (*ExtrasCustomLinksBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksListResponse parses an HTTP response from a ExtrasCustomLinksListWithResponse call -func ParseExtrasCustomLinksListResponse(rsp *http.Response) (*ExtrasCustomLinksListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksBulkPartialUpdateResponse parses an HTTP response from a ExtrasCustomLinksBulkPartialUpdateWithResponse call -func ParseExtrasCustomLinksBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasCustomLinksBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksCreateResponse parses an HTTP response from a ExtrasCustomLinksCreateWithResponse call -func ParseExtrasCustomLinksCreateResponse(rsp *http.Response) (*ExtrasCustomLinksCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksBulkUpdateResponse parses an HTTP response from a ExtrasCustomLinksBulkUpdateWithResponse call -func ParseExtrasCustomLinksBulkUpdateResponse(rsp *http.Response) (*ExtrasCustomLinksBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksDestroyResponse parses an HTTP response from a ExtrasCustomLinksDestroyWithResponse call -func ParseExtrasCustomLinksDestroyResponse(rsp *http.Response) (*ExtrasCustomLinksDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksRetrieveResponse parses an HTTP response from a ExtrasCustomLinksRetrieveWithResponse call -func ParseExtrasCustomLinksRetrieveResponse(rsp *http.Response) (*ExtrasCustomLinksRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksPartialUpdateResponse parses an HTTP response from a ExtrasCustomLinksPartialUpdateWithResponse call -func ParseExtrasCustomLinksPartialUpdateResponse(rsp *http.Response) (*ExtrasCustomLinksPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksUpdateResponse parses an HTTP response from a ExtrasCustomLinksUpdateWithResponse call -func ParseExtrasCustomLinksUpdateResponse(rsp *http.Response) (*ExtrasCustomLinksUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksNotesListResponse parses an HTTP response from a ExtrasCustomLinksNotesListWithResponse call -func ParseExtrasCustomLinksNotesListResponse(rsp *http.Response) (*ExtrasCustomLinksNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasCustomLinksNotesCreateResponse parses an HTTP response from a ExtrasCustomLinksNotesCreateWithResponse call -func ParseExtrasCustomLinksNotesCreateResponse(rsp *http.Response) (*ExtrasCustomLinksNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasCustomLinksNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsBulkDestroyResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsBulkDestroyWithResponse call -func ParseExtrasDynamicGroupMembershipsBulkDestroyResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsListResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsListWithResponse call -func ParseExtrasDynamicGroupMembershipsListResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsBulkPartialUpdateResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsBulkPartialUpdateWithResponse call -func ParseExtrasDynamicGroupMembershipsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsCreateResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsCreateWithResponse call -func ParseExtrasDynamicGroupMembershipsCreateResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsBulkUpdateResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsBulkUpdateWithResponse call -func ParseExtrasDynamicGroupMembershipsBulkUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsDestroyResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsDestroyWithResponse call -func ParseExtrasDynamicGroupMembershipsDestroyResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsRetrieveResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsRetrieveWithResponse call -func ParseExtrasDynamicGroupMembershipsRetrieveResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsPartialUpdateResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsPartialUpdateWithResponse call -func ParseExtrasDynamicGroupMembershipsPartialUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupMembershipsUpdateResponse parses an HTTP response from a ExtrasDynamicGroupMembershipsUpdateWithResponse call -func ParseExtrasDynamicGroupMembershipsUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupMembershipsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupMembershipsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsBulkDestroyResponse parses an HTTP response from a ExtrasDynamicGroupsBulkDestroyWithResponse call -func ParseExtrasDynamicGroupsBulkDestroyResponse(rsp *http.Response) (*ExtrasDynamicGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsListResponse parses an HTTP response from a ExtrasDynamicGroupsListWithResponse call -func ParseExtrasDynamicGroupsListResponse(rsp *http.Response) (*ExtrasDynamicGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsBulkPartialUpdateResponse parses an HTTP response from a ExtrasDynamicGroupsBulkPartialUpdateWithResponse call -func ParseExtrasDynamicGroupsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsCreateResponse parses an HTTP response from a ExtrasDynamicGroupsCreateWithResponse call -func ParseExtrasDynamicGroupsCreateResponse(rsp *http.Response) (*ExtrasDynamicGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsBulkUpdateResponse parses an HTTP response from a ExtrasDynamicGroupsBulkUpdateWithResponse call -func ParseExtrasDynamicGroupsBulkUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsDestroyResponse parses an HTTP response from a ExtrasDynamicGroupsDestroyWithResponse call -func ParseExtrasDynamicGroupsDestroyResponse(rsp *http.Response) (*ExtrasDynamicGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsRetrieveResponse parses an HTTP response from a ExtrasDynamicGroupsRetrieveWithResponse call -func ParseExtrasDynamicGroupsRetrieveResponse(rsp *http.Response) (*ExtrasDynamicGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsPartialUpdateResponse parses an HTTP response from a ExtrasDynamicGroupsPartialUpdateWithResponse call -func ParseExtrasDynamicGroupsPartialUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsUpdateResponse parses an HTTP response from a ExtrasDynamicGroupsUpdateWithResponse call -func ParseExtrasDynamicGroupsUpdateResponse(rsp *http.Response) (*ExtrasDynamicGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsMembersRetrieveResponse parses an HTTP response from a ExtrasDynamicGroupsMembersRetrieveWithResponse call -func ParseExtrasDynamicGroupsMembersRetrieveResponse(rsp *http.Response) (*ExtrasDynamicGroupsMembersRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsMembersRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsNotesListResponse parses an HTTP response from a ExtrasDynamicGroupsNotesListWithResponse call -func ParseExtrasDynamicGroupsNotesListResponse(rsp *http.Response) (*ExtrasDynamicGroupsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasDynamicGroupsNotesCreateResponse parses an HTTP response from a ExtrasDynamicGroupsNotesCreateWithResponse call -func ParseExtrasDynamicGroupsNotesCreateResponse(rsp *http.Response) (*ExtrasDynamicGroupsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasDynamicGroupsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesBulkDestroyResponse parses an HTTP response from a ExtrasExportTemplatesBulkDestroyWithResponse call -func ParseExtrasExportTemplatesBulkDestroyResponse(rsp *http.Response) (*ExtrasExportTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesListResponse parses an HTTP response from a ExtrasExportTemplatesListWithResponse call -func ParseExtrasExportTemplatesListResponse(rsp *http.Response) (*ExtrasExportTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesBulkPartialUpdateResponse parses an HTTP response from a ExtrasExportTemplatesBulkPartialUpdateWithResponse call -func ParseExtrasExportTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasExportTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesCreateResponse parses an HTTP response from a ExtrasExportTemplatesCreateWithResponse call -func ParseExtrasExportTemplatesCreateResponse(rsp *http.Response) (*ExtrasExportTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesBulkUpdateResponse parses an HTTP response from a ExtrasExportTemplatesBulkUpdateWithResponse call -func ParseExtrasExportTemplatesBulkUpdateResponse(rsp *http.Response) (*ExtrasExportTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesDestroyResponse parses an HTTP response from a ExtrasExportTemplatesDestroyWithResponse call -func ParseExtrasExportTemplatesDestroyResponse(rsp *http.Response) (*ExtrasExportTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesRetrieveResponse parses an HTTP response from a ExtrasExportTemplatesRetrieveWithResponse call -func ParseExtrasExportTemplatesRetrieveResponse(rsp *http.Response) (*ExtrasExportTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesPartialUpdateResponse parses an HTTP response from a ExtrasExportTemplatesPartialUpdateWithResponse call -func ParseExtrasExportTemplatesPartialUpdateResponse(rsp *http.Response) (*ExtrasExportTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesUpdateResponse parses an HTTP response from a ExtrasExportTemplatesUpdateWithResponse call -func ParseExtrasExportTemplatesUpdateResponse(rsp *http.Response) (*ExtrasExportTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesNotesListResponse parses an HTTP response from a ExtrasExportTemplatesNotesListWithResponse call -func ParseExtrasExportTemplatesNotesListResponse(rsp *http.Response) (*ExtrasExportTemplatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasExportTemplatesNotesCreateResponse parses an HTTP response from a ExtrasExportTemplatesNotesCreateWithResponse call -func ParseExtrasExportTemplatesNotesCreateResponse(rsp *http.Response) (*ExtrasExportTemplatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasExportTemplatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesBulkDestroyResponse parses an HTTP response from a ExtrasGitRepositoriesBulkDestroyWithResponse call -func ParseExtrasGitRepositoriesBulkDestroyResponse(rsp *http.Response) (*ExtrasGitRepositoriesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesListResponse parses an HTTP response from a ExtrasGitRepositoriesListWithResponse call -func ParseExtrasGitRepositoriesListResponse(rsp *http.Response) (*ExtrasGitRepositoriesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesBulkPartialUpdateResponse parses an HTTP response from a ExtrasGitRepositoriesBulkPartialUpdateWithResponse call -func ParseExtrasGitRepositoriesBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasGitRepositoriesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesCreateResponse parses an HTTP response from a ExtrasGitRepositoriesCreateWithResponse call -func ParseExtrasGitRepositoriesCreateResponse(rsp *http.Response) (*ExtrasGitRepositoriesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesBulkUpdateResponse parses an HTTP response from a ExtrasGitRepositoriesBulkUpdateWithResponse call -func ParseExtrasGitRepositoriesBulkUpdateResponse(rsp *http.Response) (*ExtrasGitRepositoriesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesDestroyResponse parses an HTTP response from a ExtrasGitRepositoriesDestroyWithResponse call -func ParseExtrasGitRepositoriesDestroyResponse(rsp *http.Response) (*ExtrasGitRepositoriesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesRetrieveResponse parses an HTTP response from a ExtrasGitRepositoriesRetrieveWithResponse call -func ParseExtrasGitRepositoriesRetrieveResponse(rsp *http.Response) (*ExtrasGitRepositoriesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesPartialUpdateResponse parses an HTTP response from a ExtrasGitRepositoriesPartialUpdateWithResponse call -func ParseExtrasGitRepositoriesPartialUpdateResponse(rsp *http.Response) (*ExtrasGitRepositoriesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesUpdateResponse parses an HTTP response from a ExtrasGitRepositoriesUpdateWithResponse call -func ParseExtrasGitRepositoriesUpdateResponse(rsp *http.Response) (*ExtrasGitRepositoriesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesNotesListResponse parses an HTTP response from a ExtrasGitRepositoriesNotesListWithResponse call -func ParseExtrasGitRepositoriesNotesListResponse(rsp *http.Response) (*ExtrasGitRepositoriesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesNotesCreateResponse parses an HTTP response from a ExtrasGitRepositoriesNotesCreateWithResponse call -func ParseExtrasGitRepositoriesNotesCreateResponse(rsp *http.Response) (*ExtrasGitRepositoriesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGitRepositoriesSyncCreateResponse parses an HTTP response from a ExtrasGitRepositoriesSyncCreateWithResponse call -func ParseExtrasGitRepositoriesSyncCreateResponse(rsp *http.Response) (*ExtrasGitRepositoriesSyncCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGitRepositoriesSyncCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesBulkDestroyResponse parses an HTTP response from a ExtrasGraphqlQueriesBulkDestroyWithResponse call -func ParseExtrasGraphqlQueriesBulkDestroyResponse(rsp *http.Response) (*ExtrasGraphqlQueriesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesListResponse parses an HTTP response from a ExtrasGraphqlQueriesListWithResponse call -func ParseExtrasGraphqlQueriesListResponse(rsp *http.Response) (*ExtrasGraphqlQueriesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesBulkPartialUpdateResponse parses an HTTP response from a ExtrasGraphqlQueriesBulkPartialUpdateWithResponse call -func ParseExtrasGraphqlQueriesBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasGraphqlQueriesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesCreateResponse parses an HTTP response from a ExtrasGraphqlQueriesCreateWithResponse call -func ParseExtrasGraphqlQueriesCreateResponse(rsp *http.Response) (*ExtrasGraphqlQueriesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesBulkUpdateResponse parses an HTTP response from a ExtrasGraphqlQueriesBulkUpdateWithResponse call -func ParseExtrasGraphqlQueriesBulkUpdateResponse(rsp *http.Response) (*ExtrasGraphqlQueriesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesDestroyResponse parses an HTTP response from a ExtrasGraphqlQueriesDestroyWithResponse call -func ParseExtrasGraphqlQueriesDestroyResponse(rsp *http.Response) (*ExtrasGraphqlQueriesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesRetrieveResponse parses an HTTP response from a ExtrasGraphqlQueriesRetrieveWithResponse call -func ParseExtrasGraphqlQueriesRetrieveResponse(rsp *http.Response) (*ExtrasGraphqlQueriesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesPartialUpdateResponse parses an HTTP response from a ExtrasGraphqlQueriesPartialUpdateWithResponse call -func ParseExtrasGraphqlQueriesPartialUpdateResponse(rsp *http.Response) (*ExtrasGraphqlQueriesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesUpdateResponse parses an HTTP response from a ExtrasGraphqlQueriesUpdateWithResponse call -func ParseExtrasGraphqlQueriesUpdateResponse(rsp *http.Response) (*ExtrasGraphqlQueriesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesNotesListResponse parses an HTTP response from a ExtrasGraphqlQueriesNotesListWithResponse call -func ParseExtrasGraphqlQueriesNotesListResponse(rsp *http.Response) (*ExtrasGraphqlQueriesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesNotesCreateResponse parses an HTTP response from a ExtrasGraphqlQueriesNotesCreateWithResponse call -func ParseExtrasGraphqlQueriesNotesCreateResponse(rsp *http.Response) (*ExtrasGraphqlQueriesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasGraphqlQueriesRunCreateResponse parses an HTTP response from a ExtrasGraphqlQueriesRunCreateWithResponse call -func ParseExtrasGraphqlQueriesRunCreateResponse(rsp *http.Response) (*ExtrasGraphqlQueriesRunCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasGraphqlQueriesRunCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsBulkDestroyResponse parses an HTTP response from a ExtrasImageAttachmentsBulkDestroyWithResponse call -func ParseExtrasImageAttachmentsBulkDestroyResponse(rsp *http.Response) (*ExtrasImageAttachmentsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsListResponse parses an HTTP response from a ExtrasImageAttachmentsListWithResponse call -func ParseExtrasImageAttachmentsListResponse(rsp *http.Response) (*ExtrasImageAttachmentsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsBulkPartialUpdateResponse parses an HTTP response from a ExtrasImageAttachmentsBulkPartialUpdateWithResponse call -func ParseExtrasImageAttachmentsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasImageAttachmentsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsCreateResponse parses an HTTP response from a ExtrasImageAttachmentsCreateWithResponse call -func ParseExtrasImageAttachmentsCreateResponse(rsp *http.Response) (*ExtrasImageAttachmentsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsBulkUpdateResponse parses an HTTP response from a ExtrasImageAttachmentsBulkUpdateWithResponse call -func ParseExtrasImageAttachmentsBulkUpdateResponse(rsp *http.Response) (*ExtrasImageAttachmentsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsDestroyResponse parses an HTTP response from a ExtrasImageAttachmentsDestroyWithResponse call -func ParseExtrasImageAttachmentsDestroyResponse(rsp *http.Response) (*ExtrasImageAttachmentsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsRetrieveResponse parses an HTTP response from a ExtrasImageAttachmentsRetrieveWithResponse call -func ParseExtrasImageAttachmentsRetrieveResponse(rsp *http.Response) (*ExtrasImageAttachmentsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsPartialUpdateResponse parses an HTTP response from a ExtrasImageAttachmentsPartialUpdateWithResponse call -func ParseExtrasImageAttachmentsPartialUpdateResponse(rsp *http.Response) (*ExtrasImageAttachmentsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasImageAttachmentsUpdateResponse parses an HTTP response from a ExtrasImageAttachmentsUpdateWithResponse call -func ParseExtrasImageAttachmentsUpdateResponse(rsp *http.Response) (*ExtrasImageAttachmentsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasImageAttachmentsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksBulkDestroyResponse parses an HTTP response from a ExtrasJobHooksBulkDestroyWithResponse call -func ParseExtrasJobHooksBulkDestroyResponse(rsp *http.Response) (*ExtrasJobHooksBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksListResponse parses an HTTP response from a ExtrasJobHooksListWithResponse call -func ParseExtrasJobHooksListResponse(rsp *http.Response) (*ExtrasJobHooksListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksBulkPartialUpdateResponse parses an HTTP response from a ExtrasJobHooksBulkPartialUpdateWithResponse call -func ParseExtrasJobHooksBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasJobHooksBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksCreateResponse parses an HTTP response from a ExtrasJobHooksCreateWithResponse call -func ParseExtrasJobHooksCreateResponse(rsp *http.Response) (*ExtrasJobHooksCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksBulkUpdateResponse parses an HTTP response from a ExtrasJobHooksBulkUpdateWithResponse call -func ParseExtrasJobHooksBulkUpdateResponse(rsp *http.Response) (*ExtrasJobHooksBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksDestroyResponse parses an HTTP response from a ExtrasJobHooksDestroyWithResponse call -func ParseExtrasJobHooksDestroyResponse(rsp *http.Response) (*ExtrasJobHooksDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksRetrieveResponse parses an HTTP response from a ExtrasJobHooksRetrieveWithResponse call -func ParseExtrasJobHooksRetrieveResponse(rsp *http.Response) (*ExtrasJobHooksRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksPartialUpdateResponse parses an HTTP response from a ExtrasJobHooksPartialUpdateWithResponse call -func ParseExtrasJobHooksPartialUpdateResponse(rsp *http.Response) (*ExtrasJobHooksPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksUpdateResponse parses an HTTP response from a ExtrasJobHooksUpdateWithResponse call -func ParseExtrasJobHooksUpdateResponse(rsp *http.Response) (*ExtrasJobHooksUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksNotesListResponse parses an HTTP response from a ExtrasJobHooksNotesListWithResponse call -func ParseExtrasJobHooksNotesListResponse(rsp *http.Response) (*ExtrasJobHooksNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobHooksNotesCreateResponse parses an HTTP response from a ExtrasJobHooksNotesCreateWithResponse call -func ParseExtrasJobHooksNotesCreateResponse(rsp *http.Response) (*ExtrasJobHooksNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobHooksNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobLogsListResponse parses an HTTP response from a ExtrasJobLogsListWithResponse call -func ParseExtrasJobLogsListResponse(rsp *http.Response) (*ExtrasJobLogsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobLogsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobLogsRetrieveResponse parses an HTTP response from a ExtrasJobLogsRetrieveWithResponse call -func ParseExtrasJobLogsRetrieveResponse(rsp *http.Response) (*ExtrasJobLogsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobLogsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobResultsBulkDestroyResponse parses an HTTP response from a ExtrasJobResultsBulkDestroyWithResponse call -func ParseExtrasJobResultsBulkDestroyResponse(rsp *http.Response) (*ExtrasJobResultsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobResultsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobResultsListResponse parses an HTTP response from a ExtrasJobResultsListWithResponse call -func ParseExtrasJobResultsListResponse(rsp *http.Response) (*ExtrasJobResultsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobResultsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobResultsDestroyResponse parses an HTTP response from a ExtrasJobResultsDestroyWithResponse call -func ParseExtrasJobResultsDestroyResponse(rsp *http.Response) (*ExtrasJobResultsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobResultsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobResultsRetrieveResponse parses an HTTP response from a ExtrasJobResultsRetrieveWithResponse call -func ParseExtrasJobResultsRetrieveResponse(rsp *http.Response) (*ExtrasJobResultsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobResultsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobResultsLogsRetrieveResponse parses an HTTP response from a ExtrasJobResultsLogsRetrieveWithResponse call -func ParseExtrasJobResultsLogsRetrieveResponse(rsp *http.Response) (*ExtrasJobResultsLogsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobResultsLogsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsBulkDestroyResponse parses an HTTP response from a ExtrasJobsBulkDestroyWithResponse call -func ParseExtrasJobsBulkDestroyResponse(rsp *http.Response) (*ExtrasJobsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsListResponse parses an HTTP response from a ExtrasJobsListWithResponse call -func ParseExtrasJobsListResponse(rsp *http.Response) (*ExtrasJobsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsBulkPartialUpdateResponse parses an HTTP response from a ExtrasJobsBulkPartialUpdateWithResponse call -func ParseExtrasJobsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasJobsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsBulkUpdateResponse parses an HTTP response from a ExtrasJobsBulkUpdateWithResponse call -func ParseExtrasJobsBulkUpdateResponse(rsp *http.Response) (*ExtrasJobsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsReadDeprecatedResponse parses an HTTP response from a ExtrasJobsReadDeprecatedWithResponse call -func ParseExtrasJobsReadDeprecatedResponse(rsp *http.Response) (*ExtrasJobsReadDeprecatedResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsReadDeprecatedResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsRunDeprecatedResponse parses an HTTP response from a ExtrasJobsRunDeprecatedWithResponse call -func ParseExtrasJobsRunDeprecatedResponse(rsp *http.Response) (*ExtrasJobsRunDeprecatedResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsRunDeprecatedResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsDestroyResponse parses an HTTP response from a ExtrasJobsDestroyWithResponse call -func ParseExtrasJobsDestroyResponse(rsp *http.Response) (*ExtrasJobsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsRetrieveResponse parses an HTTP response from a ExtrasJobsRetrieveWithResponse call -func ParseExtrasJobsRetrieveResponse(rsp *http.Response) (*ExtrasJobsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsPartialUpdateResponse parses an HTTP response from a ExtrasJobsPartialUpdateWithResponse call -func ParseExtrasJobsPartialUpdateResponse(rsp *http.Response) (*ExtrasJobsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsUpdateResponse parses an HTTP response from a ExtrasJobsUpdateWithResponse call -func ParseExtrasJobsUpdateResponse(rsp *http.Response) (*ExtrasJobsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsNotesListResponse parses an HTTP response from a ExtrasJobsNotesListWithResponse call -func ParseExtrasJobsNotesListResponse(rsp *http.Response) (*ExtrasJobsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsNotesCreateResponse parses an HTTP response from a ExtrasJobsNotesCreateWithResponse call -func ParseExtrasJobsNotesCreateResponse(rsp *http.Response) (*ExtrasJobsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsRunCreateResponse parses an HTTP response from a ExtrasJobsRunCreateWithResponse call -func ParseExtrasJobsRunCreateResponse(rsp *http.Response) (*ExtrasJobsRunCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsRunCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasJobsVariablesListResponse parses an HTTP response from a ExtrasJobsVariablesListWithResponse call -func ParseExtrasJobsVariablesListResponse(rsp *http.Response) (*ExtrasJobsVariablesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasJobsVariablesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesBulkDestroyResponse parses an HTTP response from a ExtrasNotesBulkDestroyWithResponse call -func ParseExtrasNotesBulkDestroyResponse(rsp *http.Response) (*ExtrasNotesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesListResponse parses an HTTP response from a ExtrasNotesListWithResponse call -func ParseExtrasNotesListResponse(rsp *http.Response) (*ExtrasNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesBulkPartialUpdateResponse parses an HTTP response from a ExtrasNotesBulkPartialUpdateWithResponse call -func ParseExtrasNotesBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasNotesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesCreateResponse parses an HTTP response from a ExtrasNotesCreateWithResponse call -func ParseExtrasNotesCreateResponse(rsp *http.Response) (*ExtrasNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesBulkUpdateResponse parses an HTTP response from a ExtrasNotesBulkUpdateWithResponse call -func ParseExtrasNotesBulkUpdateResponse(rsp *http.Response) (*ExtrasNotesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesDestroyResponse parses an HTTP response from a ExtrasNotesDestroyWithResponse call -func ParseExtrasNotesDestroyResponse(rsp *http.Response) (*ExtrasNotesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesRetrieveResponse parses an HTTP response from a ExtrasNotesRetrieveWithResponse call -func ParseExtrasNotesRetrieveResponse(rsp *http.Response) (*ExtrasNotesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesPartialUpdateResponse parses an HTTP response from a ExtrasNotesPartialUpdateWithResponse call -func ParseExtrasNotesPartialUpdateResponse(rsp *http.Response) (*ExtrasNotesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasNotesUpdateResponse parses an HTTP response from a ExtrasNotesUpdateWithResponse call -func ParseExtrasNotesUpdateResponse(rsp *http.Response) (*ExtrasNotesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasNotesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasObjectChangesListResponse parses an HTTP response from a ExtrasObjectChangesListWithResponse call -func ParseExtrasObjectChangesListResponse(rsp *http.Response) (*ExtrasObjectChangesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasObjectChangesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasObjectChangesRetrieveResponse parses an HTTP response from a ExtrasObjectChangesRetrieveWithResponse call -func ParseExtrasObjectChangesRetrieveResponse(rsp *http.Response) (*ExtrasObjectChangesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasObjectChangesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsBulkDestroyResponse parses an HTTP response from a ExtrasRelationshipAssociationsBulkDestroyWithResponse call -func ParseExtrasRelationshipAssociationsBulkDestroyResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsListResponse parses an HTTP response from a ExtrasRelationshipAssociationsListWithResponse call -func ParseExtrasRelationshipAssociationsListResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsBulkPartialUpdateResponse parses an HTTP response from a ExtrasRelationshipAssociationsBulkPartialUpdateWithResponse call -func ParseExtrasRelationshipAssociationsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsCreateResponse parses an HTTP response from a ExtrasRelationshipAssociationsCreateWithResponse call -func ParseExtrasRelationshipAssociationsCreateResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsBulkUpdateResponse parses an HTTP response from a ExtrasRelationshipAssociationsBulkUpdateWithResponse call -func ParseExtrasRelationshipAssociationsBulkUpdateResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsDestroyResponse parses an HTTP response from a ExtrasRelationshipAssociationsDestroyWithResponse call -func ParseExtrasRelationshipAssociationsDestroyResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsRetrieveResponse parses an HTTP response from a ExtrasRelationshipAssociationsRetrieveWithResponse call -func ParseExtrasRelationshipAssociationsRetrieveResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsPartialUpdateResponse parses an HTTP response from a ExtrasRelationshipAssociationsPartialUpdateWithResponse call -func ParseExtrasRelationshipAssociationsPartialUpdateResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipAssociationsUpdateResponse parses an HTTP response from a ExtrasRelationshipAssociationsUpdateWithResponse call -func ParseExtrasRelationshipAssociationsUpdateResponse(rsp *http.Response) (*ExtrasRelationshipAssociationsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipAssociationsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsBulkDestroyResponse parses an HTTP response from a ExtrasRelationshipsBulkDestroyWithResponse call -func ParseExtrasRelationshipsBulkDestroyResponse(rsp *http.Response) (*ExtrasRelationshipsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsListResponse parses an HTTP response from a ExtrasRelationshipsListWithResponse call -func ParseExtrasRelationshipsListResponse(rsp *http.Response) (*ExtrasRelationshipsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsBulkPartialUpdateResponse parses an HTTP response from a ExtrasRelationshipsBulkPartialUpdateWithResponse call -func ParseExtrasRelationshipsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasRelationshipsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsCreateResponse parses an HTTP response from a ExtrasRelationshipsCreateWithResponse call -func ParseExtrasRelationshipsCreateResponse(rsp *http.Response) (*ExtrasRelationshipsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsBulkUpdateResponse parses an HTTP response from a ExtrasRelationshipsBulkUpdateWithResponse call -func ParseExtrasRelationshipsBulkUpdateResponse(rsp *http.Response) (*ExtrasRelationshipsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsDestroyResponse parses an HTTP response from a ExtrasRelationshipsDestroyWithResponse call -func ParseExtrasRelationshipsDestroyResponse(rsp *http.Response) (*ExtrasRelationshipsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsRetrieveResponse parses an HTTP response from a ExtrasRelationshipsRetrieveWithResponse call -func ParseExtrasRelationshipsRetrieveResponse(rsp *http.Response) (*ExtrasRelationshipsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsPartialUpdateResponse parses an HTTP response from a ExtrasRelationshipsPartialUpdateWithResponse call -func ParseExtrasRelationshipsPartialUpdateResponse(rsp *http.Response) (*ExtrasRelationshipsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsUpdateResponse parses an HTTP response from a ExtrasRelationshipsUpdateWithResponse call -func ParseExtrasRelationshipsUpdateResponse(rsp *http.Response) (*ExtrasRelationshipsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsNotesListResponse parses an HTTP response from a ExtrasRelationshipsNotesListWithResponse call -func ParseExtrasRelationshipsNotesListResponse(rsp *http.Response) (*ExtrasRelationshipsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasRelationshipsNotesCreateResponse parses an HTTP response from a ExtrasRelationshipsNotesCreateWithResponse call -func ParseExtrasRelationshipsNotesCreateResponse(rsp *http.Response) (*ExtrasRelationshipsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasRelationshipsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasScheduledJobsListResponse parses an HTTP response from a ExtrasScheduledJobsListWithResponse call -func ParseExtrasScheduledJobsListResponse(rsp *http.Response) (*ExtrasScheduledJobsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasScheduledJobsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasScheduledJobsRetrieveResponse parses an HTTP response from a ExtrasScheduledJobsRetrieveWithResponse call -func ParseExtrasScheduledJobsRetrieveResponse(rsp *http.Response) (*ExtrasScheduledJobsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasScheduledJobsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasScheduledJobsApproveCreateResponse parses an HTTP response from a ExtrasScheduledJobsApproveCreateWithResponse call -func ParseExtrasScheduledJobsApproveCreateResponse(rsp *http.Response) (*ExtrasScheduledJobsApproveCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasScheduledJobsApproveCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasScheduledJobsDenyCreateResponse parses an HTTP response from a ExtrasScheduledJobsDenyCreateWithResponse call -func ParseExtrasScheduledJobsDenyCreateResponse(rsp *http.Response) (*ExtrasScheduledJobsDenyCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasScheduledJobsDenyCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasScheduledJobsDryRunCreateResponse parses an HTTP response from a ExtrasScheduledJobsDryRunCreateWithResponse call -func ParseExtrasScheduledJobsDryRunCreateResponse(rsp *http.Response) (*ExtrasScheduledJobsDryRunCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasScheduledJobsDryRunCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsBulkDestroyResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsBulkDestroyWithResponse call -func ParseExtrasSecretsGroupsAssociationsBulkDestroyResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsListResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsListWithResponse call -func ParseExtrasSecretsGroupsAssociationsListResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsBulkPartialUpdateWithResponse call -func ParseExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsCreateResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsCreateWithResponse call -func ParseExtrasSecretsGroupsAssociationsCreateResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsBulkUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsBulkUpdateWithResponse call -func ParseExtrasSecretsGroupsAssociationsBulkUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsDestroyResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsDestroyWithResponse call -func ParseExtrasSecretsGroupsAssociationsDestroyResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsRetrieveResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsRetrieveWithResponse call -func ParseExtrasSecretsGroupsAssociationsRetrieveResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsPartialUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsPartialUpdateWithResponse call -func ParseExtrasSecretsGroupsAssociationsPartialUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsAssociationsUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsAssociationsUpdateWithResponse call -func ParseExtrasSecretsGroupsAssociationsUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsAssociationsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsAssociationsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsBulkDestroyResponse parses an HTTP response from a ExtrasSecretsGroupsBulkDestroyWithResponse call -func ParseExtrasSecretsGroupsBulkDestroyResponse(rsp *http.Response) (*ExtrasSecretsGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsListResponse parses an HTTP response from a ExtrasSecretsGroupsListWithResponse call -func ParseExtrasSecretsGroupsListResponse(rsp *http.Response) (*ExtrasSecretsGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsBulkPartialUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsBulkPartialUpdateWithResponse call -func ParseExtrasSecretsGroupsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsCreateResponse parses an HTTP response from a ExtrasSecretsGroupsCreateWithResponse call -func ParseExtrasSecretsGroupsCreateResponse(rsp *http.Response) (*ExtrasSecretsGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsBulkUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsBulkUpdateWithResponse call -func ParseExtrasSecretsGroupsBulkUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsDestroyResponse parses an HTTP response from a ExtrasSecretsGroupsDestroyWithResponse call -func ParseExtrasSecretsGroupsDestroyResponse(rsp *http.Response) (*ExtrasSecretsGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsRetrieveResponse parses an HTTP response from a ExtrasSecretsGroupsRetrieveWithResponse call -func ParseExtrasSecretsGroupsRetrieveResponse(rsp *http.Response) (*ExtrasSecretsGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsPartialUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsPartialUpdateWithResponse call -func ParseExtrasSecretsGroupsPartialUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsUpdateResponse parses an HTTP response from a ExtrasSecretsGroupsUpdateWithResponse call -func ParseExtrasSecretsGroupsUpdateResponse(rsp *http.Response) (*ExtrasSecretsGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsNotesListResponse parses an HTTP response from a ExtrasSecretsGroupsNotesListWithResponse call -func ParseExtrasSecretsGroupsNotesListResponse(rsp *http.Response) (*ExtrasSecretsGroupsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsGroupsNotesCreateResponse parses an HTTP response from a ExtrasSecretsGroupsNotesCreateWithResponse call -func ParseExtrasSecretsGroupsNotesCreateResponse(rsp *http.Response) (*ExtrasSecretsGroupsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsGroupsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsBulkDestroyResponse parses an HTTP response from a ExtrasSecretsBulkDestroyWithResponse call -func ParseExtrasSecretsBulkDestroyResponse(rsp *http.Response) (*ExtrasSecretsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsListResponse parses an HTTP response from a ExtrasSecretsListWithResponse call -func ParseExtrasSecretsListResponse(rsp *http.Response) (*ExtrasSecretsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsBulkPartialUpdateResponse parses an HTTP response from a ExtrasSecretsBulkPartialUpdateWithResponse call -func ParseExtrasSecretsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasSecretsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsCreateResponse parses an HTTP response from a ExtrasSecretsCreateWithResponse call -func ParseExtrasSecretsCreateResponse(rsp *http.Response) (*ExtrasSecretsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsBulkUpdateResponse parses an HTTP response from a ExtrasSecretsBulkUpdateWithResponse call -func ParseExtrasSecretsBulkUpdateResponse(rsp *http.Response) (*ExtrasSecretsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsDestroyResponse parses an HTTP response from a ExtrasSecretsDestroyWithResponse call -func ParseExtrasSecretsDestroyResponse(rsp *http.Response) (*ExtrasSecretsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsRetrieveResponse parses an HTTP response from a ExtrasSecretsRetrieveWithResponse call -func ParseExtrasSecretsRetrieveResponse(rsp *http.Response) (*ExtrasSecretsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsPartialUpdateResponse parses an HTTP response from a ExtrasSecretsPartialUpdateWithResponse call -func ParseExtrasSecretsPartialUpdateResponse(rsp *http.Response) (*ExtrasSecretsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsUpdateResponse parses an HTTP response from a ExtrasSecretsUpdateWithResponse call -func ParseExtrasSecretsUpdateResponse(rsp *http.Response) (*ExtrasSecretsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsNotesListResponse parses an HTTP response from a ExtrasSecretsNotesListWithResponse call -func ParseExtrasSecretsNotesListResponse(rsp *http.Response) (*ExtrasSecretsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasSecretsNotesCreateResponse parses an HTTP response from a ExtrasSecretsNotesCreateWithResponse call -func ParseExtrasSecretsNotesCreateResponse(rsp *http.Response) (*ExtrasSecretsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasSecretsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesBulkDestroyResponse parses an HTTP response from a ExtrasStatusesBulkDestroyWithResponse call -func ParseExtrasStatusesBulkDestroyResponse(rsp *http.Response) (*ExtrasStatusesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesListResponse parses an HTTP response from a ExtrasStatusesListWithResponse call -func ParseExtrasStatusesListResponse(rsp *http.Response) (*ExtrasStatusesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesBulkPartialUpdateResponse parses an HTTP response from a ExtrasStatusesBulkPartialUpdateWithResponse call -func ParseExtrasStatusesBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasStatusesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesCreateResponse parses an HTTP response from a ExtrasStatusesCreateWithResponse call -func ParseExtrasStatusesCreateResponse(rsp *http.Response) (*ExtrasStatusesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesBulkUpdateResponse parses an HTTP response from a ExtrasStatusesBulkUpdateWithResponse call -func ParseExtrasStatusesBulkUpdateResponse(rsp *http.Response) (*ExtrasStatusesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesDestroyResponse parses an HTTP response from a ExtrasStatusesDestroyWithResponse call -func ParseExtrasStatusesDestroyResponse(rsp *http.Response) (*ExtrasStatusesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesRetrieveResponse parses an HTTP response from a ExtrasStatusesRetrieveWithResponse call -func ParseExtrasStatusesRetrieveResponse(rsp *http.Response) (*ExtrasStatusesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesPartialUpdateResponse parses an HTTP response from a ExtrasStatusesPartialUpdateWithResponse call -func ParseExtrasStatusesPartialUpdateResponse(rsp *http.Response) (*ExtrasStatusesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesUpdateResponse parses an HTTP response from a ExtrasStatusesUpdateWithResponse call -func ParseExtrasStatusesUpdateResponse(rsp *http.Response) (*ExtrasStatusesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesNotesListResponse parses an HTTP response from a ExtrasStatusesNotesListWithResponse call -func ParseExtrasStatusesNotesListResponse(rsp *http.Response) (*ExtrasStatusesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasStatusesNotesCreateResponse parses an HTTP response from a ExtrasStatusesNotesCreateWithResponse call -func ParseExtrasStatusesNotesCreateResponse(rsp *http.Response) (*ExtrasStatusesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasStatusesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsBulkDestroyResponse parses an HTTP response from a ExtrasTagsBulkDestroyWithResponse call -func ParseExtrasTagsBulkDestroyResponse(rsp *http.Response) (*ExtrasTagsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsListResponse parses an HTTP response from a ExtrasTagsListWithResponse call -func ParseExtrasTagsListResponse(rsp *http.Response) (*ExtrasTagsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsBulkPartialUpdateResponse parses an HTTP response from a ExtrasTagsBulkPartialUpdateWithResponse call -func ParseExtrasTagsBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasTagsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsCreateResponse parses an HTTP response from a ExtrasTagsCreateWithResponse call -func ParseExtrasTagsCreateResponse(rsp *http.Response) (*ExtrasTagsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsBulkUpdateResponse parses an HTTP response from a ExtrasTagsBulkUpdateWithResponse call -func ParseExtrasTagsBulkUpdateResponse(rsp *http.Response) (*ExtrasTagsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsDestroyResponse parses an HTTP response from a ExtrasTagsDestroyWithResponse call -func ParseExtrasTagsDestroyResponse(rsp *http.Response) (*ExtrasTagsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsRetrieveResponse parses an HTTP response from a ExtrasTagsRetrieveWithResponse call -func ParseExtrasTagsRetrieveResponse(rsp *http.Response) (*ExtrasTagsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsPartialUpdateResponse parses an HTTP response from a ExtrasTagsPartialUpdateWithResponse call -func ParseExtrasTagsPartialUpdateResponse(rsp *http.Response) (*ExtrasTagsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsUpdateResponse parses an HTTP response from a ExtrasTagsUpdateWithResponse call -func ParseExtrasTagsUpdateResponse(rsp *http.Response) (*ExtrasTagsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsNotesListResponse parses an HTTP response from a ExtrasTagsNotesListWithResponse call -func ParseExtrasTagsNotesListResponse(rsp *http.Response) (*ExtrasTagsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasTagsNotesCreateResponse parses an HTTP response from a ExtrasTagsNotesCreateWithResponse call -func ParseExtrasTagsNotesCreateResponse(rsp *http.Response) (*ExtrasTagsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasTagsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksBulkDestroyResponse parses an HTTP response from a ExtrasWebhooksBulkDestroyWithResponse call -func ParseExtrasWebhooksBulkDestroyResponse(rsp *http.Response) (*ExtrasWebhooksBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksListResponse parses an HTTP response from a ExtrasWebhooksListWithResponse call -func ParseExtrasWebhooksListResponse(rsp *http.Response) (*ExtrasWebhooksListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksBulkPartialUpdateResponse parses an HTTP response from a ExtrasWebhooksBulkPartialUpdateWithResponse call -func ParseExtrasWebhooksBulkPartialUpdateResponse(rsp *http.Response) (*ExtrasWebhooksBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksCreateResponse parses an HTTP response from a ExtrasWebhooksCreateWithResponse call -func ParseExtrasWebhooksCreateResponse(rsp *http.Response) (*ExtrasWebhooksCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksBulkUpdateResponse parses an HTTP response from a ExtrasWebhooksBulkUpdateWithResponse call -func ParseExtrasWebhooksBulkUpdateResponse(rsp *http.Response) (*ExtrasWebhooksBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksDestroyResponse parses an HTTP response from a ExtrasWebhooksDestroyWithResponse call -func ParseExtrasWebhooksDestroyResponse(rsp *http.Response) (*ExtrasWebhooksDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksRetrieveResponse parses an HTTP response from a ExtrasWebhooksRetrieveWithResponse call -func ParseExtrasWebhooksRetrieveResponse(rsp *http.Response) (*ExtrasWebhooksRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksPartialUpdateResponse parses an HTTP response from a ExtrasWebhooksPartialUpdateWithResponse call -func ParseExtrasWebhooksPartialUpdateResponse(rsp *http.Response) (*ExtrasWebhooksPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksUpdateResponse parses an HTTP response from a ExtrasWebhooksUpdateWithResponse call -func ParseExtrasWebhooksUpdateResponse(rsp *http.Response) (*ExtrasWebhooksUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksNotesListResponse parses an HTTP response from a ExtrasWebhooksNotesListWithResponse call -func ParseExtrasWebhooksNotesListResponse(rsp *http.Response) (*ExtrasWebhooksNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseExtrasWebhooksNotesCreateResponse parses an HTTP response from a ExtrasWebhooksNotesCreateWithResponse call -func ParseExtrasWebhooksNotesCreateResponse(rsp *http.Response) (*ExtrasWebhooksNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExtrasWebhooksNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGraphqlCreateResponse parses an HTTP response from a GraphqlCreateWithResponse call -func ParseGraphqlCreateResponse(rsp *http.Response) (*GraphqlCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GraphqlCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesBulkDestroyResponse parses an HTTP response from a IpamAggregatesBulkDestroyWithResponse call -func ParseIpamAggregatesBulkDestroyResponse(rsp *http.Response) (*IpamAggregatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesListResponse parses an HTTP response from a IpamAggregatesListWithResponse call -func ParseIpamAggregatesListResponse(rsp *http.Response) (*IpamAggregatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesBulkPartialUpdateResponse parses an HTTP response from a IpamAggregatesBulkPartialUpdateWithResponse call -func ParseIpamAggregatesBulkPartialUpdateResponse(rsp *http.Response) (*IpamAggregatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesCreateResponse parses an HTTP response from a IpamAggregatesCreateWithResponse call -func ParseIpamAggregatesCreateResponse(rsp *http.Response) (*IpamAggregatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesBulkUpdateResponse parses an HTTP response from a IpamAggregatesBulkUpdateWithResponse call -func ParseIpamAggregatesBulkUpdateResponse(rsp *http.Response) (*IpamAggregatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesDestroyResponse parses an HTTP response from a IpamAggregatesDestroyWithResponse call -func ParseIpamAggregatesDestroyResponse(rsp *http.Response) (*IpamAggregatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesRetrieveResponse parses an HTTP response from a IpamAggregatesRetrieveWithResponse call -func ParseIpamAggregatesRetrieveResponse(rsp *http.Response) (*IpamAggregatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesPartialUpdateResponse parses an HTTP response from a IpamAggregatesPartialUpdateWithResponse call -func ParseIpamAggregatesPartialUpdateResponse(rsp *http.Response) (*IpamAggregatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesUpdateResponse parses an HTTP response from a IpamAggregatesUpdateWithResponse call -func ParseIpamAggregatesUpdateResponse(rsp *http.Response) (*IpamAggregatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesNotesListResponse parses an HTTP response from a IpamAggregatesNotesListWithResponse call -func ParseIpamAggregatesNotesListResponse(rsp *http.Response) (*IpamAggregatesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamAggregatesNotesCreateResponse parses an HTTP response from a IpamAggregatesNotesCreateWithResponse call -func ParseIpamAggregatesNotesCreateResponse(rsp *http.Response) (*IpamAggregatesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamAggregatesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesBulkDestroyResponse parses an HTTP response from a IpamIpAddressesBulkDestroyWithResponse call -func ParseIpamIpAddressesBulkDestroyResponse(rsp *http.Response) (*IpamIpAddressesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesListResponse parses an HTTP response from a IpamIpAddressesListWithResponse call -func ParseIpamIpAddressesListResponse(rsp *http.Response) (*IpamIpAddressesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesBulkPartialUpdateResponse parses an HTTP response from a IpamIpAddressesBulkPartialUpdateWithResponse call -func ParseIpamIpAddressesBulkPartialUpdateResponse(rsp *http.Response) (*IpamIpAddressesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesCreateResponse parses an HTTP response from a IpamIpAddressesCreateWithResponse call -func ParseIpamIpAddressesCreateResponse(rsp *http.Response) (*IpamIpAddressesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesBulkUpdateResponse parses an HTTP response from a IpamIpAddressesBulkUpdateWithResponse call -func ParseIpamIpAddressesBulkUpdateResponse(rsp *http.Response) (*IpamIpAddressesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesDestroyResponse parses an HTTP response from a IpamIpAddressesDestroyWithResponse call -func ParseIpamIpAddressesDestroyResponse(rsp *http.Response) (*IpamIpAddressesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesRetrieveResponse parses an HTTP response from a IpamIpAddressesRetrieveWithResponse call -func ParseIpamIpAddressesRetrieveResponse(rsp *http.Response) (*IpamIpAddressesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesPartialUpdateResponse parses an HTTP response from a IpamIpAddressesPartialUpdateWithResponse call -func ParseIpamIpAddressesPartialUpdateResponse(rsp *http.Response) (*IpamIpAddressesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesUpdateResponse parses an HTTP response from a IpamIpAddressesUpdateWithResponse call -func ParseIpamIpAddressesUpdateResponse(rsp *http.Response) (*IpamIpAddressesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesNotesListResponse parses an HTTP response from a IpamIpAddressesNotesListWithResponse call -func ParseIpamIpAddressesNotesListResponse(rsp *http.Response) (*IpamIpAddressesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamIpAddressesNotesCreateResponse parses an HTTP response from a IpamIpAddressesNotesCreateWithResponse call -func ParseIpamIpAddressesNotesCreateResponse(rsp *http.Response) (*IpamIpAddressesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamIpAddressesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesBulkDestroyResponse parses an HTTP response from a IpamPrefixesBulkDestroyWithResponse call -func ParseIpamPrefixesBulkDestroyResponse(rsp *http.Response) (*IpamPrefixesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesListResponse parses an HTTP response from a IpamPrefixesListWithResponse call -func ParseIpamPrefixesListResponse(rsp *http.Response) (*IpamPrefixesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesBulkPartialUpdateResponse parses an HTTP response from a IpamPrefixesBulkPartialUpdateWithResponse call -func ParseIpamPrefixesBulkPartialUpdateResponse(rsp *http.Response) (*IpamPrefixesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesCreateResponse parses an HTTP response from a IpamPrefixesCreateWithResponse call -func ParseIpamPrefixesCreateResponse(rsp *http.Response) (*IpamPrefixesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesBulkUpdateResponse parses an HTTP response from a IpamPrefixesBulkUpdateWithResponse call -func ParseIpamPrefixesBulkUpdateResponse(rsp *http.Response) (*IpamPrefixesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesDestroyResponse parses an HTTP response from a IpamPrefixesDestroyWithResponse call -func ParseIpamPrefixesDestroyResponse(rsp *http.Response) (*IpamPrefixesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesRetrieveResponse parses an HTTP response from a IpamPrefixesRetrieveWithResponse call -func ParseIpamPrefixesRetrieveResponse(rsp *http.Response) (*IpamPrefixesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesPartialUpdateResponse parses an HTTP response from a IpamPrefixesPartialUpdateWithResponse call -func ParseIpamPrefixesPartialUpdateResponse(rsp *http.Response) (*IpamPrefixesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesUpdateResponse parses an HTTP response from a IpamPrefixesUpdateWithResponse call -func ParseIpamPrefixesUpdateResponse(rsp *http.Response) (*IpamPrefixesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesAvailableIpsListResponse parses an HTTP response from a IpamPrefixesAvailableIpsListWithResponse call -func ParseIpamPrefixesAvailableIpsListResponse(rsp *http.Response) (*IpamPrefixesAvailableIpsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesAvailableIpsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesAvailableIpsCreateResponse parses an HTTP response from a IpamPrefixesAvailableIpsCreateWithResponse call -func ParseIpamPrefixesAvailableIpsCreateResponse(rsp *http.Response) (*IpamPrefixesAvailableIpsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesAvailableIpsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesAvailablePrefixesListResponse parses an HTTP response from a IpamPrefixesAvailablePrefixesListWithResponse call -func ParseIpamPrefixesAvailablePrefixesListResponse(rsp *http.Response) (*IpamPrefixesAvailablePrefixesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesAvailablePrefixesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesAvailablePrefixesCreateResponse parses an HTTP response from a IpamPrefixesAvailablePrefixesCreateWithResponse call -func ParseIpamPrefixesAvailablePrefixesCreateResponse(rsp *http.Response) (*IpamPrefixesAvailablePrefixesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesAvailablePrefixesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesNotesListResponse parses an HTTP response from a IpamPrefixesNotesListWithResponse call -func ParseIpamPrefixesNotesListResponse(rsp *http.Response) (*IpamPrefixesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamPrefixesNotesCreateResponse parses an HTTP response from a IpamPrefixesNotesCreateWithResponse call -func ParseIpamPrefixesNotesCreateResponse(rsp *http.Response) (*IpamPrefixesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamPrefixesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsBulkDestroyResponse parses an HTTP response from a IpamRirsBulkDestroyWithResponse call -func ParseIpamRirsBulkDestroyResponse(rsp *http.Response) (*IpamRirsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsListResponse parses an HTTP response from a IpamRirsListWithResponse call -func ParseIpamRirsListResponse(rsp *http.Response) (*IpamRirsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsBulkPartialUpdateResponse parses an HTTP response from a IpamRirsBulkPartialUpdateWithResponse call -func ParseIpamRirsBulkPartialUpdateResponse(rsp *http.Response) (*IpamRirsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsCreateResponse parses an HTTP response from a IpamRirsCreateWithResponse call -func ParseIpamRirsCreateResponse(rsp *http.Response) (*IpamRirsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsBulkUpdateResponse parses an HTTP response from a IpamRirsBulkUpdateWithResponse call -func ParseIpamRirsBulkUpdateResponse(rsp *http.Response) (*IpamRirsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsDestroyResponse parses an HTTP response from a IpamRirsDestroyWithResponse call -func ParseIpamRirsDestroyResponse(rsp *http.Response) (*IpamRirsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsRetrieveResponse parses an HTTP response from a IpamRirsRetrieveWithResponse call -func ParseIpamRirsRetrieveResponse(rsp *http.Response) (*IpamRirsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsPartialUpdateResponse parses an HTTP response from a IpamRirsPartialUpdateWithResponse call -func ParseIpamRirsPartialUpdateResponse(rsp *http.Response) (*IpamRirsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsUpdateResponse parses an HTTP response from a IpamRirsUpdateWithResponse call -func ParseIpamRirsUpdateResponse(rsp *http.Response) (*IpamRirsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsNotesListResponse parses an HTTP response from a IpamRirsNotesListWithResponse call -func ParseIpamRirsNotesListResponse(rsp *http.Response) (*IpamRirsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRirsNotesCreateResponse parses an HTTP response from a IpamRirsNotesCreateWithResponse call -func ParseIpamRirsNotesCreateResponse(rsp *http.Response) (*IpamRirsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRirsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesBulkDestroyResponse parses an HTTP response from a IpamRolesBulkDestroyWithResponse call -func ParseIpamRolesBulkDestroyResponse(rsp *http.Response) (*IpamRolesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesListResponse parses an HTTP response from a IpamRolesListWithResponse call -func ParseIpamRolesListResponse(rsp *http.Response) (*IpamRolesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesBulkPartialUpdateResponse parses an HTTP response from a IpamRolesBulkPartialUpdateWithResponse call -func ParseIpamRolesBulkPartialUpdateResponse(rsp *http.Response) (*IpamRolesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesCreateResponse parses an HTTP response from a IpamRolesCreateWithResponse call -func ParseIpamRolesCreateResponse(rsp *http.Response) (*IpamRolesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesBulkUpdateResponse parses an HTTP response from a IpamRolesBulkUpdateWithResponse call -func ParseIpamRolesBulkUpdateResponse(rsp *http.Response) (*IpamRolesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesDestroyResponse parses an HTTP response from a IpamRolesDestroyWithResponse call -func ParseIpamRolesDestroyResponse(rsp *http.Response) (*IpamRolesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesRetrieveResponse parses an HTTP response from a IpamRolesRetrieveWithResponse call -func ParseIpamRolesRetrieveResponse(rsp *http.Response) (*IpamRolesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesPartialUpdateResponse parses an HTTP response from a IpamRolesPartialUpdateWithResponse call -func ParseIpamRolesPartialUpdateResponse(rsp *http.Response) (*IpamRolesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesUpdateResponse parses an HTTP response from a IpamRolesUpdateWithResponse call -func ParseIpamRolesUpdateResponse(rsp *http.Response) (*IpamRolesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesNotesListResponse parses an HTTP response from a IpamRolesNotesListWithResponse call -func ParseIpamRolesNotesListResponse(rsp *http.Response) (*IpamRolesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRolesNotesCreateResponse parses an HTTP response from a IpamRolesNotesCreateWithResponse call -func ParseIpamRolesNotesCreateResponse(rsp *http.Response) (*IpamRolesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRolesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsBulkDestroyResponse parses an HTTP response from a IpamRouteTargetsBulkDestroyWithResponse call -func ParseIpamRouteTargetsBulkDestroyResponse(rsp *http.Response) (*IpamRouteTargetsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsListResponse parses an HTTP response from a IpamRouteTargetsListWithResponse call -func ParseIpamRouteTargetsListResponse(rsp *http.Response) (*IpamRouteTargetsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsBulkPartialUpdateResponse parses an HTTP response from a IpamRouteTargetsBulkPartialUpdateWithResponse call -func ParseIpamRouteTargetsBulkPartialUpdateResponse(rsp *http.Response) (*IpamRouteTargetsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsCreateResponse parses an HTTP response from a IpamRouteTargetsCreateWithResponse call -func ParseIpamRouteTargetsCreateResponse(rsp *http.Response) (*IpamRouteTargetsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsBulkUpdateResponse parses an HTTP response from a IpamRouteTargetsBulkUpdateWithResponse call -func ParseIpamRouteTargetsBulkUpdateResponse(rsp *http.Response) (*IpamRouteTargetsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsDestroyResponse parses an HTTP response from a IpamRouteTargetsDestroyWithResponse call -func ParseIpamRouteTargetsDestroyResponse(rsp *http.Response) (*IpamRouteTargetsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsRetrieveResponse parses an HTTP response from a IpamRouteTargetsRetrieveWithResponse call -func ParseIpamRouteTargetsRetrieveResponse(rsp *http.Response) (*IpamRouteTargetsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsPartialUpdateResponse parses an HTTP response from a IpamRouteTargetsPartialUpdateWithResponse call -func ParseIpamRouteTargetsPartialUpdateResponse(rsp *http.Response) (*IpamRouteTargetsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsUpdateResponse parses an HTTP response from a IpamRouteTargetsUpdateWithResponse call -func ParseIpamRouteTargetsUpdateResponse(rsp *http.Response) (*IpamRouteTargetsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsNotesListResponse parses an HTTP response from a IpamRouteTargetsNotesListWithResponse call -func ParseIpamRouteTargetsNotesListResponse(rsp *http.Response) (*IpamRouteTargetsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamRouteTargetsNotesCreateResponse parses an HTTP response from a IpamRouteTargetsNotesCreateWithResponse call -func ParseIpamRouteTargetsNotesCreateResponse(rsp *http.Response) (*IpamRouteTargetsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamRouteTargetsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesBulkDestroyResponse parses an HTTP response from a IpamServicesBulkDestroyWithResponse call -func ParseIpamServicesBulkDestroyResponse(rsp *http.Response) (*IpamServicesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesListResponse parses an HTTP response from a IpamServicesListWithResponse call -func ParseIpamServicesListResponse(rsp *http.Response) (*IpamServicesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesBulkPartialUpdateResponse parses an HTTP response from a IpamServicesBulkPartialUpdateWithResponse call -func ParseIpamServicesBulkPartialUpdateResponse(rsp *http.Response) (*IpamServicesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesCreateResponse parses an HTTP response from a IpamServicesCreateWithResponse call -func ParseIpamServicesCreateResponse(rsp *http.Response) (*IpamServicesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesBulkUpdateResponse parses an HTTP response from a IpamServicesBulkUpdateWithResponse call -func ParseIpamServicesBulkUpdateResponse(rsp *http.Response) (*IpamServicesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesDestroyResponse parses an HTTP response from a IpamServicesDestroyWithResponse call -func ParseIpamServicesDestroyResponse(rsp *http.Response) (*IpamServicesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesRetrieveResponse parses an HTTP response from a IpamServicesRetrieveWithResponse call -func ParseIpamServicesRetrieveResponse(rsp *http.Response) (*IpamServicesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesPartialUpdateResponse parses an HTTP response from a IpamServicesPartialUpdateWithResponse call -func ParseIpamServicesPartialUpdateResponse(rsp *http.Response) (*IpamServicesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesUpdateResponse parses an HTTP response from a IpamServicesUpdateWithResponse call -func ParseIpamServicesUpdateResponse(rsp *http.Response) (*IpamServicesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesNotesListResponse parses an HTTP response from a IpamServicesNotesListWithResponse call -func ParseIpamServicesNotesListResponse(rsp *http.Response) (*IpamServicesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamServicesNotesCreateResponse parses an HTTP response from a IpamServicesNotesCreateWithResponse call -func ParseIpamServicesNotesCreateResponse(rsp *http.Response) (*IpamServicesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamServicesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsBulkDestroyResponse parses an HTTP response from a IpamVlanGroupsBulkDestroyWithResponse call -func ParseIpamVlanGroupsBulkDestroyResponse(rsp *http.Response) (*IpamVlanGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsListResponse parses an HTTP response from a IpamVlanGroupsListWithResponse call -func ParseIpamVlanGroupsListResponse(rsp *http.Response) (*IpamVlanGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsBulkPartialUpdateResponse parses an HTTP response from a IpamVlanGroupsBulkPartialUpdateWithResponse call -func ParseIpamVlanGroupsBulkPartialUpdateResponse(rsp *http.Response) (*IpamVlanGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsCreateResponse parses an HTTP response from a IpamVlanGroupsCreateWithResponse call -func ParseIpamVlanGroupsCreateResponse(rsp *http.Response) (*IpamVlanGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsBulkUpdateResponse parses an HTTP response from a IpamVlanGroupsBulkUpdateWithResponse call -func ParseIpamVlanGroupsBulkUpdateResponse(rsp *http.Response) (*IpamVlanGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsDestroyResponse parses an HTTP response from a IpamVlanGroupsDestroyWithResponse call -func ParseIpamVlanGroupsDestroyResponse(rsp *http.Response) (*IpamVlanGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsRetrieveResponse parses an HTTP response from a IpamVlanGroupsRetrieveWithResponse call -func ParseIpamVlanGroupsRetrieveResponse(rsp *http.Response) (*IpamVlanGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsPartialUpdateResponse parses an HTTP response from a IpamVlanGroupsPartialUpdateWithResponse call -func ParseIpamVlanGroupsPartialUpdateResponse(rsp *http.Response) (*IpamVlanGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsUpdateResponse parses an HTTP response from a IpamVlanGroupsUpdateWithResponse call -func ParseIpamVlanGroupsUpdateResponse(rsp *http.Response) (*IpamVlanGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsNotesListResponse parses an HTTP response from a IpamVlanGroupsNotesListWithResponse call -func ParseIpamVlanGroupsNotesListResponse(rsp *http.Response) (*IpamVlanGroupsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlanGroupsNotesCreateResponse parses an HTTP response from a IpamVlanGroupsNotesCreateWithResponse call -func ParseIpamVlanGroupsNotesCreateResponse(rsp *http.Response) (*IpamVlanGroupsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlanGroupsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansBulkDestroyResponse parses an HTTP response from a IpamVlansBulkDestroyWithResponse call -func ParseIpamVlansBulkDestroyResponse(rsp *http.Response) (*IpamVlansBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansListResponse parses an HTTP response from a IpamVlansListWithResponse call -func ParseIpamVlansListResponse(rsp *http.Response) (*IpamVlansListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansBulkPartialUpdateResponse parses an HTTP response from a IpamVlansBulkPartialUpdateWithResponse call -func ParseIpamVlansBulkPartialUpdateResponse(rsp *http.Response) (*IpamVlansBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansCreateResponse parses an HTTP response from a IpamVlansCreateWithResponse call -func ParseIpamVlansCreateResponse(rsp *http.Response) (*IpamVlansCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansBulkUpdateResponse parses an HTTP response from a IpamVlansBulkUpdateWithResponse call -func ParseIpamVlansBulkUpdateResponse(rsp *http.Response) (*IpamVlansBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansDestroyResponse parses an HTTP response from a IpamVlansDestroyWithResponse call -func ParseIpamVlansDestroyResponse(rsp *http.Response) (*IpamVlansDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansRetrieveResponse parses an HTTP response from a IpamVlansRetrieveWithResponse call -func ParseIpamVlansRetrieveResponse(rsp *http.Response) (*IpamVlansRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansPartialUpdateResponse parses an HTTP response from a IpamVlansPartialUpdateWithResponse call -func ParseIpamVlansPartialUpdateResponse(rsp *http.Response) (*IpamVlansPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansUpdateResponse parses an HTTP response from a IpamVlansUpdateWithResponse call -func ParseIpamVlansUpdateResponse(rsp *http.Response) (*IpamVlansUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansNotesListResponse parses an HTTP response from a IpamVlansNotesListWithResponse call -func ParseIpamVlansNotesListResponse(rsp *http.Response) (*IpamVlansNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVlansNotesCreateResponse parses an HTTP response from a IpamVlansNotesCreateWithResponse call -func ParseIpamVlansNotesCreateResponse(rsp *http.Response) (*IpamVlansNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVlansNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsBulkDestroyResponse parses an HTTP response from a IpamVrfsBulkDestroyWithResponse call -func ParseIpamVrfsBulkDestroyResponse(rsp *http.Response) (*IpamVrfsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsListResponse parses an HTTP response from a IpamVrfsListWithResponse call -func ParseIpamVrfsListResponse(rsp *http.Response) (*IpamVrfsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsBulkPartialUpdateResponse parses an HTTP response from a IpamVrfsBulkPartialUpdateWithResponse call -func ParseIpamVrfsBulkPartialUpdateResponse(rsp *http.Response) (*IpamVrfsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsCreateResponse parses an HTTP response from a IpamVrfsCreateWithResponse call -func ParseIpamVrfsCreateResponse(rsp *http.Response) (*IpamVrfsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsBulkUpdateResponse parses an HTTP response from a IpamVrfsBulkUpdateWithResponse call -func ParseIpamVrfsBulkUpdateResponse(rsp *http.Response) (*IpamVrfsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsDestroyResponse parses an HTTP response from a IpamVrfsDestroyWithResponse call -func ParseIpamVrfsDestroyResponse(rsp *http.Response) (*IpamVrfsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsRetrieveResponse parses an HTTP response from a IpamVrfsRetrieveWithResponse call -func ParseIpamVrfsRetrieveResponse(rsp *http.Response) (*IpamVrfsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsPartialUpdateResponse parses an HTTP response from a IpamVrfsPartialUpdateWithResponse call -func ParseIpamVrfsPartialUpdateResponse(rsp *http.Response) (*IpamVrfsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsUpdateResponse parses an HTTP response from a IpamVrfsUpdateWithResponse call -func ParseIpamVrfsUpdateResponse(rsp *http.Response) (*IpamVrfsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsNotesListResponse parses an HTTP response from a IpamVrfsNotesListWithResponse call -func ParseIpamVrfsNotesListResponse(rsp *http.Response) (*IpamVrfsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseIpamVrfsNotesCreateResponse parses an HTTP response from a IpamVrfsNotesCreateWithResponse call -func ParseIpamVrfsNotesCreateResponse(rsp *http.Response) (*IpamVrfsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IpamVrfsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesBulkDestroyResponse parses an HTTP response from a PluginsBgpAddressFamiliesBulkDestroyWithResponse call -func ParsePluginsBgpAddressFamiliesBulkDestroyResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesListResponse parses an HTTP response from a PluginsBgpAddressFamiliesListWithResponse call -func ParsePluginsBgpAddressFamiliesListResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpAddressFamiliesBulkPartialUpdateWithResponse call -func ParsePluginsBgpAddressFamiliesBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesCreateResponse parses an HTTP response from a PluginsBgpAddressFamiliesCreateWithResponse call -func ParsePluginsBgpAddressFamiliesCreateResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesBulkUpdateResponse parses an HTTP response from a PluginsBgpAddressFamiliesBulkUpdateWithResponse call -func ParsePluginsBgpAddressFamiliesBulkUpdateResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesDestroyResponse parses an HTTP response from a PluginsBgpAddressFamiliesDestroyWithResponse call -func ParsePluginsBgpAddressFamiliesDestroyResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesRetrieveResponse parses an HTTP response from a PluginsBgpAddressFamiliesRetrieveWithResponse call -func ParsePluginsBgpAddressFamiliesRetrieveResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesPartialUpdateResponse parses an HTTP response from a PluginsBgpAddressFamiliesPartialUpdateWithResponse call -func ParsePluginsBgpAddressFamiliesPartialUpdateResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAddressFamiliesUpdateResponse parses an HTTP response from a PluginsBgpAddressFamiliesUpdateWithResponse call -func ParsePluginsBgpAddressFamiliesUpdateResponse(rsp *http.Response) (*PluginsBgpAddressFamiliesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAddressFamiliesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsBulkDestroyResponse parses an HTTP response from a PluginsBgpAutonomousSystemsBulkDestroyWithResponse call -func ParsePluginsBgpAutonomousSystemsBulkDestroyResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsListResponse parses an HTTP response from a PluginsBgpAutonomousSystemsListWithResponse call -func ParsePluginsBgpAutonomousSystemsListResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpAutonomousSystemsBulkPartialUpdateWithResponse call -func ParsePluginsBgpAutonomousSystemsBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsCreateResponse parses an HTTP response from a PluginsBgpAutonomousSystemsCreateWithResponse call -func ParsePluginsBgpAutonomousSystemsCreateResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsBulkUpdateResponse parses an HTTP response from a PluginsBgpAutonomousSystemsBulkUpdateWithResponse call -func ParsePluginsBgpAutonomousSystemsBulkUpdateResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsDestroyResponse parses an HTTP response from a PluginsBgpAutonomousSystemsDestroyWithResponse call -func ParsePluginsBgpAutonomousSystemsDestroyResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsRetrieveResponse parses an HTTP response from a PluginsBgpAutonomousSystemsRetrieveWithResponse call -func ParsePluginsBgpAutonomousSystemsRetrieveResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsPartialUpdateResponse parses an HTTP response from a PluginsBgpAutonomousSystemsPartialUpdateWithResponse call -func ParsePluginsBgpAutonomousSystemsPartialUpdateResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpAutonomousSystemsUpdateResponse parses an HTTP response from a PluginsBgpAutonomousSystemsUpdateWithResponse call -func ParsePluginsBgpAutonomousSystemsUpdateResponse(rsp *http.Response) (*PluginsBgpAutonomousSystemsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpAutonomousSystemsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsBulkDestroyResponse parses an HTTP response from a PluginsBgpPeerEndpointsBulkDestroyWithResponse call -func ParsePluginsBgpPeerEndpointsBulkDestroyResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsListResponse parses an HTTP response from a PluginsBgpPeerEndpointsListWithResponse call -func ParsePluginsBgpPeerEndpointsListResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpPeerEndpointsBulkPartialUpdateWithResponse call -func ParsePluginsBgpPeerEndpointsBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsCreateResponse parses an HTTP response from a PluginsBgpPeerEndpointsCreateWithResponse call -func ParsePluginsBgpPeerEndpointsCreateResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsBulkUpdateResponse parses an HTTP response from a PluginsBgpPeerEndpointsBulkUpdateWithResponse call -func ParsePluginsBgpPeerEndpointsBulkUpdateResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsDestroyResponse parses an HTTP response from a PluginsBgpPeerEndpointsDestroyWithResponse call -func ParsePluginsBgpPeerEndpointsDestroyResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsRetrieveResponse parses an HTTP response from a PluginsBgpPeerEndpointsRetrieveWithResponse call -func ParsePluginsBgpPeerEndpointsRetrieveResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsPartialUpdateResponse parses an HTTP response from a PluginsBgpPeerEndpointsPartialUpdateWithResponse call -func ParsePluginsBgpPeerEndpointsPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerEndpointsUpdateResponse parses an HTTP response from a PluginsBgpPeerEndpointsUpdateWithResponse call -func ParsePluginsBgpPeerEndpointsUpdateResponse(rsp *http.Response) (*PluginsBgpPeerEndpointsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerEndpointsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesBulkDestroyResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesBulkDestroyWithResponse call -func ParsePluginsBgpPeerGroupTemplatesBulkDestroyResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesListResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesListWithResponse call -func ParsePluginsBgpPeerGroupTemplatesListResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesBulkPartialUpdateWithResponse call -func ParsePluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesCreateResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesCreateWithResponse call -func ParsePluginsBgpPeerGroupTemplatesCreateResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesBulkUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesBulkUpdateWithResponse call -func ParsePluginsBgpPeerGroupTemplatesBulkUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesDestroyResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesDestroyWithResponse call -func ParsePluginsBgpPeerGroupTemplatesDestroyResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesRetrieveResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesRetrieveWithResponse call -func ParsePluginsBgpPeerGroupTemplatesRetrieveResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesPartialUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesPartialUpdateWithResponse call -func ParsePluginsBgpPeerGroupTemplatesPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupTemplatesUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupTemplatesUpdateWithResponse call -func ParsePluginsBgpPeerGroupTemplatesUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupTemplatesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupTemplatesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsBulkDestroyResponse parses an HTTP response from a PluginsBgpPeerGroupsBulkDestroyWithResponse call -func ParsePluginsBgpPeerGroupsBulkDestroyResponse(rsp *http.Response) (*PluginsBgpPeerGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsListResponse parses an HTTP response from a PluginsBgpPeerGroupsListWithResponse call -func ParsePluginsBgpPeerGroupsListResponse(rsp *http.Response) (*PluginsBgpPeerGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupsBulkPartialUpdateWithResponse call -func ParsePluginsBgpPeerGroupsBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsCreateResponse parses an HTTP response from a PluginsBgpPeerGroupsCreateWithResponse call -func ParsePluginsBgpPeerGroupsCreateResponse(rsp *http.Response) (*PluginsBgpPeerGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsBulkUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupsBulkUpdateWithResponse call -func ParsePluginsBgpPeerGroupsBulkUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsDestroyResponse parses an HTTP response from a PluginsBgpPeerGroupsDestroyWithResponse call -func ParsePluginsBgpPeerGroupsDestroyResponse(rsp *http.Response) (*PluginsBgpPeerGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsRetrieveResponse parses an HTTP response from a PluginsBgpPeerGroupsRetrieveWithResponse call -func ParsePluginsBgpPeerGroupsRetrieveResponse(rsp *http.Response) (*PluginsBgpPeerGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsPartialUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupsPartialUpdateWithResponse call -func ParsePluginsBgpPeerGroupsPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeerGroupsUpdateResponse parses an HTTP response from a PluginsBgpPeerGroupsUpdateWithResponse call -func ParsePluginsBgpPeerGroupsUpdateResponse(rsp *http.Response) (*PluginsBgpPeerGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeerGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesBulkDestroyResponse parses an HTTP response from a PluginsBgpPeeringRolesBulkDestroyWithResponse call -func ParsePluginsBgpPeeringRolesBulkDestroyResponse(rsp *http.Response) (*PluginsBgpPeeringRolesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesListResponse parses an HTTP response from a PluginsBgpPeeringRolesListWithResponse call -func ParsePluginsBgpPeeringRolesListResponse(rsp *http.Response) (*PluginsBgpPeeringRolesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpPeeringRolesBulkPartialUpdateWithResponse call -func ParsePluginsBgpPeeringRolesBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringRolesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesCreateResponse parses an HTTP response from a PluginsBgpPeeringRolesCreateWithResponse call -func ParsePluginsBgpPeeringRolesCreateResponse(rsp *http.Response) (*PluginsBgpPeeringRolesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesBulkUpdateResponse parses an HTTP response from a PluginsBgpPeeringRolesBulkUpdateWithResponse call -func ParsePluginsBgpPeeringRolesBulkUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringRolesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesDestroyResponse parses an HTTP response from a PluginsBgpPeeringRolesDestroyWithResponse call -func ParsePluginsBgpPeeringRolesDestroyResponse(rsp *http.Response) (*PluginsBgpPeeringRolesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesRetrieveResponse parses an HTTP response from a PluginsBgpPeeringRolesRetrieveWithResponse call -func ParsePluginsBgpPeeringRolesRetrieveResponse(rsp *http.Response) (*PluginsBgpPeeringRolesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesPartialUpdateResponse parses an HTTP response from a PluginsBgpPeeringRolesPartialUpdateWithResponse call -func ParsePluginsBgpPeeringRolesPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringRolesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringRolesUpdateResponse parses an HTTP response from a PluginsBgpPeeringRolesUpdateWithResponse call -func ParsePluginsBgpPeeringRolesUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringRolesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringRolesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsBulkDestroyResponse parses an HTTP response from a PluginsBgpPeeringsBulkDestroyWithResponse call -func ParsePluginsBgpPeeringsBulkDestroyResponse(rsp *http.Response) (*PluginsBgpPeeringsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsListResponse parses an HTTP response from a PluginsBgpPeeringsListWithResponse call -func ParsePluginsBgpPeeringsListResponse(rsp *http.Response) (*PluginsBgpPeeringsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpPeeringsBulkPartialUpdateWithResponse call -func ParsePluginsBgpPeeringsBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsCreateResponse parses an HTTP response from a PluginsBgpPeeringsCreateWithResponse call -func ParsePluginsBgpPeeringsCreateResponse(rsp *http.Response) (*PluginsBgpPeeringsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsBulkUpdateResponse parses an HTTP response from a PluginsBgpPeeringsBulkUpdateWithResponse call -func ParsePluginsBgpPeeringsBulkUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsDestroyResponse parses an HTTP response from a PluginsBgpPeeringsDestroyWithResponse call -func ParsePluginsBgpPeeringsDestroyResponse(rsp *http.Response) (*PluginsBgpPeeringsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsRetrieveResponse parses an HTTP response from a PluginsBgpPeeringsRetrieveWithResponse call -func ParsePluginsBgpPeeringsRetrieveResponse(rsp *http.Response) (*PluginsBgpPeeringsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsPartialUpdateResponse parses an HTTP response from a PluginsBgpPeeringsPartialUpdateWithResponse call -func ParsePluginsBgpPeeringsPartialUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpPeeringsUpdateResponse parses an HTTP response from a PluginsBgpPeeringsUpdateWithResponse call -func ParsePluginsBgpPeeringsUpdateResponse(rsp *http.Response) (*PluginsBgpPeeringsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpPeeringsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesBulkDestroyResponse parses an HTTP response from a PluginsBgpRoutingInstancesBulkDestroyWithResponse call -func ParsePluginsBgpRoutingInstancesBulkDestroyResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesListResponse parses an HTTP response from a PluginsBgpRoutingInstancesListWithResponse call -func ParsePluginsBgpRoutingInstancesListResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesBulkPartialUpdateResponse parses an HTTP response from a PluginsBgpRoutingInstancesBulkPartialUpdateWithResponse call -func ParsePluginsBgpRoutingInstancesBulkPartialUpdateResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesCreateResponse parses an HTTP response from a PluginsBgpRoutingInstancesCreateWithResponse call -func ParsePluginsBgpRoutingInstancesCreateResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesBulkUpdateResponse parses an HTTP response from a PluginsBgpRoutingInstancesBulkUpdateWithResponse call -func ParsePluginsBgpRoutingInstancesBulkUpdateResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesDestroyResponse parses an HTTP response from a PluginsBgpRoutingInstancesDestroyWithResponse call -func ParsePluginsBgpRoutingInstancesDestroyResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesRetrieveResponse parses an HTTP response from a PluginsBgpRoutingInstancesRetrieveWithResponse call -func ParsePluginsBgpRoutingInstancesRetrieveResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesPartialUpdateResponse parses an HTTP response from a PluginsBgpRoutingInstancesPartialUpdateWithResponse call -func ParsePluginsBgpRoutingInstancesPartialUpdateResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsBgpRoutingInstancesUpdateResponse parses an HTTP response from a PluginsBgpRoutingInstancesUpdateWithResponse call -func ParsePluginsBgpRoutingInstancesUpdateResponse(rsp *http.Response) (*PluginsBgpRoutingInstancesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsBgpRoutingInstancesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantBulkDestroyResponse parses an HTTP response from a PluginsChatopsAccessgrantBulkDestroyWithResponse call -func ParsePluginsChatopsAccessgrantBulkDestroyResponse(rsp *http.Response) (*PluginsChatopsAccessgrantBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantListResponse parses an HTTP response from a PluginsChatopsAccessgrantListWithResponse call -func ParsePluginsChatopsAccessgrantListResponse(rsp *http.Response) (*PluginsChatopsAccessgrantListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantBulkPartialUpdateResponse parses an HTTP response from a PluginsChatopsAccessgrantBulkPartialUpdateWithResponse call -func ParsePluginsChatopsAccessgrantBulkPartialUpdateResponse(rsp *http.Response) (*PluginsChatopsAccessgrantBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantCreateResponse parses an HTTP response from a PluginsChatopsAccessgrantCreateWithResponse call -func ParsePluginsChatopsAccessgrantCreateResponse(rsp *http.Response) (*PluginsChatopsAccessgrantCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantBulkUpdateResponse parses an HTTP response from a PluginsChatopsAccessgrantBulkUpdateWithResponse call -func ParsePluginsChatopsAccessgrantBulkUpdateResponse(rsp *http.Response) (*PluginsChatopsAccessgrantBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantDestroyResponse parses an HTTP response from a PluginsChatopsAccessgrantDestroyWithResponse call -func ParsePluginsChatopsAccessgrantDestroyResponse(rsp *http.Response) (*PluginsChatopsAccessgrantDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantRetrieveResponse parses an HTTP response from a PluginsChatopsAccessgrantRetrieveWithResponse call -func ParsePluginsChatopsAccessgrantRetrieveResponse(rsp *http.Response) (*PluginsChatopsAccessgrantRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantPartialUpdateResponse parses an HTTP response from a PluginsChatopsAccessgrantPartialUpdateWithResponse call -func ParsePluginsChatopsAccessgrantPartialUpdateResponse(rsp *http.Response) (*PluginsChatopsAccessgrantPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsAccessgrantUpdateResponse parses an HTTP response from a PluginsChatopsAccessgrantUpdateWithResponse call -func ParsePluginsChatopsAccessgrantUpdateResponse(rsp *http.Response) (*PluginsChatopsAccessgrantUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsAccessgrantUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenBulkDestroyResponse parses an HTTP response from a PluginsChatopsCommandtokenBulkDestroyWithResponse call -func ParsePluginsChatopsCommandtokenBulkDestroyResponse(rsp *http.Response) (*PluginsChatopsCommandtokenBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenListResponse parses an HTTP response from a PluginsChatopsCommandtokenListWithResponse call -func ParsePluginsChatopsCommandtokenListResponse(rsp *http.Response) (*PluginsChatopsCommandtokenListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenBulkPartialUpdateResponse parses an HTTP response from a PluginsChatopsCommandtokenBulkPartialUpdateWithResponse call -func ParsePluginsChatopsCommandtokenBulkPartialUpdateResponse(rsp *http.Response) (*PluginsChatopsCommandtokenBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenCreateResponse parses an HTTP response from a PluginsChatopsCommandtokenCreateWithResponse call -func ParsePluginsChatopsCommandtokenCreateResponse(rsp *http.Response) (*PluginsChatopsCommandtokenCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenBulkUpdateResponse parses an HTTP response from a PluginsChatopsCommandtokenBulkUpdateWithResponse call -func ParsePluginsChatopsCommandtokenBulkUpdateResponse(rsp *http.Response) (*PluginsChatopsCommandtokenBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenDestroyResponse parses an HTTP response from a PluginsChatopsCommandtokenDestroyWithResponse call -func ParsePluginsChatopsCommandtokenDestroyResponse(rsp *http.Response) (*PluginsChatopsCommandtokenDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenRetrieveResponse parses an HTTP response from a PluginsChatopsCommandtokenRetrieveWithResponse call -func ParsePluginsChatopsCommandtokenRetrieveResponse(rsp *http.Response) (*PluginsChatopsCommandtokenRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenPartialUpdateResponse parses an HTTP response from a PluginsChatopsCommandtokenPartialUpdateWithResponse call -func ParsePluginsChatopsCommandtokenPartialUpdateResponse(rsp *http.Response) (*PluginsChatopsCommandtokenPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsChatopsCommandtokenUpdateResponse parses an HTTP response from a PluginsChatopsCommandtokenUpdateWithResponse call -func ParsePluginsChatopsCommandtokenUpdateResponse(rsp *http.Response) (*PluginsChatopsCommandtokenUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsChatopsCommandtokenUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactBulkDestroyWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactListResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactListWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactListResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactCreateResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactCreateWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactCreateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactBulkUpdateWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactDestroyResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactDestroyWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactDestroyResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactRetrieveResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactRetrieveWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactRetrieveResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactPartialUpdateWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceCircuitimpactUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceCircuitimpactUpdateWithResponse call -func ParsePluginsCircuitMaintenanceCircuitimpactUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceCircuitimpactUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceCircuitimpactUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceBulkDestroyResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceBulkDestroyWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceBulkDestroyResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceListResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceListWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceListResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceCreateResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceCreateWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceCreateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceBulkUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceBulkUpdateWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceBulkUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceDestroyResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceDestroyWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceDestroyResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceRetrieveResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceRetrieveWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceRetrieveResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenancePartialUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenancePartialUpdateWithResponse call -func ParsePluginsCircuitMaintenanceMaintenancePartialUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenancePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenancePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceMaintenanceUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceMaintenanceUpdateWithResponse call -func ParsePluginsCircuitMaintenanceMaintenanceUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceMaintenanceUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceMaintenanceUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteBulkDestroyResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteBulkDestroyWithResponse call -func ParsePluginsCircuitMaintenanceNoteBulkDestroyResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteListResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteListWithResponse call -func ParsePluginsCircuitMaintenanceNoteListResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteBulkPartialUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteBulkPartialUpdateWithResponse call -func ParsePluginsCircuitMaintenanceNoteBulkPartialUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteCreateResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteCreateWithResponse call -func ParsePluginsCircuitMaintenanceNoteCreateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteBulkUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteBulkUpdateWithResponse call -func ParsePluginsCircuitMaintenanceNoteBulkUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteDestroyResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteDestroyWithResponse call -func ParsePluginsCircuitMaintenanceNoteDestroyResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteRetrieveResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteRetrieveWithResponse call -func ParsePluginsCircuitMaintenanceNoteRetrieveResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNotePartialUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceNotePartialUpdateWithResponse call -func ParsePluginsCircuitMaintenanceNotePartialUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNotePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNotePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNoteUpdateResponse parses an HTTP response from a PluginsCircuitMaintenanceNoteUpdateWithResponse call -func ParsePluginsCircuitMaintenanceNoteUpdateResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNoteUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNoteUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNotificationsourceListResponse parses an HTTP response from a PluginsCircuitMaintenanceNotificationsourceListWithResponse call -func ParsePluginsCircuitMaintenanceNotificationsourceListResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNotificationsourceListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNotificationsourceListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsCircuitMaintenanceNotificationsourceRetrieveResponse parses an HTTP response from a PluginsCircuitMaintenanceNotificationsourceRetrieveWithResponse call -func ParsePluginsCircuitMaintenanceNotificationsourceRetrieveResponse(rsp *http.Response) (*PluginsCircuitMaintenanceNotificationsourceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsCircuitMaintenanceNotificationsourceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxBulkDestroyResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxBulkDestroyWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxBulkDestroyResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxListResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxListWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxListResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxCreateResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxCreateWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxCreateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxBulkUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxBulkUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxBulkUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxDestroyResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxDestroyWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxDestroyResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxRetrieveResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxRetrieveWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxRetrieveResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxPartialUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxPartialUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxPartialUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesMinMaxUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesMinMaxUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesMinMaxUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesMinMaxUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesMinMaxUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexBulkDestroyResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexBulkDestroyWithResponse call -func ParsePluginsDataValidationEngineRulesRegexBulkDestroyResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexListResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexListWithResponse call -func ParsePluginsDataValidationEngineRulesRegexListResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexBulkPartialUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexCreateResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexCreateWithResponse call -func ParsePluginsDataValidationEngineRulesRegexCreateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexBulkUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexBulkUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesRegexBulkUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexDestroyResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexDestroyWithResponse call -func ParsePluginsDataValidationEngineRulesRegexDestroyResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexRetrieveResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexRetrieveWithResponse call -func ParsePluginsDataValidationEngineRulesRegexRetrieveResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexPartialUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexPartialUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesRegexPartialUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDataValidationEngineRulesRegexUpdateResponse parses an HTTP response from a PluginsDataValidationEngineRulesRegexUpdateWithResponse call -func ParsePluginsDataValidationEngineRulesRegexUpdateResponse(rsp *http.Response) (*PluginsDataValidationEngineRulesRegexUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDataValidationEngineRulesRegexUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDeviceOnboardingOnboardingListResponse parses an HTTP response from a PluginsDeviceOnboardingOnboardingListWithResponse call -func ParsePluginsDeviceOnboardingOnboardingListResponse(rsp *http.Response) (*PluginsDeviceOnboardingOnboardingListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDeviceOnboardingOnboardingListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDeviceOnboardingOnboardingCreateResponse parses an HTTP response from a PluginsDeviceOnboardingOnboardingCreateWithResponse call -func ParsePluginsDeviceOnboardingOnboardingCreateResponse(rsp *http.Response) (*PluginsDeviceOnboardingOnboardingCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDeviceOnboardingOnboardingCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDeviceOnboardingOnboardingDestroyResponse parses an HTTP response from a PluginsDeviceOnboardingOnboardingDestroyWithResponse call -func ParsePluginsDeviceOnboardingOnboardingDestroyResponse(rsp *http.Response) (*PluginsDeviceOnboardingOnboardingDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDeviceOnboardingOnboardingDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsDeviceOnboardingOnboardingRetrieveResponse parses an HTTP response from a PluginsDeviceOnboardingOnboardingRetrieveWithResponse call -func ParsePluginsDeviceOnboardingOnboardingRetrieveResponse(rsp *http.Response) (*PluginsDeviceOnboardingOnboardingRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsDeviceOnboardingOnboardingRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupBulkDestroyResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupBulkDestroyWithResponse call -func ParsePluginsFirewallAddressObjectGroupBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupListResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupListWithResponse call -func ParsePluginsFirewallAddressObjectGroupListResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupBulkPartialUpdateWithResponse call -func ParsePluginsFirewallAddressObjectGroupBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupCreateResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupCreateWithResponse call -func ParsePluginsFirewallAddressObjectGroupCreateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupBulkUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupBulkUpdateWithResponse call -func ParsePluginsFirewallAddressObjectGroupBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupDestroyResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupDestroyWithResponse call -func ParsePluginsFirewallAddressObjectGroupDestroyResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupRetrieveResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupRetrieveWithResponse call -func ParsePluginsFirewallAddressObjectGroupRetrieveResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupPartialUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupPartialUpdateWithResponse call -func ParsePluginsFirewallAddressObjectGroupPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupUpdateWithResponse call -func ParsePluginsFirewallAddressObjectGroupUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupNotesListResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupNotesListWithResponse call -func ParsePluginsFirewallAddressObjectGroupNotesListResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectGroupNotesCreateResponse parses an HTTP response from a PluginsFirewallAddressObjectGroupNotesCreateWithResponse call -func ParsePluginsFirewallAddressObjectGroupNotesCreateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectGroupNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectGroupNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectBulkDestroyResponse parses an HTTP response from a PluginsFirewallAddressObjectBulkDestroyWithResponse call -func ParsePluginsFirewallAddressObjectBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallAddressObjectBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectListResponse parses an HTTP response from a PluginsFirewallAddressObjectListWithResponse call -func ParsePluginsFirewallAddressObjectListResponse(rsp *http.Response) (*PluginsFirewallAddressObjectListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectBulkPartialUpdateWithResponse call -func ParsePluginsFirewallAddressObjectBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectCreateResponse parses an HTTP response from a PluginsFirewallAddressObjectCreateWithResponse call -func ParsePluginsFirewallAddressObjectCreateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectBulkUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectBulkUpdateWithResponse call -func ParsePluginsFirewallAddressObjectBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectDestroyResponse parses an HTTP response from a PluginsFirewallAddressObjectDestroyWithResponse call -func ParsePluginsFirewallAddressObjectDestroyResponse(rsp *http.Response) (*PluginsFirewallAddressObjectDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectRetrieveResponse parses an HTTP response from a PluginsFirewallAddressObjectRetrieveWithResponse call -func ParsePluginsFirewallAddressObjectRetrieveResponse(rsp *http.Response) (*PluginsFirewallAddressObjectRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectPartialUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectPartialUpdateWithResponse call -func ParsePluginsFirewallAddressObjectPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectUpdateResponse parses an HTTP response from a PluginsFirewallAddressObjectUpdateWithResponse call -func ParsePluginsFirewallAddressObjectUpdateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectNotesListResponse parses an HTTP response from a PluginsFirewallAddressObjectNotesListWithResponse call -func ParsePluginsFirewallAddressObjectNotesListResponse(rsp *http.Response) (*PluginsFirewallAddressObjectNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallAddressObjectNotesCreateResponse parses an HTTP response from a PluginsFirewallAddressObjectNotesCreateWithResponse call -func ParsePluginsFirewallAddressObjectNotesCreateResponse(rsp *http.Response) (*PluginsFirewallAddressObjectNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallAddressObjectNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyBulkDestroyResponse parses an HTTP response from a PluginsFirewallCapircaPolicyBulkDestroyWithResponse call -func ParsePluginsFirewallCapircaPolicyBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyListResponse parses an HTTP response from a PluginsFirewallCapircaPolicyListWithResponse call -func ParsePluginsFirewallCapircaPolicyListResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallCapircaPolicyBulkPartialUpdateWithResponse call -func ParsePluginsFirewallCapircaPolicyBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyCreateResponse parses an HTTP response from a PluginsFirewallCapircaPolicyCreateWithResponse call -func ParsePluginsFirewallCapircaPolicyCreateResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyBulkUpdateResponse parses an HTTP response from a PluginsFirewallCapircaPolicyBulkUpdateWithResponse call -func ParsePluginsFirewallCapircaPolicyBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyDestroyResponse parses an HTTP response from a PluginsFirewallCapircaPolicyDestroyWithResponse call -func ParsePluginsFirewallCapircaPolicyDestroyResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyRetrieveResponse parses an HTTP response from a PluginsFirewallCapircaPolicyRetrieveWithResponse call -func ParsePluginsFirewallCapircaPolicyRetrieveResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyPartialUpdateResponse parses an HTTP response from a PluginsFirewallCapircaPolicyPartialUpdateWithResponse call -func ParsePluginsFirewallCapircaPolicyPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallCapircaPolicyUpdateResponse parses an HTTP response from a PluginsFirewallCapircaPolicyUpdateWithResponse call -func ParsePluginsFirewallCapircaPolicyUpdateResponse(rsp *http.Response) (*PluginsFirewallCapircaPolicyUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallCapircaPolicyUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnBulkDestroyResponse parses an HTTP response from a PluginsFirewallFqdnBulkDestroyWithResponse call -func ParsePluginsFirewallFqdnBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallFqdnBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnListResponse parses an HTTP response from a PluginsFirewallFqdnListWithResponse call -func ParsePluginsFirewallFqdnListResponse(rsp *http.Response) (*PluginsFirewallFqdnListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallFqdnBulkPartialUpdateWithResponse call -func ParsePluginsFirewallFqdnBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallFqdnBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnCreateResponse parses an HTTP response from a PluginsFirewallFqdnCreateWithResponse call -func ParsePluginsFirewallFqdnCreateResponse(rsp *http.Response) (*PluginsFirewallFqdnCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnBulkUpdateResponse parses an HTTP response from a PluginsFirewallFqdnBulkUpdateWithResponse call -func ParsePluginsFirewallFqdnBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallFqdnBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnDestroyResponse parses an HTTP response from a PluginsFirewallFqdnDestroyWithResponse call -func ParsePluginsFirewallFqdnDestroyResponse(rsp *http.Response) (*PluginsFirewallFqdnDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnRetrieveResponse parses an HTTP response from a PluginsFirewallFqdnRetrieveWithResponse call -func ParsePluginsFirewallFqdnRetrieveResponse(rsp *http.Response) (*PluginsFirewallFqdnRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnPartialUpdateResponse parses an HTTP response from a PluginsFirewallFqdnPartialUpdateWithResponse call -func ParsePluginsFirewallFqdnPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallFqdnPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnUpdateResponse parses an HTTP response from a PluginsFirewallFqdnUpdateWithResponse call -func ParsePluginsFirewallFqdnUpdateResponse(rsp *http.Response) (*PluginsFirewallFqdnUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnNotesListResponse parses an HTTP response from a PluginsFirewallFqdnNotesListWithResponse call -func ParsePluginsFirewallFqdnNotesListResponse(rsp *http.Response) (*PluginsFirewallFqdnNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallFqdnNotesCreateResponse parses an HTTP response from a PluginsFirewallFqdnNotesCreateWithResponse call -func ParsePluginsFirewallFqdnNotesCreateResponse(rsp *http.Response) (*PluginsFirewallFqdnNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallFqdnNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeBulkDestroyResponse parses an HTTP response from a PluginsFirewallIpRangeBulkDestroyWithResponse call -func ParsePluginsFirewallIpRangeBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallIpRangeBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeListResponse parses an HTTP response from a PluginsFirewallIpRangeListWithResponse call -func ParsePluginsFirewallIpRangeListResponse(rsp *http.Response) (*PluginsFirewallIpRangeListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallIpRangeBulkPartialUpdateWithResponse call -func ParsePluginsFirewallIpRangeBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallIpRangeBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeCreateResponse parses an HTTP response from a PluginsFirewallIpRangeCreateWithResponse call -func ParsePluginsFirewallIpRangeCreateResponse(rsp *http.Response) (*PluginsFirewallIpRangeCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeBulkUpdateResponse parses an HTTP response from a PluginsFirewallIpRangeBulkUpdateWithResponse call -func ParsePluginsFirewallIpRangeBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallIpRangeBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeDestroyResponse parses an HTTP response from a PluginsFirewallIpRangeDestroyWithResponse call -func ParsePluginsFirewallIpRangeDestroyResponse(rsp *http.Response) (*PluginsFirewallIpRangeDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeRetrieveResponse parses an HTTP response from a PluginsFirewallIpRangeRetrieveWithResponse call -func ParsePluginsFirewallIpRangeRetrieveResponse(rsp *http.Response) (*PluginsFirewallIpRangeRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangePartialUpdateResponse parses an HTTP response from a PluginsFirewallIpRangePartialUpdateWithResponse call -func ParsePluginsFirewallIpRangePartialUpdateResponse(rsp *http.Response) (*PluginsFirewallIpRangePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeUpdateResponse parses an HTTP response from a PluginsFirewallIpRangeUpdateWithResponse call -func ParsePluginsFirewallIpRangeUpdateResponse(rsp *http.Response) (*PluginsFirewallIpRangeUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeNotesListResponse parses an HTTP response from a PluginsFirewallIpRangeNotesListWithResponse call -func ParsePluginsFirewallIpRangeNotesListResponse(rsp *http.Response) (*PluginsFirewallIpRangeNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallIpRangeNotesCreateResponse parses an HTTP response from a PluginsFirewallIpRangeNotesCreateWithResponse call -func ParsePluginsFirewallIpRangeNotesCreateResponse(rsp *http.Response) (*PluginsFirewallIpRangeNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallIpRangeNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleBulkDestroyResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleBulkDestroyWithResponse call -func ParsePluginsFirewallNatPolicyRuleBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleListResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleListWithResponse call -func ParsePluginsFirewallNatPolicyRuleListResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleBulkPartialUpdateWithResponse call -func ParsePluginsFirewallNatPolicyRuleBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleCreateResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleCreateWithResponse call -func ParsePluginsFirewallNatPolicyRuleCreateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleBulkUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleBulkUpdateWithResponse call -func ParsePluginsFirewallNatPolicyRuleBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleDestroyResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleDestroyWithResponse call -func ParsePluginsFirewallNatPolicyRuleDestroyResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleRetrieveResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleRetrieveWithResponse call -func ParsePluginsFirewallNatPolicyRuleRetrieveResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRulePartialUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyRulePartialUpdateWithResponse call -func ParsePluginsFirewallNatPolicyRulePartialUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRulePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRulePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleUpdateWithResponse call -func ParsePluginsFirewallNatPolicyRuleUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleNotesListResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleNotesListWithResponse call -func ParsePluginsFirewallNatPolicyRuleNotesListResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRuleNotesCreateResponse parses an HTTP response from a PluginsFirewallNatPolicyRuleNotesCreateWithResponse call -func ParsePluginsFirewallNatPolicyRuleNotesCreateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRuleNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRuleNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyBulkDestroyResponse parses an HTTP response from a PluginsFirewallNatPolicyBulkDestroyWithResponse call -func ParsePluginsFirewallNatPolicyBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallNatPolicyBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyListResponse parses an HTTP response from a PluginsFirewallNatPolicyListWithResponse call -func ParsePluginsFirewallNatPolicyListResponse(rsp *http.Response) (*PluginsFirewallNatPolicyListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyBulkPartialUpdateWithResponse call -func ParsePluginsFirewallNatPolicyBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyCreateResponse parses an HTTP response from a PluginsFirewallNatPolicyCreateWithResponse call -func ParsePluginsFirewallNatPolicyCreateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyBulkUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyBulkUpdateWithResponse call -func ParsePluginsFirewallNatPolicyBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyDestroyResponse parses an HTTP response from a PluginsFirewallNatPolicyDestroyWithResponse call -func ParsePluginsFirewallNatPolicyDestroyResponse(rsp *http.Response) (*PluginsFirewallNatPolicyDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyRetrieveResponse parses an HTTP response from a PluginsFirewallNatPolicyRetrieveWithResponse call -func ParsePluginsFirewallNatPolicyRetrieveResponse(rsp *http.Response) (*PluginsFirewallNatPolicyRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyPartialUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyPartialUpdateWithResponse call -func ParsePluginsFirewallNatPolicyPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyUpdateResponse parses an HTTP response from a PluginsFirewallNatPolicyUpdateWithResponse call -func ParsePluginsFirewallNatPolicyUpdateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyNotesListResponse parses an HTTP response from a PluginsFirewallNatPolicyNotesListWithResponse call -func ParsePluginsFirewallNatPolicyNotesListResponse(rsp *http.Response) (*PluginsFirewallNatPolicyNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallNatPolicyNotesCreateResponse parses an HTTP response from a PluginsFirewallNatPolicyNotesCreateWithResponse call -func ParsePluginsFirewallNatPolicyNotesCreateResponse(rsp *http.Response) (*PluginsFirewallNatPolicyNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallNatPolicyNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleBulkDestroyResponse parses an HTTP response from a PluginsFirewallPolicyRuleBulkDestroyWithResponse call -func ParsePluginsFirewallPolicyRuleBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleListResponse parses an HTTP response from a PluginsFirewallPolicyRuleListWithResponse call -func ParsePluginsFirewallPolicyRuleListResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallPolicyRuleBulkPartialUpdateWithResponse call -func ParsePluginsFirewallPolicyRuleBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleCreateResponse parses an HTTP response from a PluginsFirewallPolicyRuleCreateWithResponse call -func ParsePluginsFirewallPolicyRuleCreateResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleBulkUpdateResponse parses an HTTP response from a PluginsFirewallPolicyRuleBulkUpdateWithResponse call -func ParsePluginsFirewallPolicyRuleBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleDestroyResponse parses an HTTP response from a PluginsFirewallPolicyRuleDestroyWithResponse call -func ParsePluginsFirewallPolicyRuleDestroyResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleRetrieveResponse parses an HTTP response from a PluginsFirewallPolicyRuleRetrieveWithResponse call -func ParsePluginsFirewallPolicyRuleRetrieveResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRulePartialUpdateResponse parses an HTTP response from a PluginsFirewallPolicyRulePartialUpdateWithResponse call -func ParsePluginsFirewallPolicyRulePartialUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyRulePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRulePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleUpdateResponse parses an HTTP response from a PluginsFirewallPolicyRuleUpdateWithResponse call -func ParsePluginsFirewallPolicyRuleUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleNotesListResponse parses an HTTP response from a PluginsFirewallPolicyRuleNotesListWithResponse call -func ParsePluginsFirewallPolicyRuleNotesListResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRuleNotesCreateResponse parses an HTTP response from a PluginsFirewallPolicyRuleNotesCreateWithResponse call -func ParsePluginsFirewallPolicyRuleNotesCreateResponse(rsp *http.Response) (*PluginsFirewallPolicyRuleNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRuleNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyBulkDestroyResponse parses an HTTP response from a PluginsFirewallPolicyBulkDestroyWithResponse call -func ParsePluginsFirewallPolicyBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallPolicyBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyListResponse parses an HTTP response from a PluginsFirewallPolicyListWithResponse call -func ParsePluginsFirewallPolicyListResponse(rsp *http.Response) (*PluginsFirewallPolicyListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallPolicyBulkPartialUpdateWithResponse call -func ParsePluginsFirewallPolicyBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyCreateResponse parses an HTTP response from a PluginsFirewallPolicyCreateWithResponse call -func ParsePluginsFirewallPolicyCreateResponse(rsp *http.Response) (*PluginsFirewallPolicyCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyBulkUpdateResponse parses an HTTP response from a PluginsFirewallPolicyBulkUpdateWithResponse call -func ParsePluginsFirewallPolicyBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyDestroyResponse parses an HTTP response from a PluginsFirewallPolicyDestroyWithResponse call -func ParsePluginsFirewallPolicyDestroyResponse(rsp *http.Response) (*PluginsFirewallPolicyDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyRetrieveResponse parses an HTTP response from a PluginsFirewallPolicyRetrieveWithResponse call -func ParsePluginsFirewallPolicyRetrieveResponse(rsp *http.Response) (*PluginsFirewallPolicyRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyPartialUpdateResponse parses an HTTP response from a PluginsFirewallPolicyPartialUpdateWithResponse call -func ParsePluginsFirewallPolicyPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyUpdateResponse parses an HTTP response from a PluginsFirewallPolicyUpdateWithResponse call -func ParsePluginsFirewallPolicyUpdateResponse(rsp *http.Response) (*PluginsFirewallPolicyUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyNotesListResponse parses an HTTP response from a PluginsFirewallPolicyNotesListWithResponse call -func ParsePluginsFirewallPolicyNotesListResponse(rsp *http.Response) (*PluginsFirewallPolicyNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallPolicyNotesCreateResponse parses an HTTP response from a PluginsFirewallPolicyNotesCreateWithResponse call -func ParsePluginsFirewallPolicyNotesCreateResponse(rsp *http.Response) (*PluginsFirewallPolicyNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallPolicyNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupBulkDestroyResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupBulkDestroyWithResponse call -func ParsePluginsFirewallServiceObjectGroupBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupListResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupListWithResponse call -func ParsePluginsFirewallServiceObjectGroupListResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupBulkPartialUpdateWithResponse call -func ParsePluginsFirewallServiceObjectGroupBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupCreateResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupCreateWithResponse call -func ParsePluginsFirewallServiceObjectGroupCreateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupBulkUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupBulkUpdateWithResponse call -func ParsePluginsFirewallServiceObjectGroupBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupDestroyResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupDestroyWithResponse call -func ParsePluginsFirewallServiceObjectGroupDestroyResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupRetrieveResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupRetrieveWithResponse call -func ParsePluginsFirewallServiceObjectGroupRetrieveResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupPartialUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupPartialUpdateWithResponse call -func ParsePluginsFirewallServiceObjectGroupPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupUpdateWithResponse call -func ParsePluginsFirewallServiceObjectGroupUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupNotesListResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupNotesListWithResponse call -func ParsePluginsFirewallServiceObjectGroupNotesListResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectGroupNotesCreateResponse parses an HTTP response from a PluginsFirewallServiceObjectGroupNotesCreateWithResponse call -func ParsePluginsFirewallServiceObjectGroupNotesCreateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectGroupNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectGroupNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectBulkDestroyResponse parses an HTTP response from a PluginsFirewallServiceObjectBulkDestroyWithResponse call -func ParsePluginsFirewallServiceObjectBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallServiceObjectBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectListResponse parses an HTTP response from a PluginsFirewallServiceObjectListWithResponse call -func ParsePluginsFirewallServiceObjectListResponse(rsp *http.Response) (*PluginsFirewallServiceObjectListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectBulkPartialUpdateWithResponse call -func ParsePluginsFirewallServiceObjectBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectCreateResponse parses an HTTP response from a PluginsFirewallServiceObjectCreateWithResponse call -func ParsePluginsFirewallServiceObjectCreateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectBulkUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectBulkUpdateWithResponse call -func ParsePluginsFirewallServiceObjectBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectDestroyResponse parses an HTTP response from a PluginsFirewallServiceObjectDestroyWithResponse call -func ParsePluginsFirewallServiceObjectDestroyResponse(rsp *http.Response) (*PluginsFirewallServiceObjectDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectRetrieveResponse parses an HTTP response from a PluginsFirewallServiceObjectRetrieveWithResponse call -func ParsePluginsFirewallServiceObjectRetrieveResponse(rsp *http.Response) (*PluginsFirewallServiceObjectRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectPartialUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectPartialUpdateWithResponse call -func ParsePluginsFirewallServiceObjectPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectUpdateResponse parses an HTTP response from a PluginsFirewallServiceObjectUpdateWithResponse call -func ParsePluginsFirewallServiceObjectUpdateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectNotesListResponse parses an HTTP response from a PluginsFirewallServiceObjectNotesListWithResponse call -func ParsePluginsFirewallServiceObjectNotesListResponse(rsp *http.Response) (*PluginsFirewallServiceObjectNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallServiceObjectNotesCreateResponse parses an HTTP response from a PluginsFirewallServiceObjectNotesCreateWithResponse call -func ParsePluginsFirewallServiceObjectNotesCreateResponse(rsp *http.Response) (*PluginsFirewallServiceObjectNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallServiceObjectNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupBulkDestroyResponse parses an HTTP response from a PluginsFirewallUserObjectGroupBulkDestroyWithResponse call -func ParsePluginsFirewallUserObjectGroupBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupListResponse parses an HTTP response from a PluginsFirewallUserObjectGroupListWithResponse call -func ParsePluginsFirewallUserObjectGroupListResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectGroupBulkPartialUpdateWithResponse call -func ParsePluginsFirewallUserObjectGroupBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupCreateResponse parses an HTTP response from a PluginsFirewallUserObjectGroupCreateWithResponse call -func ParsePluginsFirewallUserObjectGroupCreateResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupBulkUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectGroupBulkUpdateWithResponse call -func ParsePluginsFirewallUserObjectGroupBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupDestroyResponse parses an HTTP response from a PluginsFirewallUserObjectGroupDestroyWithResponse call -func ParsePluginsFirewallUserObjectGroupDestroyResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupRetrieveResponse parses an HTTP response from a PluginsFirewallUserObjectGroupRetrieveWithResponse call -func ParsePluginsFirewallUserObjectGroupRetrieveResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupPartialUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectGroupPartialUpdateWithResponse call -func ParsePluginsFirewallUserObjectGroupPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectGroupUpdateWithResponse call -func ParsePluginsFirewallUserObjectGroupUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupNotesListResponse parses an HTTP response from a PluginsFirewallUserObjectGroupNotesListWithResponse call -func ParsePluginsFirewallUserObjectGroupNotesListResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectGroupNotesCreateResponse parses an HTTP response from a PluginsFirewallUserObjectGroupNotesCreateWithResponse call -func ParsePluginsFirewallUserObjectGroupNotesCreateResponse(rsp *http.Response) (*PluginsFirewallUserObjectGroupNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectGroupNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectBulkDestroyResponse parses an HTTP response from a PluginsFirewallUserObjectBulkDestroyWithResponse call -func ParsePluginsFirewallUserObjectBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallUserObjectBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectListResponse parses an HTTP response from a PluginsFirewallUserObjectListWithResponse call -func ParsePluginsFirewallUserObjectListResponse(rsp *http.Response) (*PluginsFirewallUserObjectListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectBulkPartialUpdateWithResponse call -func ParsePluginsFirewallUserObjectBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectCreateResponse parses an HTTP response from a PluginsFirewallUserObjectCreateWithResponse call -func ParsePluginsFirewallUserObjectCreateResponse(rsp *http.Response) (*PluginsFirewallUserObjectCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectBulkUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectBulkUpdateWithResponse call -func ParsePluginsFirewallUserObjectBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectDestroyResponse parses an HTTP response from a PluginsFirewallUserObjectDestroyWithResponse call -func ParsePluginsFirewallUserObjectDestroyResponse(rsp *http.Response) (*PluginsFirewallUserObjectDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectRetrieveResponse parses an HTTP response from a PluginsFirewallUserObjectRetrieveWithResponse call -func ParsePluginsFirewallUserObjectRetrieveResponse(rsp *http.Response) (*PluginsFirewallUserObjectRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectPartialUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectPartialUpdateWithResponse call -func ParsePluginsFirewallUserObjectPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectUpdateResponse parses an HTTP response from a PluginsFirewallUserObjectUpdateWithResponse call -func ParsePluginsFirewallUserObjectUpdateResponse(rsp *http.Response) (*PluginsFirewallUserObjectUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectNotesListResponse parses an HTTP response from a PluginsFirewallUserObjectNotesListWithResponse call -func ParsePluginsFirewallUserObjectNotesListResponse(rsp *http.Response) (*PluginsFirewallUserObjectNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallUserObjectNotesCreateResponse parses an HTTP response from a PluginsFirewallUserObjectNotesCreateWithResponse call -func ParsePluginsFirewallUserObjectNotesCreateResponse(rsp *http.Response) (*PluginsFirewallUserObjectNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallUserObjectNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneBulkDestroyResponse parses an HTTP response from a PluginsFirewallZoneBulkDestroyWithResponse call -func ParsePluginsFirewallZoneBulkDestroyResponse(rsp *http.Response) (*PluginsFirewallZoneBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneListResponse parses an HTTP response from a PluginsFirewallZoneListWithResponse call -func ParsePluginsFirewallZoneListResponse(rsp *http.Response) (*PluginsFirewallZoneListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneBulkPartialUpdateResponse parses an HTTP response from a PluginsFirewallZoneBulkPartialUpdateWithResponse call -func ParsePluginsFirewallZoneBulkPartialUpdateResponse(rsp *http.Response) (*PluginsFirewallZoneBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneCreateResponse parses an HTTP response from a PluginsFirewallZoneCreateWithResponse call -func ParsePluginsFirewallZoneCreateResponse(rsp *http.Response) (*PluginsFirewallZoneCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneBulkUpdateResponse parses an HTTP response from a PluginsFirewallZoneBulkUpdateWithResponse call -func ParsePluginsFirewallZoneBulkUpdateResponse(rsp *http.Response) (*PluginsFirewallZoneBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneDestroyResponse parses an HTTP response from a PluginsFirewallZoneDestroyWithResponse call -func ParsePluginsFirewallZoneDestroyResponse(rsp *http.Response) (*PluginsFirewallZoneDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneRetrieveResponse parses an HTTP response from a PluginsFirewallZoneRetrieveWithResponse call -func ParsePluginsFirewallZoneRetrieveResponse(rsp *http.Response) (*PluginsFirewallZoneRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZonePartialUpdateResponse parses an HTTP response from a PluginsFirewallZonePartialUpdateWithResponse call -func ParsePluginsFirewallZonePartialUpdateResponse(rsp *http.Response) (*PluginsFirewallZonePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZonePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneUpdateResponse parses an HTTP response from a PluginsFirewallZoneUpdateWithResponse call -func ParsePluginsFirewallZoneUpdateResponse(rsp *http.Response) (*PluginsFirewallZoneUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneNotesListResponse parses an HTTP response from a PluginsFirewallZoneNotesListWithResponse call -func ParsePluginsFirewallZoneNotesListResponse(rsp *http.Response) (*PluginsFirewallZoneNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsFirewallZoneNotesCreateResponse parses an HTTP response from a PluginsFirewallZoneNotesCreateWithResponse call -func ParsePluginsFirewallZoneNotesCreateResponse(rsp *http.Response) (*PluginsFirewallZoneNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsFirewallZoneNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureBulkDestroyResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureBulkDestroyWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureBulkDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureListResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureListWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureListResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureBulkPartialUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureCreateResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureCreateWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureCreateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureBulkUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureBulkUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureBulkUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureDestroyResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureDestroyWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureRetrieveResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureRetrieveWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeaturePartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeaturePartialUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceFeaturePartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeaturePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeaturePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceFeatureUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceFeatureUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceFeatureUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceFeatureUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceFeatureUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleBulkDestroyResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleBulkDestroyWithResponse call -func ParsePluginsGoldenConfigComplianceRuleBulkDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleListResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleListWithResponse call -func ParsePluginsGoldenConfigComplianceRuleListResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleBulkPartialUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleCreateResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleCreateWithResponse call -func ParsePluginsGoldenConfigComplianceRuleCreateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleBulkUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleBulkUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceRuleBulkUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleDestroyResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleDestroyWithResponse call -func ParsePluginsGoldenConfigComplianceRuleDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleRetrieveResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleRetrieveWithResponse call -func ParsePluginsGoldenConfigComplianceRuleRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRulePartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceRulePartialUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceRulePartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRulePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRulePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigComplianceRuleUpdateResponse parses an HTTP response from a PluginsGoldenConfigComplianceRuleUpdateWithResponse call -func ParsePluginsGoldenConfigComplianceRuleUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigComplianceRuleUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigComplianceRuleUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceBulkDestroyResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceBulkDestroyWithResponse call -func ParsePluginsGoldenConfigConfigComplianceBulkDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceListResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceListWithResponse call -func ParsePluginsGoldenConfigConfigComplianceListResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceBulkPartialUpdateWithResponse call -func ParsePluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceCreateResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceCreateWithResponse call -func ParsePluginsGoldenConfigConfigComplianceCreateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceBulkUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceBulkUpdateWithResponse call -func ParsePluginsGoldenConfigConfigComplianceBulkUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceDestroyResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceDestroyWithResponse call -func ParsePluginsGoldenConfigConfigComplianceDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceRetrieveResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceRetrieveWithResponse call -func ParsePluginsGoldenConfigConfigComplianceRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigCompliancePartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigCompliancePartialUpdateWithResponse call -func ParsePluginsGoldenConfigConfigCompliancePartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigCompliancePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigCompliancePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigComplianceUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigComplianceUpdateWithResponse call -func ParsePluginsGoldenConfigConfigComplianceUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigComplianceUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigComplianceUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigPostprocessingRetrieveResponse parses an HTTP response from a PluginsGoldenConfigConfigPostprocessingRetrieveWithResponse call -func ParsePluginsGoldenConfigConfigPostprocessingRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigConfigPostprocessingRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigPostprocessingRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveBulkDestroyResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveBulkDestroyWithResponse call -func ParsePluginsGoldenConfigConfigRemoveBulkDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveListResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveListWithResponse call -func ParsePluginsGoldenConfigConfigRemoveListResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveBulkPartialUpdateWithResponse call -func ParsePluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveCreateResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveCreateWithResponse call -func ParsePluginsGoldenConfigConfigRemoveCreateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveBulkUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveBulkUpdateWithResponse call -func ParsePluginsGoldenConfigConfigRemoveBulkUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveDestroyResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveDestroyWithResponse call -func ParsePluginsGoldenConfigConfigRemoveDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveRetrieveResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveRetrieveWithResponse call -func ParsePluginsGoldenConfigConfigRemoveRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemovePartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigRemovePartialUpdateWithResponse call -func ParsePluginsGoldenConfigConfigRemovePartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemovePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemovePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigRemoveUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigRemoveUpdateWithResponse call -func ParsePluginsGoldenConfigConfigRemoveUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigRemoveUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigRemoveUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceBulkDestroyResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceBulkDestroyWithResponse call -func ParsePluginsGoldenConfigConfigReplaceBulkDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceListResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceListWithResponse call -func ParsePluginsGoldenConfigConfigReplaceListResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceBulkPartialUpdateWithResponse call -func ParsePluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceCreateResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceCreateWithResponse call -func ParsePluginsGoldenConfigConfigReplaceCreateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceBulkUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceBulkUpdateWithResponse call -func ParsePluginsGoldenConfigConfigReplaceBulkUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceDestroyResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceDestroyWithResponse call -func ParsePluginsGoldenConfigConfigReplaceDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceRetrieveResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceRetrieveWithResponse call -func ParsePluginsGoldenConfigConfigReplaceRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplacePartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigReplacePartialUpdateWithResponse call -func ParsePluginsGoldenConfigConfigReplacePartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplacePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplacePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigConfigReplaceUpdateResponse parses an HTTP response from a PluginsGoldenConfigConfigReplaceUpdateWithResponse call -func ParsePluginsGoldenConfigConfigReplaceUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigConfigReplaceUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigConfigReplaceUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsBulkDestroyWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsListResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsListWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsListResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsCreateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsCreateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsCreateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsBulkUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsDestroyResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsDestroyWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsRetrieveResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsRetrieveWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsPartialUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigSettingsUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigSettingsUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigSettingsUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigSettingsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigSettingsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigBulkDestroyResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigBulkDestroyWithResponse call -func ParsePluginsGoldenConfigGoldenConfigBulkDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigListResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigListWithResponse call -func ParsePluginsGoldenConfigGoldenConfigListResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigBulkPartialUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigCreateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigCreateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigCreateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigBulkUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigBulkUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigBulkUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigDestroyResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigDestroyWithResponse call -func ParsePluginsGoldenConfigGoldenConfigDestroyResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigRetrieveResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigRetrieveWithResponse call -func ParsePluginsGoldenConfigGoldenConfigRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigPartialUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigPartialUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigPartialUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigGoldenConfigUpdateResponse parses an HTTP response from a PluginsGoldenConfigGoldenConfigUpdateWithResponse call -func ParsePluginsGoldenConfigGoldenConfigUpdateResponse(rsp *http.Response) (*PluginsGoldenConfigGoldenConfigUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigGoldenConfigUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsGoldenConfigSotaggRetrieveResponse parses an HTTP response from a PluginsGoldenConfigSotaggRetrieveWithResponse call -func ParsePluginsGoldenConfigSotaggRetrieveResponse(rsp *http.Response) (*PluginsGoldenConfigSotaggRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsGoldenConfigSotaggRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContactUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContactUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContactUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContactUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtContractUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtContractUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtContractUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtContractUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtCveUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtCveUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtCveUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtCveUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtHardwareUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtHardwareUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtProviderUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtProviderUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityListWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse parses an HTTP response from a PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateWithResponse call -func ParsePluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse(rsp *http.Response) (*PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseStatusRetrieveResponse parses an HTTP response from a StatusRetrieveWithResponse call -func ParseStatusRetrieveResponse(rsp *http.Response) (*StatusRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &StatusRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseSwaggerJsonRetrieveResponse parses an HTTP response from a SwaggerJsonRetrieveWithResponse call -func ParseSwaggerJsonRetrieveResponse(rsp *http.Response) (*SwaggerJsonRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &SwaggerJsonRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseSwaggerYamlRetrieveResponse parses an HTTP response from a SwaggerYamlRetrieveWithResponse call -func ParseSwaggerYamlRetrieveResponse(rsp *http.Response) (*SwaggerYamlRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &SwaggerYamlRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseSwaggerRetrieveResponse parses an HTTP response from a SwaggerRetrieveWithResponse call -func ParseSwaggerRetrieveResponse(rsp *http.Response) (*SwaggerRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &SwaggerRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsBulkDestroyResponse parses an HTTP response from a TenancyTenantGroupsBulkDestroyWithResponse call -func ParseTenancyTenantGroupsBulkDestroyResponse(rsp *http.Response) (*TenancyTenantGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsListResponse parses an HTTP response from a TenancyTenantGroupsListWithResponse call -func ParseTenancyTenantGroupsListResponse(rsp *http.Response) (*TenancyTenantGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsBulkPartialUpdateResponse parses an HTTP response from a TenancyTenantGroupsBulkPartialUpdateWithResponse call -func ParseTenancyTenantGroupsBulkPartialUpdateResponse(rsp *http.Response) (*TenancyTenantGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsCreateResponse parses an HTTP response from a TenancyTenantGroupsCreateWithResponse call -func ParseTenancyTenantGroupsCreateResponse(rsp *http.Response) (*TenancyTenantGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsBulkUpdateResponse parses an HTTP response from a TenancyTenantGroupsBulkUpdateWithResponse call -func ParseTenancyTenantGroupsBulkUpdateResponse(rsp *http.Response) (*TenancyTenantGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsDestroyResponse parses an HTTP response from a TenancyTenantGroupsDestroyWithResponse call -func ParseTenancyTenantGroupsDestroyResponse(rsp *http.Response) (*TenancyTenantGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsRetrieveResponse parses an HTTP response from a TenancyTenantGroupsRetrieveWithResponse call -func ParseTenancyTenantGroupsRetrieveResponse(rsp *http.Response) (*TenancyTenantGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsPartialUpdateResponse parses an HTTP response from a TenancyTenantGroupsPartialUpdateWithResponse call -func ParseTenancyTenantGroupsPartialUpdateResponse(rsp *http.Response) (*TenancyTenantGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsUpdateResponse parses an HTTP response from a TenancyTenantGroupsUpdateWithResponse call -func ParseTenancyTenantGroupsUpdateResponse(rsp *http.Response) (*TenancyTenantGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsNotesListResponse parses an HTTP response from a TenancyTenantGroupsNotesListWithResponse call -func ParseTenancyTenantGroupsNotesListResponse(rsp *http.Response) (*TenancyTenantGroupsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantGroupsNotesCreateResponse parses an HTTP response from a TenancyTenantGroupsNotesCreateWithResponse call -func ParseTenancyTenantGroupsNotesCreateResponse(rsp *http.Response) (*TenancyTenantGroupsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantGroupsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsBulkDestroyResponse parses an HTTP response from a TenancyTenantsBulkDestroyWithResponse call -func ParseTenancyTenantsBulkDestroyResponse(rsp *http.Response) (*TenancyTenantsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsListResponse parses an HTTP response from a TenancyTenantsListWithResponse call -func ParseTenancyTenantsListResponse(rsp *http.Response) (*TenancyTenantsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsBulkPartialUpdateResponse parses an HTTP response from a TenancyTenantsBulkPartialUpdateWithResponse call -func ParseTenancyTenantsBulkPartialUpdateResponse(rsp *http.Response) (*TenancyTenantsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsCreateResponse parses an HTTP response from a TenancyTenantsCreateWithResponse call -func ParseTenancyTenantsCreateResponse(rsp *http.Response) (*TenancyTenantsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsBulkUpdateResponse parses an HTTP response from a TenancyTenantsBulkUpdateWithResponse call -func ParseTenancyTenantsBulkUpdateResponse(rsp *http.Response) (*TenancyTenantsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsDestroyResponse parses an HTTP response from a TenancyTenantsDestroyWithResponse call -func ParseTenancyTenantsDestroyResponse(rsp *http.Response) (*TenancyTenantsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsRetrieveResponse parses an HTTP response from a TenancyTenantsRetrieveWithResponse call -func ParseTenancyTenantsRetrieveResponse(rsp *http.Response) (*TenancyTenantsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsPartialUpdateResponse parses an HTTP response from a TenancyTenantsPartialUpdateWithResponse call -func ParseTenancyTenantsPartialUpdateResponse(rsp *http.Response) (*TenancyTenantsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsUpdateResponse parses an HTTP response from a TenancyTenantsUpdateWithResponse call -func ParseTenancyTenantsUpdateResponse(rsp *http.Response) (*TenancyTenantsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsNotesListResponse parses an HTTP response from a TenancyTenantsNotesListWithResponse call -func ParseTenancyTenantsNotesListResponse(rsp *http.Response) (*TenancyTenantsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseTenancyTenantsNotesCreateResponse parses an HTTP response from a TenancyTenantsNotesCreateWithResponse call -func ParseTenancyTenantsNotesCreateResponse(rsp *http.Response) (*TenancyTenantsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TenancyTenantsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersConfigRetrieveResponse parses an HTTP response from a UsersConfigRetrieveWithResponse call -func ParseUsersConfigRetrieveResponse(rsp *http.Response) (*UsersConfigRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersConfigRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsBulkDestroyResponse parses an HTTP response from a UsersGroupsBulkDestroyWithResponse call -func ParseUsersGroupsBulkDestroyResponse(rsp *http.Response) (*UsersGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsListResponse parses an HTTP response from a UsersGroupsListWithResponse call -func ParseUsersGroupsListResponse(rsp *http.Response) (*UsersGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsBulkPartialUpdateResponse parses an HTTP response from a UsersGroupsBulkPartialUpdateWithResponse call -func ParseUsersGroupsBulkPartialUpdateResponse(rsp *http.Response) (*UsersGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsCreateResponse parses an HTTP response from a UsersGroupsCreateWithResponse call -func ParseUsersGroupsCreateResponse(rsp *http.Response) (*UsersGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsBulkUpdateResponse parses an HTTP response from a UsersGroupsBulkUpdateWithResponse call -func ParseUsersGroupsBulkUpdateResponse(rsp *http.Response) (*UsersGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsDestroyResponse parses an HTTP response from a UsersGroupsDestroyWithResponse call -func ParseUsersGroupsDestroyResponse(rsp *http.Response) (*UsersGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsRetrieveResponse parses an HTTP response from a UsersGroupsRetrieveWithResponse call -func ParseUsersGroupsRetrieveResponse(rsp *http.Response) (*UsersGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsPartialUpdateResponse parses an HTTP response from a UsersGroupsPartialUpdateWithResponse call -func ParseUsersGroupsPartialUpdateResponse(rsp *http.Response) (*UsersGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersGroupsUpdateResponse parses an HTTP response from a UsersGroupsUpdateWithResponse call -func ParseUsersGroupsUpdateResponse(rsp *http.Response) (*UsersGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsBulkDestroyResponse parses an HTTP response from a UsersPermissionsBulkDestroyWithResponse call -func ParseUsersPermissionsBulkDestroyResponse(rsp *http.Response) (*UsersPermissionsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsListResponse parses an HTTP response from a UsersPermissionsListWithResponse call -func ParseUsersPermissionsListResponse(rsp *http.Response) (*UsersPermissionsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsBulkPartialUpdateResponse parses an HTTP response from a UsersPermissionsBulkPartialUpdateWithResponse call -func ParseUsersPermissionsBulkPartialUpdateResponse(rsp *http.Response) (*UsersPermissionsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsCreateResponse parses an HTTP response from a UsersPermissionsCreateWithResponse call -func ParseUsersPermissionsCreateResponse(rsp *http.Response) (*UsersPermissionsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsBulkUpdateResponse parses an HTTP response from a UsersPermissionsBulkUpdateWithResponse call -func ParseUsersPermissionsBulkUpdateResponse(rsp *http.Response) (*UsersPermissionsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsDestroyResponse parses an HTTP response from a UsersPermissionsDestroyWithResponse call -func ParseUsersPermissionsDestroyResponse(rsp *http.Response) (*UsersPermissionsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsRetrieveResponse parses an HTTP response from a UsersPermissionsRetrieveWithResponse call -func ParseUsersPermissionsRetrieveResponse(rsp *http.Response) (*UsersPermissionsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsPartialUpdateResponse parses an HTTP response from a UsersPermissionsPartialUpdateWithResponse call -func ParseUsersPermissionsPartialUpdateResponse(rsp *http.Response) (*UsersPermissionsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersPermissionsUpdateResponse parses an HTTP response from a UsersPermissionsUpdateWithResponse call -func ParseUsersPermissionsUpdateResponse(rsp *http.Response) (*UsersPermissionsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersPermissionsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensBulkDestroyResponse parses an HTTP response from a UsersTokensBulkDestroyWithResponse call -func ParseUsersTokensBulkDestroyResponse(rsp *http.Response) (*UsersTokensBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensListResponse parses an HTTP response from a UsersTokensListWithResponse call -func ParseUsersTokensListResponse(rsp *http.Response) (*UsersTokensListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensBulkPartialUpdateResponse parses an HTTP response from a UsersTokensBulkPartialUpdateWithResponse call -func ParseUsersTokensBulkPartialUpdateResponse(rsp *http.Response) (*UsersTokensBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensCreateResponse parses an HTTP response from a UsersTokensCreateWithResponse call -func ParseUsersTokensCreateResponse(rsp *http.Response) (*UsersTokensCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensBulkUpdateResponse parses an HTTP response from a UsersTokensBulkUpdateWithResponse call -func ParseUsersTokensBulkUpdateResponse(rsp *http.Response) (*UsersTokensBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensDestroyResponse parses an HTTP response from a UsersTokensDestroyWithResponse call -func ParseUsersTokensDestroyResponse(rsp *http.Response) (*UsersTokensDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensRetrieveResponse parses an HTTP response from a UsersTokensRetrieveWithResponse call -func ParseUsersTokensRetrieveResponse(rsp *http.Response) (*UsersTokensRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensPartialUpdateResponse parses an HTTP response from a UsersTokensPartialUpdateWithResponse call -func ParseUsersTokensPartialUpdateResponse(rsp *http.Response) (*UsersTokensPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersTokensUpdateResponse parses an HTTP response from a UsersTokensUpdateWithResponse call -func ParseUsersTokensUpdateResponse(rsp *http.Response) (*UsersTokensUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersTokensUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersBulkDestroyResponse parses an HTTP response from a UsersUsersBulkDestroyWithResponse call -func ParseUsersUsersBulkDestroyResponse(rsp *http.Response) (*UsersUsersBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersListResponse parses an HTTP response from a UsersUsersListWithResponse call -func ParseUsersUsersListResponse(rsp *http.Response) (*UsersUsersListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersBulkPartialUpdateResponse parses an HTTP response from a UsersUsersBulkPartialUpdateWithResponse call -func ParseUsersUsersBulkPartialUpdateResponse(rsp *http.Response) (*UsersUsersBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersCreateResponse parses an HTTP response from a UsersUsersCreateWithResponse call -func ParseUsersUsersCreateResponse(rsp *http.Response) (*UsersUsersCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersBulkUpdateResponse parses an HTTP response from a UsersUsersBulkUpdateWithResponse call -func ParseUsersUsersBulkUpdateResponse(rsp *http.Response) (*UsersUsersBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersDestroyResponse parses an HTTP response from a UsersUsersDestroyWithResponse call -func ParseUsersUsersDestroyResponse(rsp *http.Response) (*UsersUsersDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersRetrieveResponse parses an HTTP response from a UsersUsersRetrieveWithResponse call -func ParseUsersUsersRetrieveResponse(rsp *http.Response) (*UsersUsersRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersPartialUpdateResponse parses an HTTP response from a UsersUsersPartialUpdateWithResponse call -func ParseUsersUsersPartialUpdateResponse(rsp *http.Response) (*UsersUsersPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseUsersUsersUpdateResponse parses an HTTP response from a UsersUsersUpdateWithResponse call -func ParseUsersUsersUpdateResponse(rsp *http.Response) (*UsersUsersUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UsersUsersUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsBulkDestroyResponse parses an HTTP response from a VirtualizationClusterGroupsBulkDestroyWithResponse call -func ParseVirtualizationClusterGroupsBulkDestroyResponse(rsp *http.Response) (*VirtualizationClusterGroupsBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsListResponse parses an HTTP response from a VirtualizationClusterGroupsListWithResponse call -func ParseVirtualizationClusterGroupsListResponse(rsp *http.Response) (*VirtualizationClusterGroupsListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsBulkPartialUpdateResponse parses an HTTP response from a VirtualizationClusterGroupsBulkPartialUpdateWithResponse call -func ParseVirtualizationClusterGroupsBulkPartialUpdateResponse(rsp *http.Response) (*VirtualizationClusterGroupsBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsCreateResponse parses an HTTP response from a VirtualizationClusterGroupsCreateWithResponse call -func ParseVirtualizationClusterGroupsCreateResponse(rsp *http.Response) (*VirtualizationClusterGroupsCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsBulkUpdateResponse parses an HTTP response from a VirtualizationClusterGroupsBulkUpdateWithResponse call -func ParseVirtualizationClusterGroupsBulkUpdateResponse(rsp *http.Response) (*VirtualizationClusterGroupsBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsDestroyResponse parses an HTTP response from a VirtualizationClusterGroupsDestroyWithResponse call -func ParseVirtualizationClusterGroupsDestroyResponse(rsp *http.Response) (*VirtualizationClusterGroupsDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsRetrieveResponse parses an HTTP response from a VirtualizationClusterGroupsRetrieveWithResponse call -func ParseVirtualizationClusterGroupsRetrieveResponse(rsp *http.Response) (*VirtualizationClusterGroupsRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsPartialUpdateResponse parses an HTTP response from a VirtualizationClusterGroupsPartialUpdateWithResponse call -func ParseVirtualizationClusterGroupsPartialUpdateResponse(rsp *http.Response) (*VirtualizationClusterGroupsPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsUpdateResponse parses an HTTP response from a VirtualizationClusterGroupsUpdateWithResponse call -func ParseVirtualizationClusterGroupsUpdateResponse(rsp *http.Response) (*VirtualizationClusterGroupsUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsNotesListResponse parses an HTTP response from a VirtualizationClusterGroupsNotesListWithResponse call -func ParseVirtualizationClusterGroupsNotesListResponse(rsp *http.Response) (*VirtualizationClusterGroupsNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterGroupsNotesCreateResponse parses an HTTP response from a VirtualizationClusterGroupsNotesCreateWithResponse call -func ParseVirtualizationClusterGroupsNotesCreateResponse(rsp *http.Response) (*VirtualizationClusterGroupsNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterGroupsNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesBulkDestroyResponse parses an HTTP response from a VirtualizationClusterTypesBulkDestroyWithResponse call -func ParseVirtualizationClusterTypesBulkDestroyResponse(rsp *http.Response) (*VirtualizationClusterTypesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesListResponse parses an HTTP response from a VirtualizationClusterTypesListWithResponse call -func ParseVirtualizationClusterTypesListResponse(rsp *http.Response) (*VirtualizationClusterTypesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesBulkPartialUpdateResponse parses an HTTP response from a VirtualizationClusterTypesBulkPartialUpdateWithResponse call -func ParseVirtualizationClusterTypesBulkPartialUpdateResponse(rsp *http.Response) (*VirtualizationClusterTypesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesCreateResponse parses an HTTP response from a VirtualizationClusterTypesCreateWithResponse call -func ParseVirtualizationClusterTypesCreateResponse(rsp *http.Response) (*VirtualizationClusterTypesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesBulkUpdateResponse parses an HTTP response from a VirtualizationClusterTypesBulkUpdateWithResponse call -func ParseVirtualizationClusterTypesBulkUpdateResponse(rsp *http.Response) (*VirtualizationClusterTypesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesDestroyResponse parses an HTTP response from a VirtualizationClusterTypesDestroyWithResponse call -func ParseVirtualizationClusterTypesDestroyResponse(rsp *http.Response) (*VirtualizationClusterTypesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesRetrieveResponse parses an HTTP response from a VirtualizationClusterTypesRetrieveWithResponse call -func ParseVirtualizationClusterTypesRetrieveResponse(rsp *http.Response) (*VirtualizationClusterTypesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesPartialUpdateResponse parses an HTTP response from a VirtualizationClusterTypesPartialUpdateWithResponse call -func ParseVirtualizationClusterTypesPartialUpdateResponse(rsp *http.Response) (*VirtualizationClusterTypesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesUpdateResponse parses an HTTP response from a VirtualizationClusterTypesUpdateWithResponse call -func ParseVirtualizationClusterTypesUpdateResponse(rsp *http.Response) (*VirtualizationClusterTypesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesNotesListResponse parses an HTTP response from a VirtualizationClusterTypesNotesListWithResponse call -func ParseVirtualizationClusterTypesNotesListResponse(rsp *http.Response) (*VirtualizationClusterTypesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClusterTypesNotesCreateResponse parses an HTTP response from a VirtualizationClusterTypesNotesCreateWithResponse call -func ParseVirtualizationClusterTypesNotesCreateResponse(rsp *http.Response) (*VirtualizationClusterTypesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClusterTypesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersBulkDestroyResponse parses an HTTP response from a VirtualizationClustersBulkDestroyWithResponse call -func ParseVirtualizationClustersBulkDestroyResponse(rsp *http.Response) (*VirtualizationClustersBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersListResponse parses an HTTP response from a VirtualizationClustersListWithResponse call -func ParseVirtualizationClustersListResponse(rsp *http.Response) (*VirtualizationClustersListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersBulkPartialUpdateResponse parses an HTTP response from a VirtualizationClustersBulkPartialUpdateWithResponse call -func ParseVirtualizationClustersBulkPartialUpdateResponse(rsp *http.Response) (*VirtualizationClustersBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersCreateResponse parses an HTTP response from a VirtualizationClustersCreateWithResponse call -func ParseVirtualizationClustersCreateResponse(rsp *http.Response) (*VirtualizationClustersCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersBulkUpdateResponse parses an HTTP response from a VirtualizationClustersBulkUpdateWithResponse call -func ParseVirtualizationClustersBulkUpdateResponse(rsp *http.Response) (*VirtualizationClustersBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersDestroyResponse parses an HTTP response from a VirtualizationClustersDestroyWithResponse call -func ParseVirtualizationClustersDestroyResponse(rsp *http.Response) (*VirtualizationClustersDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersRetrieveResponse parses an HTTP response from a VirtualizationClustersRetrieveWithResponse call -func ParseVirtualizationClustersRetrieveResponse(rsp *http.Response) (*VirtualizationClustersRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersPartialUpdateResponse parses an HTTP response from a VirtualizationClustersPartialUpdateWithResponse call -func ParseVirtualizationClustersPartialUpdateResponse(rsp *http.Response) (*VirtualizationClustersPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersUpdateResponse parses an HTTP response from a VirtualizationClustersUpdateWithResponse call -func ParseVirtualizationClustersUpdateResponse(rsp *http.Response) (*VirtualizationClustersUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersNotesListResponse parses an HTTP response from a VirtualizationClustersNotesListWithResponse call -func ParseVirtualizationClustersNotesListResponse(rsp *http.Response) (*VirtualizationClustersNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationClustersNotesCreateResponse parses an HTTP response from a VirtualizationClustersNotesCreateWithResponse call -func ParseVirtualizationClustersNotesCreateResponse(rsp *http.Response) (*VirtualizationClustersNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationClustersNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesBulkDestroyResponse parses an HTTP response from a VirtualizationInterfacesBulkDestroyWithResponse call -func ParseVirtualizationInterfacesBulkDestroyResponse(rsp *http.Response) (*VirtualizationInterfacesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesListResponse parses an HTTP response from a VirtualizationInterfacesListWithResponse call -func ParseVirtualizationInterfacesListResponse(rsp *http.Response) (*VirtualizationInterfacesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesBulkPartialUpdateResponse parses an HTTP response from a VirtualizationInterfacesBulkPartialUpdateWithResponse call -func ParseVirtualizationInterfacesBulkPartialUpdateResponse(rsp *http.Response) (*VirtualizationInterfacesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesCreateResponse parses an HTTP response from a VirtualizationInterfacesCreateWithResponse call -func ParseVirtualizationInterfacesCreateResponse(rsp *http.Response) (*VirtualizationInterfacesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesBulkUpdateResponse parses an HTTP response from a VirtualizationInterfacesBulkUpdateWithResponse call -func ParseVirtualizationInterfacesBulkUpdateResponse(rsp *http.Response) (*VirtualizationInterfacesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesDestroyResponse parses an HTTP response from a VirtualizationInterfacesDestroyWithResponse call -func ParseVirtualizationInterfacesDestroyResponse(rsp *http.Response) (*VirtualizationInterfacesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesRetrieveResponse parses an HTTP response from a VirtualizationInterfacesRetrieveWithResponse call -func ParseVirtualizationInterfacesRetrieveResponse(rsp *http.Response) (*VirtualizationInterfacesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesPartialUpdateResponse parses an HTTP response from a VirtualizationInterfacesPartialUpdateWithResponse call -func ParseVirtualizationInterfacesPartialUpdateResponse(rsp *http.Response) (*VirtualizationInterfacesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesUpdateResponse parses an HTTP response from a VirtualizationInterfacesUpdateWithResponse call -func ParseVirtualizationInterfacesUpdateResponse(rsp *http.Response) (*VirtualizationInterfacesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesNotesListResponse parses an HTTP response from a VirtualizationInterfacesNotesListWithResponse call -func ParseVirtualizationInterfacesNotesListResponse(rsp *http.Response) (*VirtualizationInterfacesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationInterfacesNotesCreateResponse parses an HTTP response from a VirtualizationInterfacesNotesCreateWithResponse call -func ParseVirtualizationInterfacesNotesCreateResponse(rsp *http.Response) (*VirtualizationInterfacesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationInterfacesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesBulkDestroyResponse parses an HTTP response from a VirtualizationVirtualMachinesBulkDestroyWithResponse call -func ParseVirtualizationVirtualMachinesBulkDestroyResponse(rsp *http.Response) (*VirtualizationVirtualMachinesBulkDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesBulkDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesListResponse parses an HTTP response from a VirtualizationVirtualMachinesListWithResponse call -func ParseVirtualizationVirtualMachinesListResponse(rsp *http.Response) (*VirtualizationVirtualMachinesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesBulkPartialUpdateResponse parses an HTTP response from a VirtualizationVirtualMachinesBulkPartialUpdateWithResponse call -func ParseVirtualizationVirtualMachinesBulkPartialUpdateResponse(rsp *http.Response) (*VirtualizationVirtualMachinesBulkPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesBulkPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesCreateResponse parses an HTTP response from a VirtualizationVirtualMachinesCreateWithResponse call -func ParseVirtualizationVirtualMachinesCreateResponse(rsp *http.Response) (*VirtualizationVirtualMachinesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesBulkUpdateResponse parses an HTTP response from a VirtualizationVirtualMachinesBulkUpdateWithResponse call -func ParseVirtualizationVirtualMachinesBulkUpdateResponse(rsp *http.Response) (*VirtualizationVirtualMachinesBulkUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesBulkUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesDestroyResponse parses an HTTP response from a VirtualizationVirtualMachinesDestroyWithResponse call -func ParseVirtualizationVirtualMachinesDestroyResponse(rsp *http.Response) (*VirtualizationVirtualMachinesDestroyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesDestroyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesRetrieveResponse parses an HTTP response from a VirtualizationVirtualMachinesRetrieveWithResponse call -func ParseVirtualizationVirtualMachinesRetrieveResponse(rsp *http.Response) (*VirtualizationVirtualMachinesRetrieveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesRetrieveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesPartialUpdateResponse parses an HTTP response from a VirtualizationVirtualMachinesPartialUpdateWithResponse call -func ParseVirtualizationVirtualMachinesPartialUpdateResponse(rsp *http.Response) (*VirtualizationVirtualMachinesPartialUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesPartialUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesUpdateResponse parses an HTTP response from a VirtualizationVirtualMachinesUpdateWithResponse call -func ParseVirtualizationVirtualMachinesUpdateResponse(rsp *http.Response) (*VirtualizationVirtualMachinesUpdateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesUpdateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesNotesListResponse parses an HTTP response from a VirtualizationVirtualMachinesNotesListWithResponse call -func ParseVirtualizationVirtualMachinesNotesListResponse(rsp *http.Response) (*VirtualizationVirtualMachinesNotesListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesNotesListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseVirtualizationVirtualMachinesNotesCreateResponse parses an HTTP response from a VirtualizationVirtualMachinesNotesCreateWithResponse call -func ParseVirtualizationVirtualMachinesNotesCreateResponse(rsp *http.Response) (*VirtualizationVirtualMachinesNotesCreateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &VirtualizationVirtualMachinesNotesCreateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} diff --git a/client/nautobot_test.go b/client/nautobot_test.go deleted file mode 100644 index 2956e76..0000000 --- a/client/nautobot_test.go +++ /dev/null @@ -1,97 +0,0 @@ -package nautobot_test - -import ( - "context" - "fmt" - "net/http" - "os" - "testing" - - nb "github.com/nautobot/go-nautobot" - "github.com/tidwall/gjson" -) - -const ( - deviceExist = "manufacturer with this name already exists." -) - -func NewSecurityProviderNautobotToken(t string) (*SecurityProviderNautobotToken, error) { - return &SecurityProviderNautobotToken{ - token: t, - }, nil -} - -type SecurityProviderNautobotToken struct { - token string -} - -func (s *SecurityProviderNautobotToken) Intercept(ctx context.Context, req *http.Request) error { - req.Header.Set("Authorization", fmt.Sprintf("Token %s", s.token)) - return nil -} - -func getenv(name string) (string, error) { - v := os.Getenv(name) - if v == "" { - return v, fmt.Errorf("%s environment variable not set", name) - } - return v, nil -} - -func TestDcimManufacturersCreateWithResponse(t *testing.T) { - server, err := getenv("NAUTOBOT_URL") - if err != nil { - t.Fatal(err) - } - token, err := getenv("NAUTOBOT_TOKEN") - if err != nil { - t.Fatal(err) - } - - tk, err := NewSecurityProviderNautobotToken(token) - if err != nil { - t.Fatalf("could not create a Nautobot token for %s", server) - } - - c, err := nb.NewClientWithResponses( - server, - nb.WithRequestEditorFn(tk.Intercept), - ) - if err != nil { - t.Fatalf("could not setup a client connection to %s", server) - } - - // Test table - tt := []struct { - name string - vendor string - err string - }{ - {name: "New Vendor", vendor: "new vendor 1"}, - {name: "Existing Vendor", vendor: "Cisco", err: deviceExist}, - } - - for _, tc := range tt { - t.Run(tc.name, func(t *testing.T) { - - var m nb.Manufacturer - m.Name = tc.vendor - - rsp, err := c.DcimManufacturersCreateWithResponse( - context.Background(), - nb.DcimManufacturersCreateJSONRequestBody(m)) - - data := string(rsp.Body) - dataName := gjson.Get(data, "name.0") - - if dataName.String() == deviceExist && tc.err == deviceExist { - return - } - - if err != nil { - t.Fatalf("failed to create manufacturer %s on %s: %s", tc.vendor, server, err.Error()) - } - }) - } - -} diff --git a/client/swagger.yaml b/client/swagger.yaml deleted file mode 100644 index a9bf5d3..0000000 --- a/client/swagger.yaml +++ /dev/null @@ -1,206454 +0,0 @@ -openapi: 3.0.3 -info: - title: API Documentation - version: 1.5.7 (1.3) - description: Source of truth and network automation platform - license: - name: Apache v2 License -paths: - /circuits/circuit-terminations/: - get: - operationId: circuits_circuit_terminations_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: circuit_id - schema: - type: array - items: - type: string - format: uuid - description: Circuit - explode: true - style: form - - in: query - name: circuit_id__n - schema: - type: array - items: - type: string - format: uuid - description: Circuit - explode: true - style: form - - in: query - name: connected - schema: - type: boolean - description: Connected status (bool) - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: port_speed - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: port_speed__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: port_speed__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: port_speed__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: port_speed__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: port_speed__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: provider_network_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Provider Network (ID) - explode: true - style: form - - in: query - name: provider_network_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Provider Network (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: term_side - schema: - type: string - title: Termination - - in: query - name: term_side__n - schema: - type: string - title: Termination - - in: query - name: upstream_speed - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: upstream_speed__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: upstream_speed__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: upstream_speed__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: upstream_speed__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: upstream_speed__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: xconnect_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCircuitTerminationList' - description: '' - post: - operationId: circuits_circuit_terminations_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCircuitTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - put: - operationId: circuits_circuit_terminations_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCircuitTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitTermination' - description: '' - patch: - operationId: circuits_circuit_terminations_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCircuitTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitTermination' - description: '' - delete: - operationId: circuits_circuit_terminations_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /circuits/circuit-terminations/{id}/: - get: - operationId: circuits_circuit_terminations_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - put: - operationId: circuits_circuit_terminations_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit termination. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCircuitTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - patch: - operationId: circuits_circuit_terminations_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit termination. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableCircuitTerminationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - delete: - operationId: circuits_circuit_terminations_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /circuits/circuit-terminations/{id}/notes/: - get: - operationId: circuits_circuit_terminations_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit termination. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: circuits_circuit_terminations_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit termination. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /circuits/circuit-terminations/{id}/trace/: - get: - operationId: circuits_circuit_terminations_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - /circuits/circuit-types/: - get: - operationId: circuits_circuit_types_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCircuitTypeList' - description: '' - post: - operationId: circuits_circuit_types_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitType' - description: '' - put: - operationId: circuits_circuit_types_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCircuitTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitType' - description: '' - patch: - operationId: circuits_circuit_types_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCircuitTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitType' - description: '' - delete: - operationId: circuits_circuit_types_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /circuits/circuit-types/{id}/: - get: - operationId: circuits_circuit_types_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit type. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitType' - description: '' - put: - operationId: circuits_circuit_types_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit type. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitType' - description: '' - patch: - operationId: circuits_circuit_types_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit type. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitType' - description: '' - delete: - operationId: circuits_circuit_types_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit type. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /circuits/circuit-types/{id}/notes/: - get: - operationId: circuits_circuit_types_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit type. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: circuits_circuit_types_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit type. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /circuits/circuits/: - get: - operationId: circuits_circuits_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: cid - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: commit_rate - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: commit_rate__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: commit_rate__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: commit_rate__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: commit_rate__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: commit_rate__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: install_date - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug or ID) - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: provider - schema: - type: array - items: - type: string - description: Provider (slug) - explode: true - style: form - - in: query - name: provider__n - schema: - type: array - items: - type: string - description: Provider (slug) - explode: true - style: form - - in: query - name: provider_id - schema: - type: array - items: - type: string - format: uuid - description: Provider (ID) - explode: true - style: form - - in: query - name: provider_id__n - schema: - type: array - items: - type: string - format: uuid - description: Provider (ID) - explode: true - style: form - - in: query - name: provider_network_id - schema: - type: array - items: - type: string - format: uuid - description: Provider Network (ID) - explode: true - style: form - - in: query - name: provider_network_id__n - schema: - type: array - items: - type: string - format: uuid - description: Provider Network (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - description: Circuit type (slug) - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - description: Circuit type (slug) - explode: true - style: form - - in: query - name: type_id - schema: - type: array - items: - type: string - format: uuid - description: Circuit type (ID) - explode: true - style: form - - in: query - name: type_id__n - schema: - type: array - items: - type: string - format: uuid - description: Circuit type (ID) - explode: true - style: form - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCircuitList' - description: '' - post: - operationId: circuits_circuits_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCircuitRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Circuit' - description: '' - put: - operationId: circuits_circuits_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCircuitRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Circuit' - description: '' - patch: - operationId: circuits_circuits_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCircuitRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Circuit' - description: '' - delete: - operationId: circuits_circuits_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /circuits/circuits/{id}/: - get: - operationId: circuits_circuits_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Circuit' - description: '' - put: - operationId: circuits_circuits_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCircuitRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Circuit' - description: '' - patch: - operationId: circuits_circuits_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Circuit' - description: '' - delete: - operationId: circuits_circuits_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /circuits/circuits/{id}/notes/: - get: - operationId: circuits_circuits_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: circuits_circuits_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /circuits/provider-networks/: - get: - operationId: circuits_provider_networks_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: provider - schema: - type: array - items: - type: string - description: Provider (slug) - explode: true - style: form - - in: query - name: provider__n - schema: - type: array - items: - type: string - description: Provider (slug) - explode: true - style: form - - in: query - name: provider_id - schema: - type: array - items: - type: string - format: uuid - description: Provider (ID) - explode: true - style: form - - in: query - name: provider_id__n - schema: - type: array - items: - type: string - format: uuid - description: Provider (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedProviderNetworkList' - description: '' - post: - operationId: circuits_provider_networks_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - put: - operationId: circuits_provider_networks_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - patch: - operationId: circuits_provider_networks_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - delete: - operationId: circuits_provider_networks_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /circuits/provider-networks/{id}/: - get: - operationId: circuits_provider_networks_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider network. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - put: - operationId: circuits_provider_networks_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider network. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - patch: - operationId: circuits_provider_networks_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider network. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableProviderNetworkRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - delete: - operationId: circuits_provider_networks_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider network. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /circuits/provider-networks/{id}/notes/: - get: - operationId: circuits_provider_networks_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider network. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: circuits_provider_networks_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider network. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /circuits/providers/: - get: - operationId: circuits_providers_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: account - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: account__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asn - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedProviderList' - description: '' - post: - operationId: circuits_providers_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Provider' - description: '' - put: - operationId: circuits_providers_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableProviderRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Provider' - description: '' - patch: - operationId: circuits_providers_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableProviderRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Provider' - description: '' - delete: - operationId: circuits_providers_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /circuits/providers/{id}/: - get: - operationId: circuits_providers_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Provider' - description: '' - put: - operationId: circuits_providers_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Provider' - description: '' - patch: - operationId: circuits_providers_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedProviderRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Provider' - description: '' - delete: - operationId: circuits_providers_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /circuits/providers/{id}/notes/: - get: - operationId: circuits_providers_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: circuits_providers_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this provider. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/cables/: - get: - operationId: dcim_cables_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device - schema: - type: array - items: - type: string - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - in: query - name: length - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: length__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: length__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: length__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: length__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: length__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: length_unit - schema: - type: string - - in: query - name: length_unit__n - schema: - type: string - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: string - format: uuid - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - description: Region (name) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (name) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (name) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant (ID) - explode: true - style: form - - in: query - name: termination_a_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_a_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: termination_a_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: termination_b_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: termination_b_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: termination_b_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCableList' - description: '' - post: - operationId: dcim_cables_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCableRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cable' - description: '' - put: - operationId: dcim_cables_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCableRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Cable' - description: '' - patch: - operationId: dcim_cables_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCableRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Cable' - description: '' - delete: - operationId: dcim_cables_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/cables/{id}/: - get: - operationId: dcim_cables_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cable. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cable' - description: '' - put: - operationId: dcim_cables_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cable. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCableRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cable' - description: '' - patch: - operationId: dcim_cables_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cable. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cable' - description: '' - delete: - operationId: dcim_cables_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cable. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/cables/{id}/notes/: - get: - operationId: dcim_cables_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cable. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_cables_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cable. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/connected-device/: - get: - operationId: dcim_connected_device_list - description: |- - This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer - interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors - via a protocol such as LLDP. Two query parameters must be included in the request: - - * `peer_device`: The name of the peer device - * `peer_interface`: The name of the peer interface - parameters: - - in: query - name: peer_device - schema: - type: string - description: The name of the peer device - required: true - - in: query - name: peer_interface - schema: - type: string - description: The name of the peer interface - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Device' - description: '' - /dcim/console-connections/: - get: - operationId: dcim_console_connections_list - parameters: - - in: query - name: device - schema: - type: array - items: - type: string - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: site - schema: - type: string - description: Site (slug) - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConsolePortList' - description: '' - /dcim/console-port-templates/: - get: - operationId: dcim_console_port_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConsolePortTemplateList' - description: '' - post: - operationId: dcim_console_port_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - put: - operationId: dcim_console_port_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - patch: - operationId: dcim_console_port_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - delete: - operationId: dcim_console_port_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/console-port-templates/{id}/: - get: - operationId: dcim_console_port_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - put: - operationId: dcim_console_port_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - patch: - operationId: dcim_console_port_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - delete: - operationId: dcim_console_port_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/console-port-templates/{id}/notes/: - get: - operationId: dcim_console_port_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_console_port_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/console-ports/: - get: - operationId: dcim_console_ports_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - description: Connected status (bool) - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConsolePortList' - description: '' - post: - operationId: dcim_console_ports_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - put: - operationId: dcim_console_ports_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePort' - description: '' - patch: - operationId: dcim_console_ports_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePort' - description: '' - delete: - operationId: dcim_console_ports_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/console-ports/{id}/: - get: - operationId: dcim_console_ports_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - put: - operationId: dcim_console_ports_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - patch: - operationId: dcim_console_ports_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - delete: - operationId: dcim_console_ports_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/console-ports/{id}/notes/: - get: - operationId: dcim_console_ports_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_console_ports_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/console-ports/{id}/trace/: - get: - operationId: dcim_console_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - /dcim/console-server-port-templates/: - get: - operationId: dcim_console_server_port_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' - description: '' - post: - operationId: dcim_console_server_port_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' - description: '' - put: - operationId: dcim_console_server_port_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConsoleServerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' - description: '' - patch: - operationId: dcim_console_server_port_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConsoleServerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' - description: '' - delete: - operationId: dcim_console_server_port_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/console-server-port-templates/{id}/: - get: - operationId: dcim_console_server_port_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' - description: '' - put: - operationId: dcim_console_server_port_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' - description: '' - patch: - operationId: dcim_console_server_port_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' - description: '' - delete: - operationId: dcim_console_server_port_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/console-server-port-templates/{id}/notes/: - get: - operationId: dcim_console_server_port_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_console_server_port_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/console-server-ports/: - get: - operationId: dcim_console_server_ports_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - description: Connected status (bool) - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortList' - description: '' - post: - operationId: dcim_console_server_ports_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - put: - operationId: dcim_console_server_ports_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConsoleServerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - patch: - operationId: dcim_console_server_ports_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConsoleServerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - delete: - operationId: dcim_console_server_ports_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/console-server-ports/{id}/: - get: - operationId: dcim_console_server_ports_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - put: - operationId: dcim_console_server_ports_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - patch: - operationId: dcim_console_server_ports_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - delete: - operationId: dcim_console_server_ports_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/console-server-ports/{id}/notes/: - get: - operationId: dcim_console_server_ports_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_console_server_ports_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/console-server-ports/{id}/trace/: - get: - operationId: dcim_console_server_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this console server port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - /dcim/device-bay-templates/: - get: - operationId: dcim_device_bay_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' - description: '' - post: - operationId: dcim_device_bay_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceBayTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBayTemplate' - description: '' - put: - operationId: dcim_device_bay_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDeviceBayTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceBayTemplate' - description: '' - patch: - operationId: dcim_device_bay_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDeviceBayTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceBayTemplate' - description: '' - delete: - operationId: dcim_device_bay_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/device-bay-templates/{id}/: - get: - operationId: dcim_device_bay_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBayTemplate' - description: '' - put: - operationId: dcim_device_bay_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceBayTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBayTemplate' - description: '' - patch: - operationId: dcim_device_bay_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableDeviceBayTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBayTemplate' - description: '' - delete: - operationId: dcim_device_bay_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/device-bay-templates/{id}/notes/: - get: - operationId: dcim_device_bay_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_device_bay_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/device-bays/: - get: - operationId: dcim_device_bays_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: installed_device - schema: - type: array - items: - type: string - format: uuid - description: Installed device (name or ID) - explode: true - style: form - - in: query - name: installed_device__n - schema: - type: array - items: - type: string - format: uuid - description: Installed device (name or ID) - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDeviceBayList' - description: '' - post: - operationId: dcim_device_bays_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceBayRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBay' - description: '' - put: - operationId: dcim_device_bays_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDeviceBayRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceBay' - description: '' - patch: - operationId: dcim_device_bays_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDeviceBayRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceBay' - description: '' - delete: - operationId: dcim_device_bays_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/device-bays/{id}/: - get: - operationId: dcim_device_bays_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBay' - description: '' - put: - operationId: dcim_device_bays_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceBayRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBay' - description: '' - patch: - operationId: dcim_device_bays_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableDeviceBayRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceBay' - description: '' - delete: - operationId: dcim_device_bays_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/device-bays/{id}/notes/: - get: - operationId: dcim_device_bays_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_device_bays_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device bay. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/device-redundancy-groups/: - get: - operationId: dcim_device_redundancy_groups_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: failover_strategy - schema: - type: string - - in: query - name: failover_strategy__n - schema: - type: string - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: secrets_group - schema: - type: array - items: - type: string - format: uuid - description: Secrets group - explode: true - style: form - - in: query - name: secrets_group__n - schema: - type: array - items: - type: string - format: uuid - description: Secrets group - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDeviceRedundancyGroupList' - description: '' - post: - operationId: dcim_device_redundancy_groups_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceRedundancyGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRedundancyGroup' - description: '' - put: - operationId: dcim_device_redundancy_groups_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDeviceRedundancyGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceRedundancyGroup' - description: '' - patch: - operationId: dcim_device_redundancy_groups_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDeviceRedundancyGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceRedundancyGroup' - description: '' - delete: - operationId: dcim_device_redundancy_groups_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/device-redundancy-groups/{id}/: - get: - operationId: dcim_device_redundancy_groups_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device redundancy group. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRedundancyGroup' - description: '' - put: - operationId: dcim_device_redundancy_groups_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device redundancy group. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceRedundancyGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRedundancyGroup' - description: '' - patch: - operationId: dcim_device_redundancy_groups_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device redundancy group. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableDeviceRedundancyGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRedundancyGroup' - description: '' - delete: - operationId: dcim_device_redundancy_groups_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device redundancy group. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/device-redundancy-groups/{id}/notes/: - get: - operationId: dcim_device_redundancy_groups_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device redundancy group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_device_redundancy_groups_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device redundancy group. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/device-roles/: - get: - operationId: dcim_device_roles_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: devices - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: devices__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: has_devices - schema: - type: boolean - description: Has devices - - in: query - name: has_virtual_machines - schema: - type: boolean - description: Has virtual machines - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: virtual_machines - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: virtual_machines__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: vm_role - schema: - type: boolean - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDeviceRoleList' - description: '' - post: - operationId: dcim_device_roles_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRole' - description: '' - put: - operationId: dcim_device_roles_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDeviceRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceRole' - description: '' - patch: - operationId: dcim_device_roles_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDeviceRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceRole' - description: '' - delete: - operationId: dcim_device_roles_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/device-roles/{id}/: - get: - operationId: dcim_device_roles_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device role. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRole' - description: '' - put: - operationId: dcim_device_roles_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRole' - description: '' - patch: - operationId: dcim_device_roles_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceRole' - description: '' - delete: - operationId: dcim_device_roles_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device role. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/device-roles/{id}/notes/: - get: - operationId: dcim_device_roles_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device role. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_device_roles_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/device-types/: - get: - operationId: dcim_device_types_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: console_port_templates - schema: - type: array - items: - type: string - format: uuid - description: Console port templates (name or ID) - explode: true - style: form - - in: query - name: console_port_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Console port templates (name or ID) - explode: true - style: form - - in: query - name: console_ports - schema: - type: boolean - description: Has console ports - - in: query - name: console_server_port_templates - schema: - type: array - items: - type: string - format: uuid - description: Console server port templates (name or ID) - explode: true - style: form - - in: query - name: console_server_port_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Console server port templates (name or ID) - explode: true - style: form - - in: query - name: console_server_ports - schema: - type: boolean - description: Has console server ports - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device_bay_templates - schema: - type: array - items: - type: string - format: uuid - description: Device bay templates - explode: true - style: form - - in: query - name: device_bay_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Device bay templates - explode: true - style: form - - in: query - name: device_bays - schema: - type: boolean - description: Has device bays - - in: query - name: front_port_templates - schema: - type: array - items: - type: string - format: uuid - description: Front port templates (name or ID) - explode: true - style: form - - in: query - name: front_port_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Front port templates (name or ID) - explode: true - style: form - - in: query - name: has_console_port_templates - schema: - type: boolean - description: Has console port templates - - in: query - name: has_console_server_port_templates - schema: - type: boolean - description: Has console server port templates - - in: query - name: has_device_bay_templates - schema: - type: boolean - description: Has device bay templates - - in: query - name: has_front_port_templates - schema: - type: boolean - description: Has front port templates - - in: query - name: has_instances - schema: - type: boolean - description: Has instances - - in: query - name: has_interface_templates - schema: - type: boolean - description: Has interface templates - - in: query - name: has_power_outlet_templates - schema: - type: boolean - description: Has power outlet templates - - in: query - name: has_power_port_templates - schema: - type: boolean - description: Has power port templates - - in: query - name: has_rear_port_templates - schema: - type: boolean - description: Has rear port templates - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: instances - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: instances__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: interface_templates - schema: - type: array - items: - type: string - format: uuid - description: Interface templates (name or ID) - explode: true - style: form - - in: query - name: interface_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Interface templates (name or ID) - explode: true - style: form - - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: is_full_depth - schema: - type: boolean - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer__n - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: string - format: uuid - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: manufacturer_id__n - schema: - type: array - items: - type: string - format: uuid - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: model - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: part_number - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pass_through_ports - schema: - type: boolean - description: Has pass-through ports - - in: query - name: power_outlet_templates - schema: - type: array - items: - type: string - format: uuid - description: Power outlet templates (name or ID) - explode: true - style: form - - in: query - name: power_outlet_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Power outlet templates (name or ID) - explode: true - style: form - - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_port_templates - schema: - type: array - items: - type: string - format: uuid - description: Power port templates (name or ID) - explode: true - style: form - - in: query - name: power_port_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Power port templates (name or ID) - explode: true - style: form - - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rear_port_templates - schema: - type: array - items: - type: string - format: uuid - description: Rear port templates (name or ID) - explode: true - style: form - - in: query - name: rear_port_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Rear port templates (name or ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subdevice_role - schema: - type: string - title: Parent/child status - description: Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - in: query - name: subdevice_role__n - schema: - type: string - title: Parent/child status - description: Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: u_height - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDeviceTypeList' - description: '' - post: - operationId: dcim_device_types_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - put: - operationId: dcim_device_types_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceType' - description: '' - patch: - operationId: dcim_device_types_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceType' - description: '' - delete: - operationId: dcim_device_types_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/device-types/{id}/: - get: - operationId: dcim_device_types_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - put: - operationId: dcim_device_types_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - patch: - operationId: dcim_device_types_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - delete: - operationId: dcim_device_types_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/device-types/{id}/notes/: - get: - operationId: dcim_device_types_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device type. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_device_types_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/devices/: - get: - operationId: dcim_devices_list - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - name: asset_tag - required: false - in: query - description: asset_tag - schema: - type: string - - name: asset_tag__ic - required: false - in: query - description: asset_tag__ic - schema: - type: string - - name: asset_tag__ie - required: false - in: query - description: asset_tag__ie - schema: - type: string - - name: asset_tag__iew - required: false - in: query - description: asset_tag__iew - schema: - type: string - - name: asset_tag__ire - required: false - in: query - description: asset_tag__ire - schema: - type: string - - name: asset_tag__isw - required: false - in: query - description: asset_tag__isw - schema: - type: string - - name: asset_tag__n - required: false - in: query - description: asset_tag__n - schema: - type: string - - name: asset_tag__nic - required: false - in: query - description: asset_tag__nic - schema: - type: string - - name: asset_tag__nie - required: false - in: query - description: asset_tag__nie - schema: - type: string - - name: asset_tag__niew - required: false - in: query - description: asset_tag__niew - schema: - type: string - - name: asset_tag__nire - required: false - in: query - description: asset_tag__nire - schema: - type: string - - name: asset_tag__nisw - required: false - in: query - description: asset_tag__nisw - schema: - type: string - - name: asset_tag__nre - required: false - in: query - description: asset_tag__nre - schema: - type: string - - name: asset_tag__re - required: false - in: query - description: asset_tag__re - schema: - type: string - - name: cluster_id - required: false - in: query - description: VM cluster (ID) - schema: - type: string - - name: cluster_id__n - required: false - in: query - description: VM cluster (ID) - schema: - type: string - - name: console_ports - required: false - in: query - description: Has console ports - schema: - type: string - - name: console_server_ports - required: false - in: query - description: Has console server ports - schema: - type: string - - name: created - required: false - in: query - description: created - schema: - type: string - - name: created__gte - required: false - in: query - description: created__gte - schema: - type: string - - name: created__lte - required: false - in: query - description: created__lte - schema: - type: string - - name: device_bays - required: false - in: query - description: Has device bays - schema: - type: string - - name: device_redundancy_group - required: false - in: query - description: Device Redundancy Groups (slug or ID) - schema: - type: string - - name: device_redundancy_group__n - required: false - in: query - description: Device Redundancy Groups (slug or ID) - schema: - type: string - - name: device_redundancy_group_priority - required: false - in: query - description: device_redundancy_group_priority - schema: - type: string - - name: device_redundancy_group_priority__gt - required: false - in: query - description: device_redundancy_group_priority__gt - schema: - type: string - - name: device_redundancy_group_priority__gte - required: false - in: query - description: device_redundancy_group_priority__gte - schema: - type: string - - name: device_redundancy_group_priority__lt - required: false - in: query - description: device_redundancy_group_priority__lt - schema: - type: string - - name: device_redundancy_group_priority__lte - required: false - in: query - description: device_redundancy_group_priority__lte - schema: - type: string - - name: device_redundancy_group_priority__n - required: false - in: query - description: device_redundancy_group_priority__n - schema: - type: string - - name: device_type_id - required: false - in: query - description: Device type (ID) - schema: - type: string - - name: device_type_id__n - required: false - in: query - description: Device type (ID) - schema: - type: string - - name: face - required: false - in: query - description: face - schema: - type: string - enum: - - front - - rear - - name: face__n - required: false - in: query - description: face__n - schema: - type: string - enum: - - front - - rear - - name: has_console_ports - required: false - in: query - description: Has console ports - schema: - type: string - - name: has_console_server_ports - required: false - in: query - description: Has console server ports - schema: - type: string - - name: has_device_bays - required: false - in: query - description: Has device bays - schema: - type: string - - name: has_front_ports - required: false - in: query - description: Has front ports - schema: - type: string - - name: has_interfaces - required: false - in: query - description: Has interfaces - schema: - type: string - - name: has_power_outlets - required: false - in: query - description: Has power outlets - schema: - type: string - - name: has_power_ports - required: false - in: query - description: Has power ports - schema: - type: string - - name: has_primary_ip - required: false - in: query - description: Has a primary IP - schema: - type: string - - name: has_rear_ports - required: false - in: query - description: Has rear ports - schema: - type: string - - name: id - required: false - in: query - description: id - schema: - type: string - - name: id__ic - required: false - in: query - description: id__ic - schema: - type: string - - name: id__ie - required: false - in: query - description: id__ie - schema: - type: string - - name: id__iew - required: false - in: query - description: id__iew - schema: - type: string - - name: id__ire - required: false - in: query - description: id__ire - schema: - type: string - - name: id__isw - required: false - in: query - description: id__isw - schema: - type: string - - name: id__n - required: false - in: query - description: id__n - schema: - type: string - - name: id__nic - required: false - in: query - description: id__nic - schema: - type: string - - name: id__nie - required: false - in: query - description: id__nie - schema: - type: string - - name: id__niew - required: false - in: query - description: id__niew - schema: - type: string - - name: id__nire - required: false - in: query - description: id__nire - schema: - type: string - - name: id__nisw - required: false - in: query - description: id__nisw - schema: - type: string - - name: id__nre - required: false - in: query - description: id__nre - schema: - type: string - - name: id__re - required: false - in: query - description: id__re - schema: - type: string - - name: interfaces - required: false - in: query - description: Has interfaces - schema: - type: string - - name: is_full_depth - required: false - in: query - description: Is full depth - schema: - type: string - - name: is_virtual_chassis_member - required: false - in: query - description: Is a virtual chassis member - schema: - type: string - - name: last_updated - required: false - in: query - description: last_updated - schema: - type: string - - name: last_updated__gte - required: false - in: query - description: last_updated__gte - schema: - type: string - - name: last_updated__lte - required: false - in: query - description: last_updated__lte - schema: - type: string - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: local_context_data - required: false - in: query - description: Has local config context data - schema: - type: string - - name: local_context_schema - required: false - in: query - description: Schema (slug) - schema: - type: string - - name: local_context_schema__n - required: false - in: query - description: Schema (slug) - schema: - type: string - - name: local_context_schema_id - required: false - in: query - description: Schema (ID) - schema: - type: string - - name: local_context_schema_id__n - required: false - in: query - description: Schema (ID) - schema: - type: string - - name: location - required: false - in: query - description: Location (slug or ID) - schema: - type: string - - name: location__n - required: false - in: query - description: Location (slug or ID) - schema: - type: string - - name: mac_address - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__ic - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__ie - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__iew - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__ire - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__isw - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__n - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nic - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nie - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__niew - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nire - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nisw - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nre - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__re - required: false - in: query - description: MAC address - schema: - type: string - - name: manufacturer - required: false - in: query - description: Manufacturer (slug) - schema: - type: string - - name: manufacturer__n - required: false - in: query - description: Manufacturer (slug) - schema: - type: string - - name: manufacturer_id - required: false - in: query - description: Manufacturer (ID) - schema: - type: string - - name: manufacturer_id__n - required: false - in: query - description: Manufacturer (ID) - schema: - type: string - - name: model - required: false - in: query - description: Device model (slug) - schema: - type: string - - name: model__n - required: false - in: query - description: Device model (slug) - schema: - type: string - - name: name - required: false - in: query - description: name - schema: - type: string - - name: name__ic - required: false - in: query - description: name__ic - schema: - type: string - - name: name__ie - required: false - in: query - description: name__ie - schema: - type: string - - name: name__iew - required: false - in: query - description: name__iew - schema: - type: string - - name: name__ire - required: false - in: query - description: name__ire - schema: - type: string - - name: name__isw - required: false - in: query - description: name__isw - schema: - type: string - - name: name__n - required: false - in: query - description: name__n - schema: - type: string - - name: name__nic - required: false - in: query - description: name__nic - schema: - type: string - - name: name__nie - required: false - in: query - description: name__nie - schema: - type: string - - name: name__niew - required: false - in: query - description: name__niew - schema: - type: string - - name: name__nire - required: false - in: query - description: name__nire - schema: - type: string - - name: name__nisw - required: false - in: query - description: name__nisw - schema: - type: string - - name: name__nre - required: false - in: query - description: name__nre - schema: - type: string - - name: name__re - required: false - in: query - description: name__re - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: pass_through_ports - required: false - in: query - description: Has pass-through ports - schema: - type: string - - name: platform - required: false - in: query - description: Platform (slug) - schema: - type: string - - name: platform__n - required: false - in: query - description: Platform (slug) - schema: - type: string - - name: platform_id - required: false - in: query - description: Platform (ID) - schema: - type: string - - name: platform_id__n - required: false - in: query - description: Platform (ID) - schema: - type: string - - name: position - required: false - in: query - description: position - schema: - type: string - - name: position__gt - required: false - in: query - description: position__gt - schema: - type: string - - name: position__gte - required: false - in: query - description: position__gte - schema: - type: string - - name: position__lt - required: false - in: query - description: position__lt - schema: - type: string - - name: position__lte - required: false - in: query - description: position__lte - schema: - type: string - - name: position__n - required: false - in: query - description: position__n - schema: - type: string - - name: power_outlets - required: false - in: query - description: Has power outlets - schema: - type: string - - name: power_ports - required: false - in: query - description: Has power ports - schema: - type: string - - name: q - required: false - in: query - description: Search - schema: - type: string - - name: rack_group_id - required: false - in: query - description: Rack group (ID) - schema: - type: string - - name: rack_group_id__n - required: false - in: query - description: Rack group (ID) - schema: - type: string - - name: rack_id - required: false - in: query - description: Rack (ID) - schema: - type: string - - name: rack_id__n - required: false - in: query - description: Rack (ID) - schema: - type: string - - name: region - required: false - in: query - description: Region (slug or ID) - schema: - type: string - - name: region__n - required: false - in: query - description: Region (slug or ID) - schema: - type: string - - name: region_id - required: false - in: query - description: Region (ID) (deprecated, use "region" filter instead) - schema: - type: string - - name: region_id__n - required: false - in: query - description: Region (ID) (deprecated, use "region" filter instead) - schema: - type: string - - name: role - required: false - in: query - description: Role (slug) - schema: - type: string - - name: role__n - required: false - in: query - description: Role (slug) - schema: - type: string - - name: role_id - required: false - in: query - description: Role (ID) - schema: - type: string - - name: role_id__n - required: false - in: query - description: Role (ID) - schema: - type: string - - name: secrets_group - required: false - in: query - description: Secrets group (slug) - schema: - type: string - - name: secrets_group__n - required: false - in: query - description: Secrets group (slug) - schema: - type: string - - name: secrets_group_id - required: false - in: query - description: Secrets group (ID) - schema: - type: string - - name: secrets_group_id__n - required: false - in: query - description: Secrets group (ID) - schema: - type: string - - name: serial - required: false - in: query - description: serial - schema: - type: string - - name: site - required: false - in: query - description: Site (slug or ID) - schema: - type: string - - name: site__n - required: false - in: query - description: Site (slug or ID) - schema: - type: string - - name: site_id - required: false - in: query - description: Site (ID) (deprecated, use "site" filter instead) - schema: - type: string - - name: site_id__n - required: false - in: query - description: Site (ID) (deprecated, use "site" filter instead) - schema: - type: string - - name: status - required: false - in: query - description: status - schema: - type: string - - name: status__n - required: false - in: query - description: status__n - schema: - type: string - - name: tag - required: false - in: query - description: tag - schema: - type: string - - name: tag__n - required: false - in: query - description: tag__n - schema: - type: string - - name: tenant - required: false - in: query - description: Tenant (slug or ID) - schema: - type: string - - name: tenant__n - required: false - in: query - description: Tenant (slug or ID) - schema: - type: string - - name: tenant_group - required: false - in: query - description: Tenant Group (slug) - schema: - type: string - - name: tenant_group__n - required: false - in: query - description: Tenant Group (slug) - schema: - type: string - - name: tenant_group_id - required: false - in: query - description: Tenant Group (ID) - schema: - type: string - - name: tenant_group_id__n - required: false - in: query - description: Tenant Group (ID) - schema: - type: string - - name: tenant_id - required: false - in: query - description: Tenant (ID) (deprecated, use "tenant" filter instead) - schema: - type: string - - name: tenant_id__n - required: false - in: query - description: Tenant (ID) (deprecated, use "tenant" filter instead) - schema: - type: string - - name: vc_position - required: false - in: query - description: vc_position - schema: - type: string - - name: vc_position__gt - required: false - in: query - description: vc_position__gt - schema: - type: string - - name: vc_position__gte - required: false - in: query - description: vc_position__gte - schema: - type: string - - name: vc_position__lt - required: false - in: query - description: vc_position__lt - schema: - type: string - - name: vc_position__lte - required: false - in: query - description: vc_position__lte - schema: - type: string - - name: vc_position__n - required: false - in: query - description: vc_position__n - schema: - type: string - - name: vc_priority - required: false - in: query - description: vc_priority - schema: - type: string - - name: vc_priority__gt - required: false - in: query - description: vc_priority__gt - schema: - type: string - - name: vc_priority__gte - required: false - in: query - description: vc_priority__gte - schema: - type: string - - name: vc_priority__lt - required: false - in: query - description: vc_priority__lt - schema: - type: string - - name: vc_priority__lte - required: false - in: query - description: vc_priority__lte - schema: - type: string - - name: vc_priority__n - required: false - in: query - description: vc_priority__n - schema: - type: string - - name: virtual_chassis_id - required: false - in: query - description: Virtual chassis (ID) - schema: - type: string - - name: virtual_chassis_id__n - required: false - in: query - description: Virtual chassis (ID) - schema: - type: string - - name: virtual_chassis_member - required: false - in: query - description: Is a virtual chassis member - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' - description: '' - post: - operationId: dcim_devices_create - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - put: - operationId: dcim_devices_bulk_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - patch: - operationId: dcim_devices_bulk_partial_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - delete: - operationId: dcim_devices_bulk_destroy - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/devices/{id}/: - get: - operationId: dcim_devices_retrieve - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - put: - operationId: dcim_devices_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - patch: - operationId: dcim_devices_partial_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - delete: - operationId: dcim_devices_destroy - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/devices/{id}/napalm/: - get: - operationId: dcim_devices_napalm_retrieve - description: Execute a NAPALM method on a Device - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - - in: query - name: method - schema: - type: string - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DeviceNAPALM' - description: '' - /dcim/devices/{id}/notes/: - get: - operationId: dcim_devices_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_devices_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/front-port-templates/: - get: - operationId: dcim_front_port_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rear_port_position - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_template - schema: - type: array - items: - type: string - format: uuid - description: Rear port template - explode: true - style: form - - in: query - name: rear_port_template__n - schema: - type: array - items: - type: string - format: uuid - description: Rear port template - explode: true - style: form - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedFrontPortTemplateList' - description: '' - post: - operationId: dcim_front_port_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/front-port-templates/{id}/: - get: - operationId: dcim_front_port_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/front-port-templates/{id}/notes/: - get: - operationId: dcim_front_port_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_front_port_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/front-ports/: - get: - operationId: dcim_front_ports_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rear_port - schema: - type: array - items: - type: string - format: uuid - description: Rear port (name or ID) - explode: true - style: form - - in: query - name: rear_port__n - schema: - type: array - items: - type: string - format: uuid - description: Rear port (name or ID) - explode: true - style: form - - in: query - name: rear_port_position - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_position__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedFrontPortList' - description: '' - post: - operationId: dcim_front_ports_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - put: - operationId: dcim_front_ports_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableFrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPort' - description: '' - patch: - operationId: dcim_front_ports_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableFrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPort' - description: '' - delete: - operationId: dcim_front_ports_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/front-ports/{id}/: - get: - operationId: dcim_front_ports_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - put: - operationId: dcim_front_ports_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - patch: - operationId: dcim_front_ports_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - delete: - operationId: dcim_front_ports_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/front-ports/{id}/notes/: - get: - operationId: dcim_front_ports_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_front_ports_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/front-ports/{id}/paths/: - get: - operationId: dcim_front_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this front port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - /dcim/interface-connections/: - get: - operationId: dcim_interface_connections_list - parameters: - - in: query - name: device - schema: - type: array - items: - type: string - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: site - schema: - type: string - description: Site (slug) - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedInterfaceConnectionList' - description: '' - /dcim/interface-templates/: - get: - operationId: dcim_interface_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: mgmt_only - schema: - type: boolean - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedInterfaceTemplateList' - description: '' - post: - operationId: dcim_interface_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - put: - operationId: dcim_interface_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - patch: - operationId: dcim_interface_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - delete: - operationId: dcim_interface_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/interface-templates/{id}/: - get: - operationId: dcim_interface_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - put: - operationId: dcim_interface_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - patch: - operationId: dcim_interface_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - delete: - operationId: dcim_interface_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/interface-templates/{id}/notes/: - get: - operationId: dcim_interface_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_interface_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/interfaces/: - get: - operationId: dcim_interfaces_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: bridge - schema: - type: array - items: - type: string - format: uuid - description: Bridge interface (name or ID) - explode: true - style: form - - in: query - name: bridge__n - schema: - type: array - items: - type: string - format: uuid - description: Bridge interface (name or ID) - explode: true - style: form - - in: query - name: bridged_interfaces - schema: - type: array - items: - type: string - format: uuid - description: Bridged interfaces (name or ID) - explode: true - style: form - - in: query - name: bridged_interfaces__n - schema: - type: array - items: - type: string - format: uuid - description: Bridged interfaces (name or ID) - explode: true - style: form - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: child_interfaces - schema: - type: array - items: - type: string - format: uuid - description: Child interfaces (name or ID) - explode: true - style: form - - in: query - name: child_interfaces__n - schema: - type: array - items: - type: string - format: uuid - description: Child interfaces (name or ID) - explode: true - style: form - - in: query - name: connected - schema: - type: boolean - description: Connected status (bool) - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_with_common_vc - schema: - type: string - format: uuid - description: Virtual Chassis member Device (ID) - - in: query - name: enabled - schema: - type: boolean - - in: query - name: has_bridged_interfaces - schema: - type: boolean - description: Has bridged interfaces - - in: query - name: has_child_interfaces - schema: - type: boolean - description: Has child interfaces - - in: query - name: has_member_interfaces - schema: - type: boolean - description: Has member interfaces - - in: query - name: has_tagged_vlans - schema: - type: boolean - description: Has tagged VLANs - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: kind - schema: - type: string - description: Kind of interface - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: lag - schema: - type: array - items: - type: string - format: uuid - description: LAG interface (name or ID) - explode: true - style: form - - in: query - name: lag__n - schema: - type: array - items: - type: string - format: uuid - description: LAG interface (name or ID) - explode: true - style: form - - in: query - name: lag_id - schema: - type: array - items: - type: string - format: uuid - description: LAG interface (ID) - explode: true - style: form - - in: query - name: lag_id__n - schema: - type: array - items: - type: string - format: uuid - description: LAG interface (ID) - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: mac_address - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__ic - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__ie - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__iew - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__ire - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__isw - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__n - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__nic - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__nie - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__niew - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__nire - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__nisw - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__nre - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: mac_address__re - schema: - type: array - items: - type: string - nullable: true - explode: true - style: form - - in: query - name: member_interfaces - schema: - type: array - items: - type: string - format: uuid - description: Member interfaces (name or ID) - explode: true - style: form - - in: query - name: member_interfaces__n - schema: - type: array - items: - type: string - format: uuid - description: Member interfaces (name or ID) - explode: true - style: form - - in: query - name: mgmt_only - schema: - type: boolean - - in: query - name: mode - schema: - type: string - - in: query - name: mode__n - schema: - type: string - - in: query - name: mtu - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance - schema: - type: array - items: - type: string - description: Routing Instance UUID - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_interfaces_bgp_routing_instance__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent_interface - schema: - type: array - items: - type: string - format: uuid - description: Parent interface (name or ID) - explode: true - style: form - - in: query - name: parent_interface__n - schema: - type: array - items: - type: string - format: uuid - description: Parent interface (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tagged_vlans - schema: - type: array - items: - type: string - format: uuid - description: Tagged VLANs (VID or ID) - explode: true - style: form - - in: query - name: tagged_vlans__n - schema: - type: array - items: - type: string - format: uuid - description: Tagged VLANs (VID or ID) - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: untagged_vlan - schema: - type: array - items: - type: string - format: uuid - description: Untagged VLAN (VID or ID) - explode: true - style: form - - in: query - name: untagged_vlan__n - schema: - type: array - items: - type: string - format: uuid - description: Untagged VLAN (VID or ID) - explode: true - style: form - - in: query - name: vlan - schema: - type: number - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedInterfaceSerializerVersion12List' - description: '' - post: - operationId: dcim_interfaces_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceSerializerVersion12' - description: '' - put: - operationId: dcim_interfaces_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceSerializerVersion12' - description: '' - patch: - operationId: dcim_interfaces_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceSerializerVersion12' - description: '' - delete: - operationId: dcim_interfaces_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/interfaces/{id}/: - get: - operationId: dcim_interfaces_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceSerializerVersion12' - description: '' - put: - operationId: dcim_interfaces_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceSerializerVersion12' - description: '' - patch: - operationId: dcim_interfaces_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InterfaceSerializerVersion12' - description: '' - delete: - operationId: dcim_interfaces_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/interfaces/{id}/notes/: - get: - operationId: dcim_interfaces_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_interfaces_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/interfaces/{id}/trace/: - get: - operationId: dcim_interfaces_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this interface. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Interface' - description: '' - /dcim/inventory-items/: - get: - operationId: dcim_inventory_items_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: asset_tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: child_items - schema: - type: array - items: - type: string - format: uuid - description: Child items (name or ID) - explode: true - style: form - - in: query - name: child_items__n - schema: - type: array - items: - type: string - format: uuid - description: Child items (name or ID) - explode: true - style: form - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: string - format: uuid - description: Device (name) - - in: query - name: device__n - schema: - type: string - format: uuid - description: Device (name) - - in: query - name: device_id - schema: - type: string - format: uuid - description: Device (ID) - - in: query - name: device_id__n - schema: - type: string - format: uuid - description: Device (ID) - - in: query - name: discovered - schema: - type: boolean - - in: query - name: has_child_items - schema: - type: boolean - description: Has child items - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer__n - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: manufacturer_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent - schema: - type: array - items: - type: string - format: uuid - description: Parent (name or ID) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - format: uuid - description: Parent (name or ID) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent inventory item (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent inventory item (ID) - explode: true - style: form - - in: query - name: part_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_id__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: serial - schema: - type: string - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedInventoryItemList' - description: '' - post: - operationId: dcim_inventory_items_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - put: - operationId: dcim_inventory_items_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableInventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItem' - description: '' - patch: - operationId: dcim_inventory_items_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableInventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItem' - description: '' - delete: - operationId: dcim_inventory_items_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/inventory-items/{id}/: - get: - operationId: dcim_inventory_items_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this inventory item. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - put: - operationId: dcim_inventory_items_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this inventory item. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - patch: - operationId: dcim_inventory_items_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this inventory item. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableInventoryItemRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - delete: - operationId: dcim_inventory_items_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this inventory item. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/inventory-items/{id}/notes/: - get: - operationId: dcim_inventory_items_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this inventory item. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_inventory_items_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this inventory item. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/location-types/: - get: - operationId: dcim_location_types_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: content_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: nestable - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent - schema: - type: array - items: - type: string - format: uuid - description: Parent location type (slug or ID) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - format: uuid - description: Parent location type (slug or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedLocationTypeList' - description: '' - post: - operationId: dcim_location_types_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/LocationType' - description: '' - put: - operationId: dcim_location_types_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableLocationTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/LocationType' - description: '' - patch: - operationId: dcim_location_types_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableLocationTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/LocationType' - description: '' - delete: - operationId: dcim_location_types_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/location-types/{id}/: - get: - operationId: dcim_location_types_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/LocationType' - description: '' - put: - operationId: dcim_location_types_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/LocationType' - description: '' - patch: - operationId: dcim_location_types_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableLocationTypeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/LocationType' - description: '' - delete: - operationId: dcim_location_types_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/location-types/{id}/notes/: - get: - operationId: dcim_location_types_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location type. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_location_types_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/locations/: - get: - operationId: dcim_locations_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: base_site - schema: - type: array - items: - type: string - description: Base location's site (slug or ID) - explode: true - style: form - - in: query - name: child_location_type - schema: - type: array - items: - type: string - description: Child location type (slug or ID) - explode: true - style: form - - in: query - name: content_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location_type - schema: - type: array - items: - type: string - format: uuid - description: Location type (slug or ID) - explode: true - style: form - - in: query - name: location_type__n - schema: - type: array - items: - type: string - format: uuid - description: Location type (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent - schema: - type: array - items: - type: string - format: uuid - description: Parent location (slug or ID) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - format: uuid - description: Parent location (slug or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: subtree - schema: - type: array - items: - type: string - description: Location(s) and descendants thereof (slug or ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedLocationList' - description: '' - post: - operationId: dcim_locations_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Location' - description: '' - put: - operationId: dcim_locations_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Location' - description: '' - patch: - operationId: dcim_locations_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Location' - description: '' - delete: - operationId: dcim_locations_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/locations/{id}/: - get: - operationId: dcim_locations_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Location' - description: '' - put: - operationId: dcim_locations_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Location' - description: '' - patch: - operationId: dcim_locations_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Location' - description: '' - delete: - operationId: dcim_locations_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/locations/{id}/notes/: - get: - operationId: dcim_locations_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_locations_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this location. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/manufacturers/: - get: - operationId: dcim_manufacturers_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_types - schema: - type: array - items: - type: string - format: uuid - description: Device types (slug or ID) - explode: true - style: form - - in: query - name: device_types__n - schema: - type: array - items: - type: string - format: uuid - description: Device types (slug or ID) - explode: true - style: form - - in: query - name: has_device_types - schema: - type: boolean - description: Has device types - - in: query - name: has_inventory_items - schema: - type: boolean - description: Has inventory items - - in: query - name: has_platforms - schema: - type: boolean - description: Has platforms - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: inventory_items - schema: - type: array - items: - type: string - format: uuid - description: Inventory items (name or ID) - explode: true - style: form - - in: query - name: inventory_items__n - schema: - type: array - items: - type: string - format: uuid - description: Inventory items (name or ID) - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platforms - schema: - type: array - items: - type: string - format: uuid - description: Platforms (slug or ID) - explode: true - style: form - - in: query - name: platforms__n - schema: - type: array - items: - type: string - format: uuid - description: Platforms (slug or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedManufacturerList' - description: '' - post: - operationId: dcim_manufacturers_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/manufacturers/{id}/: - get: - operationId: dcim_manufacturers_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/manufacturers/{id}/notes/: - get: - operationId: dcim_manufacturers_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this manufacturer. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_manufacturers_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/platforms/: - get: - operationId: dcim_platforms_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: devices - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: devices__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: has_devices - schema: - type: boolean - description: Has devices - - in: query - name: has_virtual_machines - schema: - type: boolean - description: Has virtual machines - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer__n - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: string - format: uuid - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: manufacturer_id__n - schema: - type: array - items: - type: string - format: uuid - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_args - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: virtual_machines - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: virtual_machines__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPlatformList' - description: '' - post: - operationId: dcim_platforms_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePlatformRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Platform' - description: '' - put: - operationId: dcim_platforms_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePlatformRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Platform' - description: '' - patch: - operationId: dcim_platforms_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePlatformRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Platform' - description: '' - delete: - operationId: dcim_platforms_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/platforms/{id}/: - get: - operationId: dcim_platforms_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this platform. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Platform' - description: '' - put: - operationId: dcim_platforms_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this platform. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePlatformRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Platform' - description: '' - patch: - operationId: dcim_platforms_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this platform. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePlatformRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Platform' - description: '' - delete: - operationId: dcim_platforms_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this platform. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/platforms/{id}/notes/: - get: - operationId: dcim_platforms_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this platform. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_platforms_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this platform. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/power-connections/: - get: - operationId: dcim_power_connections_list - parameters: - - in: query - name: device - schema: - type: array - items: - type: string - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: site - schema: - type: string - description: Site (slug) - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPowerPortList' - description: '' - /dcim/power-feeds/: - get: - operationId: dcim_power_feeds_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: amperage - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: amperage__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: amperage__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: amperage__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: amperage__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: amperage__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: available_power - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: available_power__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: available_power__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: available_power__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: available_power__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: available_power__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: connected - schema: - type: boolean - description: Connected status (bool) - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: max_utilization - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: max_utilization__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: max_utilization__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: max_utilization__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: max_utilization__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: max_utilization__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: phase - schema: - type: string - - in: query - name: phase__n - schema: - type: string - - in: query - name: power_panel - schema: - type: array - items: - type: string - format: uuid - description: Power panel (name or ID) - explode: true - style: form - - in: query - name: power_panel__n - schema: - type: array - items: - type: string - format: uuid - description: Power panel (name or ID) - explode: true - style: form - - in: query - name: power_panel_id - schema: - type: array - items: - type: string - format: uuid - description: Power panel (ID) - explode: true - style: form - - in: query - name: power_panel_id__n - schema: - type: array - items: - type: string - format: uuid - description: Power panel (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - format: uuid - description: Rack (name or ID) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - format: uuid - description: Rack (name or ID) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: string - format: uuid - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: string - format: uuid - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: supply - schema: - type: string - - in: query - name: supply__n - schema: - type: string - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - - in: query - name: voltage - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: voltage__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: voltage__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: voltage__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: voltage__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: voltage__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPowerFeedList' - description: '' - post: - operationId: dcim_power_feeds_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - put: - operationId: dcim_power_feeds_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePowerFeedRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerFeed' - description: '' - patch: - operationId: dcim_power_feeds_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePowerFeedRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerFeed' - description: '' - delete: - operationId: dcim_power_feeds_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/power-feeds/{id}/: - get: - operationId: dcim_power_feeds_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power feed. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - put: - operationId: dcim_power_feeds_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power feed. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - patch: - operationId: dcim_power_feeds_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power feed. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - delete: - operationId: dcim_power_feeds_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power feed. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/power-feeds/{id}/notes/: - get: - operationId: dcim_power_feeds_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power feed. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_power_feeds_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power feed. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/power-feeds/{id}/trace/: - get: - operationId: dcim_power_feeds_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power feed. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - /dcim/power-outlet-templates/: - get: - operationId: dcim_power_outlet_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: feed_leg - schema: - type: string - description: Phase (for three-phase feeds) - - in: query - name: feed_leg__n - schema: - type: string - description: Phase (for three-phase feeds) - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: power_port_template - schema: - type: array - items: - type: string - format: uuid - description: Power port template (name or ID) - explode: true - style: form - - in: query - name: power_port_template__n - schema: - type: array - items: - type: string - format: uuid - description: Power port template (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' - description: '' - post: - operationId: dcim_power_outlet_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutletTemplate' - description: '' - put: - operationId: dcim_power_outlet_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePowerOutletTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerOutletTemplate' - description: '' - patch: - operationId: dcim_power_outlet_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePowerOutletTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerOutletTemplate' - description: '' - delete: - operationId: dcim_power_outlet_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/power-outlet-templates/{id}/: - get: - operationId: dcim_power_outlet_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutletTemplate' - description: '' - put: - operationId: dcim_power_outlet_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutletTemplate' - description: '' - patch: - operationId: dcim_power_outlet_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutletTemplate' - description: '' - delete: - operationId: dcim_power_outlet_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/power-outlet-templates/{id}/notes/: - get: - operationId: dcim_power_outlet_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_power_outlet_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/power-outlets/: - get: - operationId: dcim_power_outlets_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - description: Connected status (bool) - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: feed_leg - schema: - type: string - description: Phase (for three-phase feeds) - - in: query - name: feed_leg__n - schema: - type: string - description: Phase (for three-phase feeds) - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: power_port - schema: - type: array - items: - type: string - format: uuid - description: Power port - explode: true - style: form - - in: query - name: power_port__n - schema: - type: array - items: - type: string - format: uuid - description: Power port - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPowerOutletList' - description: '' - post: - operationId: dcim_power_outlets_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - put: - operationId: dcim_power_outlets_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePowerOutletRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerOutlet' - description: '' - patch: - operationId: dcim_power_outlets_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePowerOutletRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerOutlet' - description: '' - delete: - operationId: dcim_power_outlets_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/power-outlets/{id}/: - get: - operationId: dcim_power_outlets_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - put: - operationId: dcim_power_outlets_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - patch: - operationId: dcim_power_outlets_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - delete: - operationId: dcim_power_outlets_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/power-outlets/{id}/notes/: - get: - operationId: dcim_power_outlets_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_power_outlets_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/power-outlets/{id}/trace/: - get: - operationId: dcim_power_outlets_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power outlet. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - /dcim/power-panels/: - get: - operationId: dcim_power_panels_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: has_power_feeds - schema: - type: boolean - description: Has power feeds - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: power_feeds - schema: - type: array - items: - type: string - format: uuid - description: Power feeds (name or ID) - explode: true - style: form - - in: query - name: power_feeds__n - schema: - type: array - items: - type: string - format: uuid - description: Power feeds (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_group - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug or ID) - explode: true - style: form - - in: query - name: rack_group__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug or ID) - explode: true - style: form - - in: query - name: rack_group_id - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: rack_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPowerPanelList' - description: '' - post: - operationId: dcim_power_panels_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPanelRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPanel' - description: '' - put: - operationId: dcim_power_panels_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePowerPanelRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPanel' - description: '' - patch: - operationId: dcim_power_panels_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePowerPanelRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPanel' - description: '' - delete: - operationId: dcim_power_panels_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/power-panels/{id}/: - get: - operationId: dcim_power_panels_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power panel. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPanel' - description: '' - put: - operationId: dcim_power_panels_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power panel. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPanelRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPanel' - description: '' - patch: - operationId: dcim_power_panels_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power panel. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePowerPanelRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPanel' - description: '' - delete: - operationId: dcim_power_panels_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power panel. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/power-panels/{id}/notes/: - get: - operationId: dcim_power_panels_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power panel. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_power_panels_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power panel. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/power-port-templates/: - get: - operationId: dcim_power_port_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: has_power_outlet_templates - schema: - type: boolean - description: Has power outlet templates - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: power_outlet_templates - schema: - type: array - items: - type: string - format: uuid - description: Power outlet templates (name or ID) - explode: true - style: form - - in: query - name: power_outlet_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Power outlet templates (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPowerPortTemplateList' - description: '' - post: - operationId: dcim_power_port_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPortTemplate' - description: '' - put: - operationId: dcim_power_port_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePowerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortTemplate' - description: '' - patch: - operationId: dcim_power_port_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePowerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortTemplate' - description: '' - delete: - operationId: dcim_power_port_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/power-port-templates/{id}/: - get: - operationId: dcim_power_port_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPortTemplate' - description: '' - put: - operationId: dcim_power_port_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPortTemplate' - description: '' - patch: - operationId: dcim_power_port_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPortTemplate' - description: '' - delete: - operationId: dcim_power_port_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/power-port-templates/{id}/notes/: - get: - operationId: dcim_power_port_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_power_port_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/power-ports/: - get: - operationId: dcim_power_ports_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: allocated_draw__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - description: Connected status (bool) - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: has_power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: maximum_draw__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: power_outlets - schema: - type: array - items: - type: string - format: uuid - description: Power outlets (name or ID) - explode: true - style: form - - in: query - name: power_outlets__n - schema: - type: array - items: - type: string - format: uuid - description: Power outlets (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - description: Physical port type - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPowerPortList' - description: '' - post: - operationId: dcim_power_ports_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - put: - operationId: dcim_power_ports_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPort' - description: '' - patch: - operationId: dcim_power_ports_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPort' - description: '' - delete: - operationId: dcim_power_ports_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/power-ports/{id}/: - get: - operationId: dcim_power_ports_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - put: - operationId: dcim_power_ports_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - patch: - operationId: dcim_power_ports_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - delete: - operationId: dcim_power_ports_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/power-ports/{id}/notes/: - get: - operationId: dcim_power_ports_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_power_ports_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/power-ports/{id}/trace/: - get: - operationId: dcim_power_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - /dcim/rack-groups/: - get: - operationId: dcim_rack_groups_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: children - schema: - type: array - items: - type: string - format: uuid - description: Children (slug or ID) - explode: true - style: form - - in: query - name: children__n - schema: - type: array - items: - type: string - format: uuid - description: Children (slug or ID) - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: has_children - schema: - type: boolean - description: Has children - - in: query - name: has_power_panels - schema: - type: boolean - description: Has power panels - - in: query - name: has_racks - schema: - type: boolean - description: Has racks - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent - schema: - type: array - items: - type: string - description: Parent (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Parent (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent (ID) - explode: true - style: form - - in: query - name: power_panels - schema: - type: array - items: - type: string - format: uuid - description: Power panels (name or ID) - explode: true - style: form - - in: query - name: power_panels__n - schema: - type: array - items: - type: string - format: uuid - description: Power panels (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: racks - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: racks__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRackGroupList' - description: '' - post: - operationId: dcim_rack_groups_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRackGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackGroup' - description: '' - put: - operationId: dcim_rack_groups_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRackGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RackGroup' - description: '' - patch: - operationId: dcim_rack_groups_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRackGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RackGroup' - description: '' - delete: - operationId: dcim_rack_groups_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/rack-groups/{id}/: - get: - operationId: dcim_rack_groups_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack group. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackGroup' - description: '' - put: - operationId: dcim_rack_groups_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack group. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRackGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackGroup' - description: '' - patch: - operationId: dcim_rack_groups_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack group. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRackGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackGroup' - description: '' - delete: - operationId: dcim_rack_groups_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack group. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/rack-groups/{id}/notes/: - get: - operationId: dcim_rack_groups_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_rack_groups_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack group. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/rack-reservations/: - get: - operationId: dcim_rack_reservations_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - format: uuid - description: Rack (name or ID) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - format: uuid - description: Rack (name or ID) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: string - format: uuid - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: string - format: uuid - description: Rack (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: user - schema: - type: array - items: - type: string - description: User (name) - explode: true - style: form - - in: query - name: user__n - schema: - type: array - items: - type: string - description: User (name) - explode: true - style: form - - in: query - name: user_id - schema: - type: array - items: - type: string - format: uuid - description: User (ID) - explode: true - style: form - - in: query - name: user_id__n - schema: - type: array - items: - type: string - format: uuid - description: User (ID) - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRackReservationList' - description: '' - post: - operationId: dcim_rack_reservations_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRackReservationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackReservation' - description: '' - put: - operationId: dcim_rack_reservations_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRackReservationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RackReservation' - description: '' - patch: - operationId: dcim_rack_reservations_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRackReservationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RackReservation' - description: '' - delete: - operationId: dcim_rack_reservations_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/rack-reservations/{id}/: - get: - operationId: dcim_rack_reservations_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack reservation. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackReservation' - description: '' - put: - operationId: dcim_rack_reservations_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack reservation. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRackReservationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackReservation' - description: '' - patch: - operationId: dcim_rack_reservations_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack reservation. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRackReservationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackReservation' - description: '' - delete: - operationId: dcim_rack_reservations_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack reservation. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/rack-reservations/{id}/notes/: - get: - operationId: dcim_rack_reservations_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack reservation. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_rack_reservations_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack reservation. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/rack-roles/: - get: - operationId: dcim_rack_roles_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: has_racks - schema: - type: boolean - description: Has racks - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: racks - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: racks__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRackRoleList' - description: '' - post: - operationId: dcim_rack_roles_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RackRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackRole' - description: '' - put: - operationId: dcim_rack_roles_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRackRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RackRole' - description: '' - patch: - operationId: dcim_rack_roles_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRackRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RackRole' - description: '' - delete: - operationId: dcim_rack_roles_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/rack-roles/{id}/: - get: - operationId: dcim_rack_roles_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack role. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackRole' - description: '' - put: - operationId: dcim_rack_roles_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RackRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackRole' - description: '' - patch: - operationId: dcim_rack_roles_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RackRole' - description: '' - delete: - operationId: dcim_rack_roles_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack role. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/rack-roles/{id}/notes/: - get: - operationId: dcim_rack_roles_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack role. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_rack_roles_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/racks/: - get: - operationId: dcim_racks_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: asset_tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: desc_units - schema: - type: boolean - - in: query - name: devices - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: devices__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: facility_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: has_devices - schema: - type: boolean - description: Has devices - - in: query - name: has_power_feeds - schema: - type: boolean - description: Has power feeds - - in: query - name: has_reservations - schema: - type: boolean - description: Has reservations - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: outer_depth - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_unit - schema: - type: string - - in: query - name: outer_unit__n - schema: - type: string - - in: query - name: outer_width - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: power_feeds - schema: - type: array - items: - type: string - format: uuid - description: Power feeds (name or ID) - explode: true - style: form - - in: query - name: power_feeds__n - schema: - type: array - items: - type: string - format: uuid - description: Power feeds (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: reservations - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: reservations__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: serial - schema: - type: string - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: u_height - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: width - schema: - type: array - items: - type: integer - description: Rail-to-rail width - explode: true - style: form - - in: query - name: width__n - schema: - type: array - items: - type: integer - description: Rail-to-rail width - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRackList' - description: '' - post: - operationId: dcim_racks_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRackRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Rack' - description: '' - put: - operationId: dcim_racks_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRackRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Rack' - description: '' - patch: - operationId: dcim_racks_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRackRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Rack' - description: '' - delete: - operationId: dcim_racks_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/racks/{id}/: - get: - operationId: dcim_racks_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Rack' - description: '' - put: - operationId: dcim_racks_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRackRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Rack' - description: '' - patch: - operationId: dcim_racks_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Rack' - description: '' - delete: - operationId: dcim_racks_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/racks/{id}/elevation/: - get: - operationId: dcim_racks_elevation_list - description: Rack elevation representing the list of rack units. Also supports - rendering the elevation as an SVG. - parameters: - - in: query - name: asset_tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: desc_units - schema: - type: boolean - - in: query - name: devices - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: devices__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: display_fullname - schema: - type: boolean - default: true - - in: query - name: exclude - schema: - type: string - format: uuid - - in: query - name: expand_devices - schema: - type: boolean - default: true - - in: query - name: face - schema: - enum: - - front - - rear - type: string - default: front - minLength: 1 - - in: query - name: facility_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: has_devices - schema: - type: boolean - description: Has devices - - in: query - name: has_power_feeds - schema: - type: boolean - description: Has power feeds - - in: query - name: has_reservations - schema: - type: boolean - description: Has reservations - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack. - required: true - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: include_images - schema: - type: boolean - default: true - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - in: query - name: legend_width - schema: - type: integer - default: 30 - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: outer_depth - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_depth__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_unit - schema: - type: string - - in: query - name: outer_unit__n - schema: - type: string - - in: query - name: outer_width - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: outer_width__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: power_feeds - schema: - type: array - items: - type: string - format: uuid - description: Power feeds (name or ID) - explode: true - style: form - - in: query - name: power_feeds__n - schema: - type: array - items: - type: string - format: uuid - description: Power feeds (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - minLength: 1 - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: render - schema: - enum: - - json - - svg - type: string - default: json - minLength: 1 - - in: query - name: reservations - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: reservations__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: serial - schema: - type: string - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: u_height - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: u_height__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: unit_height - schema: - type: integer - - in: query - name: unit_width - schema: - type: integer - - in: query - name: width - schema: - type: array - items: - type: integer - description: Rail-to-rail width - explode: true - style: form - - in: query - name: width__n - schema: - type: array - items: - type: integer - description: Rail-to-rail width - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRackUnitList' - description: '' - /dcim/racks/{id}/notes/: - get: - operationId: dcim_racks_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_racks_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rack. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/rear-port-templates/: - get: - operationId: dcim_rear_port_templates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - description: Description - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (slug or ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: front_port_templates - schema: - type: array - items: - type: string - format: uuid - description: Front port templates - explode: true - style: form - - in: query - name: front_port_templates__n - schema: - type: array - items: - type: string - format: uuid - description: Front port templates - explode: true - style: form - - in: query - name: has_front_port_templates - schema: - type: boolean - description: Has front port templates - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - description: ID - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - description: Label - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - description: Name - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: positions - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRearPortTemplateList' - description: '' - post: - operationId: dcim_rear_port_templates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPortTemplate' - description: '' - put: - operationId: dcim_rear_port_templates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRearPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RearPortTemplate' - description: '' - patch: - operationId: dcim_rear_port_templates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRearPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RearPortTemplate' - description: '' - delete: - operationId: dcim_rear_port_templates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/rear-port-templates/{id}/: - get: - operationId: dcim_rear_port_templates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPortTemplate' - description: '' - put: - operationId: dcim_rear_port_templates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPortTemplate' - description: '' - patch: - operationId: dcim_rear_port_templates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPortTemplate' - description: '' - delete: - operationId: dcim_rear_port_templates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/rear-port-templates/{id}/notes/: - get: - operationId: dcim_rear_port_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_rear_port_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/rear-ports/: - get: - operationId: dcim_rear_ports_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: cable - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cable__n - schema: - type: array - items: - type: string - format: uuid - description: Cable - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: front_ports - schema: - type: array - items: - type: string - format: uuid - description: Front ports (name or ID) - explode: true - style: form - - in: query - name: front_ports__n - schema: - type: array - items: - type: string - format: uuid - description: Front ports (name or ID) - explode: true - style: form - - in: query - name: has_front_ports - schema: - type: boolean - description: Has front ports - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: positions - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: positions__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: string - - in: query - name: type__n - schema: - type: string - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRearPortList' - description: '' - post: - operationId: dcim_rear_ports_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRearPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - put: - operationId: dcim_rear_ports_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRearPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RearPort' - description: '' - patch: - operationId: dcim_rear_ports_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRearPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RearPort' - description: '' - delete: - operationId: dcim_rear_ports_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/rear-ports/{id}/: - get: - operationId: dcim_rear_ports_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - put: - operationId: dcim_rear_ports_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRearPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - patch: - operationId: dcim_rear_ports_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - delete: - operationId: dcim_rear_ports_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/rear-ports/{id}/notes/: - get: - operationId: dcim_rear_ports_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_rear_ports_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/rear-ports/{id}/paths/: - get: - operationId: dcim_rear_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this rear port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - /dcim/regions/: - get: - operationId: dcim_regions_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: children - schema: - type: array - items: - type: string - format: uuid - description: Children (slug or ID) - explode: true - style: form - - in: query - name: children__n - schema: - type: array - items: - type: string - format: uuid - description: Children (slug or ID) - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: has_children - schema: - type: boolean - description: Has children - - in: query - name: has_sites - schema: - type: boolean - description: Has sites - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent - schema: - type: array - items: - type: string - description: Parent region (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Parent region (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent region (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent region (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: sites - schema: - type: array - items: - type: string - format: uuid - description: Sites (slug or ID) - explode: true - style: form - - in: query - name: sites__n - schema: - type: array - items: - type: string - format: uuid - description: Sites (slug or ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRegionList' - description: '' - post: - operationId: dcim_regions_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/regions/{id}/: - get: - operationId: dcim_regions_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/regions/{id}/notes/: - get: - operationId: dcim_regions_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this region. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_regions_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/sites/: - get: - operationId: dcim_sites_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: asn - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: circuit_terminations - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: circuit_terminations__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: clusters - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: clusters__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_email__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_phone__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: devices - schema: - type: array - items: - type: string - format: uuid - description: Devices (name or ID) - explode: true - style: form - - in: query - name: devices__n - schema: - type: array - items: - type: string - format: uuid - description: Devices (name or ID) - explode: true - style: form - - in: query - name: facility - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: has_circuit_terminations - schema: - type: boolean - description: Has circuit terminations - - in: query - name: has_clusters - schema: - type: boolean - description: Has clusters - - in: query - name: has_devices - schema: - type: boolean - description: Has devices - - in: query - name: has_locations - schema: - type: boolean - description: Has locations - - in: query - name: has_power_panels - schema: - type: boolean - description: Has power panels - - in: query - name: has_prefixes - schema: - type: boolean - description: Has prefixes - - in: query - name: has_rack_groups - schema: - type: boolean - description: Has rack groups - - in: query - name: has_racks - schema: - type: boolean - description: Has racks - - in: query - name: has_vlan_groups - schema: - type: boolean - description: Has vlan groups - - in: query - name: has_vlans - schema: - type: boolean - description: Has vlans - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - in: query - name: latitude - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: latitude__gt - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: latitude__gte - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: latitude__lt - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: latitude__lte - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: latitude__n - schema: - type: array - items: - type: number - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: locations - schema: - type: array - items: - type: string - format: uuid - description: Locations within this Site (slugs or IDs) - explode: true - style: form - - in: query - name: locations__n - schema: - type: array - items: - type: string - format: uuid - description: Locations within this Site (slugs or IDs) - explode: true - style: form - - in: query - name: longitude - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: longitude__gt - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: longitude__gte - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: longitude__lt - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: longitude__lte - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: longitude__n - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: physical_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: power_panels - schema: - type: array - items: - type: string - format: uuid - description: Power panels (name or ID) - explode: true - style: form - - in: query - name: power_panels__n - schema: - type: array - items: - type: string - format: uuid - description: Power panels (name or ID) - explode: true - style: form - - in: query - name: prefixes - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: prefixes__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_groups - schema: - type: array - items: - type: string - format: uuid - description: Rack groups (slug or ID) - explode: true - style: form - - in: query - name: rack_groups__n - schema: - type: array - items: - type: string - format: uuid - description: Rack groups (slug or ID) - explode: true - style: form - - in: query - name: racks - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: racks__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: shipping_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: shipping_address__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: time_zone - schema: - type: array - items: - enum: - - Africa/Abidjan - - Africa/Accra - - Africa/Addis_Ababa - - Africa/Algiers - - Africa/Asmara - - Africa/Bamako - - Africa/Bangui - - Africa/Banjul - - Africa/Bissau - - Africa/Blantyre - - Africa/Brazzaville - - Africa/Bujumbura - - Africa/Cairo - - Africa/Casablanca - - Africa/Ceuta - - Africa/Conakry - - Africa/Dakar - - Africa/Dar_es_Salaam - - Africa/Djibouti - - Africa/Douala - - Africa/El_Aaiun - - Africa/Freetown - - Africa/Gaborone - - Africa/Harare - - Africa/Johannesburg - - Africa/Juba - - Africa/Kampala - - Africa/Khartoum - - Africa/Kigali - - Africa/Kinshasa - - Africa/Lagos - - Africa/Libreville - - Africa/Lome - - Africa/Luanda - - Africa/Lubumbashi - - Africa/Lusaka - - Africa/Malabo - - Africa/Maputo - - Africa/Maseru - - Africa/Mbabane - - Africa/Mogadishu - - Africa/Monrovia - - Africa/Nairobi - - Africa/Ndjamena - - Africa/Niamey - - Africa/Nouakchott - - Africa/Ouagadougou - - Africa/Porto-Novo - - Africa/Sao_Tome - - Africa/Tripoli - - Africa/Tunis - - Africa/Windhoek - - America/Adak - - America/Anchorage - - America/Anguilla - - America/Antigua - - America/Araguaina - - America/Argentina/Buenos_Aires - - America/Argentina/Catamarca - - America/Argentina/Cordoba - - America/Argentina/Jujuy - - America/Argentina/La_Rioja - - America/Argentina/Mendoza - - America/Argentina/Rio_Gallegos - - America/Argentina/Salta - - America/Argentina/San_Juan - - America/Argentina/San_Luis - - America/Argentina/Tucuman - - America/Argentina/Ushuaia - - America/Aruba - - America/Asuncion - - America/Atikokan - - America/Bahia - - America/Bahia_Banderas - - America/Barbados - - America/Belem - - America/Belize - - America/Blanc-Sablon - - America/Boa_Vista - - America/Bogota - - America/Boise - - America/Cambridge_Bay - - America/Campo_Grande - - America/Cancun - - America/Caracas - - America/Cayenne - - America/Cayman - - America/Chicago - - America/Chihuahua - - America/Ciudad_Juarez - - America/Costa_Rica - - America/Creston - - America/Cuiaba - - America/Curacao - - America/Danmarkshavn - - America/Dawson - - America/Dawson_Creek - - America/Denver - - America/Detroit - - America/Dominica - - America/Edmonton - - America/Eirunepe - - America/El_Salvador - - America/Fort_Nelson - - America/Fortaleza - - America/Glace_Bay - - America/Goose_Bay - - America/Grand_Turk - - America/Grenada - - America/Guadeloupe - - America/Guatemala - - America/Guayaquil - - America/Guyana - - America/Halifax - - America/Havana - - America/Hermosillo - - America/Indiana/Indianapolis - - America/Indiana/Knox - - America/Indiana/Marengo - - America/Indiana/Petersburg - - America/Indiana/Tell_City - - America/Indiana/Vevay - - America/Indiana/Vincennes - - America/Indiana/Winamac - - America/Inuvik - - America/Iqaluit - - America/Jamaica - - America/Juneau - - America/Kentucky/Louisville - - America/Kentucky/Monticello - - America/Kralendijk - - America/La_Paz - - America/Lima - - America/Los_Angeles - - America/Lower_Princes - - America/Maceio - - America/Managua - - America/Manaus - - America/Marigot - - America/Martinique - - America/Matamoros - - America/Mazatlan - - America/Menominee - - America/Merida - - America/Metlakatla - - America/Mexico_City - - America/Miquelon - - America/Moncton - - America/Monterrey - - America/Montevideo - - America/Montserrat - - America/Nassau - - America/New_York - - America/Nome - - America/Noronha - - America/North_Dakota/Beulah - - America/North_Dakota/Center - - America/North_Dakota/New_Salem - - America/Nuuk - - America/Ojinaga - - America/Panama - - America/Paramaribo - - America/Phoenix - - America/Port-au-Prince - - America/Port_of_Spain - - America/Porto_Velho - - America/Puerto_Rico - - America/Punta_Arenas - - America/Rankin_Inlet - - America/Recife - - America/Regina - - America/Resolute - - America/Rio_Branco - - America/Santarem - - America/Santiago - - America/Santo_Domingo - - America/Sao_Paulo - - America/Scoresbysund - - America/Sitka - - America/St_Barthelemy - - America/St_Johns - - America/St_Kitts - - America/St_Lucia - - America/St_Thomas - - America/St_Vincent - - America/Swift_Current - - America/Tegucigalpa - - America/Thule - - America/Tijuana - - America/Toronto - - America/Tortola - - America/Vancouver - - America/Whitehorse - - America/Winnipeg - - America/Yakutat - - America/Yellowknife - - Antarctica/Casey - - Antarctica/Davis - - Antarctica/DumontDUrville - - Antarctica/Macquarie - - Antarctica/Mawson - - Antarctica/McMurdo - - Antarctica/Palmer - - Antarctica/Rothera - - Antarctica/Syowa - - Antarctica/Troll - - Antarctica/Vostok - - Arctic/Longyearbyen - - Asia/Aden - - Asia/Almaty - - Asia/Amman - - Asia/Anadyr - - Asia/Aqtau - - Asia/Aqtobe - - Asia/Ashgabat - - Asia/Atyrau - - Asia/Baghdad - - Asia/Bahrain - - Asia/Baku - - Asia/Bangkok - - Asia/Barnaul - - Asia/Beirut - - Asia/Bishkek - - Asia/Brunei - - Asia/Chita - - Asia/Choibalsan - - Asia/Colombo - - Asia/Damascus - - Asia/Dhaka - - Asia/Dili - - Asia/Dubai - - Asia/Dushanbe - - Asia/Famagusta - - Asia/Gaza - - Asia/Hebron - - Asia/Ho_Chi_Minh - - Asia/Hong_Kong - - Asia/Hovd - - Asia/Irkutsk - - Asia/Jakarta - - Asia/Jayapura - - Asia/Jerusalem - - Asia/Kabul - - Asia/Kamchatka - - Asia/Karachi - - Asia/Kathmandu - - Asia/Khandyga - - Asia/Kolkata - - Asia/Krasnoyarsk - - Asia/Kuala_Lumpur - - Asia/Kuching - - Asia/Kuwait - - Asia/Macau - - Asia/Magadan - - Asia/Makassar - - Asia/Manila - - Asia/Muscat - - Asia/Nicosia - - Asia/Novokuznetsk - - Asia/Novosibirsk - - Asia/Omsk - - Asia/Oral - - Asia/Phnom_Penh - - Asia/Pontianak - - Asia/Pyongyang - - Asia/Qatar - - Asia/Qostanay - - Asia/Qyzylorda - - Asia/Riyadh - - Asia/Sakhalin - - Asia/Samarkand - - Asia/Seoul - - Asia/Shanghai - - Asia/Singapore - - Asia/Srednekolymsk - - Asia/Taipei - - Asia/Tashkent - - Asia/Tbilisi - - Asia/Tehran - - Asia/Thimphu - - Asia/Tokyo - - Asia/Tomsk - - Asia/Ulaanbaatar - - Asia/Urumqi - - Asia/Ust-Nera - - Asia/Vientiane - - Asia/Vladivostok - - Asia/Yakutsk - - Asia/Yangon - - Asia/Yekaterinburg - - Asia/Yerevan - - Atlantic/Azores - - Atlantic/Bermuda - - Atlantic/Canary - - Atlantic/Cape_Verde - - Atlantic/Faroe - - Atlantic/Madeira - - Atlantic/Reykjavik - - Atlantic/South_Georgia - - Atlantic/St_Helena - - Atlantic/Stanley - - Australia/Adelaide - - Australia/Brisbane - - Australia/Broken_Hill - - Australia/Darwin - - Australia/Eucla - - Australia/Hobart - - Australia/Lindeman - - Australia/Lord_Howe - - Australia/Melbourne - - Australia/Perth - - Australia/Sydney - - Canada/Atlantic - - Canada/Central - - Canada/Eastern - - Canada/Mountain - - Canada/Newfoundland - - Canada/Pacific - - Europe/Amsterdam - - Europe/Andorra - - Europe/Astrakhan - - Europe/Athens - - Europe/Belgrade - - Europe/Berlin - - Europe/Bratislava - - Europe/Brussels - - Europe/Bucharest - - Europe/Budapest - - Europe/Busingen - - Europe/Chisinau - - Europe/Copenhagen - - Europe/Dublin - - Europe/Gibraltar - - Europe/Guernsey - - Europe/Helsinki - - Europe/Isle_of_Man - - Europe/Istanbul - - Europe/Jersey - - Europe/Kaliningrad - - Europe/Kirov - - Europe/Kyiv - - Europe/Lisbon - - Europe/Ljubljana - - Europe/London - - Europe/Luxembourg - - Europe/Madrid - - Europe/Malta - - Europe/Mariehamn - - Europe/Minsk - - Europe/Monaco - - Europe/Moscow - - Europe/Oslo - - Europe/Paris - - Europe/Podgorica - - Europe/Prague - - Europe/Riga - - Europe/Rome - - Europe/Samara - - Europe/San_Marino - - Europe/Sarajevo - - Europe/Saratov - - Europe/Simferopol - - Europe/Skopje - - Europe/Sofia - - Europe/Stockholm - - Europe/Tallinn - - Europe/Tirane - - Europe/Ulyanovsk - - Europe/Vaduz - - Europe/Vatican - - Europe/Vienna - - Europe/Vilnius - - Europe/Volgograd - - Europe/Warsaw - - Europe/Zagreb - - Europe/Zurich - - GMT - - Indian/Antananarivo - - Indian/Chagos - - Indian/Christmas - - Indian/Cocos - - Indian/Comoro - - Indian/Kerguelen - - Indian/Mahe - - Indian/Maldives - - Indian/Mauritius - - Indian/Mayotte - - Indian/Reunion - - Pacific/Apia - - Pacific/Auckland - - Pacific/Bougainville - - Pacific/Chatham - - Pacific/Chuuk - - Pacific/Easter - - Pacific/Efate - - Pacific/Fakaofo - - Pacific/Fiji - - Pacific/Funafuti - - Pacific/Galapagos - - Pacific/Gambier - - Pacific/Guadalcanal - - Pacific/Guam - - Pacific/Honolulu - - Pacific/Kanton - - Pacific/Kiritimati - - Pacific/Kosrae - - Pacific/Kwajalein - - Pacific/Majuro - - Pacific/Marquesas - - Pacific/Midway - - Pacific/Nauru - - Pacific/Niue - - Pacific/Norfolk - - Pacific/Noumea - - Pacific/Pago_Pago - - Pacific/Palau - - Pacific/Pitcairn - - Pacific/Pohnpei - - Pacific/Port_Moresby - - Pacific/Rarotonga - - Pacific/Saipan - - Pacific/Tahiti - - Pacific/Tarawa - - Pacific/Tongatapu - - Pacific/Wake - - Pacific/Wallis - - US/Alaska - - US/Arizona - - US/Central - - US/Eastern - - US/Hawaii - - US/Mountain - - US/Pacific - - UTC - description: Time zone - explode: true - style: form - - in: query - name: time_zone__n - schema: - type: array - items: - enum: - - Africa/Abidjan - - Africa/Accra - - Africa/Addis_Ababa - - Africa/Algiers - - Africa/Asmara - - Africa/Bamako - - Africa/Bangui - - Africa/Banjul - - Africa/Bissau - - Africa/Blantyre - - Africa/Brazzaville - - Africa/Bujumbura - - Africa/Cairo - - Africa/Casablanca - - Africa/Ceuta - - Africa/Conakry - - Africa/Dakar - - Africa/Dar_es_Salaam - - Africa/Djibouti - - Africa/Douala - - Africa/El_Aaiun - - Africa/Freetown - - Africa/Gaborone - - Africa/Harare - - Africa/Johannesburg - - Africa/Juba - - Africa/Kampala - - Africa/Khartoum - - Africa/Kigali - - Africa/Kinshasa - - Africa/Lagos - - Africa/Libreville - - Africa/Lome - - Africa/Luanda - - Africa/Lubumbashi - - Africa/Lusaka - - Africa/Malabo - - Africa/Maputo - - Africa/Maseru - - Africa/Mbabane - - Africa/Mogadishu - - Africa/Monrovia - - Africa/Nairobi - - Africa/Ndjamena - - Africa/Niamey - - Africa/Nouakchott - - Africa/Ouagadougou - - Africa/Porto-Novo - - Africa/Sao_Tome - - Africa/Tripoli - - Africa/Tunis - - Africa/Windhoek - - America/Adak - - America/Anchorage - - America/Anguilla - - America/Antigua - - America/Araguaina - - America/Argentina/Buenos_Aires - - America/Argentina/Catamarca - - America/Argentina/Cordoba - - America/Argentina/Jujuy - - America/Argentina/La_Rioja - - America/Argentina/Mendoza - - America/Argentina/Rio_Gallegos - - America/Argentina/Salta - - America/Argentina/San_Juan - - America/Argentina/San_Luis - - America/Argentina/Tucuman - - America/Argentina/Ushuaia - - America/Aruba - - America/Asuncion - - America/Atikokan - - America/Bahia - - America/Bahia_Banderas - - America/Barbados - - America/Belem - - America/Belize - - America/Blanc-Sablon - - America/Boa_Vista - - America/Bogota - - America/Boise - - America/Cambridge_Bay - - America/Campo_Grande - - America/Cancun - - America/Caracas - - America/Cayenne - - America/Cayman - - America/Chicago - - America/Chihuahua - - America/Ciudad_Juarez - - America/Costa_Rica - - America/Creston - - America/Cuiaba - - America/Curacao - - America/Danmarkshavn - - America/Dawson - - America/Dawson_Creek - - America/Denver - - America/Detroit - - America/Dominica - - America/Edmonton - - America/Eirunepe - - America/El_Salvador - - America/Fort_Nelson - - America/Fortaleza - - America/Glace_Bay - - America/Goose_Bay - - America/Grand_Turk - - America/Grenada - - America/Guadeloupe - - America/Guatemala - - America/Guayaquil - - America/Guyana - - America/Halifax - - America/Havana - - America/Hermosillo - - America/Indiana/Indianapolis - - America/Indiana/Knox - - America/Indiana/Marengo - - America/Indiana/Petersburg - - America/Indiana/Tell_City - - America/Indiana/Vevay - - America/Indiana/Vincennes - - America/Indiana/Winamac - - America/Inuvik - - America/Iqaluit - - America/Jamaica - - America/Juneau - - America/Kentucky/Louisville - - America/Kentucky/Monticello - - America/Kralendijk - - America/La_Paz - - America/Lima - - America/Los_Angeles - - America/Lower_Princes - - America/Maceio - - America/Managua - - America/Manaus - - America/Marigot - - America/Martinique - - America/Matamoros - - America/Mazatlan - - America/Menominee - - America/Merida - - America/Metlakatla - - America/Mexico_City - - America/Miquelon - - America/Moncton - - America/Monterrey - - America/Montevideo - - America/Montserrat - - America/Nassau - - America/New_York - - America/Nome - - America/Noronha - - America/North_Dakota/Beulah - - America/North_Dakota/Center - - America/North_Dakota/New_Salem - - America/Nuuk - - America/Ojinaga - - America/Panama - - America/Paramaribo - - America/Phoenix - - America/Port-au-Prince - - America/Port_of_Spain - - America/Porto_Velho - - America/Puerto_Rico - - America/Punta_Arenas - - America/Rankin_Inlet - - America/Recife - - America/Regina - - America/Resolute - - America/Rio_Branco - - America/Santarem - - America/Santiago - - America/Santo_Domingo - - America/Sao_Paulo - - America/Scoresbysund - - America/Sitka - - America/St_Barthelemy - - America/St_Johns - - America/St_Kitts - - America/St_Lucia - - America/St_Thomas - - America/St_Vincent - - America/Swift_Current - - America/Tegucigalpa - - America/Thule - - America/Tijuana - - America/Toronto - - America/Tortola - - America/Vancouver - - America/Whitehorse - - America/Winnipeg - - America/Yakutat - - America/Yellowknife - - Antarctica/Casey - - Antarctica/Davis - - Antarctica/DumontDUrville - - Antarctica/Macquarie - - Antarctica/Mawson - - Antarctica/McMurdo - - Antarctica/Palmer - - Antarctica/Rothera - - Antarctica/Syowa - - Antarctica/Troll - - Antarctica/Vostok - - Arctic/Longyearbyen - - Asia/Aden - - Asia/Almaty - - Asia/Amman - - Asia/Anadyr - - Asia/Aqtau - - Asia/Aqtobe - - Asia/Ashgabat - - Asia/Atyrau - - Asia/Baghdad - - Asia/Bahrain - - Asia/Baku - - Asia/Bangkok - - Asia/Barnaul - - Asia/Beirut - - Asia/Bishkek - - Asia/Brunei - - Asia/Chita - - Asia/Choibalsan - - Asia/Colombo - - Asia/Damascus - - Asia/Dhaka - - Asia/Dili - - Asia/Dubai - - Asia/Dushanbe - - Asia/Famagusta - - Asia/Gaza - - Asia/Hebron - - Asia/Ho_Chi_Minh - - Asia/Hong_Kong - - Asia/Hovd - - Asia/Irkutsk - - Asia/Jakarta - - Asia/Jayapura - - Asia/Jerusalem - - Asia/Kabul - - Asia/Kamchatka - - Asia/Karachi - - Asia/Kathmandu - - Asia/Khandyga - - Asia/Kolkata - - Asia/Krasnoyarsk - - Asia/Kuala_Lumpur - - Asia/Kuching - - Asia/Kuwait - - Asia/Macau - - Asia/Magadan - - Asia/Makassar - - Asia/Manila - - Asia/Muscat - - Asia/Nicosia - - Asia/Novokuznetsk - - Asia/Novosibirsk - - Asia/Omsk - - Asia/Oral - - Asia/Phnom_Penh - - Asia/Pontianak - - Asia/Pyongyang - - Asia/Qatar - - Asia/Qostanay - - Asia/Qyzylorda - - Asia/Riyadh - - Asia/Sakhalin - - Asia/Samarkand - - Asia/Seoul - - Asia/Shanghai - - Asia/Singapore - - Asia/Srednekolymsk - - Asia/Taipei - - Asia/Tashkent - - Asia/Tbilisi - - Asia/Tehran - - Asia/Thimphu - - Asia/Tokyo - - Asia/Tomsk - - Asia/Ulaanbaatar - - Asia/Urumqi - - Asia/Ust-Nera - - Asia/Vientiane - - Asia/Vladivostok - - Asia/Yakutsk - - Asia/Yangon - - Asia/Yekaterinburg - - Asia/Yerevan - - Atlantic/Azores - - Atlantic/Bermuda - - Atlantic/Canary - - Atlantic/Cape_Verde - - Atlantic/Faroe - - Atlantic/Madeira - - Atlantic/Reykjavik - - Atlantic/South_Georgia - - Atlantic/St_Helena - - Atlantic/Stanley - - Australia/Adelaide - - Australia/Brisbane - - Australia/Broken_Hill - - Australia/Darwin - - Australia/Eucla - - Australia/Hobart - - Australia/Lindeman - - Australia/Lord_Howe - - Australia/Melbourne - - Australia/Perth - - Australia/Sydney - - Canada/Atlantic - - Canada/Central - - Canada/Eastern - - Canada/Mountain - - Canada/Newfoundland - - Canada/Pacific - - Europe/Amsterdam - - Europe/Andorra - - Europe/Astrakhan - - Europe/Athens - - Europe/Belgrade - - Europe/Berlin - - Europe/Bratislava - - Europe/Brussels - - Europe/Bucharest - - Europe/Budapest - - Europe/Busingen - - Europe/Chisinau - - Europe/Copenhagen - - Europe/Dublin - - Europe/Gibraltar - - Europe/Guernsey - - Europe/Helsinki - - Europe/Isle_of_Man - - Europe/Istanbul - - Europe/Jersey - - Europe/Kaliningrad - - Europe/Kirov - - Europe/Kyiv - - Europe/Lisbon - - Europe/Ljubljana - - Europe/London - - Europe/Luxembourg - - Europe/Madrid - - Europe/Malta - - Europe/Mariehamn - - Europe/Minsk - - Europe/Monaco - - Europe/Moscow - - Europe/Oslo - - Europe/Paris - - Europe/Podgorica - - Europe/Prague - - Europe/Riga - - Europe/Rome - - Europe/Samara - - Europe/San_Marino - - Europe/Sarajevo - - Europe/Saratov - - Europe/Simferopol - - Europe/Skopje - - Europe/Sofia - - Europe/Stockholm - - Europe/Tallinn - - Europe/Tirane - - Europe/Ulyanovsk - - Europe/Vaduz - - Europe/Vatican - - Europe/Vienna - - Europe/Vilnius - - Europe/Volgograd - - Europe/Warsaw - - Europe/Zagreb - - Europe/Zurich - - GMT - - Indian/Antananarivo - - Indian/Chagos - - Indian/Christmas - - Indian/Cocos - - Indian/Comoro - - Indian/Kerguelen - - Indian/Mahe - - Indian/Maldives - - Indian/Mauritius - - Indian/Mayotte - - Indian/Reunion - - Pacific/Apia - - Pacific/Auckland - - Pacific/Bougainville - - Pacific/Chatham - - Pacific/Chuuk - - Pacific/Easter - - Pacific/Efate - - Pacific/Fakaofo - - Pacific/Fiji - - Pacific/Funafuti - - Pacific/Galapagos - - Pacific/Gambier - - Pacific/Guadalcanal - - Pacific/Guam - - Pacific/Honolulu - - Pacific/Kanton - - Pacific/Kiritimati - - Pacific/Kosrae - - Pacific/Kwajalein - - Pacific/Majuro - - Pacific/Marquesas - - Pacific/Midway - - Pacific/Nauru - - Pacific/Niue - - Pacific/Norfolk - - Pacific/Noumea - - Pacific/Pago_Pago - - Pacific/Palau - - Pacific/Pitcairn - - Pacific/Pohnpei - - Pacific/Port_Moresby - - Pacific/Rarotonga - - Pacific/Saipan - - Pacific/Tahiti - - Pacific/Tarawa - - Pacific/Tongatapu - - Pacific/Wake - - Pacific/Wallis - - US/Alaska - - US/Arizona - - US/Central - - US/Eastern - - US/Hawaii - - US/Mountain - - US/Pacific - - UTC - description: Time zone - explode: true - style: form - - in: query - name: vlan_groups - schema: - type: array - items: - type: string - format: uuid - description: Vlan groups (slug or ID) - explode: true - style: form - - in: query - name: vlan_groups__n - schema: - type: array - items: - type: string - format: uuid - description: Vlan groups (slug or ID) - explode: true - style: form - - in: query - name: vlans - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: vlans__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedSiteList' - description: '' - post: - operationId: dcim_sites_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSiteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Site' - description: '' - put: - operationId: dcim_sites_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableSiteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Site' - description: '' - patch: - operationId: dcim_sites_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableSiteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Site' - description: '' - delete: - operationId: dcim_sites_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/sites/{id}/: - get: - operationId: dcim_sites_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this site. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Site' - description: '' - put: - operationId: dcim_sites_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this site. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSiteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Site' - description: '' - patch: - operationId: dcim_sites_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this site. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Site' - description: '' - delete: - operationId: dcim_sites_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this site. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/sites/{id}/notes/: - get: - operationId: dcim_sites_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this site. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_sites_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this site. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /dcim/virtual-chassis/: - get: - operationId: dcim_virtual_chassis_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: domain - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: domain__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: has_members - schema: - type: boolean - description: Has device members - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: master - schema: - type: array - items: - type: string - nullable: true - description: Master (name) - explode: true - style: form - - in: query - name: master__n - schema: - type: array - items: - type: string - nullable: true - description: Master (name) - explode: true - style: form - - in: query - name: master_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Master (ID) - explode: true - style: form - - in: query - name: master_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Master (ID) - explode: true - style: form - - in: query - name: members - schema: - type: array - items: - type: string - format: uuid - description: Device members (name or ID) - explode: true - style: form - - in: query - name: members__n - schema: - type: array - items: - type: string - format: uuid - description: Device members (name or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (ID) - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedVirtualChassisList' - description: '' - post: - operationId: dcim_virtual_chassis_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualChassis' - description: '' - put: - operationId: dcim_virtual_chassis_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableVirtualChassisRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualChassis' - description: '' - patch: - operationId: dcim_virtual_chassis_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableVirtualChassisRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualChassis' - description: '' - delete: - operationId: dcim_virtual_chassis_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /dcim/virtual-chassis/{id}/: - get: - operationId: dcim_virtual_chassis_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual chassis. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualChassis' - description: '' - put: - operationId: dcim_virtual_chassis_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual chassis. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualChassis' - description: '' - patch: - operationId: dcim_virtual_chassis_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual chassis. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualChassis' - description: '' - delete: - operationId: dcim_virtual_chassis_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual chassis. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /dcim/virtual-chassis/{id}/notes/: - get: - operationId: dcim_virtual_chassis_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual chassis. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: dcim_virtual_chassis_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual chassis. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/computed-fields/: - get: - operationId: extras_computed_fields_list - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: query - name: content_type - schema: - type: string - - in: query - name: content_type__n - schema: - type: string - - in: query - name: fallback_value - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fallback_value__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: template__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: weight - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedComputedFieldList' - description: '' - post: - operationId: extras_computed_fields_create - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComputedFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComputedField' - description: '' - put: - operationId: extras_computed_fields_bulk_update - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableComputedFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ComputedField' - description: '' - patch: - operationId: extras_computed_fields_bulk_partial_update - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableComputedFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ComputedField' - description: '' - delete: - operationId: extras_computed_fields_bulk_destroy - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/computed-fields/{id}/: - get: - operationId: extras_computed_fields_retrieve - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this computed field. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComputedField' - description: '' - put: - operationId: extras_computed_fields_update - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this computed field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComputedFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComputedField' - description: '' - patch: - operationId: extras_computed_fields_partial_update - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this computed field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedComputedFieldRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComputedField' - description: '' - delete: - operationId: extras_computed_fields_destroy - description: Manage Computed Fields through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this computed field. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/computed-fields/{id}/notes/: - get: - operationId: extras_computed_fields_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this computed field. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_computed_fields_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this computed field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/config-context-schemas/: - get: - operationId: extras_config_context_schemas_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: owner_content_type - schema: - type: string - - in: query - name: owner_content_type__n - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConfigContextSchemaList' - description: '' - post: - operationId: extras_config_context_schemas_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextSchemaRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContextSchema' - description: '' - put: - operationId: extras_config_context_schemas_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConfigContextSchemaRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextSchema' - description: '' - patch: - operationId: extras_config_context_schemas_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConfigContextSchemaRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextSchema' - description: '' - delete: - operationId: extras_config_context_schemas_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/config-context-schemas/{id}/: - get: - operationId: extras_config_context_schemas_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context schema. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContextSchema' - description: '' - put: - operationId: extras_config_context_schemas_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context schema. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextSchemaRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContextSchema' - description: '' - patch: - operationId: extras_config_context_schemas_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context schema. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedConfigContextSchemaRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContextSchema' - description: '' - delete: - operationId: extras_config_context_schemas_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context schema. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/config-context-schemas/{id}/notes/: - get: - operationId: extras_config_context_schemas_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context schema. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_config_context_schemas_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context schema. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/config-contexts/: - get: - operationId: extras_config_contexts_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: cluster_group - schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form - - in: query - name: cluster_group__n - schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form - - in: query - name: cluster_group_id - schema: - type: array - items: - type: string - format: uuid - description: Cluster group - explode: true - style: form - - in: query - name: cluster_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Cluster group - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: string - format: uuid - description: Cluster - explode: true - style: form - - in: query - name: cluster_id__n - schema: - type: array - items: - type: string - format: uuid - description: Cluster - explode: true - style: form - - in: query - name: device_redundancy_group - schema: - type: array - items: - type: string - format: uuid - description: Device Redundancy Group (slug or PK) - explode: true - style: form - - in: query - name: device_redundancy_group__n - schema: - type: array - items: - type: string - format: uuid - description: Device Redundancy Group (slug or PK) - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device Type (slug) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device Type (slug) - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: string - format: uuid - description: Device Type - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device Type - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: is_active - schema: - type: boolean - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: string - format: uuid - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: string - format: uuid - description: Location (ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: owner_content_type - schema: - type: string - - in: query - name: owner_content_type__n - schema: - type: string - - in: query - name: owner_object_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform__n - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: string - format: uuid - description: Platform - explode: true - style: form - - in: query - name: platform_id__n - schema: - type: array - items: - type: string - format: uuid - description: Platform - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: string - format: uuid - description: Role - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: string - format: uuid - description: Role - explode: true - style: form - - in: query - name: schema - schema: - type: array - items: - type: string - format: uuid - description: Schema (slug or PK) - explode: true - style: form - - in: query - name: schema__n - schema: - type: array - items: - type: string - format: uuid - description: Schema (slug or PK) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - description: Site - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - description: Tag (slug) - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - description: Tag (slug) - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - description: Tenant group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - description: Tenant group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant group - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant group - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConfigContextList' - description: '' - post: - operationId: extras_config_contexts_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - put: - operationId: extras_config_contexts_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContext' - description: '' - patch: - operationId: extras_config_contexts_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContext' - description: '' - delete: - operationId: extras_config_contexts_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/config-contexts/{id}/: - get: - operationId: extras_config_contexts_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - put: - operationId: extras_config_contexts_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - patch: - operationId: extras_config_contexts_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConfigContextRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - delete: - operationId: extras_config_contexts_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/config-contexts/{id}/notes/: - get: - operationId: extras_config_contexts_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_config_contexts_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/content-types/: - get: - operationId: extras_content_types_list - description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent - to Nautobot objects. - parameters: - - in: query - name: app_label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: app_label__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: model - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: model__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedContentTypeList' - description: '' - /extras/content-types/{id}/: - get: - operationId: extras_content_types_retrieve - description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent - to Nautobot objects. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this content type. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContentType' - description: '' - /extras/custom-field-choices/: - get: - operationId: extras_custom_field_choices_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: field - schema: - type: array - items: - type: string - description: Field (name) - explode: true - style: form - - in: query - name: field__n - schema: - type: array - items: - type: string - description: Field (name) - explode: true - style: form - - in: query - name: field_id - schema: - type: array - items: - type: string - format: uuid - description: Field - explode: true - style: form - - in: query - name: field_id__n - schema: - type: array - items: - type: string - format: uuid - description: Field - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: value - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: weight - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCustomFieldChoiceList' - description: '' - post: - operationId: extras_custom_field_choices_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldChoice' - description: '' - put: - operationId: extras_custom_field_choices_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCustomFieldChoiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoice' - description: '' - patch: - operationId: extras_custom_field_choices_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCustomFieldChoiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoice' - description: '' - delete: - operationId: extras_custom_field_choices_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/custom-field-choices/{id}/: - get: - operationId: extras_custom_field_choices_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field choice. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldChoice' - description: '' - put: - operationId: extras_custom_field_choices_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field choice. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldChoice' - description: '' - patch: - operationId: extras_custom_field_choices_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field choice. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldChoice' - description: '' - delete: - operationId: extras_custom_field_choices_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field choice. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/custom-fields/: - get: - operationId: extras_custom_fields_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: content_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: filter_logic - schema: - type: string - description: Loose matches any instance of a given string; Exact matches the - entire field. - - in: query - name: filter_logic__n - schema: - type: string - description: Loose matches any instance of a given string; Exact matches the - entire field. - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: required - schema: - type: boolean - - in: query - name: weight - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCustomFieldSerializerVersion12List' - description: '' - post: - operationId: extras_custom_fields_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldSerializerVersion12Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldSerializerVersion12' - description: '' - put: - operationId: extras_custom_fields_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldSerializerVersion12Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldSerializerVersion12' - description: '' - patch: - operationId: extras_custom_fields_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldSerializerVersion12Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldSerializerVersion12' - description: '' - delete: - operationId: extras_custom_fields_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/custom-fields/{id}/: - get: - operationId: extras_custom_fields_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldSerializerVersion12' - description: '' - put: - operationId: extras_custom_fields_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldSerializerVersion12Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldSerializerVersion12' - description: '' - patch: - operationId: extras_custom_fields_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCustomFieldSerializerVersion12Request' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomFieldSerializerVersion12' - description: '' - delete: - operationId: extras_custom_fields_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/custom-fields/{id}/notes/: - get: - operationId: extras_custom_fields_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_custom_fields_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/custom-links/: - get: - operationId: extras_custom_links_list - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: query - name: button_class - schema: - type: string - description: The class of the first link in a group will be used for the dropdown - button - - in: query - name: button_class__n - schema: - type: string - description: The class of the first link in a group will be used for the dropdown - button - - in: query - name: content_type - schema: - type: string - - in: query - name: content_type__n - schema: - type: string - - in: query - name: group_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: new_window - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: target_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: target_url__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: text__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: weight - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCustomLinkList' - description: '' - post: - operationId: extras_custom_links_create - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomLink' - description: '' - put: - operationId: extras_custom_links_bulk_update - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCustomLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CustomLink' - description: '' - patch: - operationId: extras_custom_links_bulk_partial_update - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCustomLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CustomLink' - description: '' - delete: - operationId: extras_custom_links_bulk_destroy - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/custom-links/{id}/: - get: - operationId: extras_custom_links_retrieve - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom link. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomLink' - description: '' - put: - operationId: extras_custom_links_update - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom link. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomLink' - description: '' - patch: - operationId: extras_custom_links_partial_update - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom link. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CustomLink' - description: '' - delete: - operationId: extras_custom_links_destroy - description: Manage Custom Links through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom link. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/custom-links/{id}/notes/: - get: - operationId: extras_custom_links_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom link. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_custom_links_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this custom link. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/dynamic-group-memberships/: - get: - operationId: extras_dynamic_group_memberships_list - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: group - schema: - type: array - items: - type: string - format: uuid - description: Group (slug or ID) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - format: uuid - description: Group (slug or ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: operator - schema: - type: string - enum: - - difference - - intersection - - union - - in: query - name: operator__n - schema: - type: string - enum: - - difference - - intersection - - union - - in: query - name: parent_group - schema: - type: array - items: - type: string - format: uuid - description: Parent Group (slug or ID) - explode: true - style: form - - in: query - name: parent_group__n - schema: - type: array - items: - type: string - format: uuid - description: Parent Group (slug or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: weight - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDynamicGroupMembershipList' - description: '' - post: - operationId: extras_dynamic_group_memberships_create - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDynamicGroupMembershipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroupMembership' - description: '' - put: - operationId: extras_dynamic_group_memberships_bulk_update - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDynamicGroupMembershipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DynamicGroupMembership' - description: '' - patch: - operationId: extras_dynamic_group_memberships_bulk_partial_update - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDynamicGroupMembershipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DynamicGroupMembership' - description: '' - delete: - operationId: extras_dynamic_group_memberships_bulk_destroy - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/dynamic-group-memberships/{id}/: - get: - operationId: extras_dynamic_group_memberships_retrieve - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group membership. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroupMembership' - description: '' - put: - operationId: extras_dynamic_group_memberships_update - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group membership. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDynamicGroupMembershipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroupMembership' - description: '' - patch: - operationId: extras_dynamic_group_memberships_partial_update - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group membership. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableDynamicGroupMembershipRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroupMembership' - description: '' - delete: - operationId: extras_dynamic_group_memberships_destroy - description: Manage Dynamic Group Memberships through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group membership. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/dynamic-groups/: - get: - operationId: extras_dynamic_groups_list - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: query - name: content_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedDynamicGroupList' - description: '' - post: - operationId: extras_dynamic_groups_create - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DynamicGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroup' - description: '' - put: - operationId: extras_dynamic_groups_bulk_update - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableDynamicGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DynamicGroup' - description: '' - patch: - operationId: extras_dynamic_groups_bulk_partial_update - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableDynamicGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/DynamicGroup' - description: '' - delete: - operationId: extras_dynamic_groups_bulk_destroy - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/dynamic-groups/{id}/: - get: - operationId: extras_dynamic_groups_retrieve - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroup' - description: '' - put: - operationId: extras_dynamic_groups_update - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DynamicGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroup' - description: '' - patch: - operationId: extras_dynamic_groups_partial_update - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDynamicGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroup' - description: '' - delete: - operationId: extras_dynamic_groups_destroy - description: Manage Dynamic Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/dynamic-groups/{id}/members/: - get: - operationId: extras_dynamic_groups_members_retrieve - description: List member objects of the same type as the `content_type` for - this dynamic group. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/DynamicGroup' - description: '' - /extras/dynamic-groups/{id}/notes/: - get: - operationId: extras_dynamic_groups_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_dynamic_groups_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this dynamic group. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/export-templates/: - get: - operationId: extras_export_templates_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: content_type - schema: - type: integer - - in: query - name: content_type__n - schema: - type: integer - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: owner_content_type - schema: - type: string - - in: query - name: owner_content_type__n - schema: - type: string - - in: query - name: owner_object_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: owner_object_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedExportTemplateList' - description: '' - post: - operationId: extras_export_templates_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - put: - operationId: extras_export_templates_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplate' - description: '' - patch: - operationId: extras_export_templates_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplate' - description: '' - delete: - operationId: extras_export_templates_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/export-templates/{id}/: - get: - operationId: extras_export_templates_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this export template. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - put: - operationId: extras_export_templates_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - patch: - operationId: extras_export_templates_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - delete: - operationId: extras_export_templates_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this export template. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/export-templates/{id}/notes/: - get: - operationId: extras_export_templates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this export template. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_export_templates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/git-repositories/: - get: - operationId: extras_git_repositories_list - description: Manage the use of Git repositories as external data sources. - parameters: - - in: query - name: branch - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: branch__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: provided_contents - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: remote_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: remote_url__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secrets_group - schema: - type: array - items: - type: string - description: Secrets group (slug) - explode: true - style: form - - in: query - name: secrets_group__n - schema: - type: array - items: - type: string - description: Secrets group (slug) - explode: true - style: form - - in: query - name: secrets_group_id - schema: - type: array - items: - type: string - format: uuid - description: Secrets group (ID) - explode: true - style: form - - in: query - name: secrets_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Secrets group (ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedGitRepositoryList' - description: '' - post: - operationId: extras_git_repositories_create - description: Manage the use of Git repositories as external data sources. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableGitRepositoryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GitRepository' - description: '' - put: - operationId: extras_git_repositories_bulk_update - description: Manage the use of Git repositories as external data sources. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableGitRepositoryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GitRepository' - description: '' - patch: - operationId: extras_git_repositories_bulk_partial_update - description: Manage the use of Git repositories as external data sources. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableGitRepositoryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GitRepository' - description: '' - delete: - operationId: extras_git_repositories_bulk_destroy - description: Manage the use of Git repositories as external data sources. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/git-repositories/{id}/: - get: - operationId: extras_git_repositories_retrieve - description: Manage the use of Git repositories as external data sources. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Git repository. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GitRepository' - description: '' - put: - operationId: extras_git_repositories_update - description: Manage the use of Git repositories as external data sources. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Git repository. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableGitRepositoryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GitRepository' - description: '' - patch: - operationId: extras_git_repositories_partial_update - description: Manage the use of Git repositories as external data sources. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Git repository. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableGitRepositoryRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GitRepository' - description: '' - delete: - operationId: extras_git_repositories_destroy - description: Manage the use of Git repositories as external data sources. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Git repository. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/git-repositories/{id}/notes/: - get: - operationId: extras_git_repositories_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Git repository. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_git_repositories_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Git repository. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/git-repositories/{id}/sync/: - post: - operationId: extras_git_repositories_sync_create - description: Enqueue pull git repository and refresh data. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Git repository. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GitRepositoryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GitRepository' - description: '' - /extras/graphql-queries/: - get: - operationId: extras_graphql_queries_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedGraphQLQueryList' - description: '' - post: - operationId: extras_graphql_queries_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GraphQLQueryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GraphQLQuery' - description: '' - put: - operationId: extras_graphql_queries_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableGraphQLQueryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GraphQLQuery' - description: '' - patch: - operationId: extras_graphql_queries_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableGraphQLQueryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GraphQLQuery' - description: '' - delete: - operationId: extras_graphql_queries_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/graphql-queries/{id}/: - get: - operationId: extras_graphql_queries_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this GraphQL query. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GraphQLQuery' - description: '' - put: - operationId: extras_graphql_queries_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this GraphQL query. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GraphQLQueryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GraphQLQuery' - description: '' - patch: - operationId: extras_graphql_queries_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this GraphQL query. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedGraphQLQueryRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GraphQLQuery' - description: '' - delete: - operationId: extras_graphql_queries_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this GraphQL query. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/graphql-queries/{id}/notes/: - get: - operationId: extras_graphql_queries_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this GraphQL query. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_graphql_queries_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this GraphQL query. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/graphql-queries/{id}/run/: - post: - operationId: extras_graphql_queries_run_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this GraphQL query. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GraphQLQueryInputRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GraphQLQueryOutput' - description: '' - /extras/image-attachments/: - get: - operationId: extras_image_attachments_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: content_type - schema: - type: string - - in: query - name: content_type__n - schema: - type: string - - in: query - name: content_type_id - schema: - type: integer - - in: query - name: content_type_id__n - schema: - type: integer - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: object_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedImageAttachmentList' - description: '' - post: - operationId: extras_image_attachments_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - put: - operationId: extras_image_attachments_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - description: '' - patch: - operationId: extras_image_attachments_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - description: '' - delete: - operationId: extras_image_attachments_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/image-attachments/{id}/: - get: - operationId: extras_image_attachments_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this image attachment. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - put: - operationId: extras_image_attachments_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this image attachment. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - patch: - operationId: extras_image_attachments_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this image attachment. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - delete: - operationId: extras_image_attachments_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this image attachment. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/job-hooks/: - get: - operationId: extras_job_hooks_list - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: query - name: content_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: job - schema: - type: array - items: - type: string - format: uuid - description: Job (slug or ID) - explode: true - style: form - - in: query - name: job__n - schema: - type: array - items: - type: string - format: uuid - description: Job (slug or ID) - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type_create - schema: - type: boolean - - in: query - name: type_delete - schema: - type: boolean - - in: query - name: type_update - schema: - type: boolean - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedJobHookList' - description: '' - post: - operationId: extras_job_hooks_create - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/JobHookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobHook' - description: '' - put: - operationId: extras_job_hooks_bulk_update - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableJobHookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/JobHook' - description: '' - patch: - operationId: extras_job_hooks_bulk_partial_update - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableJobHookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/JobHook' - description: '' - delete: - operationId: extras_job_hooks_bulk_destroy - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/job-hooks/{id}/: - get: - operationId: extras_job_hooks_retrieve - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job hook. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobHook' - description: '' - put: - operationId: extras_job_hooks_update - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job hook. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/JobHookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobHook' - description: '' - patch: - operationId: extras_job_hooks_partial_update - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job hook. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedJobHookRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobHook' - description: '' - delete: - operationId: extras_job_hooks_destroy - description: Manage job hooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job hook. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/job-hooks/{id}/notes/: - get: - operationId: extras_job_hooks_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job hook. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_job_hooks_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job hook. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/job-logs/: - get: - operationId: extras_job_logs_list - description: Retrieve a list of job log entries. - parameters: - - in: query - name: absolute_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: absolute_url__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: grouping - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: job_result - schema: - type: string - format: uuid - - in: query - name: job_result__n - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: log_level - schema: - type: string - - in: query - name: log_level__n - schema: - type: string - - in: query - name: log_object - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: log_object__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: message__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedJobLogEntryList' - description: '' - /extras/job-logs/{id}/: - get: - operationId: extras_job_logs_retrieve - description: Retrieve a list of job log entries. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job log entry. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobLogEntry' - description: '' - /extras/job-results/: - get: - operationId: extras_job_results_list - description: Retrieve a list of job results - parameters: - - in: query - name: completed - schema: - type: string - format: date-time - - in: query - name: created - schema: - type: string - format: date-time - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: job_model - schema: - type: array - items: - type: string - description: Job (slug) - explode: true - style: form - - in: query - name: job_model__n - schema: - type: array - items: - type: string - description: Job (slug) - explode: true - style: form - - in: query - name: job_model_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Job (ID) - explode: true - style: form - - in: query - name: job_model_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Job (ID) - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: obj_type - schema: - type: string - - in: query - name: obj_type__n - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user - schema: - type: string - format: uuid - - in: query - name: user__n - schema: - type: string - format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedJobResultList' - description: '' - delete: - operationId: extras_job_results_bulk_destroy - description: Retrieve a list of job results - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/job-results/{id}/: - get: - operationId: extras_job_results_retrieve - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job result. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobResult' - description: '' - delete: - operationId: extras_job_results_destroy - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job result. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/job-results/{id}/logs/: - get: - operationId: extras_job_results_logs_retrieve - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job result. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobResult' - description: '' - /extras/jobs/: - get: - operationId: extras_jobs_list - description: List all known Jobs. - parameters: - - in: query - name: approval_required - schema: - type: boolean - - in: query - name: approval_required_override - schema: - type: boolean - - in: query - name: commit_default - schema: - type: boolean - - in: query - name: commit_default_override - schema: - type: boolean - - in: query - name: description_override - schema: - type: boolean - - in: query - name: enabled - schema: - type: boolean - - in: query - name: grouping - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grouping_override - schema: - type: boolean - - in: query - name: has_sensitive_variables - schema: - type: boolean - - in: query - name: has_sensitive_variables_override - schema: - type: boolean - - in: query - name: hidden - schema: - type: boolean - - in: query - name: hidden_override - schema: - type: boolean - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: installed - schema: - type: boolean - - in: query - name: is_job_hook_receiver - schema: - type: boolean - - in: query - name: job_class_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: job_class_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: module_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: module_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name_override - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: read_only - schema: - type: boolean - - in: query - name: read_only_override - schema: - type: boolean - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: soft_time_limit - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: soft_time_limit__gt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: soft_time_limit__gte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: soft_time_limit__lt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: soft_time_limit__lte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: soft_time_limit__n - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: soft_time_limit_override - schema: - type: boolean - - in: query - name: source - schema: - type: string - description: Source of the Python code for this job - local, Git repository, - or plugins - - in: query - name: source__n - schema: - type: string - description: Source of the Python code for this job - local, Git repository, - or plugins - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_limit - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: time_limit__gt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: time_limit__gte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: time_limit__lt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: time_limit__lte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: time_limit__n - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: time_limit_override - schema: - type: boolean - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedJobList' - description: '' - put: - operationId: extras_jobs_bulk_update - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableJobRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Job' - description: '' - patch: - operationId: extras_jobs_bulk_partial_update - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableJobRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Job' - description: '' - delete: - operationId: extras_jobs_bulk_destroy - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/jobs/{class_path}/: - get: - operationId: extras_jobs_read_deprecated - description: |- - Get details of a Job as identified by its class-path. - - This API endpoint is deprecated; it is recommended to use the extras_jobs_read endpoint instead. - parameters: - - in: path - name: class_path - schema: - type: string - pattern: ^[^/]+/[^/]+/[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - deprecated: true - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobClassDetail' - description: '' - /extras/jobs/{class_path}/run/: - post: - operationId: extras_jobs_run_deprecated - description: |- - Run a Job as identified by its class-path. - - This API endpoint is deprecated; it is recommended to use the extras_jobs_run endpoint instead. - parameters: - - in: path - name: class_path - schema: - type: string - pattern: ^[^/]+/[^/]+/[^/]+$ - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/JobInputRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/JobInputRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - deprecated: true - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobClassDetail' - description: '' - /extras/jobs/{id}/: - get: - operationId: extras_jobs_retrieve - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Job' - description: '' - put: - operationId: extras_jobs_update - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/JobRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Job' - description: '' - patch: - operationId: extras_jobs_partial_update - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedJobRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Job' - description: '' - delete: - operationId: extras_jobs_destroy - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/jobs/{id}/notes/: - get: - operationId: extras_jobs_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_jobs_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/jobs/{id}/run/: - post: - operationId: extras_jobs_run_create - description: Run the specified Job. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/JobInputRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/JobMultiPartInputRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobRunResponse' - description: '' - /extras/jobs/{id}/variables/: - get: - operationId: extras_jobs_variables_list - description: Get details of the input variables that may/must be specified to - run a particular Job. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this job. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedJobVariableList' - description: '' - /extras/notes/: - get: - operationId: extras_notes_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: assigned_object_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_object_type - schema: - type: string - - in: query - name: assigned_object_type__n - schema: - type: string - - in: query - name: assigned_object_type_id - schema: - type: integer - - in: query - name: assigned_object_type_id__n - schema: - type: integer - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: note - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: note__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: user - schema: - type: array - items: - type: string - format: uuid - description: User (username or ID) - explode: true - style: form - - in: query - name: user__n - schema: - type: array - items: - type: string - format: uuid - description: User (username or ID) - explode: true - style: form - - in: query - name: user_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_notes_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - put: - operationId: extras_notes_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableNoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Note' - description: '' - patch: - operationId: extras_notes_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableNoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Note' - description: '' - delete: - operationId: extras_notes_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/notes/{id}/: - get: - operationId: extras_notes_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - put: - operationId: extras_notes_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - patch: - operationId: extras_notes_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedNoteRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - delete: - operationId: extras_notes_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/object-changes/: - get: - operationId: extras_object_changes_list - description: Retrieve a list of recent changes. - parameters: - - in: query - name: action - schema: - type: string - - in: query - name: action__n - schema: - type: string - - in: query - name: changed_object_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: changed_object_type - schema: - type: string - - in: query - name: changed_object_type__n - schema: - type: string - - in: query - name: changed_object_type_id - schema: - type: integer - - in: query - name: changed_object_type_id__n - schema: - type: integer - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: object_repr - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_repr__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: request_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: request_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: time - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: time__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: time__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: time__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: time__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: time__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: user - schema: - type: array - items: - type: string - description: User name - explode: true - style: form - - in: query - name: user__n - schema: - type: array - items: - type: string - description: User name - explode: true - style: form - - in: query - name: user_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: User (ID) - explode: true - style: form - - in: query - name: user_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: User (ID) - explode: true - style: form - - in: query - name: user_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedObjectChangeList' - description: '' - /extras/object-changes/{id}/: - get: - operationId: extras_object_changes_retrieve - description: Retrieve a list of recent changes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this object change. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ObjectChange' - description: '' - /extras/relationship-associations/: - get: - operationId: extras_relationship_associations_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: destination_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: destination_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: destination_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: peer_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: relationship - schema: - type: array - items: - type: string - description: Relationship (slug) - explode: true - style: form - - in: query - name: relationship__n - schema: - type: array - items: - type: string - description: Relationship (slug) - explode: true - style: form - - in: query - name: source_id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: source_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: source_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRelationshipAssociationList' - description: '' - post: - operationId: extras_relationship_associations_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRelationshipAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RelationshipAssociation' - description: '' - put: - operationId: extras_relationship_associations_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRelationshipAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RelationshipAssociation' - description: '' - patch: - operationId: extras_relationship_associations_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRelationshipAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RelationshipAssociation' - description: '' - delete: - operationId: extras_relationship_associations_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/relationship-associations/{id}/: - get: - operationId: extras_relationship_associations_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship association. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RelationshipAssociation' - description: '' - put: - operationId: extras_relationship_associations_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship association. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRelationshipAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RelationshipAssociation' - description: '' - patch: - operationId: extras_relationship_associations_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship association. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRelationshipAssociationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RelationshipAssociation' - description: '' - delete: - operationId: extras_relationship_associations_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship association. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/relationships/: - get: - operationId: extras_relationships_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: destination_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: destination_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: source_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: type - schema: - type: string - description: Cardinality of this relationship - - in: query - name: type__n - schema: - type: string - description: Cardinality of this relationship - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRelationshipList' - description: '' - post: - operationId: extras_relationships_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RelationshipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Relationship' - description: '' - put: - operationId: extras_relationships_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRelationshipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Relationship' - description: '' - patch: - operationId: extras_relationships_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRelationshipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Relationship' - description: '' - delete: - operationId: extras_relationships_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/relationships/{id}/: - get: - operationId: extras_relationships_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Relationship' - description: '' - put: - operationId: extras_relationships_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RelationshipRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Relationship' - description: '' - patch: - operationId: extras_relationships_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedRelationshipRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Relationship' - description: '' - delete: - operationId: extras_relationships_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/relationships/{id}/notes/: - get: - operationId: extras_relationships_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_relationships_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this relationship. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/scheduled-jobs/: - get: - operationId: extras_scheduled_jobs_list - description: Retrieve a list of scheduled jobs - parameters: - - in: query - name: first_run - schema: - type: string - format: date-time - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: job_model - schema: - type: array - items: - type: string - description: Job (slug) - explode: true - style: form - - in: query - name: job_model__n - schema: - type: array - items: - type: string - description: Job (slug) - explode: true - style: form - - in: query - name: job_model_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Job (ID) - explode: true - style: form - - in: query - name: job_model_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Job (ID) - explode: true - style: form - - in: query - name: last_run - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: total_run_count - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: total_run_count__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: total_run_count__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: total_run_count__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: total_run_count__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: total_run_count__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedScheduledJobList' - description: '' - /extras/scheduled-jobs/{id}/: - get: - operationId: extras_scheduled_jobs_retrieve - description: Retrieve a list of scheduled jobs - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this scheduled job. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ScheduledJob' - description: '' - /extras/scheduled-jobs/{id}/approve/: - post: - operationId: extras_scheduled_jobs_approve_create - description: Retrieve a list of scheduled jobs - parameters: - - in: query - name: force - schema: - type: boolean - description: force execution even if start time has passed - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this scheduled job. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ScheduledJob' - description: '' - /extras/scheduled-jobs/{id}/deny/: - post: - operationId: extras_scheduled_jobs_deny_create - description: Retrieve a list of scheduled jobs - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this scheduled job. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ScheduledJob' - description: '' - /extras/scheduled-jobs/{id}/dry-run/: - post: - operationId: extras_scheduled_jobs_dry_run_create - description: Retrieve a list of scheduled jobs - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this scheduled job. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/JobResult' - description: '' - /extras/secrets/: - get: - operationId: extras_secrets_list - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: provider - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: provider__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedSecretList' - description: '' - post: - operationId: extras_secrets_create - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SecretRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Secret' - description: '' - put: - operationId: extras_secrets_bulk_update - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableSecretRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Secret' - description: '' - patch: - operationId: extras_secrets_bulk_partial_update - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableSecretRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Secret' - description: '' - delete: - operationId: extras_secrets_bulk_destroy - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/secrets-groups/: - get: - operationId: extras_secrets_groups_list - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedSecretsGroupList' - description: '' - post: - operationId: extras_secrets_groups_create - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SecretsGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroup' - description: '' - put: - operationId: extras_secrets_groups_bulk_update - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableSecretsGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SecretsGroup' - description: '' - patch: - operationId: extras_secrets_groups_bulk_partial_update - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableSecretsGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SecretsGroup' - description: '' - delete: - operationId: extras_secrets_groups_bulk_destroy - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/secrets-groups-associations/: - get: - operationId: extras_secrets_groups_associations_list - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: query - name: access_type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: access_type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - format: uuid - description: Group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Group (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: secret - schema: - type: array - items: - type: string - description: Secret (slug) - explode: true - style: form - - in: query - name: secret__n - schema: - type: array - items: - type: string - description: Secret (slug) - explode: true - style: form - - in: query - name: secret_id - schema: - type: array - items: - type: string - format: uuid - description: Secret (ID) - explode: true - style: form - - in: query - name: secret_id__n - schema: - type: array - items: - type: string - format: uuid - description: Secret (ID) - explode: true - style: form - - in: query - name: secret_type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret_type__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedSecretsGroupAssociationList' - description: '' - post: - operationId: extras_secrets_groups_associations_create - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSecretsGroupAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroupAssociation' - description: '' - put: - operationId: extras_secrets_groups_associations_bulk_update - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableSecretsGroupAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SecretsGroupAssociation' - description: '' - patch: - operationId: extras_secrets_groups_associations_bulk_partial_update - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableSecretsGroupAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SecretsGroupAssociation' - description: '' - delete: - operationId: extras_secrets_groups_associations_bulk_destroy - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/secrets-groups-associations/{id}/: - get: - operationId: extras_secrets_groups_associations_retrieve - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group association. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroupAssociation' - description: '' - put: - operationId: extras_secrets_groups_associations_update - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group association. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSecretsGroupAssociationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroupAssociation' - description: '' - patch: - operationId: extras_secrets_groups_associations_partial_update - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group association. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableSecretsGroupAssociationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroupAssociation' - description: '' - delete: - operationId: extras_secrets_groups_associations_destroy - description: Manage Secrets Group Associations through DELETE, GET, POST, PUT, - and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group association. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/secrets-groups/{id}/: - get: - operationId: extras_secrets_groups_retrieve - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroup' - description: '' - put: - operationId: extras_secrets_groups_update - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SecretsGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroup' - description: '' - patch: - operationId: extras_secrets_groups_partial_update - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedSecretsGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SecretsGroup' - description: '' - delete: - operationId: extras_secrets_groups_destroy - description: Manage Secrets Groups through DELETE, GET, POST, PUT, and PATCH - requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/secrets-groups/{id}/notes/: - get: - operationId: extras_secrets_groups_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_secrets_groups_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secrets group. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/secrets/{id}/: - get: - operationId: extras_secrets_retrieve - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secret. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Secret' - description: '' - put: - operationId: extras_secrets_update - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secret. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SecretRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Secret' - description: '' - patch: - operationId: extras_secrets_partial_update - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secret. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedSecretRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Secret' - description: '' - delete: - operationId: extras_secrets_destroy - description: Manage Secrets through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secret. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/secrets/{id}/notes/: - get: - operationId: extras_secrets_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secret. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_secrets_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this secret. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/statuses/: - get: - operationId: extras_statuses_list - description: View and manage custom status choices for objects with a `status` - field. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: content_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedStatusList' - description: '' - post: - operationId: extras_statuses_create - description: View and manage custom status choices for objects with a `status` - field. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StatusRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Status' - description: '' - put: - operationId: extras_statuses_bulk_update - description: View and manage custom status choices for objects with a `status` - field. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableStatusRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Status' - description: '' - patch: - operationId: extras_statuses_bulk_partial_update - description: View and manage custom status choices for objects with a `status` - field. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableStatusRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Status' - description: '' - delete: - operationId: extras_statuses_bulk_destroy - description: View and manage custom status choices for objects with a `status` - field. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/statuses/{id}/: - get: - operationId: extras_statuses_retrieve - description: View and manage custom status choices for objects with a `status` - field. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this status. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Status' - description: '' - put: - operationId: extras_statuses_update - description: View and manage custom status choices for objects with a `status` - field. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this status. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StatusRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Status' - description: '' - patch: - operationId: extras_statuses_partial_update - description: View and manage custom status choices for objects with a `status` - field. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this status. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedStatusRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Status' - description: '' - delete: - operationId: extras_statuses_destroy - description: View and manage custom status choices for objects with a `status` - field. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this status. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/statuses/{id}/notes/: - get: - operationId: extras_statuses_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this status. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_statuses_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this status. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/tags/: - get: - operationId: extras_tags_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: content_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedTagSerializerVersion13List' - description: '' - post: - operationId: extras_tags_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TagSerializerVersion13Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TagSerializerVersion13' - description: '' - put: - operationId: extras_tags_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableTagSerializerVersion13Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/TagSerializerVersion13' - description: '' - patch: - operationId: extras_tags_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableTagSerializerVersion13Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/TagSerializerVersion13' - description: '' - delete: - operationId: extras_tags_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/tags/{id}/: - get: - operationId: extras_tags_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tag. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TagSerializerVersion13' - description: '' - put: - operationId: extras_tags_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tag. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TagSerializerVersion13Request' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TagSerializerVersion13' - description: '' - patch: - operationId: extras_tags_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tag. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedTagSerializerVersion13Request' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TagSerializerVersion13' - description: '' - delete: - operationId: extras_tags_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tag. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/tags/{id}/notes/: - get: - operationId: extras_tags_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tag. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_tags_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tag. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /extras/webhooks/: - get: - operationId: extras_webhooks_list - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: query - name: content_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: payload_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: payload_url__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type_create - schema: - type: boolean - - in: query - name: type_delete - schema: - type: boolean - - in: query - name: type_update - schema: - type: boolean - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedWebhookList' - description: '' - post: - operationId: extras_webhooks_create - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Webhook' - description: '' - put: - operationId: extras_webhooks_bulk_update - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableWebhookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Webhook' - description: '' - patch: - operationId: extras_webhooks_bulk_partial_update - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableWebhookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Webhook' - description: '' - delete: - operationId: extras_webhooks_bulk_destroy - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /extras/webhooks/{id}/: - get: - operationId: extras_webhooks_retrieve - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this webhook. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Webhook' - description: '' - put: - operationId: extras_webhooks_update - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this webhook. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Webhook' - description: '' - patch: - operationId: extras_webhooks_partial_update - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this webhook. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWebhookRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Webhook' - description: '' - delete: - operationId: extras_webhooks_destroy - description: Manage Webhooks through DELETE, GET, POST, PUT, and PATCH requests. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this webhook. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /extras/webhooks/{id}/notes/: - get: - operationId: extras_webhooks_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this webhook. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: extras_webhooks_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this webhook. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /graphql/: - post: - operationId: graphql_create - description: Query the database using a GraphQL query - tags: - - graphql - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GraphQLAPIRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/json; version=1.3: - schema: - type: object - properties: - data: - type: object - description: '' - '400': - content: - application/json; version=1.3: - schema: - type: object - properties: - errors: - type: array - items: - type: object - description: '' - /ipam/aggregates/: - get: - operationId: ipam_aggregates_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: date_added - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: family - schema: - type: number - description: Family - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: prefix - schema: - type: string - description: Prefix - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rir - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir__n - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir_id - schema: - type: array - items: - type: string - format: uuid - description: RIR (ID) - explode: true - style: form - - in: query - name: rir_id__n - schema: - type: array - items: - type: string - format: uuid - description: RIR (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAggregateList' - description: '' - post: - operationId: ipam_aggregates_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAggregateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Aggregate' - description: '' - put: - operationId: ipam_aggregates_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableAggregateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Aggregate' - description: '' - patch: - operationId: ipam_aggregates_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableAggregateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Aggregate' - description: '' - delete: - operationId: ipam_aggregates_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/aggregates/{id}/: - get: - operationId: ipam_aggregates_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this aggregate. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Aggregate' - description: '' - put: - operationId: ipam_aggregates_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this aggregate. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAggregateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Aggregate' - description: '' - patch: - operationId: ipam_aggregates_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this aggregate. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Aggregate' - description: '' - delete: - operationId: ipam_aggregates_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this aggregate. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/aggregates/{id}/notes/: - get: - operationId: ipam_aggregates_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this aggregate. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_aggregates_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this aggregate. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/ip-addresses/: - get: - operationId: ipam_ip_addresses_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: address - schema: - type: array - items: - type: string - description: Address - explode: true - style: form - - in: query - name: assigned_to_interface - schema: - type: boolean - description: Is assigned to an interface - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device - schema: - type: array - items: - type: string - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: dns_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: family - schema: - type: number - description: Family - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: interface - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface__n - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: string - format: uuid - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: string - format: uuid - description: Interface (ID) - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: mask_length - schema: - type: number - description: Mask length - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance - schema: - type: array - items: - type: string - description: Routing Instance UUID - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nautobot_bgp_models_ips_bgp_routing_instance__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent - schema: - type: string - description: Parent prefix - - in: query - name: present_in_vrf - schema: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - - in: query - name: present_in_vrf_id - schema: - type: string - format: uuid - description: VRF - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role - schema: - type: array - items: - type: string - description: The functional role of this IP - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: The functional role of this IP - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: virtual_machine - schema: - type: array - items: - type: string - description: Virtual machine (name) - explode: true - style: form - - in: query - name: virtual_machine_id - schema: - type: array - items: - type: string - format: uuid - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: vminterface - schema: - type: array - items: - type: string - description: VM interface (name) - explode: true - style: form - - in: query - name: vminterface__n - schema: - type: array - items: - type: string - description: VM interface (name) - explode: true - style: form - - in: query - name: vminterface_id - schema: - type: array - items: - type: string - format: uuid - description: VM interface (ID) - explode: true - style: form - - in: query - name: vminterface_id__n - schema: - type: array - items: - type: string - format: uuid - description: VM interface (ID) - explode: true - style: form - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: VRF - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedIPAddressList' - description: '' - post: - operationId: ipam_ip_addresses_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableIPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPAddress' - description: '' - put: - operationId: ipam_ip_addresses_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableIPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - patch: - operationId: ipam_ip_addresses_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableIPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - delete: - operationId: ipam_ip_addresses_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/ip-addresses/{id}/: - get: - operationId: ipam_ip_addresses_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPAddress' - description: '' - put: - operationId: ipam_ip_addresses_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableIPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPAddress' - description: '' - patch: - operationId: ipam_ip_addresses_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPAddress' - description: '' - delete: - operationId: ipam_ip_addresses_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/ip-addresses/{id}/notes/: - get: - operationId: ipam_ip_addresses_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_ip_addresses_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/prefixes/: - get: - operationId: ipam_prefixes_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: contains - schema: - type: string - description: Prefixes which contain this prefix or IP - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: family - schema: - type: number - description: Family - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: is_pool - schema: - type: boolean - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: mask_length - schema: - type: number - description: mask_length - - in: query - name: mask_length__gte - schema: - type: number - description: mask_length__gte - - in: query - name: mask_length__lte - schema: - type: number - description: mask_length__lte - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: prefix - schema: - type: string - description: Prefix - - in: query - name: present_in_vrf - schema: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - - in: query - name: present_in_vrf_id - schema: - type: string - format: uuid - description: VRF - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: vlan_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: VLAN (ID) - explode: true - style: form - - in: query - name: vlan_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: VLAN (ID) - explode: true - style: form - - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4095) - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: VRF - explode: true - style: form - - in: query - name: within - schema: - type: string - description: Within prefix - - in: query - name: within_include - schema: - type: string - description: Within and including prefix - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPrefixList' - description: '' - post: - operationId: ipam_prefixes_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Prefix' - description: '' - put: - operationId: ipam_prefixes_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Prefix' - description: '' - patch: - operationId: ipam_prefixes_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Prefix' - description: '' - delete: - operationId: ipam_prefixes_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/prefixes/{id}/: - get: - operationId: ipam_prefixes_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Prefix' - description: '' - put: - operationId: ipam_prefixes_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Prefix' - description: '' - patch: - operationId: ipam_prefixes_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Prefix' - description: '' - delete: - operationId: ipam_prefixes_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/prefixes/{id}/available-ips/: - get: - operationId: ipam_prefixes_available_ips_list - description: |- - A convenience method for returning available IP addresses within a prefix. By default, the number of IPs - returned will be equivalent to PAGINATE_COUNT. An arbitrary limit (up to MAX_PAGE_SIZE, if set) may be passed, - however results will not be paginated. - - The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being - invoked in parallel, which results in a race condition where multiple insertions can occur. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAvailableIPList' - description: '' - post: - operationId: ipam_prefixes_available_ips_create - description: |- - A convenience method for returning available IP addresses within a prefix. By default, the number of IPs - returned will be equivalent to PAGINATE_COUNT. An arbitrary limit (up to MAX_PAGE_SIZE, if set) may be passed, - however results will not be paginated. - - The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being - invoked in parallel, which results in a race condition where multiple insertions can occur. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this IP address. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAvailableIPList' - description: '' - /ipam/prefixes/{id}/available-prefixes/: - get: - operationId: ipam_prefixes_available_prefixes_list - description: |- - A convenience method for returning available child prefixes within a parent. - - The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being - invoked in parallel, which results in a race condition where multiple insertions can occur. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAvailablePrefixList' - description: '' - post: - operationId: ipam_prefixes_available_prefixes_create - description: |- - A convenience method for returning available child prefixes within a parent. - - The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being - invoked in parallel, which results in a race condition where multiple insertions can occur. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PrefixLengthRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Prefix' - description: '' - /ipam/prefixes/{id}/notes/: - get: - operationId: ipam_prefixes_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_prefixes_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this prefix. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/rirs/: - get: - operationId: ipam_rirs_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: is_private - schema: - type: boolean - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRIRList' - description: '' - post: - operationId: ipam_rirs_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RIRRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RIR' - description: '' - put: - operationId: ipam_rirs_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRIRRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RIR' - description: '' - patch: - operationId: ipam_rirs_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRIRRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RIR' - description: '' - delete: - operationId: ipam_rirs_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/rirs/{id}/: - get: - operationId: ipam_rirs_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this RIR. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RIR' - description: '' - put: - operationId: ipam_rirs_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this RIR. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RIRRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RIR' - description: '' - patch: - operationId: ipam_rirs_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this RIR. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedRIRRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RIR' - description: '' - delete: - operationId: ipam_rirs_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this RIR. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/rirs/{id}/notes/: - get: - operationId: ipam_rirs_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this RIR. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_rirs_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this RIR. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/roles/: - get: - operationId: ipam_roles_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRoleList' - description: '' - post: - operationId: ipam_roles_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Role' - description: '' - put: - operationId: ipam_roles_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Role' - description: '' - patch: - operationId: ipam_roles_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Role' - description: '' - delete: - operationId: ipam_roles_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/roles/{id}/: - get: - operationId: ipam_roles_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this role. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Role' - description: '' - put: - operationId: ipam_roles_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this role. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Role' - description: '' - patch: - operationId: ipam_roles_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this role. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedRoleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Role' - description: '' - delete: - operationId: ipam_roles_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this role. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/roles/{id}/notes/: - get: - operationId: ipam_roles_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this role. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_roles_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this role. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/route-targets/: - get: - operationId: ipam_route_targets_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: exporting_vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) - explode: true - style: form - - in: query - name: exporting_vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) - explode: true - style: form - - in: query - name: exporting_vrf_id - schema: - type: array - items: - type: string - format: uuid - description: Exporting VRF - explode: true - style: form - - in: query - name: exporting_vrf_id__n - schema: - type: array - items: - type: string - format: uuid - description: Exporting VRF - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: importing_vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) - explode: true - style: form - - in: query - name: importing_vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) - explode: true - style: form - - in: query - name: importing_vrf_id - schema: - type: array - items: - type: string - format: uuid - description: Importing VRF - explode: true - style: form - - in: query - name: importing_vrf_id__n - schema: - type: array - items: - type: string - format: uuid - description: Importing VRF - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRouteTargetList' - description: '' - post: - operationId: ipam_route_targets_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRouteTargetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RouteTarget' - description: '' - put: - operationId: ipam_route_targets_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRouteTargetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RouteTarget' - description: '' - patch: - operationId: ipam_route_targets_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRouteTargetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RouteTarget' - description: '' - delete: - operationId: ipam_route_targets_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/route-targets/{id}/: - get: - operationId: ipam_route_targets_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this route target. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RouteTarget' - description: '' - put: - operationId: ipam_route_targets_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this route target. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRouteTargetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RouteTarget' - description: '' - patch: - operationId: ipam_route_targets_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this route target. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRouteTargetRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RouteTarget' - description: '' - delete: - operationId: ipam_route_targets_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this route target. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/route-targets/{id}/notes/: - get: - operationId: ipam_route_targets_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this route target. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_route_targets_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this route target. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/services/: - get: - operationId: ipam_services_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: port - schema: - type: number - - in: query - name: protocol - schema: - type: string - - in: query - name: protocol__n - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: virtual_machine - schema: - type: array - items: - type: string - description: Virtual machine (name) - explode: true - style: form - - in: query - name: virtual_machine__n - schema: - type: array - items: - type: string - description: Virtual machine (name) - explode: true - style: form - - in: query - name: virtual_machine_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: virtual_machine_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Virtual machine (ID) - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedServiceList' - description: '' - post: - operationId: ipam_services_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableServiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Service' - description: '' - put: - operationId: ipam_services_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableServiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Service' - description: '' - patch: - operationId: ipam_services_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableServiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Service' - description: '' - delete: - operationId: ipam_services_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/services/{id}/: - get: - operationId: ipam_services_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Service' - description: '' - put: - operationId: ipam_services_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableServiceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Service' - description: '' - patch: - operationId: ipam_services_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Service' - description: '' - delete: - operationId: ipam_services_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/services/{id}/notes/: - get: - operationId: ipam_services_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_services_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/vlan-groups/: - get: - operationId: ipam_vlan_groups_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedVLANGroupList' - description: '' - post: - operationId: ipam_vlan_groups_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLANGroup' - description: '' - put: - operationId: ipam_vlan_groups_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableVLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VLANGroup' - description: '' - patch: - operationId: ipam_vlan_groups_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableVLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VLANGroup' - description: '' - delete: - operationId: ipam_vlan_groups_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/vlan-groups/{id}/: - get: - operationId: ipam_vlan_groups_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN group. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLANGroup' - description: '' - put: - operationId: ipam_vlan_groups_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN group. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLANGroup' - description: '' - patch: - operationId: ipam_vlan_groups_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN group. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableVLANGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLANGroup' - description: '' - delete: - operationId: ipam_vlan_groups_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN group. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/vlan-groups/{id}/notes/: - get: - operationId: ipam_vlan_groups_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_vlan_groups_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN group. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/vlans/: - get: - operationId: ipam_vlans_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: available_on_device - schema: - type: string - format: uuid - description: Device (ID) - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: group - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Group (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: vid - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: vid__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: vid__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: vid__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: vid__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: vid__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedVLANList' - description: '' - post: - operationId: ipam_vlans_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLAN' - description: '' - put: - operationId: ipam_vlans_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableVLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VLAN' - description: '' - patch: - operationId: ipam_vlans_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableVLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VLAN' - description: '' - delete: - operationId: ipam_vlans_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/vlans/{id}/: - get: - operationId: ipam_vlans_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLAN' - description: '' - put: - operationId: ipam_vlans_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLAN' - description: '' - patch: - operationId: ipam_vlans_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VLAN' - description: '' - delete: - operationId: ipam_vlans_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/vlans/{id}/notes/: - get: - operationId: ipam_vlans_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_vlans_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VLAN. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /ipam/vrfs/: - get: - operationId: ipam_vrfs_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: enforce_unique - schema: - type: boolean - - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target_id - schema: - type: array - items: - type: string - format: uuid - description: Export target - explode: true - style: form - - in: query - name: export_target_id__n - schema: - type: array - items: - type: string - format: uuid - description: Export target - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: import_target - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target__n - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target_id - schema: - type: array - items: - type: string - format: uuid - description: Import target - explode: true - style: form - - in: query - name: import_target_id__n - schema: - type: array - items: - type: string - format: uuid - description: Import target - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rd - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedVRFList' - description: '' - post: - operationId: ipam_vrfs_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVRFRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VRF' - description: '' - put: - operationId: ipam_vrfs_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableVRFRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VRF' - description: '' - patch: - operationId: ipam_vrfs_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableVRFRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VRF' - description: '' - delete: - operationId: ipam_vrfs_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /ipam/vrfs/{id}/: - get: - operationId: ipam_vrfs_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VRF. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VRF' - description: '' - put: - operationId: ipam_vrfs_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VRF. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVRFRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VRF' - description: '' - patch: - operationId: ipam_vrfs_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VRF. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableVRFRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VRF' - description: '' - delete: - operationId: ipam_vrfs_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VRF. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /ipam/vrfs/{id}/notes/: - get: - operationId: ipam_vrfs_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VRF. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: ipam_vrfs_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VRF. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/bgp/address-families/: - get: - operationId: plugins_bgp_address_families_list - description: List all objects of this type. - parameters: - - in: query - name: afi_safi - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: afi_safi__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: routing_instance - schema: - type: array - items: - type: string - format: uuid - description: BGP Routing Instance ID - explode: true - style: form - - in: query - name: routing_instance__n - schema: - type: array - items: - type: string - format: uuid - description: BGP Routing Instance ID - explode: true - style: form - - in: query - name: vrf - schema: - type: array - items: - type: string - description: VRF (name) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - description: VRF (name) - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAddressFamilyList' - description: '' - post: - operationId: plugins_bgp_address_families_create - description: REST API viewset for AddressFamily records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAddressFamilyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressFamily' - description: '' - put: - operationId: plugins_bgp_address_families_bulk_update - description: REST API viewset for AddressFamily records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableAddressFamilyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AddressFamily' - description: '' - patch: - operationId: plugins_bgp_address_families_bulk_partial_update - description: REST API viewset for AddressFamily records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableAddressFamilyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AddressFamily' - description: '' - delete: - operationId: plugins_bgp_address_families_bulk_destroy - description: REST API viewset for AddressFamily records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/address-families/{id}/: - get: - operationId: plugins_bgp_address_families_retrieve - description: Retrieve a specific object instance. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP address family. - required: true - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressFamily' - description: '' - put: - operationId: plugins_bgp_address_families_update - description: REST API viewset for AddressFamily records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP address family. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAddressFamilyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressFamily' - description: '' - patch: - operationId: plugins_bgp_address_families_partial_update - description: REST API viewset for AddressFamily records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP address family. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableAddressFamilyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressFamily' - description: '' - delete: - operationId: plugins_bgp_address_families_destroy - description: REST API viewset for AddressFamily records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP address family. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/bgp/autonomous-systems/: - get: - operationId: plugins_bgp_autonomous_systems_list - description: REST API viewset for AutonomousSystem records. - parameters: - - in: query - name: asn - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: asn__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAutonomousSystemList' - description: '' - post: - operationId: plugins_bgp_autonomous_systems_create - description: REST API viewset for AutonomousSystem records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAutonomousSystemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AutonomousSystem' - description: '' - put: - operationId: plugins_bgp_autonomous_systems_bulk_update - description: REST API viewset for AutonomousSystem records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableAutonomousSystemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AutonomousSystem' - description: '' - patch: - operationId: plugins_bgp_autonomous_systems_bulk_partial_update - description: REST API viewset for AutonomousSystem records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableAutonomousSystemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AutonomousSystem' - description: '' - delete: - operationId: plugins_bgp_autonomous_systems_bulk_destroy - description: REST API viewset for AutonomousSystem records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/autonomous-systems/{id}/: - get: - operationId: plugins_bgp_autonomous_systems_retrieve - description: REST API viewset for AutonomousSystem records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Autonomous system. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AutonomousSystem' - description: '' - put: - operationId: plugins_bgp_autonomous_systems_update - description: REST API viewset for AutonomousSystem records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Autonomous system. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAutonomousSystemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AutonomousSystem' - description: '' - patch: - operationId: plugins_bgp_autonomous_systems_partial_update - description: REST API viewset for AutonomousSystem records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Autonomous system. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableAutonomousSystemRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AutonomousSystem' - description: '' - delete: - operationId: plugins_bgp_autonomous_systems_destroy - description: REST API viewset for AutonomousSystem records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Autonomous system. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/bgp/peer-endpoints/: - get: - operationId: plugins_bgp_peer_endpoints_list - description: List all objects of this type. - parameters: - - name: autonomous_system - required: false - in: query - description: Autonomous System Number - schema: - type: string - - name: autonomous_system__n - required: false - in: query - description: Autonomous System Number - schema: - type: string - - name: device - required: false - in: query - description: Device (name) - schema: - type: string - - name: device__n - required: false - in: query - description: Device (name) - schema: - type: string - - name: enabled - required: false - in: query - description: enabled - schema: - type: string - - name: id - required: false - in: query - description: id - schema: - type: string - - name: id__ic - required: false - in: query - description: id__ic - schema: - type: string - - name: id__ie - required: false - in: query - description: id__ie - schema: - type: string - - name: id__iew - required: false - in: query - description: id__iew - schema: - type: string - - name: id__ire - required: false - in: query - description: id__ire - schema: - type: string - - name: id__isw - required: false - in: query - description: id__isw - schema: - type: string - - name: id__n - required: false - in: query - description: id__n - schema: - type: string - - name: id__nic - required: false - in: query - description: id__nic - schema: - type: string - - name: id__nie - required: false - in: query - description: id__nie - schema: - type: string - - name: id__niew - required: false - in: query - description: id__niew - schema: - type: string - - name: id__nire - required: false - in: query - description: id__nire - schema: - type: string - - name: id__nisw - required: false - in: query - description: id__nisw - schema: - type: string - - name: id__nre - required: false - in: query - description: id__nre - schema: - type: string - - name: id__re - required: false - in: query - description: id__re - schema: - type: string - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: peer_group - required: false - in: query - description: Peer Group (id) - schema: - type: string - - name: peer_group__n - required: false - in: query - description: Peer Group (id) - schema: - type: string - - name: q - required: false - in: query - description: Search - schema: - type: string - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPeerEndpointList' - description: '' - post: - operationId: plugins_bgp_peer_endpoints_create - description: REST API viewset for PeerEndpoint records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePeerEndpointRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerEndpoint' - description: '' - put: - operationId: plugins_bgp_peer_endpoints_bulk_update - description: REST API viewset for PeerEndpoint records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePeerEndpointRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeerEndpoint' - description: '' - patch: - operationId: plugins_bgp_peer_endpoints_bulk_partial_update - description: REST API viewset for PeerEndpoint records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePeerEndpointRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeerEndpoint' - description: '' - delete: - operationId: plugins_bgp_peer_endpoints_bulk_destroy - description: REST API viewset for PeerEndpoint records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/peer-endpoints/{id}/: - get: - operationId: plugins_bgp_peer_endpoints_retrieve - description: Retrieve a specific object instance. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this peer endpoint. - required: true - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerEndpoint' - description: '' - put: - operationId: plugins_bgp_peer_endpoints_update - description: REST API viewset for PeerEndpoint records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this peer endpoint. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePeerEndpointRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerEndpoint' - description: '' - patch: - operationId: plugins_bgp_peer_endpoints_partial_update - description: REST API viewset for PeerEndpoint records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this peer endpoint. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePeerEndpointRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerEndpoint' - description: '' - delete: - operationId: plugins_bgp_peer_endpoints_destroy - description: REST API viewset for PeerEndpoint records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this peer endpoint. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/bgp/peer-group-templates/: - get: - operationId: plugins_bgp_peer_group_templates_list - description: List all objects of this type. - parameters: - - in: query - name: autonomous_system - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: Autonomous System Number - explode: true - style: form - - in: query - name: autonomous_system__n - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: Autonomous System Number - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role - schema: - type: array - items: - type: string - description: Peering role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Peering role (slug) - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPeerGroupTemplateList' - description: '' - post: - operationId: plugins_bgp_peer_group_templates_create - description: REST API viewset for PeerGroupTemplate records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePeerGroupTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroupTemplate' - description: '' - put: - operationId: plugins_bgp_peer_group_templates_bulk_update - description: REST API viewset for PeerGroupTemplate records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePeerGroupTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeerGroupTemplate' - description: '' - patch: - operationId: plugins_bgp_peer_group_templates_bulk_partial_update - description: REST API viewset for PeerGroupTemplate records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePeerGroupTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeerGroupTemplate' - description: '' - delete: - operationId: plugins_bgp_peer_group_templates_bulk_destroy - description: REST API viewset for PeerGroupTemplate records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/peer-group-templates/{id}/: - get: - operationId: plugins_bgp_peer_group_templates_retrieve - description: Retrieve a specific object instance. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group Template. - required: true - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroupTemplate' - description: '' - put: - operationId: plugins_bgp_peer_group_templates_update - description: REST API viewset for PeerGroupTemplate records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group Template. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePeerGroupTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroupTemplate' - description: '' - patch: - operationId: plugins_bgp_peer_group_templates_partial_update - description: REST API viewset for PeerGroupTemplate records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group Template. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePeerGroupTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroupTemplate' - description: '' - delete: - operationId: plugins_bgp_peer_group_templates_destroy - description: REST API viewset for PeerGroupTemplate records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group Template. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/bgp/peer-groups/: - get: - operationId: plugins_bgp_peer_groups_list - description: List all objects of this type. - parameters: - - name: autonomous_system - required: false - in: query - description: Autonomous System Number - schema: - type: string - - name: autonomous_system__n - required: false - in: query - description: Autonomous System Number - schema: - type: string - - name: enabled - required: false - in: query - description: enabled - schema: - type: string - - name: id - required: false - in: query - description: id - schema: - type: string - - name: id__ic - required: false - in: query - description: id__ic - schema: - type: string - - name: id__ie - required: false - in: query - description: id__ie - schema: - type: string - - name: id__iew - required: false - in: query - description: id__iew - schema: - type: string - - name: id__ire - required: false - in: query - description: id__ire - schema: - type: string - - name: id__isw - required: false - in: query - description: id__isw - schema: - type: string - - name: id__n - required: false - in: query - description: id__n - schema: - type: string - - name: id__nic - required: false - in: query - description: id__nic - schema: - type: string - - name: id__nie - required: false - in: query - description: id__nie - schema: - type: string - - name: id__niew - required: false - in: query - description: id__niew - schema: - type: string - - name: id__nire - required: false - in: query - description: id__nire - schema: - type: string - - name: id__nisw - required: false - in: query - description: id__nisw - schema: - type: string - - name: id__nre - required: false - in: query - description: id__nre - schema: - type: string - - name: id__re - required: false - in: query - description: id__re - schema: - type: string - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: name - required: false - in: query - description: name - schema: - type: string - - name: name__ic - required: false - in: query - description: name__ic - schema: - type: string - - name: name__ie - required: false - in: query - description: name__ie - schema: - type: string - - name: name__iew - required: false - in: query - description: name__iew - schema: - type: string - - name: name__ire - required: false - in: query - description: name__ire - schema: - type: string - - name: name__isw - required: false - in: query - description: name__isw - schema: - type: string - - name: name__n - required: false - in: query - description: name__n - schema: - type: string - - name: name__nic - required: false - in: query - description: name__nic - schema: - type: string - - name: name__nie - required: false - in: query - description: name__nie - schema: - type: string - - name: name__niew - required: false - in: query - description: name__niew - schema: - type: string - - name: name__nire - required: false - in: query - description: name__nire - schema: - type: string - - name: name__nisw - required: false - in: query - description: name__nisw - schema: - type: string - - name: name__nre - required: false - in: query - description: name__nre - schema: - type: string - - name: name__re - required: false - in: query - description: name__re - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: q - required: false - in: query - description: Search - schema: - type: string - - name: role - required: false - in: query - description: Peering role (slug) - schema: - type: string - - name: role__n - required: false - in: query - description: Peering role (slug) - schema: - type: string - - name: routing_instance - required: false - in: query - description: BGP Routing Instance ID - schema: - type: string - - name: routing_instance__n - required: false - in: query - description: BGP Routing Instance ID - schema: - type: string - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPeerGroupList' - description: '' - post: - operationId: plugins_bgp_peer_groups_create - description: REST API viewset for PeerGroup records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePeerGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroup' - description: '' - put: - operationId: plugins_bgp_peer_groups_bulk_update - description: REST API viewset for PeerGroup records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePeerGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeerGroup' - description: '' - patch: - operationId: plugins_bgp_peer_groups_bulk_partial_update - description: REST API viewset for PeerGroup records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePeerGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeerGroup' - description: '' - delete: - operationId: plugins_bgp_peer_groups_bulk_destroy - description: REST API viewset for PeerGroup records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/peer-groups/{id}/: - get: - operationId: plugins_bgp_peer_groups_retrieve - description: Retrieve a specific object instance. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group. - required: true - - in: query - name: include_inherited - schema: - type: boolean - description: Include inherited configuration values - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroup' - description: '' - put: - operationId: plugins_bgp_peer_groups_update - description: REST API viewset for PeerGroup records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePeerGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroup' - description: '' - patch: - operationId: plugins_bgp_peer_groups_partial_update - description: REST API viewset for PeerGroup records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePeerGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeerGroup' - description: '' - delete: - operationId: plugins_bgp_peer_groups_destroy - description: REST API viewset for PeerGroup records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peer Group. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/bgp/peering-roles/: - get: - operationId: plugins_bgp_peering_roles_list - description: REST API viewset for PeeringRole records. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPeeringRoleList' - description: '' - post: - operationId: plugins_bgp_peering_roles_create - description: REST API viewset for PeeringRole records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PeeringRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeeringRole' - description: '' - put: - operationId: plugins_bgp_peering_roles_bulk_update - description: REST API viewset for PeeringRole records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePeeringRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeeringRole' - description: '' - patch: - operationId: plugins_bgp_peering_roles_bulk_partial_update - description: REST API viewset for PeeringRole records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePeeringRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PeeringRole' - description: '' - delete: - operationId: plugins_bgp_peering_roles_bulk_destroy - description: REST API viewset for PeeringRole records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/peering-roles/{id}/: - get: - operationId: plugins_bgp_peering_roles_retrieve - description: REST API viewset for PeeringRole records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering Role. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeeringRole' - description: '' - put: - operationId: plugins_bgp_peering_roles_update - description: REST API viewset for PeeringRole records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering Role. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PeeringRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeeringRole' - description: '' - patch: - operationId: plugins_bgp_peering_roles_partial_update - description: REST API viewset for PeeringRole records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering Role. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedPeeringRoleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PeeringRole' - description: '' - delete: - operationId: plugins_bgp_peering_roles_destroy - description: REST API viewset for PeeringRole records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering Role. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/bgp/peerings/: - get: - operationId: plugins_bgp_peerings_list - description: REST API viewset for Peering records. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPeeringList' - description: '' - post: - operationId: plugins_bgp_peerings_create - description: REST API viewset for Peering records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PeeringRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Peering' - description: '' - put: - operationId: plugins_bgp_peerings_bulk_update - description: REST API viewset for Peering records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePeeringRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Peering' - description: '' - patch: - operationId: plugins_bgp_peerings_bulk_partial_update - description: REST API viewset for Peering records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePeeringRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Peering' - description: '' - delete: - operationId: plugins_bgp_peerings_bulk_destroy - description: REST API viewset for Peering records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/peerings/{id}/: - get: - operationId: plugins_bgp_peerings_retrieve - description: REST API viewset for Peering records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Peering' - description: '' - put: - operationId: plugins_bgp_peerings_update - description: REST API viewset for Peering records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PeeringRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Peering' - description: '' - patch: - operationId: plugins_bgp_peerings_partial_update - description: REST API viewset for Peering records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedPeeringRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Peering' - description: '' - delete: - operationId: plugins_bgp_peerings_destroy - description: REST API viewset for Peering records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Peering. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/bgp/routing-instances/: - get: - operationId: plugins_bgp_routing_instances_list - description: REST API viewset for BGPRoutingInstance records. - parameters: - - in: query - name: autonomous_system - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: Autonomous System Number - explode: true - style: form - - in: query - name: autonomous_system__n - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: Autonomous System Number - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedBGPRoutingInstanceList' - description: '' - post: - operationId: plugins_bgp_routing_instances_create - description: REST API viewset for BGPRoutingInstance records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableBGPRoutingInstanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/BGPRoutingInstance' - description: '' - put: - operationId: plugins_bgp_routing_instances_bulk_update - description: REST API viewset for BGPRoutingInstance records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableBGPRoutingInstanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/BGPRoutingInstance' - description: '' - patch: - operationId: plugins_bgp_routing_instances_bulk_partial_update - description: REST API viewset for BGPRoutingInstance records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableBGPRoutingInstanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/BGPRoutingInstance' - description: '' - delete: - operationId: plugins_bgp_routing_instances_bulk_destroy - description: REST API viewset for BGPRoutingInstance records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/bgp/routing-instances/{id}/: - get: - operationId: plugins_bgp_routing_instances_retrieve - description: REST API viewset for BGPRoutingInstance records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Routing Instance. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/BGPRoutingInstance' - description: '' - put: - operationId: plugins_bgp_routing_instances_update - description: REST API viewset for BGPRoutingInstance records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Routing Instance. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableBGPRoutingInstanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/BGPRoutingInstance' - description: '' - patch: - operationId: plugins_bgp_routing_instances_partial_update - description: REST API viewset for BGPRoutingInstance records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Routing Instance. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableBGPRoutingInstanceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/BGPRoutingInstance' - description: '' - delete: - operationId: plugins_bgp_routing_instances_destroy - description: REST API viewset for BGPRoutingInstance records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this BGP Routing Instance. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/chatops/accessgrant/: - get: - operationId: plugins_chatops_accessgrant_list - description: API viewset for interacting with AccessGrant objects. - parameters: - - in: query - name: command - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: command__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: grant_type - schema: - type: string - - in: query - name: grant_type__n - schema: - type: string - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: subcommand - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: subcommand__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: value__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAccessGrantList' - description: '' - post: - operationId: plugins_chatops_accessgrant_create - description: API viewset for interacting with AccessGrant objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccessGrantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AccessGrant' - description: '' - put: - operationId: plugins_chatops_accessgrant_bulk_update - description: API viewset for interacting with AccessGrant objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableAccessGrantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AccessGrant' - description: '' - patch: - operationId: plugins_chatops_accessgrant_bulk_partial_update - description: API viewset for interacting with AccessGrant objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableAccessGrantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AccessGrant' - description: '' - delete: - operationId: plugins_chatops_accessgrant_bulk_destroy - description: API viewset for interacting with AccessGrant objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/chatops/accessgrant/{id}/: - get: - operationId: plugins_chatops_accessgrant_retrieve - description: API viewset for interacting with AccessGrant objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this access grant. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AccessGrant' - description: '' - put: - operationId: plugins_chatops_accessgrant_update - description: API viewset for interacting with AccessGrant objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this access grant. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccessGrantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AccessGrant' - description: '' - patch: - operationId: plugins_chatops_accessgrant_partial_update - description: API viewset for interacting with AccessGrant objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this access grant. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedAccessGrantRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AccessGrant' - description: '' - delete: - operationId: plugins_chatops_accessgrant_destroy - description: API viewset for interacting with AccessGrant objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this access grant. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/chatops/commandtoken/: - get: - operationId: plugins_chatops_commandtoken_list - description: API viewset for interacting with CommandToken objects. - parameters: - - in: query - name: comment - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comment__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platform - schema: - type: string - - in: query - name: platform__n - schema: - type: string - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCommandTokenList' - description: '' - post: - operationId: plugins_chatops_commandtoken_create - description: API viewset for interacting with CommandToken objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CommandTokenRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CommandToken' - description: '' - put: - operationId: plugins_chatops_commandtoken_bulk_update - description: API viewset for interacting with CommandToken objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCommandTokenRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CommandToken' - description: '' - patch: - operationId: plugins_chatops_commandtoken_bulk_partial_update - description: API viewset for interacting with CommandToken objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCommandTokenRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CommandToken' - description: '' - delete: - operationId: plugins_chatops_commandtoken_bulk_destroy - description: API viewset for interacting with CommandToken objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/chatops/commandtoken/{id}/: - get: - operationId: plugins_chatops_commandtoken_retrieve - description: API viewset for interacting with CommandToken objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this command token. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CommandToken' - description: '' - put: - operationId: plugins_chatops_commandtoken_update - description: API viewset for interacting with CommandToken objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this command token. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CommandTokenRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CommandToken' - description: '' - patch: - operationId: plugins_chatops_commandtoken_partial_update - description: API viewset for interacting with CommandToken objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this command token. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCommandTokenRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CommandToken' - description: '' - delete: - operationId: plugins_chatops_commandtoken_destroy - description: API viewset for interacting with CommandToken objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this command token. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/circuit-maintenance/circuitimpact/: - get: - operationId: plugins_circuit_maintenance_circuitimpact_list - description: API view for Circuit Impact CRUD operations. - parameters: - - in: query - name: circuit - schema: - type: string - format: uuid - - in: query - name: circuit__n - schema: - type: string - format: uuid - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: impact - schema: - type: string - nullable: true - - in: query - name: impact__n - schema: - type: string - nullable: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: maintenance - schema: - type: string - format: uuid - - in: query - name: maintenance__n - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCircuitMaintenanceCircuitImpactList' - description: '' - post: - operationId: plugins_circuit_maintenance_circuitimpact_create - description: API view for Circuit Impact CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpactRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpact' - description: '' - put: - operationId: plugins_circuit_maintenance_circuitimpact_bulk_update - description: API view for Circuit Impact CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCircuitMaintenanceCircuitImpactRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpact' - description: '' - patch: - operationId: plugins_circuit_maintenance_circuitimpact_bulk_partial_update - description: API view for Circuit Impact CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpact' - description: '' - delete: - operationId: plugins_circuit_maintenance_circuitimpact_bulk_destroy - description: API view for Circuit Impact CRUD operations. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/circuit-maintenance/circuitimpact/{id}/: - get: - operationId: plugins_circuit_maintenance_circuitimpact_retrieve - description: API view for Circuit Impact CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit impact. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpact' - description: '' - put: - operationId: plugins_circuit_maintenance_circuitimpact_update - description: API view for Circuit Impact CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit impact. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpactRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpact' - description: '' - patch: - operationId: plugins_circuit_maintenance_circuitimpact_partial_update - description: API view for Circuit Impact CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit impact. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCircuitMaintenanceCircuitImpactRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpact' - description: '' - delete: - operationId: plugins_circuit_maintenance_circuitimpact_destroy - description: API view for Circuit Impact CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit impact. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/circuit-maintenance/maintenance/: - get: - operationId: plugins_circuit_maintenance_maintenance_list - description: API view for Circuit Maintenance CRUD operations. - parameters: - - in: query - name: ack - schema: - type: boolean - - in: query - name: circuit - schema: - type: array - items: - type: string - description: Circuit - explode: true - style: form - - in: query - name: end_time - schema: - type: string - format: date-time - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: provider - schema: - type: array - items: - type: string - description: Provider (slug) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: start_time - schema: - type: string - format: date-time - - in: query - name: status - schema: - type: string - nullable: true - - in: query - name: status__n - schema: - type: string - nullable: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCircuitMaintenanceList' - description: '' - post: - operationId: plugins_circuit_maintenance_maintenance_create - description: API view for Circuit Maintenance CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitMaintenanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenance' - description: '' - put: - operationId: plugins_circuit_maintenance_maintenance_bulk_update - description: API view for Circuit Maintenance CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCircuitMaintenanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitMaintenance' - description: '' - patch: - operationId: plugins_circuit_maintenance_maintenance_bulk_partial_update - description: API view for Circuit Maintenance CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCircuitMaintenanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CircuitMaintenance' - description: '' - delete: - operationId: plugins_circuit_maintenance_maintenance_bulk_destroy - description: API view for Circuit Maintenance CRUD operations. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/circuit-maintenance/maintenance/{id}/: - get: - operationId: plugins_circuit_maintenance_maintenance_retrieve - description: API view for Circuit Maintenance CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit maintenance. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenance' - description: '' - put: - operationId: plugins_circuit_maintenance_maintenance_update - description: API view for Circuit Maintenance CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit maintenance. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitMaintenanceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenance' - description: '' - patch: - operationId: plugins_circuit_maintenance_maintenance_partial_update - description: API view for Circuit Maintenance CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit maintenance. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCircuitMaintenanceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CircuitMaintenance' - description: '' - delete: - operationId: plugins_circuit_maintenance_maintenance_destroy - description: API view for Circuit Maintenance CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this circuit maintenance. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/circuit-maintenance/note/: - get: - operationId: plugins_circuit_maintenance_note_list - description: API view for Circuit Note CRUD operations. - parameters: - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_circuit_maintenance_note_create - description: API view for Circuit Note CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - put: - operationId: plugins_circuit_maintenance_note_bulk_update - description: API view for Circuit Note CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableNoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Note' - description: '' - patch: - operationId: plugins_circuit_maintenance_note_bulk_partial_update - description: API view for Circuit Note CRUD operations. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableNoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Note' - description: '' - delete: - operationId: plugins_circuit_maintenance_note_bulk_destroy - description: API view for Circuit Note CRUD operations. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/circuit-maintenance/note/{id}/: - get: - operationId: plugins_circuit_maintenance_note_retrieve - description: API view for Circuit Note CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - put: - operationId: plugins_circuit_maintenance_note_update - description: API view for Circuit Note CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - patch: - operationId: plugins_circuit_maintenance_note_partial_update - description: API view for Circuit Note CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedNoteRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - delete: - operationId: plugins_circuit_maintenance_note_destroy - description: API view for Circuit Note CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this note. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/circuit-maintenance/notificationsource/: - get: - operationId: plugins_circuit_maintenance_notificationsource_list - description: API view for Notification Source CRUD operations. - parameters: - - in: query - name: attach_all_providers - schema: - type: boolean - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNotificationSourceList' - description: '' - /plugins/circuit-maintenance/notificationsource/{id}/: - get: - operationId: plugins_circuit_maintenance_notificationsource_retrieve - description: API view for Notification Source CRUD operations. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this notification source. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NotificationSource' - description: '' - /plugins/data-validation-engine/rules/min-max/: - get: - operationId: plugins_data_validation_engine_rules_min_max_list - description: View to manage min max expression validation rules - parameters: - - in: query - name: content_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: enabled - schema: - type: boolean - - in: query - name: error_message - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: max - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: max__gt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: max__gte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: max__lt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: max__lte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: max__n - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: min - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: min__gt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: min__gte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: min__lt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: min__lte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: min__n - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedMinMaxValidationRuleList' - description: '' - post: - operationId: plugins_data_validation_engine_rules_min_max_create - description: View to manage min max expression validation rules - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MinMaxValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/MinMaxValidationRule' - description: '' - put: - operationId: plugins_data_validation_engine_rules_min_max_bulk_update - description: View to manage min max expression validation rules - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableMinMaxValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/MinMaxValidationRule' - description: '' - patch: - operationId: plugins_data_validation_engine_rules_min_max_bulk_partial_update - description: View to manage min max expression validation rules - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableMinMaxValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/MinMaxValidationRule' - description: '' - delete: - operationId: plugins_data_validation_engine_rules_min_max_bulk_destroy - description: View to manage min max expression validation rules - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/data-validation-engine/rules/min-max/{id}/: - get: - operationId: plugins_data_validation_engine_rules_min_max_retrieve - description: View to manage min max expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this min max validation rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/MinMaxValidationRule' - description: '' - put: - operationId: plugins_data_validation_engine_rules_min_max_update - description: View to manage min max expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this min max validation rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MinMaxValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/MinMaxValidationRule' - description: '' - patch: - operationId: plugins_data_validation_engine_rules_min_max_partial_update - description: View to manage min max expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this min max validation rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedMinMaxValidationRuleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/MinMaxValidationRule' - description: '' - delete: - operationId: plugins_data_validation_engine_rules_min_max_destroy - description: View to manage min max expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this min max validation rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/data-validation-engine/rules/regex/: - get: - operationId: plugins_data_validation_engine_rules_regex_list - description: View to manage regular expression validation rules - parameters: - - in: query - name: content_type - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: content_type__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: enabled - schema: - type: boolean - - in: query - name: error_message - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: error_message__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: field__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: regular_expression - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: regular_expression__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedRegularExpressionValidationRuleList' - description: '' - post: - operationId: plugins_data_validation_engine_rules_regex_create - description: View to manage regular expression validation rules - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RegularExpressionValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RegularExpressionValidationRule' - description: '' - put: - operationId: plugins_data_validation_engine_rules_regex_bulk_update - description: View to manage regular expression validation rules - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableRegularExpressionValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RegularExpressionValidationRule' - description: '' - patch: - operationId: plugins_data_validation_engine_rules_regex_bulk_partial_update - description: View to manage regular expression validation rules - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableRegularExpressionValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/RegularExpressionValidationRule' - description: '' - delete: - operationId: plugins_data_validation_engine_rules_regex_bulk_destroy - description: View to manage regular expression validation rules - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/data-validation-engine/rules/regex/{id}/: - get: - operationId: plugins_data_validation_engine_rules_regex_retrieve - description: View to manage regular expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this regular expression validation - rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RegularExpressionValidationRule' - description: '' - put: - operationId: plugins_data_validation_engine_rules_regex_update - description: View to manage regular expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this regular expression validation - rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RegularExpressionValidationRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RegularExpressionValidationRule' - description: '' - patch: - operationId: plugins_data_validation_engine_rules_regex_partial_update - description: View to manage regular expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this regular expression validation - rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedRegularExpressionValidationRuleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/RegularExpressionValidationRule' - description: '' - delete: - operationId: plugins_data_validation_engine_rules_regex_destroy - description: View to manage regular expression validation rules - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this regular expression validation - rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/device-onboarding/onboarding/: - get: - operationId: plugins_device_onboarding_onboarding_list - description: |- - Create, check status of, and delete onboarding tasks. - - In-place updates (PUT, PATCH) of tasks are not permitted. - parameters: - - in: query - name: failed_reason - schema: - type: string - nullable: true - description: Raison why the task failed (optional) - - in: query - name: id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role - schema: - type: array - items: - type: string - description: Device Role (slug) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: string - description: Overall status of the task - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedOnboardingTaskList' - description: '' - post: - operationId: plugins_device_onboarding_onboarding_create - description: |- - Create, check status of, and delete onboarding tasks. - - In-place updates (PUT, PATCH) of tasks are not permitted. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/OnboardingTaskRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/OnboardingTask' - description: '' - /plugins/device-onboarding/onboarding/{id}/: - get: - operationId: plugins_device_onboarding_onboarding_retrieve - description: |- - Create, check status of, and delete onboarding tasks. - - In-place updates (PUT, PATCH) of tasks are not permitted. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this onboarding task. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/OnboardingTask' - description: '' - delete: - operationId: plugins_device_onboarding_onboarding_destroy - description: |- - Create, check status of, and delete onboarding tasks. - - In-place updates (PUT, PATCH) of tasks are not permitted. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this onboarding task. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/address-object/: - get: - operationId: plugins_firewall_address_object_list - description: AddressObject viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fqdn - schema: - type: string - format: uuid - - in: query - name: fqdn__n - schema: - type: string - format: uuid - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: ip_address - schema: - type: string - format: uuid - - in: query - name: ip_address__n - schema: - type: string - format: uuid - - in: query - name: ip_range - schema: - type: string - format: uuid - - in: query - name: ip_range__n - schema: - type: string - format: uuid - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: prefix - schema: - type: string - format: uuid - - in: query - name: prefix__n - schema: - type: string - format: uuid - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAddressObjectList' - description: '' - post: - operationId: plugins_firewall_address_object_create - description: AddressObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAddressObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObject' - description: '' - put: - operationId: plugins_firewall_address_object_bulk_update - description: AddressObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableAddressObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AddressObject' - description: '' - patch: - operationId: plugins_firewall_address_object_bulk_partial_update - description: AddressObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableAddressObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AddressObject' - description: '' - delete: - operationId: plugins_firewall_address_object_bulk_destroy - description: AddressObject viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/address-object-group/: - get: - operationId: plugins_firewall_address_object_group_list - description: AddressObjectGroup viewset. - parameters: - - in: query - name: address_objects - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: address_objects__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedAddressObjectGroupList' - description: '' - post: - operationId: plugins_firewall_address_object_group_create - description: AddressObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAddressObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObjectGroup' - description: '' - put: - operationId: plugins_firewall_address_object_group_bulk_update - description: AddressObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableAddressObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AddressObjectGroup' - description: '' - patch: - operationId: plugins_firewall_address_object_group_bulk_partial_update - description: AddressObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableAddressObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/AddressObjectGroup' - description: '' - delete: - operationId: plugins_firewall_address_object_group_bulk_destroy - description: AddressObjectGroup viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/address-object-group/{id}/: - get: - operationId: plugins_firewall_address_object_group_retrieve - description: AddressObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object group. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObjectGroup' - description: '' - put: - operationId: plugins_firewall_address_object_group_update - description: AddressObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAddressObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObjectGroup' - description: '' - patch: - operationId: plugins_firewall_address_object_group_partial_update - description: AddressObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableAddressObjectGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObjectGroup' - description: '' - delete: - operationId: plugins_firewall_address_object_group_destroy - description: AddressObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object group. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/address-object-group/{id}/notes/: - get: - operationId: plugins_firewall_address_object_group_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_address_object_group_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/address-object/{id}/: - get: - operationId: plugins_firewall_address_object_retrieve - description: AddressObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObject' - description: '' - put: - operationId: plugins_firewall_address_object_update - description: AddressObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableAddressObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObject' - description: '' - patch: - operationId: plugins_firewall_address_object_partial_update - description: AddressObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableAddressObjectRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/AddressObject' - description: '' - delete: - operationId: plugins_firewall_address_object_destroy - description: AddressObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/address-object/{id}/notes/: - get: - operationId: plugins_firewall_address_object_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_address_object_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this address object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/capirca-policy/: - get: - operationId: plugins_firewall_capirca_policy_list - description: CapircaPolicy viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device Name - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device Name - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Device ID - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Device ID - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCapircaPolicyList' - description: '' - post: - operationId: plugins_firewall_capirca_policy_create - description: CapircaPolicy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CapircaPolicyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CapircaPolicy' - description: '' - put: - operationId: plugins_firewall_capirca_policy_bulk_update - description: CapircaPolicy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCapircaPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CapircaPolicy' - description: '' - patch: - operationId: plugins_firewall_capirca_policy_bulk_partial_update - description: CapircaPolicy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCapircaPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CapircaPolicy' - description: '' - delete: - operationId: plugins_firewall_capirca_policy_bulk_destroy - description: CapircaPolicy viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/capirca-policy/{id}/: - get: - operationId: plugins_firewall_capirca_policy_retrieve - description: CapircaPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this capirca policy. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CapircaPolicy' - description: '' - put: - operationId: plugins_firewall_capirca_policy_update - description: CapircaPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this capirca policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CapircaPolicyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CapircaPolicy' - description: '' - patch: - operationId: plugins_firewall_capirca_policy_partial_update - description: CapircaPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this capirca policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCapircaPolicyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CapircaPolicy' - description: '' - delete: - operationId: plugins_firewall_capirca_policy_destroy - description: CapircaPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this capirca policy. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/fqdn/: - get: - operationId: plugins_firewall_fqdn_list - description: FQDN viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedFQDNList' - description: '' - post: - operationId: plugins_firewall_fqdn_create - description: FQDN viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFQDNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FQDN' - description: '' - put: - operationId: plugins_firewall_fqdn_bulk_update - description: FQDN viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableFQDNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/FQDN' - description: '' - patch: - operationId: plugins_firewall_fqdn_bulk_partial_update - description: FQDN viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableFQDNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/FQDN' - description: '' - delete: - operationId: plugins_firewall_fqdn_bulk_destroy - description: FQDN viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/fqdn/{id}/: - get: - operationId: plugins_firewall_fqdn_retrieve - description: FQDN viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this FQDN. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FQDN' - description: '' - put: - operationId: plugins_firewall_fqdn_update - description: FQDN viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this FQDN. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFQDNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FQDN' - description: '' - patch: - operationId: plugins_firewall_fqdn_partial_update - description: FQDN viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this FQDN. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFQDNRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/FQDN' - description: '' - delete: - operationId: plugins_firewall_fqdn_destroy - description: FQDN viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this FQDN. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/fqdn/{id}/notes/: - get: - operationId: plugins_firewall_fqdn_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this FQDN. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_fqdn_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this FQDN. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/ip-range/: - get: - operationId: plugins_firewall_ip_range_list - description: IPRange viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: size - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: size__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: size__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: size__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: size__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: size__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: vrf - schema: - type: string - format: uuid - - in: query - name: vrf__n - schema: - type: string - format: uuid - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedIPRangeList' - description: '' - post: - operationId: plugins_firewall_ip_range_create - description: IPRange viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/IPRangeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPRange' - description: '' - put: - operationId: plugins_firewall_ip_range_bulk_update - description: IPRange viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableIPRangeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/IPRange' - description: '' - patch: - operationId: plugins_firewall_ip_range_bulk_partial_update - description: IPRange viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableIPRangeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/IPRange' - description: '' - delete: - operationId: plugins_firewall_ip_range_bulk_destroy - description: IPRange viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/ip-range/{id}/: - get: - operationId: plugins_firewall_ip_range_retrieve - description: IPRange viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this ip range. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPRange' - description: '' - put: - operationId: plugins_firewall_ip_range_update - description: IPRange viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this ip range. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/IPRangeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPRange' - description: '' - patch: - operationId: plugins_firewall_ip_range_partial_update - description: IPRange viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this ip range. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedIPRangeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/IPRange' - description: '' - delete: - operationId: plugins_firewall_ip_range_destroy - description: IPRange viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this ip range. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/ip-range/{id}/notes/: - get: - operationId: plugins_firewall_ip_range_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this ip range. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_ip_range_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this ip range. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/nat-policy/: - get: - operationId: plugins_firewall_nat_policy_list - description: NATPolicy viewset. - parameters: - - in: query - name: assigned_devices - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_devices__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_dynamic_groups - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_dynamic_groups__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: nat_policy_rules - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: nat_policy_rules__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNATPolicyList' - description: '' - post: - operationId: plugins_firewall_nat_policy_create - description: NATPolicy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NATPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicy' - description: '' - put: - operationId: plugins_firewall_nat_policy_bulk_update - description: NATPolicy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableNATPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/NATPolicy' - description: '' - patch: - operationId: plugins_firewall_nat_policy_bulk_partial_update - description: NATPolicy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableNATPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/NATPolicy' - description: '' - delete: - operationId: plugins_firewall_nat_policy_bulk_destroy - description: NATPolicy viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/nat-policy-rule/: - get: - operationId: plugins_firewall_nat_policy_rule_list - description: NATPolicyRule viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: log - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: remark - schema: - type: boolean - - in: query - name: request_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNATPolicyRuleList' - description: '' - post: - operationId: plugins_firewall_nat_policy_rule_create - description: NATPolicyRule viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableNATPolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicyRule' - description: '' - put: - operationId: plugins_firewall_nat_policy_rule_bulk_update - description: NATPolicyRule viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableNATPolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/NATPolicyRule' - description: '' - patch: - operationId: plugins_firewall_nat_policy_rule_bulk_partial_update - description: NATPolicyRule viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableNATPolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/NATPolicyRule' - description: '' - delete: - operationId: plugins_firewall_nat_policy_rule_bulk_destroy - description: NATPolicyRule viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/nat-policy-rule/{id}/: - get: - operationId: plugins_firewall_nat_policy_rule_retrieve - description: NATPolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicyRule' - description: '' - put: - operationId: plugins_firewall_nat_policy_rule_update - description: NATPolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableNATPolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicyRule' - description: '' - patch: - operationId: plugins_firewall_nat_policy_rule_partial_update - description: NATPolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableNATPolicyRuleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicyRule' - description: '' - delete: - operationId: plugins_firewall_nat_policy_rule_destroy - description: NATPolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/nat-policy-rule/{id}/notes/: - get: - operationId: plugins_firewall_nat_policy_rule_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy rule. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_nat_policy_rule_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/nat-policy/{id}/: - get: - operationId: plugins_firewall_nat_policy_retrieve - description: NATPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicy' - description: '' - put: - operationId: plugins_firewall_nat_policy_update - description: NATPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NATPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicy' - description: '' - patch: - operationId: plugins_firewall_nat_policy_partial_update - description: NATPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedNATPolicyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/NATPolicy' - description: '' - delete: - operationId: plugins_firewall_nat_policy_destroy - description: NATPolicy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/nat-policy/{id}/notes/: - get: - operationId: plugins_firewall_nat_policy_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_nat_policy_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this nat policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/policy/: - get: - operationId: plugins_firewall_policy_list - description: Policy viewset. - parameters: - - in: query - name: assigned_devices - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_devices__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_dynamic_groups - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: assigned_dynamic_groups__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: policy_rules - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: policy_rules__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPolicyList' - description: '' - post: - operationId: plugins_firewall_policy_create - description: Policy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Policy' - description: '' - put: - operationId: plugins_firewall_policy_bulk_update - description: Policy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Policy' - description: '' - patch: - operationId: plugins_firewall_policy_bulk_partial_update - description: Policy viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Policy' - description: '' - delete: - operationId: plugins_firewall_policy_bulk_destroy - description: Policy viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/policy-rule/: - get: - operationId: plugins_firewall_policy_rule_list - description: PolicyRule viewset. - parameters: - - in: query - name: action - schema: - type: string - enum: - - allow - - deny - - drop - - remark - - in: query - name: action__n - schema: - type: string - enum: - - allow - - deny - - drop - - remark - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: log - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: request_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: request_id__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedPolicyRuleList' - description: '' - post: - operationId: plugins_firewall_policy_rule_create - description: PolicyRule viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PolicyRule' - description: '' - put: - operationId: plugins_firewall_policy_rule_bulk_update - description: PolicyRule viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritablePolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PolicyRule' - description: '' - patch: - operationId: plugins_firewall_policy_rule_bulk_partial_update - description: PolicyRule viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritablePolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/PolicyRule' - description: '' - delete: - operationId: plugins_firewall_policy_rule_bulk_destroy - description: PolicyRule viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/policy-rule/{id}/: - get: - operationId: plugins_firewall_policy_rule_retrieve - description: PolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PolicyRule' - description: '' - put: - operationId: plugins_firewall_policy_rule_update - description: PolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePolicyRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PolicyRule' - description: '' - patch: - operationId: plugins_firewall_policy_rule_partial_update - description: PolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePolicyRuleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PolicyRule' - description: '' - delete: - operationId: plugins_firewall_policy_rule_destroy - description: PolicyRule viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/policy-rule/{id}/notes/: - get: - operationId: plugins_firewall_policy_rule_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy rule. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_policy_rule_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/policy/{id}/: - get: - operationId: plugins_firewall_policy_retrieve - description: Policy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Policy' - description: '' - put: - operationId: plugins_firewall_policy_update - description: Policy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Policy' - description: '' - patch: - operationId: plugins_firewall_policy_partial_update - description: Policy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedPolicyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Policy' - description: '' - delete: - operationId: plugins_firewall_policy_destroy - description: Policy viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/policy/{id}/notes/: - get: - operationId: plugins_firewall_policy_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_policy_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this policy. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/service-object/: - get: - operationId: plugins_firewall_service_object_list - description: ServiceObject viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: ip_protocol - schema: - type: string - enum: - - 3PC - - A/N - - AH - - ARIS - - AX.25 - - BBN-RCC-MON - - BNA - - BR-SAT-MON - - CBT - - CFTP - - CHAOS - - CPHB - - CPNX - - CRTP - - CRUDP - - Compaq-Peer - - DCCP - - DCN-MEAS - - DDP - - DDX - - DGP - - DSR - - EGP - - EIGRP - - EMCON - - ENCAP - - ESP - - ETHERIP - - Ethernet - - FC - - FIRE - - GGP - - GMTP - - GRE - - HIP - - HMP - - I-NLSP - - IATP - - ICMP - - IDPR - - IDPR-CMTP - - IDRP - - IFMP - - IGMP - - IGP - - IL - - IPCV - - IPComp - - IPIP - - IPLT - - IPPC - - IPX-in-IP - - IRTP - - ISO-IP - - ISO-TP4 - - KRYPTOLAN - - L2TP - - LARP - - LEAF-1 - - LEAF-2 - - MERIT-INP - - MFE-NSP - - MOBILE - - MTP - - MUX - - NARP - - NETBLT - - NSFNET-IGP - - NVP-II - - OSPFIGP - - PGM - - PIM - - PIPE - - PNNI - - PRM - - PTP - - PUP - - PVP - - QNX - - RDP - - ROHC - - RSVP - - RSVP-E2E-IGNORE - - RVD - - SAT-EXPAK - - SAT-MON - - SCC-SP - - SCPS - - SCTP - - SDRP - - SECURE-VMTP - - SKIP - - SM - - SMP - - SNP - - SPS - - SRP - - SSCOPMCE - - STP - - SUN-ND - - Sprite-RPC - - TCF - - TCP - - TLSP - - TP++ - - TRUNK-1 - - TRUNK-2 - - TTP - - UDP - - UDPLite - - UTI - - VINES - - VISA - - VMTP - - WB-EXPAK - - WB-MON - - WESP - - WSN - - XNET - - XNS-IDP - - XTP - - manet - description: IANA IP Protocol (e.g. TCP UDP ICMP) - - in: query - name: ip_protocol__n - schema: - type: string - enum: - - 3PC - - A/N - - AH - - ARIS - - AX.25 - - BBN-RCC-MON - - BNA - - BR-SAT-MON - - CBT - - CFTP - - CHAOS - - CPHB - - CPNX - - CRTP - - CRUDP - - Compaq-Peer - - DCCP - - DCN-MEAS - - DDP - - DDX - - DGP - - DSR - - EGP - - EIGRP - - EMCON - - ENCAP - - ESP - - ETHERIP - - Ethernet - - FC - - FIRE - - GGP - - GMTP - - GRE - - HIP - - HMP - - I-NLSP - - IATP - - ICMP - - IDPR - - IDPR-CMTP - - IDRP - - IFMP - - IGMP - - IGP - - IL - - IPCV - - IPComp - - IPIP - - IPLT - - IPPC - - IPX-in-IP - - IRTP - - ISO-IP - - ISO-TP4 - - KRYPTOLAN - - L2TP - - LARP - - LEAF-1 - - LEAF-2 - - MERIT-INP - - MFE-NSP - - MOBILE - - MTP - - MUX - - NARP - - NETBLT - - NSFNET-IGP - - NVP-II - - OSPFIGP - - PGM - - PIM - - PIPE - - PNNI - - PRM - - PTP - - PUP - - PVP - - QNX - - RDP - - ROHC - - RSVP - - RSVP-E2E-IGNORE - - RVD - - SAT-EXPAK - - SAT-MON - - SCC-SP - - SCPS - - SCTP - - SDRP - - SECURE-VMTP - - SKIP - - SM - - SMP - - SNP - - SPS - - SRP - - SSCOPMCE - - STP - - SUN-ND - - Sprite-RPC - - TCF - - TCP - - TLSP - - TP++ - - TRUNK-1 - - TRUNK-2 - - TTP - - UDP - - UDPLite - - UTI - - VINES - - VISA - - VMTP - - WB-EXPAK - - WB-MON - - WESP - - WSN - - XNET - - XNS-IDP - - XTP - - manet - description: IANA IP Protocol (e.g. TCP UDP ICMP) - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: port - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: port__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedServiceObjectList' - description: '' - post: - operationId: plugins_firewall_service_object_create - description: ServiceObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ServiceObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObject' - description: '' - put: - operationId: plugins_firewall_service_object_bulk_update - description: ServiceObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableServiceObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ServiceObject' - description: '' - patch: - operationId: plugins_firewall_service_object_bulk_partial_update - description: ServiceObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableServiceObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ServiceObject' - description: '' - delete: - operationId: plugins_firewall_service_object_bulk_destroy - description: ServiceObject viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/service-object-group/: - get: - operationId: plugins_firewall_service_object_group_list - description: ServiceObjectGroup viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: service_objects - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: service_objects__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedServiceObjectGroupList' - description: '' - post: - operationId: plugins_firewall_service_object_group_create - description: ServiceObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableServiceObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObjectGroup' - description: '' - put: - operationId: plugins_firewall_service_object_group_bulk_update - description: ServiceObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableServiceObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ServiceObjectGroup' - description: '' - patch: - operationId: plugins_firewall_service_object_group_bulk_partial_update - description: ServiceObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableServiceObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ServiceObjectGroup' - description: '' - delete: - operationId: plugins_firewall_service_object_group_bulk_destroy - description: ServiceObjectGroup viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/service-object-group/{id}/: - get: - operationId: plugins_firewall_service_object_group_retrieve - description: ServiceObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object group. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObjectGroup' - description: '' - put: - operationId: plugins_firewall_service_object_group_update - description: ServiceObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableServiceObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObjectGroup' - description: '' - patch: - operationId: plugins_firewall_service_object_group_partial_update - description: ServiceObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableServiceObjectGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObjectGroup' - description: '' - delete: - operationId: plugins_firewall_service_object_group_destroy - description: ServiceObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object group. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/service-object-group/{id}/notes/: - get: - operationId: plugins_firewall_service_object_group_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_service_object_group_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/service-object/{id}/: - get: - operationId: plugins_firewall_service_object_retrieve - description: ServiceObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObject' - description: '' - put: - operationId: plugins_firewall_service_object_update - description: ServiceObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ServiceObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObject' - description: '' - patch: - operationId: plugins_firewall_service_object_partial_update - description: ServiceObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedServiceObjectRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ServiceObject' - description: '' - delete: - operationId: plugins_firewall_service_object_destroy - description: ServiceObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/service-object/{id}/notes/: - get: - operationId: plugins_firewall_service_object_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_service_object_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this service object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/user-object/: - get: - operationId: plugins_firewall_user_object_list - description: UserObject viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedUserObjectList' - description: '' - post: - operationId: plugins_firewall_user_object_create - description: UserObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UserObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObject' - description: '' - put: - operationId: plugins_firewall_user_object_bulk_update - description: UserObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableUserObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/UserObject' - description: '' - patch: - operationId: plugins_firewall_user_object_bulk_partial_update - description: UserObject viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableUserObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/UserObject' - description: '' - delete: - operationId: plugins_firewall_user_object_bulk_destroy - description: UserObject viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/user-object-group/: - get: - operationId: plugins_firewall_user_object_group_list - description: UserObjectGroup viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_objects - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: user_objects__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedUserObjectGroupList' - description: '' - post: - operationId: plugins_firewall_user_object_group_create - description: UserObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableUserObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObjectGroup' - description: '' - put: - operationId: plugins_firewall_user_object_group_bulk_update - description: UserObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableUserObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/UserObjectGroup' - description: '' - patch: - operationId: plugins_firewall_user_object_group_bulk_partial_update - description: UserObjectGroup viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableUserObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/UserObjectGroup' - description: '' - delete: - operationId: plugins_firewall_user_object_group_bulk_destroy - description: UserObjectGroup viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/user-object-group/{id}/: - get: - operationId: plugins_firewall_user_object_group_retrieve - description: UserObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object group. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObjectGroup' - description: '' - put: - operationId: plugins_firewall_user_object_group_update - description: UserObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableUserObjectGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObjectGroup' - description: '' - patch: - operationId: plugins_firewall_user_object_group_partial_update - description: UserObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableUserObjectGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObjectGroup' - description: '' - delete: - operationId: plugins_firewall_user_object_group_destroy - description: UserObjectGroup viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object group. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/user-object-group/{id}/notes/: - get: - operationId: plugins_firewall_user_object_group_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_user_object_group_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object group. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/user-object/{id}/: - get: - operationId: plugins_firewall_user_object_retrieve - description: UserObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObject' - description: '' - put: - operationId: plugins_firewall_user_object_update - description: UserObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UserObjectRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObject' - description: '' - patch: - operationId: plugins_firewall_user_object_partial_update - description: UserObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedUserObjectRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/UserObject' - description: '' - delete: - operationId: plugins_firewall_user_object_destroy - description: UserObject viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/user-object/{id}/notes/: - get: - operationId: plugins_firewall_user_object_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_user_object_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user object. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/firewall/zone/: - get: - operationId: plugins_firewall_zone_list - description: Zone viewset. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: interfaces - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: interfaces__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: vrfs - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: vrfs__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedZoneList' - description: '' - post: - operationId: plugins_firewall_zone_create - description: Zone viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ZoneRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Zone' - description: '' - put: - operationId: plugins_firewall_zone_bulk_update - description: Zone viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableZoneRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Zone' - description: '' - patch: - operationId: plugins_firewall_zone_bulk_partial_update - description: Zone viewset. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableZoneRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Zone' - description: '' - delete: - operationId: plugins_firewall_zone_bulk_destroy - description: Zone viewset. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/firewall/zone/{id}/: - get: - operationId: plugins_firewall_zone_retrieve - description: Zone viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this zone. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Zone' - description: '' - put: - operationId: plugins_firewall_zone_update - description: Zone viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this zone. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ZoneRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Zone' - description: '' - patch: - operationId: plugins_firewall_zone_partial_update - description: Zone viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this zone. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedZoneRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Zone' - description: '' - delete: - operationId: plugins_firewall_zone_destroy - description: Zone viewset. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this zone. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/firewall/zone/{id}/notes/: - get: - operationId: plugins_firewall_zone_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this zone. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: plugins_firewall_zone_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this zone. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /plugins/golden-config/compliance-feature/: - get: - operationId: plugins_golden_config_compliance_feature_list - description: API viewset for interacting with ComplianceFeature objects. - parameters: - - in: query - name: id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: string - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedComplianceFeatureList' - description: '' - post: - operationId: plugins_golden_config_compliance_feature_create - description: API viewset for interacting with ComplianceFeature objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComplianceFeatureRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceFeature' - description: '' - put: - operationId: plugins_golden_config_compliance_feature_bulk_update - description: API viewset for interacting with ComplianceFeature objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableComplianceFeatureRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ComplianceFeature' - description: '' - patch: - operationId: plugins_golden_config_compliance_feature_bulk_partial_update - description: API viewset for interacting with ComplianceFeature objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableComplianceFeatureRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ComplianceFeature' - description: '' - delete: - operationId: plugins_golden_config_compliance_feature_bulk_destroy - description: API viewset for interacting with ComplianceFeature objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/golden-config/compliance-feature/{id}/: - get: - operationId: plugins_golden_config_compliance_feature_retrieve - description: API viewset for interacting with ComplianceFeature objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance feature. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceFeature' - description: '' - put: - operationId: plugins_golden_config_compliance_feature_update - description: API viewset for interacting with ComplianceFeature objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance feature. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComplianceFeatureRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceFeature' - description: '' - patch: - operationId: plugins_golden_config_compliance_feature_partial_update - description: API viewset for interacting with ComplianceFeature objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance feature. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedComplianceFeatureRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceFeature' - description: '' - delete: - operationId: plugins_golden_config_compliance_feature_destroy - description: API viewset for interacting with ComplianceFeature objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance feature. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/golden-config/compliance-rule/: - get: - operationId: plugins_golden_config_compliance_rule_list - description: API viewset for interacting with ComplianceRule objects. - parameters: - - in: query - name: feature - schema: - type: string - format: uuid - - in: query - name: id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: string - format: uuid - description: Platform (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedComplianceRuleList' - description: '' - post: - operationId: plugins_golden_config_compliance_rule_create - description: API viewset for interacting with ComplianceRule objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComplianceRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceRule' - description: '' - put: - operationId: plugins_golden_config_compliance_rule_bulk_update - description: API viewset for interacting with ComplianceRule objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableComplianceRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ComplianceRule' - description: '' - patch: - operationId: plugins_golden_config_compliance_rule_bulk_partial_update - description: API viewset for interacting with ComplianceRule objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableComplianceRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ComplianceRule' - description: '' - delete: - operationId: plugins_golden_config_compliance_rule_bulk_destroy - description: API viewset for interacting with ComplianceRule objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/golden-config/compliance-rule/{id}/: - get: - operationId: plugins_golden_config_compliance_rule_retrieve - description: API viewset for interacting with ComplianceRule objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceRule' - description: '' - put: - operationId: plugins_golden_config_compliance_rule_update - description: API viewset for interacting with ComplianceRule objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComplianceRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceRule' - description: '' - patch: - operationId: plugins_golden_config_compliance_rule_partial_update - description: API viewset for interacting with ComplianceRule objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance rule. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedComplianceRuleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ComplianceRule' - description: '' - delete: - operationId: plugins_golden_config_compliance_rule_destroy - description: API viewset for interacting with ComplianceRule objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this compliance rule. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/golden-config/config-compliance/: - get: - operationId: plugins_golden_config_config_compliance_list - description: API viewset for interacting with ConfigCompliance objects. - parameters: - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device Name - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device ID - explode: true - style: form - - in: query - name: device_status - schema: - type: array - items: - type: string - format: uuid - description: Device Status - explode: true - style: form - - in: query - name: device_status_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Device Status - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: DeviceType (slug) - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: string - format: uuid - description: Manufacturer (ID) - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: string - format: uuid - description: Platform (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_group - schema: - type: array - items: - type: string - description: Rack group (slug) - explode: true - style: form - - in: query - name: rack_group_id - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: string - format: uuid - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: string - format: uuid - description: Role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConfigComplianceList' - description: '' - post: - operationId: plugins_golden_config_config_compliance_create - description: API viewset for interacting with ConfigCompliance objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigComplianceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigCompliance' - description: '' - put: - operationId: plugins_golden_config_config_compliance_bulk_update - description: API viewset for interacting with ConfigCompliance objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConfigComplianceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigCompliance' - description: '' - patch: - operationId: plugins_golden_config_config_compliance_bulk_partial_update - description: API viewset for interacting with ConfigCompliance objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConfigComplianceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigCompliance' - description: '' - delete: - operationId: plugins_golden_config_config_compliance_bulk_destroy - description: API viewset for interacting with ConfigCompliance objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/golden-config/config-compliance/{id}/: - get: - operationId: plugins_golden_config_config_compliance_retrieve - description: API viewset for interacting with ConfigCompliance objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config compliance. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigCompliance' - description: '' - put: - operationId: plugins_golden_config_config_compliance_update - description: API viewset for interacting with ConfigCompliance objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config compliance. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigComplianceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigCompliance' - description: '' - patch: - operationId: plugins_golden_config_config_compliance_partial_update - description: API viewset for interacting with ConfigCompliance objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config compliance. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedConfigComplianceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigCompliance' - description: '' - delete: - operationId: plugins_golden_config_config_compliance_destroy - description: API viewset for interacting with ConfigCompliance objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config compliance. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/golden-config/config-postprocessing/{id}/: - get: - operationId: plugins_golden_config_config_postprocessing_retrieve - description: Detail REST API view showing configuration after postprocessing. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this device. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigToPush' - description: '' - /plugins/golden-config/config-remove/: - get: - operationId: plugins_golden_config_config_remove_list - description: API viewset for interacting with ConfigRemove objects. - parameters: - - in: query - name: id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: string - format: uuid - description: Platform (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConfigRemoveList' - description: '' - post: - operationId: plugins_golden_config_config_remove_create - description: API viewset for interacting with ConfigRemove objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigRemoveRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigRemove' - description: '' - put: - operationId: plugins_golden_config_config_remove_bulk_update - description: API viewset for interacting with ConfigRemove objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConfigRemoveRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigRemove' - description: '' - patch: - operationId: plugins_golden_config_config_remove_bulk_partial_update - description: API viewset for interacting with ConfigRemove objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConfigRemoveRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigRemove' - description: '' - delete: - operationId: plugins_golden_config_config_remove_bulk_destroy - description: API viewset for interacting with ConfigRemove objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/golden-config/config-remove/{id}/: - get: - operationId: plugins_golden_config_config_remove_retrieve - description: API viewset for interacting with ConfigRemove objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config remove. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigRemove' - description: '' - put: - operationId: plugins_golden_config_config_remove_update - description: API viewset for interacting with ConfigRemove objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config remove. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigRemoveRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigRemove' - description: '' - patch: - operationId: plugins_golden_config_config_remove_partial_update - description: API viewset for interacting with ConfigRemove objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config remove. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedConfigRemoveRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigRemove' - description: '' - delete: - operationId: plugins_golden_config_config_remove_destroy - description: API viewset for interacting with ConfigRemove objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config remove. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/golden-config/config-replace/: - get: - operationId: plugins_golden_config_config_replace_list - description: API viewset for interacting with ConfigReplace objects. - parameters: - - in: query - name: id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: string - format: uuid - description: Platform (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedConfigReplaceList' - description: '' - post: - operationId: plugins_golden_config_config_replace_create - description: API viewset for interacting with ConfigReplace objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigReplaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigReplace' - description: '' - put: - operationId: plugins_golden_config_config_replace_bulk_update - description: API viewset for interacting with ConfigReplace objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableConfigReplaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigReplace' - description: '' - patch: - operationId: plugins_golden_config_config_replace_bulk_partial_update - description: API viewset for interacting with ConfigReplace objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableConfigReplaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigReplace' - description: '' - delete: - operationId: plugins_golden_config_config_replace_bulk_destroy - description: API viewset for interacting with ConfigReplace objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/golden-config/config-replace/{id}/: - get: - operationId: plugins_golden_config_config_replace_retrieve - description: API viewset for interacting with ConfigReplace objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config replace. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigReplace' - description: '' - put: - operationId: plugins_golden_config_config_replace_update - description: API viewset for interacting with ConfigReplace objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config replace. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigReplaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigReplace' - description: '' - patch: - operationId: plugins_golden_config_config_replace_partial_update - description: API viewset for interacting with ConfigReplace objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config replace. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedConfigReplaceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ConfigReplace' - description: '' - delete: - operationId: plugins_golden_config_config_replace_destroy - description: API viewset for interacting with ConfigReplace objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this config replace. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/golden-config/golden-config/: - get: - operationId: plugins_golden_config_golden_config_list - description: API viewset for interacting with GoldenConfig objects. - parameters: - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device Name - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: string - format: uuid - description: Device ID - explode: true - style: form - - in: query - name: device_status - schema: - type: array - items: - type: string - format: uuid - description: Device Status - explode: true - style: form - - in: query - name: device_status_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Device Status - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: DeviceType (slug) - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: string - format: uuid - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: string - format: uuid - description: Manufacturer (ID) - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: string - format: uuid - description: Platform (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_group - schema: - type: array - items: - type: string - description: Rack group (slug) - explode: true - style: form - - in: query - name: rack_group_id - schema: - type: array - items: - type: string - format: uuid - description: Rack group (ID) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: string - format: uuid - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: string - format: uuid - description: Role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - description: Site (ID) - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedGoldenConfigList' - description: '' - post: - operationId: plugins_golden_config_golden_config_create - description: API viewset for interacting with GoldenConfig objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GoldenConfigRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfig' - description: '' - put: - operationId: plugins_golden_config_golden_config_bulk_update - description: API viewset for interacting with GoldenConfig objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableGoldenConfigRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GoldenConfig' - description: '' - patch: - operationId: plugins_golden_config_golden_config_bulk_partial_update - description: API viewset for interacting with GoldenConfig objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableGoldenConfigRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GoldenConfig' - description: '' - delete: - operationId: plugins_golden_config_golden_config_bulk_destroy - description: API viewset for interacting with GoldenConfig objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/golden-config/golden-config-settings/: - get: - operationId: plugins_golden_config_golden_config_settings_list - description: API viewset for interacting with GoldenConfigSetting objects. - parameters: - - in: query - name: backup_repository - schema: - type: string - format: uuid - - in: query - name: backup_repository__n - schema: - type: string - format: uuid - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: intended_repository - schema: - type: string - format: uuid - - in: query - name: intended_repository__n - schema: - type: string - format: uuid - - in: query - name: jinja_repository - schema: - type: string - format: uuid - - in: query - name: jinja_repository__n - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: weight - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: integer - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedGoldenConfigSettingList' - description: '' - post: - operationId: plugins_golden_config_golden_config_settings_create - description: API viewset for interacting with GoldenConfigSetting objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableGoldenConfigSettingRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfigSetting' - description: '' - put: - operationId: plugins_golden_config_golden_config_settings_bulk_update - description: API viewset for interacting with GoldenConfigSetting objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableGoldenConfigSettingRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GoldenConfigSetting' - description: '' - patch: - operationId: plugins_golden_config_golden_config_settings_bulk_partial_update - description: API viewset for interacting with GoldenConfigSetting objects. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableGoldenConfigSettingRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/GoldenConfigSetting' - description: '' - delete: - operationId: plugins_golden_config_golden_config_settings_bulk_destroy - description: API viewset for interacting with GoldenConfigSetting objects. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/golden-config/golden-config-settings/{id}/: - get: - operationId: plugins_golden_config_golden_config_settings_retrieve - description: API viewset for interacting with GoldenConfigSetting objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Golden Config Setting. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfigSetting' - description: '' - put: - operationId: plugins_golden_config_golden_config_settings_update - description: API viewset for interacting with GoldenConfigSetting objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Golden Config Setting. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableGoldenConfigSettingRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfigSetting' - description: '' - patch: - operationId: plugins_golden_config_golden_config_settings_partial_update - description: API viewset for interacting with GoldenConfigSetting objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Golden Config Setting. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableGoldenConfigSettingRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfigSetting' - description: '' - delete: - operationId: plugins_golden_config_golden_config_settings_destroy - description: API viewset for interacting with GoldenConfigSetting objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Golden Config Setting. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/golden-config/golden-config/{id}/: - get: - operationId: plugins_golden_config_golden_config_retrieve - description: API viewset for interacting with GoldenConfig objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this golden config. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfig' - description: '' - put: - operationId: plugins_golden_config_golden_config_update - description: API viewset for interacting with GoldenConfig objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this golden config. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GoldenConfigRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfig' - description: '' - patch: - operationId: plugins_golden_config_golden_config_partial_update - description: API viewset for interacting with GoldenConfig objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this golden config. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedGoldenConfigRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/GoldenConfig' - description: '' - delete: - operationId: plugins_golden_config_golden_config_destroy - description: API viewset for interacting with GoldenConfig objects. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this golden config. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/golden-config/sotagg/{id}/: - get: - operationId: plugins_golden_config_sotagg_retrieve - description: Get method serialize for a dictionary to json response. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/contact/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_list - description: CRUD operations set for the Contact Lifecycle Management view. - parameters: - - in: query - name: address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract - schema: - type: string - format: uuid - - in: query - name: contract__n - schema: - type: string - format: uuid - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: email - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: phone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: priority - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: priority__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: priority__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: priority__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: priority__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: priority__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedContactLCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_create - description: CRUD operations set for the Contact Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContactLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_bulk_update - description: CRUD operations set for the Contact Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableContactLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ContactLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_bulk_partial_update - description: CRUD operations set for the Contact Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableContactLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ContactLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_bulk_destroy - description: CRUD operations set for the Contact Lifecycle Management view. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/contact/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_retrieve - description: CRUD operations set for the Contact Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract POC. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContactLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_update - description: CRUD operations set for the Contact Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract POC. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContactLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_partial_update - description: CRUD operations set for the Contact Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract POC. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableContactLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContactLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_contact_destroy - description: CRUD operations set for the Contact Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract POC. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/contract/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_list - description: CRUD operations set for the Contract Lifecycle Management view. - parameters: - - in: query - name: contract_type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contract_type__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cost - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: cost__gt - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: cost__gte - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: cost__lt - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: cost__lte - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: cost__n - schema: - type: array - items: - type: number - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: end - schema: - type: string - format: date - - in: query - name: end__gte - schema: - type: string - format: date - - in: query - name: end__lte - schema: - type: string - format: date - - in: query - name: expired - schema: - type: boolean - description: Expired - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: provider - schema: - type: array - items: - type: string - format: uuid - description: Provider - explode: true - style: form - - in: query - name: provider__n - schema: - type: array - items: - type: string - format: uuid - description: Provider - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: start - schema: - type: string - format: date - - in: query - name: start__gte - schema: - type: string - format: date - - in: query - name: start__lte - schema: - type: string - format: date - - in: query - name: support_level - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: support_level__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedContractLCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_create - description: CRUD operations set for the Contract Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContractLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContractLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_bulk_update - description: CRUD operations set for the Contract Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableContractLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ContractLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_bulk_partial_update - description: CRUD operations set for the Contract Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableContractLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ContractLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_bulk_destroy - description: CRUD operations set for the Contract Lifecycle Management view. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/contract/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_retrieve - description: CRUD operations set for the Contract Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContractLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_update - description: CRUD operations set for the Contract Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContractLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContractLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_partial_update - description: CRUD operations set for the Contract Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableContractLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ContractLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_contract_destroy - description: CRUD operations set for the Contract Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Contract. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/cve/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_list - description: REST API viewset for CVELCM records. - parameters: - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: cvss - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss__gt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss__gte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss__lt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss__lte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss__n - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v2 - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v2__gt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v2__gte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v2__lt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v2__lte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v2__n - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v3 - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v3__gt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v3__gte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v3__lt - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v3__lte - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: cvss_v3__n - schema: - type: array - items: - type: number - format: float - explode: true - style: form - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: exclude_status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: exclude_status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: fix - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: fix__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: link - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: published_date__gte - schema: - type: string - format: date - - in: query - name: published_date__lte - schema: - type: string - format: date - - in: query - name: published_date_after - schema: - type: string - format: date-time - - in: query - name: published_date_before - schema: - type: string - format: date-time - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: severity - schema: - type: string - - in: query - name: severity__n - schema: - type: string - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedCVELCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_create - description: REST API viewset for CVELCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCVELCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CVELCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_bulk_update - description: REST API viewset for CVELCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableCVELCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CVELCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_bulk_partial_update - description: REST API viewset for CVELCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableCVELCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/CVELCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_bulk_destroy - description: REST API viewset for CVELCM records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/cve/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_retrieve - description: REST API viewset for CVELCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this CVE. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CVELCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_update - description: REST API viewset for CVELCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this CVE. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCVELCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CVELCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_partial_update - description: REST API viewset for CVELCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this CVE. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableCVELCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/CVELCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_cve_destroy - description: REST API viewset for CVELCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this CVE. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/hardware/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_list - description: CRUD operations set for the Hardware Lifecycle Management view. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device Type (Slug) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device Type (Slug) - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: string - format: uuid - description: Device Type - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device Type - explode: true - style: form - - in: query - name: documentation_url - schema: - type: string - - in: query - name: end_of_sale - schema: - type: string - format: date - - in: query - name: end_of_sale__gte - schema: - type: string - format: date - - in: query - name: end_of_sale__lte - schema: - type: string - format: date - - in: query - name: end_of_security_patches - schema: - type: string - format: date - - in: query - name: end_of_security_patches__gte - schema: - type: string - format: date - - in: query - name: end_of_security_patches__lte - schema: - type: string - format: date - - in: query - name: end_of_support - schema: - type: string - format: date - - in: query - name: end_of_support__gte - schema: - type: string - format: date - - in: query - name: end_of_support__lte - schema: - type: string - format: date - - in: query - name: end_of_sw_releases - schema: - type: string - format: date - - in: query - name: end_of_sw_releases__gte - schema: - type: string - format: date - - in: query - name: end_of_sw_releases__lte - schema: - type: string - format: date - - in: query - name: expired - schema: - type: boolean - description: Expired - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: inventory_item - schema: - type: array - items: - type: string - nullable: true - title: Inventory Item Part - description: Inventory Part ID - explode: true - style: form - - in: query - name: inventory_item__n - schema: - type: array - items: - type: string - nullable: true - title: Inventory Item Part - description: Inventory Part ID - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedHardwareLCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_create - description: CRUD operations set for the Hardware Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableHardwareLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/HardwareLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_bulk_update - description: CRUD operations set for the Hardware Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableHardwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/HardwareLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_bulk_partial_update - description: CRUD operations set for the Hardware Lifecycle Management view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableHardwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/HardwareLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_bulk_destroy - description: CRUD operations set for the Hardware Lifecycle Management view. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/hardware/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_retrieve - description: CRUD operations set for the Hardware Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Hardware Notice. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/HardwareLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_update - description: CRUD operations set for the Hardware Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Hardware Notice. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableHardwareLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/HardwareLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_partial_update - description: CRUD operations set for the Hardware Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Hardware Notice. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableHardwareLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/HardwareLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_hardware_destroy - description: CRUD operations set for the Hardware Lifecycle Management view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Hardware Notice. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/provider/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_list - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - parameters: - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: country__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: phone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: physical_address__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: portal_url__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedProviderLCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_create - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_bulk_update - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableProviderLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_bulk_partial_update - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableProviderLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_bulk_destroy - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/provider/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_retrieve - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vendor. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_update - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vendor. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_partial_update - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vendor. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedProviderLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ProviderLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_provider_destroy - description: CRUD operations set for the Contract Provider Lifecycle Management - view. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vendor. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/software/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_list - description: REST API viewset for SoftwareLCM records. - parameters: - - in: query - name: alias - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: alias__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device_platform - schema: - type: array - items: - type: string - description: Device Platform (Slug) - explode: true - style: form - - in: query - name: device_platform__n - schema: - type: array - items: - type: string - description: Device Platform (Slug) - explode: true - style: form - - in: query - name: documentation_url - schema: - type: string - - in: query - name: end_of_support_after - schema: - type: string - format: date-time - - in: query - name: end_of_support_before - schema: - type: string - format: date-time - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: long_term_support - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: pre_release - schema: - type: boolean - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: release_date_after - schema: - type: string - format: date-time - - in: query - name: release_date_before - schema: - type: string - format: date-time - - in: query - name: version - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: version__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedSoftwareLCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_create - description: REST API viewset for SoftwareLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_bulk_update - description: REST API viewset for SoftwareLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SoftwareLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_bulk_partial_update - description: REST API viewset for SoftwareLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SoftwareLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_bulk_destroy - description: REST API viewset for SoftwareLCM records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/software-image/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_list - description: REST API viewset for SoftwareImageLCM records. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: default_image - schema: - type: boolean - - in: query - name: device_id - schema: - type: string - description: Device ID - - in: query - name: device_name - schema: - type: string - description: Device Name - - in: query - name: device_types - schema: - type: array - items: - type: string - description: Device Types (model) - explode: true - style: form - - in: query - name: device_types__n - schema: - type: array - items: - type: string - description: Device Types (model) - explode: true - style: form - - in: query - name: device_types_id - schema: - type: array - items: - type: string - format: uuid - description: Device Types - explode: true - style: form - - in: query - name: device_types_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device Types - explode: true - style: form - - in: query - name: download_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: download_url__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: image_file_checksum - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_checksum__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: image_file_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: inventory_item_id - schema: - type: string - description: InventoryItem ID - - in: query - name: inventory_items - schema: - type: array - items: - type: string - format: uuid - description: Inventory Items (name) - explode: true - style: form - - in: query - name: inventory_items__n - schema: - type: array - items: - type: string - format: uuid - description: Inventory Items (name) - explode: true - style: form - - in: query - name: inventory_items_id - schema: - type: array - items: - type: string - format: uuid - description: Inventory Items - explode: true - style: form - - in: query - name: inventory_items_id__n - schema: - type: array - items: - type: string - format: uuid - description: Inventory Items - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: object_tags - schema: - type: array - items: - type: string - description: Object Tags (slug) - explode: true - style: form - - in: query - name: object_tags__n - schema: - type: array - items: - type: string - description: Object Tags (slug) - explode: true - style: form - - in: query - name: object_tags_id - schema: - type: array - items: - type: string - format: uuid - description: Object Tags - explode: true - style: form - - in: query - name: object_tags_id__n - schema: - type: array - items: - type: string - format: uuid - description: Object Tags - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: software - schema: - type: array - items: - type: string - format: uuid - description: Software - explode: true - style: form - - in: query - name: software__n - schema: - type: array - items: - type: string - format: uuid - description: Software - explode: true - style: form - - in: query - name: software_version - schema: - type: array - items: - type: string - description: Software (version) - explode: true - style: form - - in: query - name: software_version__n - schema: - type: array - items: - type: string - description: Software (version) - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedSoftwareImageLCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_create - description: REST API viewset for SoftwareImageLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSoftwareImageLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareImageLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_bulk_update - description: REST API viewset for SoftwareImageLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableSoftwareImageLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SoftwareImageLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_bulk_partial_update - description: REST API viewset for SoftwareImageLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableSoftwareImageLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/SoftwareImageLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_bulk_destroy - description: REST API viewset for SoftwareImageLCM records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/software-image/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_retrieve - description: REST API viewset for SoftwareImageLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software Image. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareImageLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_update - description: REST API viewset for SoftwareImageLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software Image. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSoftwareImageLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareImageLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_partial_update - description: REST API viewset for SoftwareImageLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software Image. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableSoftwareImageLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareImageLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_image_destroy - description: REST API viewset for SoftwareImageLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software Image. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/software/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_retrieve - description: REST API viewset for SoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_update - description: REST API viewset for SoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_partial_update - description: REST API viewset for SoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableSoftwareLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/SoftwareLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_software_destroy - description: REST API viewset for SoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Software. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/validated-software/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_list - description: REST API viewset for ValidatedSoftwareLCM records. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: device_id - schema: - type: string - description: Device ID - - in: query - name: device_name - schema: - type: string - description: Device Name - - in: query - name: device_roles - schema: - type: array - items: - type: string - description: Device Roles (slug) - explode: true - style: form - - in: query - name: device_roles__n - schema: - type: array - items: - type: string - description: Device Roles (slug) - explode: true - style: form - - in: query - name: device_roles_id - schema: - type: array - items: - type: string - format: uuid - description: Device Roles - explode: true - style: form - - in: query - name: device_roles_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device Roles - explode: true - style: form - - in: query - name: device_types - schema: - type: array - items: - type: string - description: Device Types (model) - explode: true - style: form - - in: query - name: device_types__n - schema: - type: array - items: - type: string - description: Device Types (model) - explode: true - style: form - - in: query - name: device_types_id - schema: - type: array - items: - type: string - format: uuid - description: Device Types - explode: true - style: form - - in: query - name: device_types_id__n - schema: - type: array - items: - type: string - format: uuid - description: Device Types - explode: true - style: form - - in: query - name: devices - schema: - type: array - items: - type: string - nullable: true - description: Devices (name) - explode: true - style: form - - in: query - name: devices__n - schema: - type: array - items: - type: string - nullable: true - description: Devices (name) - explode: true - style: form - - in: query - name: devices_id - schema: - type: array - items: - type: string - format: uuid - description: Devices - explode: true - style: form - - in: query - name: devices_id__n - schema: - type: array - items: - type: string - format: uuid - description: Devices - explode: true - style: form - - in: query - name: end_after - schema: - type: string - format: date-time - - in: query - name: end_before - schema: - type: string - format: date-time - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: inventory_item_id - schema: - type: string - description: InventoryItem ID - - in: query - name: inventory_items - schema: - type: array - items: - type: string - description: Inventory Items (name) - explode: true - style: form - - in: query - name: inventory_items__n - schema: - type: array - items: - type: string - description: Inventory Items (name) - explode: true - style: form - - in: query - name: inventory_items_id - schema: - type: array - items: - type: string - format: uuid - description: Inventory Items - explode: true - style: form - - in: query - name: inventory_items_id__n - schema: - type: array - items: - type: string - format: uuid - description: Inventory Items - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: object_tags - schema: - type: array - items: - type: string - description: Object Tags (slug) - explode: true - style: form - - in: query - name: object_tags__n - schema: - type: array - items: - type: string - description: Object Tags (slug) - explode: true - style: form - - in: query - name: object_tags_id - schema: - type: array - items: - type: string - format: uuid - description: Object Tags - explode: true - style: form - - in: query - name: object_tags_id__n - schema: - type: array - items: - type: string - format: uuid - description: Object Tags - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: preferred - schema: - type: boolean - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: software - schema: - type: array - items: - type: string - format: uuid - description: Software - explode: true - style: form - - in: query - name: software__n - schema: - type: array - items: - type: string - format: uuid - description: Software - explode: true - style: form - - in: query - name: start_after - schema: - type: string - format: date-time - - in: query - name: start_before - schema: - type: string - format: date-time - - in: query - name: valid - schema: - type: boolean - description: Currently valid - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedValidatedSoftwareLCMList' - description: '' - post: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_create - description: REST API viewset for ValidatedSoftwareLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableValidatedSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ValidatedSoftwareLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_bulk_update - description: REST API viewset for ValidatedSoftwareLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableValidatedSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ValidatedSoftwareLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_bulk_partial_update - description: REST API viewset for ValidatedSoftwareLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableValidatedSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ValidatedSoftwareLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_bulk_destroy - description: REST API viewset for ValidatedSoftwareLCM records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/validated-software/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_retrieve - description: REST API viewset for ValidatedSoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Validated Software. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ValidatedSoftwareLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_update - description: REST API viewset for ValidatedSoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Validated Software. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableValidatedSoftwareLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ValidatedSoftwareLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_partial_update - description: REST API viewset for ValidatedSoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Validated Software. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableValidatedSoftwareLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ValidatedSoftwareLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_validated_software_destroy - description: REST API viewset for ValidatedSoftwareLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Validated Software. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /plugins/nautobot-device-lifecycle-mgmt/vulnerability/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_list - description: REST API viewset for VulnerabilityLCM records. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: cve - schema: - type: string - format: uuid - - in: query - name: cve__n - schema: - type: string - format: uuid - - in: query - name: cve__published_date__gte - schema: - type: string - format: date - - in: query - name: cve__published_date__lte - schema: - type: string - format: date - - in: query - name: cve__published_date_after - schema: - type: string - format: date-time - - in: query - name: cve__published_date_before - schema: - type: string - format: date-time - - in: query - name: device - schema: - type: string - format: uuid - - in: query - name: device__n - schema: - type: string - format: uuid - - in: query - name: exclude_status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: exclude_status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: inventory_item - schema: - type: string - format: uuid - - in: query - name: inventory_item__n - schema: - type: string - format: uuid - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: software - schema: - type: string - format: uuid - - in: query - name: software__n - schema: - type: string - format: uuid - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedVulnerabilityLCMList' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_bulk_update - description: REST API viewset for VulnerabilityLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableVulnerabilityLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VulnerabilityLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_bulk_partial_update - description: REST API viewset for VulnerabilityLCM records. - tags: - - plugins - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableVulnerabilityLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VulnerabilityLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_bulk_destroy - description: REST API viewset for VulnerabilityLCM records. - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /plugins/nautobot-device-lifecycle-mgmt/vulnerability/{id}/: - get: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_retrieve - description: REST API viewset for VulnerabilityLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vulnerability. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VulnerabilityLCM' - description: '' - put: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_update - description: REST API viewset for VulnerabilityLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vulnerability. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/VulnerabilityLCMRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VulnerabilityLCM' - description: '' - patch: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_partial_update - description: REST API viewset for VulnerabilityLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vulnerability. - required: true - tags: - - plugins - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedVulnerabilityLCMRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VulnerabilityLCM' - description: '' - delete: - operationId: plugins_nautobot_device_lifecycle_mgmt_vulnerability_destroy - description: REST API viewset for VulnerabilityLCM records. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this Vulnerability. - required: true - tags: - - plugins - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /status/: - get: - operationId: status_retrieve - description: A lightweight read-only endpoint for conveying the current operational - status. - tags: - - status - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: object - properties: - django-version: - type: string - installed-apps: - type: object - nautobot-version: - type: string - plugins: - type: object - python-version: - type: string - rq-workers-running: - type: integer - celery-workers-running: - type: integer - description: '' - /swagger/: - get: - operationId: swagger_retrieve - description: |- - OpenApi3 schema for this API. Format can be selected via content negotiation. - - - YAML: application/vnd.oai.openapi - - JSON: application/vnd.oai.openapi+json - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - yaml - - in: query - name: lang - schema: - type: string - enum: - - af - - ar - - ar-dz - - ast - - az - - be - - bg - - bn - - br - - bs - - ca - - cs - - cy - - da - - de - - dsb - - el - - en - - en-au - - en-gb - - eo - - es - - es-ar - - es-co - - es-mx - - es-ni - - es-ve - - et - - eu - - fa - - fi - - fr - - fy - - ga - - gd - - gl - - he - - hi - - hr - - hsb - - hu - - hy - - ia - - id - - ig - - io - - is - - it - - ja - - ka - - kab - - kk - - km - - kn - - ko - - ky - - lb - - lt - - lv - - mk - - ml - - mn - - mr - - my - - nb - - ne - - nl - - nn - - os - - pa - - pl - - pt - - pt-br - - ro - - ru - - sk - - sl - - sq - - sr - - sr-latn - - sv - - sw - - ta - - te - - tg - - th - - tk - - tr - - tt - - udm - - uk - - ur - - uz - - vi - - zh-hans - - zh-hant - tags: - - swagger - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi; version=1.3: - schema: - type: object - additionalProperties: {} - application/yaml; version=1.3: - schema: - type: object - additionalProperties: {} - application/vnd.oai.openapi+json; version=1.3: - schema: - type: object - additionalProperties: {} - application/json; version=1.3: - schema: - type: object - additionalProperties: {} - description: '' - /swagger.json: - get: - operationId: swagger.json_retrieve - description: |- - OpenApi3 schema for this API. Format can be selected via content negotiation. - - - YAML: application/vnd.oai.openapi - - JSON: application/vnd.oai.openapi+json - parameters: - - in: query - name: lang - schema: - type: string - enum: - - af - - ar - - ar-dz - - ast - - az - - be - - bg - - bn - - br - - bs - - ca - - cs - - cy - - da - - de - - dsb - - el - - en - - en-au - - en-gb - - eo - - es - - es-ar - - es-co - - es-mx - - es-ni - - es-ve - - et - - eu - - fa - - fi - - fr - - fy - - ga - - gd - - gl - - he - - hi - - hr - - hsb - - hu - - hy - - ia - - id - - ig - - io - - is - - it - - ja - - ka - - kab - - kk - - km - - kn - - ko - - ky - - lb - - lt - - lv - - mk - - ml - - mn - - mr - - my - - nb - - ne - - nl - - nn - - os - - pa - - pl - - pt - - pt-br - - ro - - ru - - sk - - sl - - sq - - sr - - sr-latn - - sv - - sw - - ta - - te - - tg - - th - - tk - - tr - - tt - - udm - - uk - - ur - - uz - - vi - - zh-hans - - zh-hant - tags: - - swagger.json - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi+json; version=1.3: - schema: - type: object - additionalProperties: {} - application/json; version=1.3: - schema: - type: object - additionalProperties: {} - description: '' - /swagger.yaml: - get: - operationId: swagger.yaml_retrieve - description: |- - OpenApi3 schema for this API. Format can be selected via content negotiation. - - - YAML: application/vnd.oai.openapi - - JSON: application/vnd.oai.openapi+json - parameters: - - in: query - name: lang - schema: - type: string - enum: - - af - - ar - - ar-dz - - ast - - az - - be - - bg - - bn - - br - - bs - - ca - - cs - - cy - - da - - de - - dsb - - el - - en - - en-au - - en-gb - - eo - - es - - es-ar - - es-co - - es-mx - - es-ni - - es-ve - - et - - eu - - fa - - fi - - fr - - fy - - ga - - gd - - gl - - he - - hi - - hr - - hsb - - hu - - hy - - ia - - id - - ig - - io - - is - - it - - ja - - ka - - kab - - kk - - km - - kn - - ko - - ky - - lb - - lt - - lv - - mk - - ml - - mn - - mr - - my - - nb - - ne - - nl - - nn - - os - - pa - - pl - - pt - - pt-br - - ro - - ru - - sk - - sl - - sq - - sr - - sr-latn - - sv - - sw - - ta - - te - - tg - - th - - tk - - tr - - tt - - udm - - uk - - ur - - uz - - vi - - zh-hans - - zh-hant - tags: - - swagger.yaml - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi; version=1.3: - schema: - type: object - additionalProperties: {} - application/yaml; version=1.3: - schema: - type: object - additionalProperties: {} - description: '' - /tenancy/tenant-groups/: - get: - operationId: tenancy_tenant_groups_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent - schema: - type: array - items: - type: string - description: Tenant group group (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Tenant group group (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant group (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant group (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedTenantGroupList' - description: '' - post: - operationId: tenancy_tenant_groups_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TenantGroup' - description: '' - put: - operationId: tenancy_tenant_groups_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableTenantGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/TenantGroup' - description: '' - patch: - operationId: tenancy_tenant_groups_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableTenantGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/TenantGroup' - description: '' - delete: - operationId: tenancy_tenant_groups_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /tenancy/tenant-groups/{id}/: - get: - operationId: tenancy_tenant_groups_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant group. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TenantGroup' - description: '' - put: - operationId: tenancy_tenant_groups_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant group. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TenantGroup' - description: '' - patch: - operationId: tenancy_tenant_groups_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant group. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/TenantGroup' - description: '' - delete: - operationId: tenancy_tenant_groups_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant group. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /tenancy/tenant-groups/{id}/notes/: - get: - operationId: tenancy_tenant_groups_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: tenancy_tenant_groups_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant group. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /tenancy/tenants/: - get: - operationId: tenancy_tenants_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: group - schema: - type: array - items: - type: string - format: uuid - description: Tenant group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant group (ID) - explode: true - style: form - - in: query - name: has_locations - schema: - type: boolean - description: Has locations - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: locations - schema: - type: array - items: - type: string - format: uuid - description: Locations (slugs and/or IDs) - explode: true - style: form - - in: query - name: locations__n - schema: - type: array - items: - type: string - format: uuid - description: Locations (slugs and/or IDs) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedTenantList' - description: '' - post: - operationId: tenancy_tenants_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableTenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - put: - operationId: tenancy_tenants_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableTenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Tenant' - description: '' - patch: - operationId: tenancy_tenants_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableTenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Tenant' - description: '' - delete: - operationId: tenancy_tenants_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /tenancy/tenants/{id}/: - get: - operationId: tenancy_tenants_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - put: - operationId: tenancy_tenants_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableTenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - patch: - operationId: tenancy_tenants_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableTenantRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - delete: - operationId: tenancy_tenants_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /tenancy/tenants/{id}/notes/: - get: - operationId: tenancy_tenants_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: tenancy_tenants_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this tenant. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /users/config/: - get: - operationId: users_config_retrieve - description: Return the config_data for the currently authenticated User. - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: object - additionalProperties: {} - description: '' - /users/groups/: - get: - operationId: users_groups_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedGroupList' - description: '' - post: - operationId: users_groups_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Group' - description: '' - put: - operationId: users_groups_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Group' - description: '' - patch: - operationId: users_groups_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Group' - description: '' - delete: - operationId: users_groups_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationIntegerIDRequest' - required: true - /users/groups/{id}/: - get: - operationId: users_groups_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Group' - description: '' - put: - operationId: users_groups_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Group' - description: '' - patch: - operationId: users_groups_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Group' - description: '' - delete: - operationId: users_groups_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /users/permissions/: - get: - operationId: users_permissions_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: enabled - schema: - type: boolean - - in: query - name: group - schema: - type: array - items: - type: string - description: Group (name) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Group (name) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - description: Group - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - description: Group - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: user - schema: - type: array - items: - type: string - description: User (name) - explode: true - style: form - - in: query - name: user__n - schema: - type: array - items: - type: string - description: User (name) - explode: true - style: form - - in: query - name: user_id - schema: - type: array - items: - type: string - format: uuid - description: User - explode: true - style: form - - in: query - name: user_id__n - schema: - type: array - items: - type: string - format: uuid - description: User - explode: true - style: form - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedObjectPermissionList' - description: '' - post: - operationId: users_permissions_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableObjectPermissionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ObjectPermission' - description: '' - put: - operationId: users_permissions_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableObjectPermissionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ObjectPermission' - description: '' - patch: - operationId: users_permissions_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableObjectPermissionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ObjectPermission' - description: '' - delete: - operationId: users_permissions_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /users/permissions/{id}/: - get: - operationId: users_permissions_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this permission. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ObjectPermission' - description: '' - put: - operationId: users_permissions_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this permission. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableObjectPermissionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ObjectPermission' - description: '' - patch: - operationId: users_permissions_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this permission. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableObjectPermissionRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ObjectPermission' - description: '' - delete: - operationId: users_permissions_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this permission. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /users/tokens/: - get: - operationId: users_tokens_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: expires - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: expires__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: expires__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: expires__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: expires__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: expires__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: key - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: key__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: write_enabled - schema: - type: boolean - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedTokenList' - description: '' - post: - operationId: users_tokens_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Token' - description: '' - put: - operationId: users_tokens_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableTokenRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Token' - description: '' - patch: - operationId: users_tokens_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableTokenRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Token' - description: '' - delete: - operationId: users_tokens_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /users/tokens/{id}/: - get: - operationId: users_tokens_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this token. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Token' - description: '' - put: - operationId: users_tokens_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this token. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Token' - description: '' - patch: - operationId: users_tokens_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this token. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedTokenRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Token' - description: '' - delete: - operationId: users_tokens_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this token. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - - basicAuth: [] - responses: - '204': - description: No response body - /users/users/: - get: - operationId: users_users_list - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: query - name: email - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Group (name) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Group (name) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - description: Group - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - description: Group - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: is_active - schema: - type: boolean - - in: query - name: is_staff - schema: - type: boolean - - in: query - name: last_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: username - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedUserList' - description: '' - post: - operationId: users_users_create - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableUserRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/User' - description: '' - put: - operationId: users_users_bulk_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableUserRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/User' - description: '' - patch: - operationId: users_users_bulk_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableUserRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/User' - description: '' - delete: - operationId: users_users_bulk_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /users/users/{id}/: - get: - operationId: users_users_retrieve - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/User' - description: '' - put: - operationId: users_users_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableUserRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/User' - description: '' - patch: - operationId: users_users_partial_update - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableUserRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/User' - description: '' - delete: - operationId: users_users_destroy - description: Extend DRF's ModelViewSet to support bulk update and delete functions. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this user. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /virtualization/cluster-groups/: - get: - operationId: virtualization_cluster_groups_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: clusters - schema: - type: array - items: - type: string - format: uuid - description: Clusters (name or ID) - explode: true - style: form - - in: query - name: clusters__n - schema: - type: array - items: - type: string - format: uuid - description: Clusters (name or ID) - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: has_clusters - schema: - type: boolean - description: Has clusters - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedClusterGroupList' - description: '' - post: - operationId: virtualization_cluster_groups_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterGroup' - description: '' - put: - operationId: virtualization_cluster_groups_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableClusterGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterGroup' - description: '' - patch: - operationId: virtualization_cluster_groups_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableClusterGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterGroup' - description: '' - delete: - operationId: virtualization_cluster_groups_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /virtualization/cluster-groups/{id}/: - get: - operationId: virtualization_cluster_groups_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster group. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterGroup' - description: '' - put: - operationId: virtualization_cluster_groups_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster group. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterGroup' - description: '' - patch: - operationId: virtualization_cluster_groups_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster group. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterGroup' - description: '' - delete: - operationId: virtualization_cluster_groups_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster group. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /virtualization/cluster-groups/{id}/notes/: - get: - operationId: virtualization_cluster_groups_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster group. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: virtualization_cluster_groups_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster group. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /virtualization/cluster-types/: - get: - operationId: virtualization_cluster_types_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: clusters - schema: - type: array - items: - type: string - format: uuid - description: Clusters (name or ID) - explode: true - style: form - - in: query - name: clusters__n - schema: - type: array - items: - type: string - format: uuid - description: Clusters (name or ID) - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: has_clusters - schema: - type: boolean - description: Has clusters - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__re - schema: - type: array - items: - type: string - explode: true - style: form - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedClusterTypeList' - description: '' - post: - operationId: virtualization_cluster_types_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - put: - operationId: virtualization_cluster_types_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterType' - description: '' - patch: - operationId: virtualization_cluster_types_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterType' - description: '' - delete: - operationId: virtualization_cluster_types_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /virtualization/cluster-types/{id}/: - get: - operationId: virtualization_cluster_types_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster type. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - put: - operationId: virtualization_cluster_types_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster type. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - patch: - operationId: virtualization_cluster_types_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster type. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - delete: - operationId: virtualization_cluster_types_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster type. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /virtualization/cluster-types/{id}/notes/: - get: - operationId: virtualization_cluster_types_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster type. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: virtualization_cluster_types_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster type. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /virtualization/clusters/: - get: - operationId: virtualization_clusters_list - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: query - name: comments - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: comments__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: created - schema: - type: string - format: date - - in: query - name: created__gte - schema: - type: string - format: date - - in: query - name: created__lte - schema: - type: string - format: date - - in: query - name: devices - schema: - type: array - items: - type: string - format: uuid - description: Devices (name or ID) - explode: true - style: form - - in: query - name: devices__n - schema: - type: array - items: - type: string - format: uuid - description: Devices (name or ID) - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Parent group (ID) - explode: true - style: form - - in: query - name: has_devices - schema: - type: boolean - description: Has devices - - in: query - name: has_virtual_machines - schema: - type: boolean - description: Has virtual machines - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: last_updated - schema: - type: string - format: date-time - - in: query - name: last_updated__gte - schema: - type: string - format: date-time - - in: query - name: last_updated__lte - schema: - type: string - format: date-time - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - format: uuid - description: Location (slug or ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - format: uuid - description: Region (slug or ID) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - format: uuid - description: Region (ID) (deprecated, use "region" filter instead) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - format: uuid - description: Site (slug or ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Site (ID) (deprecated, use "site" filter instead) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant (slug or ID) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - format: uuid - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: string - format: uuid - nullable: true - description: Tenant (ID) (deprecated, use "tenant" filter instead) - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - description: Cluster type (slug) - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - description: Cluster type (slug) - explode: true - style: form - - in: query - name: type_id - schema: - type: array - items: - type: string - format: uuid - description: Cluster type (ID) - explode: true - style: form - - in: query - name: type_id__n - schema: - type: array - items: - type: string - format: uuid - description: Cluster type (ID) - explode: true - style: form - - in: query - name: virtual_machines - schema: - type: array - items: - type: string - format: uuid - description: Virtual machines (name or ID) - explode: true - style: form - - in: query - name: virtual_machines__n - schema: - type: array - items: - type: string - format: uuid - description: Virtual machines (name or ID) - explode: true - style: form - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedClusterList' - description: '' - post: - operationId: virtualization_clusters_create - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableClusterRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cluster' - description: '' - put: - operationId: virtualization_clusters_bulk_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableClusterRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Cluster' - description: '' - patch: - operationId: virtualization_clusters_bulk_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableClusterRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/Cluster' - description: '' - delete: - operationId: virtualization_clusters_bulk_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /virtualization/clusters/{id}/: - get: - operationId: virtualization_clusters_retrieve - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cluster' - description: '' - put: - operationId: virtualization_clusters_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableClusterRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cluster' - description: '' - patch: - operationId: virtualization_clusters_partial_update - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Cluster' - description: '' - delete: - operationId: virtualization_clusters_destroy - description: |- - Base class to use for API ViewSets based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support Notes. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /virtualization/clusters/{id}/notes/: - get: - operationId: virtualization_clusters_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: virtualization_clusters_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this cluster. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /virtualization/interfaces/: - get: - operationId: virtualization_interfaces_list - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: query - name: bridge - schema: - type: array - items: - type: string - format: uuid - description: Bridge interface (name or ID) - explode: true - style: form - - in: query - name: bridge__n - schema: - type: array - items: - type: string - format: uuid - description: Bridge interface (name or ID) - explode: true - style: form - - in: query - name: bridged_interfaces - schema: - type: array - items: - type: string - format: uuid - description: Bridged interfaces (name or ID) - explode: true - style: form - - in: query - name: bridged_interfaces__n - schema: - type: array - items: - type: string - format: uuid - description: Bridged interfaces (name or ID) - explode: true - style: form - - in: query - name: child_interfaces - schema: - type: array - items: - type: string - format: uuid - description: Child interfaces (name or ID) - explode: true - style: form - - in: query - name: child_interfaces__n - schema: - type: array - items: - type: string - format: uuid - description: Child interfaces (name or ID) - explode: true - style: form - - in: query - name: cluster - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster__n - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: string - format: uuid - description: Cluster (ID) - explode: true - style: form - - in: query - name: cluster_id__n - schema: - type: array - items: - type: string - format: uuid - description: Cluster (ID) - explode: true - style: form - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__re - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - - in: query - name: has_bridged_interfaces - schema: - type: boolean - description: Has Bridged Interfaces - - in: query - name: has_child_interfaces - schema: - type: boolean - description: Has child interfaces - - in: query - name: has_ip_addresses - schema: - type: boolean - description: Has IP addresses - - in: query - name: has_tagged_vlans - schema: - type: boolean - description: Has Tagged VLANs - - in: query - name: id - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__iew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__ire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__isw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nic - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nie - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__niew - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nire - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nisw - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__nre - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: id__re - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: ip_addresses - schema: - type: array - items: - type: string - description: IP addresses (address or ID) - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: mac_address - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__ic - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__ie - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__iew - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__ire - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__isw - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__n - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__nic - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__nie - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__niew - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__nire - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__nisw - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__nre - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mac_address__re - schema: - type: array - items: - type: string - nullable: true - description: MAC address - explode: true - style: form - - in: query - name: mode - schema: - type: string - - in: query - name: mode__n - schema: - type: string - - in: query - name: mtu - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: mtu__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nire - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nre - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__re - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: parent_interface - schema: - type: array - items: - type: string - format: uuid - description: Parent interface (name or ID) - explode: true - style: form - - in: query - name: parent_interface__n - schema: - type: array - items: - type: string - format: uuid - description: Parent interface (name or ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: status - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - format: uuid - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tagged_vlans - schema: - type: array - items: - type: string - format: uuid - description: Tagged VLANs (VID or ID) - explode: true - style: form - - in: query - name: tagged_vlans__n - schema: - type: array - items: - type: string - format: uuid - description: Tagged VLANs (VID or ID) - explode: true - style: form - - in: query - name: untagged_vlan - schema: - type: array - items: - type: string - format: uuid - description: Untagged VLAN (VID or ID) - explode: true - style: form - - in: query - name: untagged_vlan__n - schema: - type: array - items: - type: string - format: uuid - description: Untagged VLAN (VID or ID) - explode: true - style: form - - in: query - name: virtual_machine - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine__n - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine_id - schema: - type: array - items: - type: string - format: uuid - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: virtual_machine_id__n - schema: - type: array - items: - type: string - format: uuid - description: Virtual machine (ID) - explode: true - style: form - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedVMInterfaceSerializerVersion12List' - description: '' - post: - operationId: virtualization_interfaces_create - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VMInterfaceSerializerVersion12' - description: '' - put: - operationId: virtualization_interfaces_bulk_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableVMInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VMInterfaceSerializerVersion12' - description: '' - patch: - operationId: virtualization_interfaces_bulk_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableVMInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VMInterfaceSerializerVersion12' - description: '' - delete: - operationId: virtualization_interfaces_bulk_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /virtualization/interfaces/{id}/: - get: - operationId: virtualization_interfaces_retrieve - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VM interface. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VMInterfaceSerializerVersion12' - description: '' - put: - operationId: virtualization_interfaces_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VM interface. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VMInterfaceSerializerVersion12' - description: '' - patch: - operationId: virtualization_interfaces_partial_update - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VM interface. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VMInterfaceSerializerVersion12' - description: '' - delete: - operationId: virtualization_interfaces_destroy - description: Mixin to set `metadata_class` to implement `status` field in model - viewset metadata. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VM interface. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /virtualization/interfaces/{id}/notes/: - get: - operationId: virtualization_interfaces_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VM interface. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: virtualization_interfaces_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this VM interface. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' - /virtualization/virtual-machines/: - get: - operationId: virtualization_virtual_machines_list - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - name: cluster - required: false - in: query - description: cluster - schema: - type: string - - name: cluster__n - required: false - in: query - description: cluster__n - schema: - type: string - - name: cluster_group - required: false - in: query - description: Cluster group (slug) - schema: - type: string - - name: cluster_group__n - required: false - in: query - description: Cluster group (slug) - schema: - type: string - - name: cluster_group_id - required: false - in: query - description: Cluster group (ID) - schema: - type: string - - name: cluster_group_id__n - required: false - in: query - description: Cluster group (ID) - schema: - type: string - - name: cluster_id - required: false - in: query - description: Cluster (ID) - schema: - type: string - - name: cluster_id__n - required: false - in: query - description: Cluster (ID) - schema: - type: string - - name: cluster_type - required: false - in: query - description: Cluster type (slug) - schema: - type: string - - name: cluster_type__n - required: false - in: query - description: Cluster type (slug) - schema: - type: string - - name: cluster_type_id - required: false - in: query - description: Cluster type (ID) - schema: - type: string - - name: cluster_type_id__n - required: false - in: query - description: Cluster type (ID) - schema: - type: string - - name: comments - required: false - in: query - description: comments - schema: - type: string - - name: comments__ic - required: false - in: query - description: comments__ic - schema: - type: string - - name: comments__ie - required: false - in: query - description: comments__ie - schema: - type: string - - name: comments__iew - required: false - in: query - description: comments__iew - schema: - type: string - - name: comments__ire - required: false - in: query - description: comments__ire - schema: - type: string - - name: comments__isw - required: false - in: query - description: comments__isw - schema: - type: string - - name: comments__n - required: false - in: query - description: comments__n - schema: - type: string - - name: comments__nic - required: false - in: query - description: comments__nic - schema: - type: string - - name: comments__nie - required: false - in: query - description: comments__nie - schema: - type: string - - name: comments__niew - required: false - in: query - description: comments__niew - schema: - type: string - - name: comments__nire - required: false - in: query - description: comments__nire - schema: - type: string - - name: comments__nisw - required: false - in: query - description: comments__nisw - schema: - type: string - - name: comments__nre - required: false - in: query - description: comments__nre - schema: - type: string - - name: comments__re - required: false - in: query - description: comments__re - schema: - type: string - - name: created - required: false - in: query - description: created - schema: - type: string - - name: created__gte - required: false - in: query - description: created__gte - schema: - type: string - - name: created__lte - required: false - in: query - description: created__lte - schema: - type: string - - name: disk - required: false - in: query - description: disk - schema: - type: string - - name: disk__gt - required: false - in: query - description: disk__gt - schema: - type: string - - name: disk__gte - required: false - in: query - description: disk__gte - schema: - type: string - - name: disk__lt - required: false - in: query - description: disk__lt - schema: - type: string - - name: disk__lte - required: false - in: query - description: disk__lte - schema: - type: string - - name: disk__n - required: false - in: query - description: disk__n - schema: - type: string - - name: has_interfaces - required: false - in: query - description: Has interfaces - schema: - type: string - - name: has_primary_ip - required: false - in: query - description: Has a primary IP - schema: - type: string - - name: has_services - required: false - in: query - description: Has services - schema: - type: string - - name: id - required: false - in: query - description: id - schema: - type: string - - name: id__ic - required: false - in: query - description: id__ic - schema: - type: string - - name: id__ie - required: false - in: query - description: id__ie - schema: - type: string - - name: id__iew - required: false - in: query - description: id__iew - schema: - type: string - - name: id__ire - required: false - in: query - description: id__ire - schema: - type: string - - name: id__isw - required: false - in: query - description: id__isw - schema: - type: string - - name: id__n - required: false - in: query - description: id__n - schema: - type: string - - name: id__nic - required: false - in: query - description: id__nic - schema: - type: string - - name: id__nie - required: false - in: query - description: id__nie - schema: - type: string - - name: id__niew - required: false - in: query - description: id__niew - schema: - type: string - - name: id__nire - required: false - in: query - description: id__nire - schema: - type: string - - name: id__nisw - required: false - in: query - description: id__nisw - schema: - type: string - - name: id__nre - required: false - in: query - description: id__nre - schema: - type: string - - name: id__re - required: false - in: query - description: id__re - schema: - type: string - - name: interfaces - required: false - in: query - description: Interfaces (name or ID) - schema: - type: string - - name: interfaces__n - required: false - in: query - description: Interfaces (name or ID) - schema: - type: string - - name: last_updated - required: false - in: query - description: last_updated - schema: - type: string - - name: last_updated__gte - required: false - in: query - description: last_updated__gte - schema: - type: string - - name: last_updated__lte - required: false - in: query - description: last_updated__lte - schema: - type: string - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: local_context_data - required: false - in: query - description: Has local config context data - schema: - type: string - - name: local_context_schema - required: false - in: query - description: Schema (slug) - schema: - type: string - - name: local_context_schema__n - required: false - in: query - description: Schema (slug) - schema: - type: string - - name: local_context_schema_id - required: false - in: query - description: Schema (ID) - schema: - type: string - - name: local_context_schema_id__n - required: false - in: query - description: Schema (ID) - schema: - type: string - - name: location - required: false - in: query - description: Location (slug or ID) - schema: - type: string - - name: location__n - required: false - in: query - description: Location (slug or ID) - schema: - type: string - - name: mac_address - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__ic - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__ie - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__iew - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__ire - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__isw - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__n - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nic - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nie - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__niew - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nire - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nisw - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__nre - required: false - in: query - description: MAC address - schema: - type: string - - name: mac_address__re - required: false - in: query - description: MAC address - schema: - type: string - - name: memory - required: false - in: query - description: memory - schema: - type: string - - name: memory__gt - required: false - in: query - description: memory__gt - schema: - type: string - - name: memory__gte - required: false - in: query - description: memory__gte - schema: - type: string - - name: memory__lt - required: false - in: query - description: memory__lt - schema: - type: string - - name: memory__lte - required: false - in: query - description: memory__lte - schema: - type: string - - name: memory__n - required: false - in: query - description: memory__n - schema: - type: string - - name: name - required: false - in: query - description: name - schema: - type: string - - name: name__ic - required: false - in: query - description: name__ic - schema: - type: string - - name: name__ie - required: false - in: query - description: name__ie - schema: - type: string - - name: name__iew - required: false - in: query - description: name__iew - schema: - type: string - - name: name__ire - required: false - in: query - description: name__ire - schema: - type: string - - name: name__isw - required: false - in: query - description: name__isw - schema: - type: string - - name: name__n - required: false - in: query - description: name__n - schema: - type: string - - name: name__nic - required: false - in: query - description: name__nic - schema: - type: string - - name: name__nie - required: false - in: query - description: name__nie - schema: - type: string - - name: name__niew - required: false - in: query - description: name__niew - schema: - type: string - - name: name__nire - required: false - in: query - description: name__nire - schema: - type: string - - name: name__nisw - required: false - in: query - description: name__nisw - schema: - type: string - - name: name__nre - required: false - in: query - description: name__nre - schema: - type: string - - name: name__re - required: false - in: query - description: name__re - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: platform - required: false - in: query - description: Platform (slug) - schema: - type: string - - name: platform__n - required: false - in: query - description: Platform (slug) - schema: - type: string - - name: platform_id - required: false - in: query - description: Platform (ID) - schema: - type: string - - name: platform_id__n - required: false - in: query - description: Platform (ID) - schema: - type: string - - name: primary_ip4 - required: false - in: query - description: Primary IPv4 Address (address or ID) - schema: - type: string - - name: primary_ip6 - required: false - in: query - description: Primary IPv6 Address (address or ID) - schema: - type: string - - name: q - required: false - in: query - description: Search - schema: - type: string - - name: region - required: false - in: query - description: Region (slug) - schema: - type: string - - name: region__n - required: false - in: query - description: Region (slug) - schema: - type: string - - name: region_id - required: false - in: query - description: Region (ID) - schema: - type: string - - name: region_id__n - required: false - in: query - description: Region (ID) - schema: - type: string - - name: role - required: false - in: query - description: Role (slug) - schema: - type: string - - name: role__n - required: false - in: query - description: Role (slug) - schema: - type: string - - name: role_id - required: false - in: query - description: Role (ID) - schema: - type: string - - name: role_id__n - required: false - in: query - description: Role (ID) - schema: - type: string - - name: services - required: false - in: query - description: Services (name or ID) - schema: - type: string - - name: services__n - required: false - in: query - description: Services (name or ID) - schema: - type: string - - name: site - required: false - in: query - description: Site (slug) - schema: - type: string - - name: site__n - required: false - in: query - description: Site (slug) - schema: - type: string - - name: site_id - required: false - in: query - description: Site (ID) - schema: - type: string - - name: site_id__n - required: false - in: query - description: Site (ID) - schema: - type: string - - name: status - required: false - in: query - description: status - schema: - type: string - - name: status__n - required: false - in: query - description: status__n - schema: - type: string - - name: tag - required: false - in: query - description: tag - schema: - type: string - - name: tag__n - required: false - in: query - description: tag__n - schema: - type: string - - name: tenant - required: false - in: query - description: Tenant (slug or ID) - schema: - type: string - - name: tenant__n - required: false - in: query - description: Tenant (slug or ID) - schema: - type: string - - name: tenant_group - required: false - in: query - description: Tenant Group (slug) - schema: - type: string - - name: tenant_group__n - required: false - in: query - description: Tenant Group (slug) - schema: - type: string - - name: tenant_group_id - required: false - in: query - description: Tenant Group (ID) - schema: - type: string - - name: tenant_group_id__n - required: false - in: query - description: Tenant Group (ID) - schema: - type: string - - name: tenant_id - required: false - in: query - description: Tenant (ID) (deprecated, use "tenant" filter instead) - schema: - type: string - - name: tenant_id__n - required: false - in: query - description: Tenant (ID) (deprecated, use "tenant" filter instead) - schema: - type: string - - name: vcpus - required: false - in: query - description: vcpus - schema: - type: string - - name: vcpus__gt - required: false - in: query - description: vcpus__gt - schema: - type: string - - name: vcpus__gte - required: false - in: query - description: vcpus__gte - schema: - type: string - - name: vcpus__lt - required: false - in: query - description: vcpus__lt - schema: - type: string - - name: vcpus__lte - required: false - in: query - description: vcpus__lte - schema: - type: string - - name: vcpus__n - required: false - in: query - description: vcpus__n - schema: - type: string - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' - description: '' - post: - operationId: virtualization_virtual_machines_create - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - put: - operationId: virtualization_virtual_machines_bulk_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkWritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - patch: - operationId: virtualization_virtual_machines_bulk_partial_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PatchedBulkWritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - delete: - operationId: virtualization_virtual_machines_bulk_destroy - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BulkOperationRequest' - required: true - /virtualization/virtual-machines/{id}/: - get: - operationId: virtualization_virtual_machines_retrieve - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual machine. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - put: - operationId: virtualization_virtual_machines_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - patch: - operationId: virtualization_virtual_machines_partial_update - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - delete: - operationId: virtualization_virtual_machines_destroy - description: |- - Used by views that work with config context models (device and virtual machine). - Provides a get_queryset() method which deals with adding the config context - data annotation or not. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual machine. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /virtualization/virtual-machines/{id}/notes/: - get: - operationId: virtualization_virtual_machines_notes_list - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual machine. - required: true - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/PaginatedNoteList' - description: '' - post: - operationId: virtualization_virtual_machines_notes_create - description: API methods for returning or creating notes on an object. - parameters: - - in: path - name: id - schema: - type: string - format: uuid - description: A UUID string identifying this virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NoteInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json; version=1.3: - schema: - $ref: '#/components/schemas/Note' - description: '' -components: - schemas: - AccessGrant: - type: object - description: API serializer for interacting with AccessGrant objects. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - command: - type: string - description: Enter * to grant access to all commands - maxLength: 64 - subcommand: - type: string - description: Enter * to grant access to all subcommands of the - given command - maxLength: 64 - grant_type: - $ref: '#/components/schemas/GrantTypeEnum' - name: - type: string - description: Organization name, channel name, or user name - maxLength: 255 - value: - type: string - description: Corresponding ID value to grant access to.
Enter * - to grant access to all organizations, channels, or users - maxLength: 255 - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - command - - created - - display - - grant_type - - id - - last_updated - - name - - subcommand - - url - - value - AccessGrantRequest: - type: object - description: API serializer for interacting with AccessGrant objects. - properties: - command: - type: string - minLength: 1 - description: Enter * to grant access to all commands - maxLength: 64 - subcommand: - type: string - minLength: 1 - description: Enter * to grant access to all subcommands of the - given command - maxLength: 64 - grant_type: - $ref: '#/components/schemas/GrantTypeEnum' - name: - type: string - minLength: 1 - description: Organization name, channel name, or user name - maxLength: 255 - value: - type: string - minLength: 1 - description: Corresponding ID value to grant access to.
Enter * - to grant access to all organizations, channels, or users - maxLength: 255 - required: - - command - - grant_type - - name - - subcommand - - value - AccessTypeEnum: - enum: - - Generic - - Console - - gNMI - - HTTP(S) - - NETCONF - - REST - - RESTCONF - - SNMP - - SSH - type: string - ActionEnum: - enum: - - allow - - deny - - drop - - remark - type: string - AddressFamily: - type: object - description: REST API serializer for AddressFamily records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - afi_safi: - $ref: '#/components/schemas/AfiSafiEnum' - routing_instance: - $ref: '#/components/schemas/NestedRoutingInstance' - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRF' - nullable: true - export_policy: - type: string - maxLength: 100 - import_policy: - type: string - maxLength: 100 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - afi_safi - - created - - display - - id - - last_updated - - routing_instance - - url - AddressObject: - type: object - description: AddressObject Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - AddressObjectGroup: - type: object - description: AddressObjectGroup Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - address_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - AfiSafiEnum: - enum: - - ipv4_unicast - - ipv4_multicast - - ipv4_flowspec - - ipv6_unicast - - ipv6_multicast - - ipv6_flowspec - - vpnv4_unicast - - vpnv4_multicast - - vpnv6_unicast - - vpnv6_multicast - - l2_evpn - - l2_vpls - type: string - Aggregate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - family: - type: object - properties: - value: - type: integer - enum: - - 4 - - 6 - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - prefix: - type: string - rir: - $ref: '#/components/schemas/NestedRIR' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - family - - id - - last_updated - - notes_url - - prefix - - rir - - url - AutonomousSystem: - type: object - description: REST API serializer for AutonomousSystem records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 32-bit autonomous system number - description: - type: string - maxLength: 200 - status: - type: object - properties: - value: - type: string - enum: - - active - - available - - planned - label: - type: string - enum: - - Active - - Available - - Planned - provider: - allOf: - - $ref: '#/components/schemas/NestedProvider' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - asn - - created - - display - - id - - last_updated - - status - - url - AvailableIP: - type: object - description: Representation of an IP address which does not exist in the database. - properties: - family: - type: integer - readOnly: true - address: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRF' - readOnly: true - required: - - address - - family - - vrf - AvailablePrefix: - type: object - description: Representation of a prefix which does not exist in the database. - properties: - family: - type: integer - readOnly: true - prefix: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRF' - readOnly: true - required: - - family - - prefix - - vrf - BGPRoutingInstance: - type: object - description: REST API serializer for Peering records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - description: - type: string - maxLength: 200 - router_id: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystem' - nullable: true - endpoints: - type: array - items: - $ref: '#/components/schemas/NestedPeerEndpoint' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device - - display - - id - - last_updated - - url - BlankEnum: - enum: - - '' - BulkOperationIntegerIDRequest: - type: object - description: As BulkOperationSerializer, but for models such as users.Group - that have an integer ID field. - properties: - id: - type: integer - required: - - id - BulkOperationRequest: - type: object - description: Representation of bulk-DELETE request for most models; also used - to validate required ID field for bulk-PATCH/PUT. - properties: - id: - type: string - format: uuid - required: - - id - BulkWritableAccessGrantRequest: - type: object - description: API serializer for interacting with AccessGrant objects. - properties: - id: - type: string - format: uuid - command: - type: string - minLength: 1 - description: Enter * to grant access to all commands - maxLength: 64 - subcommand: - type: string - minLength: 1 - description: Enter * to grant access to all subcommands of the - given command - maxLength: 64 - grant_type: - $ref: '#/components/schemas/GrantTypeEnum' - name: - type: string - minLength: 1 - description: Organization name, channel name, or user name - maxLength: 255 - value: - type: string - minLength: 1 - description: Corresponding ID value to grant access to.
Enter * - to grant access to all organizations, channels, or users - maxLength: 255 - required: - - command - - grant_type - - id - - name - - subcommand - - value - BulkWritableAddressFamilyRequest: - type: object - description: REST API serializer for AddressFamily records. - properties: - id: - type: string - format: uuid - afi_safi: - $ref: '#/components/schemas/AfiSafiEnum' - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRFRequest' - nullable: true - export_policy: - type: string - maxLength: 100 - import_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - required: - - afi_safi - - id - BulkWritableAddressObjectGroupRequest: - type: object - description: AddressObjectGroup Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - id - - name - BulkWritableAddressObjectRequest: - type: object - description: AddressObject Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - id - - name - BulkWritableAggregateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - prefix: - type: string - minLength: 1 - rir: - $ref: '#/components/schemas/NestedRIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - prefix - - rir - BulkWritableAutonomousSystemRequest: - type: object - description: REST API serializer for AutonomousSystem records. - properties: - id: - type: string - format: uuid - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 32-bit autonomous system number - description: - type: string - maxLength: 200 - status: - $ref: '#/components/schemas/Status2a0Enum' - provider: - allOf: - - $ref: '#/components/schemas/NestedProviderRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - asn - - id - - status - BulkWritableBGPRoutingInstanceRequest: - type: object - description: REST API serializer for Peering records. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - description: - type: string - maxLength: 200 - router_id: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - device - - id - BulkWritableCVELCMRequest: - type: object - description: REST API serializer for CVELCM records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 16 - published_date: - type: string - format: date - link: - type: string - format: uri - minLength: 1 - maxLength: 200 - status: - $ref: '#/components/schemas/Status4f5Enum' - description: - type: string - nullable: true - maxLength: 255 - severity: - $ref: '#/components/schemas/SeverityEnum' - cvss: - type: number - format: double - nullable: true - title: CVSS Base Score - cvss_v2: - type: number - format: double - nullable: true - title: CVSSv2 Score - cvss_v3: - type: number - format: double - nullable: true - title: CVSSv3 Score - fix: - type: string - nullable: true - maxLength: 255 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - link - - name - - published_date - BulkWritableCableRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - termination_a_type: - type: string - termination_a_id: - type: string - format: uuid - termination_b_type: - type: string - termination_b_id: - type: string - format: uuid - type: - oneOf: - - $ref: '#/components/schemas/CableTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - status: - $ref: '#/components/schemas/CableStatusChoices' - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - length_unit: - $ref: '#/components/schemas/LengthUnitEnum' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - status - - termination_a_id - - termination_a_type - - termination_b_id - - termination_b_type - BulkWritableCapircaPolicyRequest: - type: object - description: CapircaPolicy Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - pol: - type: string - nullable: true - net: - type: string - nullable: true - svc: - type: string - nullable: true - cfg: - type: string - nullable: true - device: - type: string - format: uuid - nullable: true - required: - - id - BulkWritableCircuitMaintenanceCircuitImpactRequest: - type: object - description: Serializer for API. - properties: - id: - type: string - format: uuid - maintenance: - type: string - format: uuid - circuit: - type: string - format: uuid - impact: - nullable: true - oneOf: - - $ref: '#/components/schemas/ImpactEnum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - required: - - circuit - - id - - maintenance - BulkWritableCircuitMaintenanceRequest: - type: object - description: Serializer for API. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - start_time: - type: string - format: date-time - end_time: - type: string - format: date-time - description: - type: string - nullable: true - status: - nullable: true - oneOf: - - $ref: '#/components/schemas/StatusD95Enum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - ack: - type: boolean - nullable: true - required: - - end_time - - id - - start_time - BulkWritableCircuitRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - cid: - type: string - minLength: 1 - title: Circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/NestedProviderRequest' - type: - $ref: '#/components/schemas/NestedCircuitTypeRequest' - status: - $ref: '#/components/schemas/CircuitStatusChoices' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - install_date: - type: string - format: date - nullable: true - title: Date installed - commit_rate: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Commit rate (Kbps) - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - cid - - id - - provider - - status - - type - BulkWritableCircuitTerminationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - circuit: - $ref: '#/components/schemas/NestedCircuitRequest' - term_side: - allOf: - - $ref: '#/components/schemas/TermSideEnum' - title: Termination - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/NestedProviderNetworkRequest' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - maxLength: 100 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - circuit - - id - - term_side - BulkWritableCircuitTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableClusterGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableClusterRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - type: - $ref: '#/components/schemas/NestedClusterTypeRequest' - group: - allOf: - - $ref: '#/components/schemas/NestedClusterGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - type - BulkWritableClusterTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableCommandTokenRequest: - type: object - description: API serializer for interacting with CommandToken objects. - properties: - id: - type: string - format: uuid - comment: - type: string - description: 'Optional: Enter description of token' - maxLength: 255 - platform: - $ref: '#/components/schemas/PlatformEnum' - token: - type: string - minLength: 1 - description: Token given by chat platform for signing or command validation - maxLength: 255 - required: - - id - - platform - - token - BulkWritableComplianceFeatureRequest: - type: object - description: Serializer for ComplianceFeature object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - id - - name - - slug - BulkWritableComplianceRuleRequest: - type: object - description: Serializer for ComplianceRule object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - config_ordered: - type: boolean - title: Configured Ordered - description: Whether or not the configuration order matters, such as in - ACLs. - match_config: - type: string - nullable: true - title: Config to Match - description: The config to match that is matched based on the parent most - configuration. e.g. `router bgp` or `ntp`. - config_type: - allOf: - - $ref: '#/components/schemas/ConfigTypeEnum' - description: Whether the config is in cli or json/structured format. - feature: - type: string - format: uuid - platform: - type: string - format: uuid - required: - - config_ordered - - feature - - id - - platform - BulkWritableComputedFieldRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - slug: - type: string - description: Internal field name. Please use underscores rather than dashes - in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - label: - type: string - minLength: 1 - description: Name of the field as displayed to users - maxLength: 100 - description: - type: string - maxLength: 200 - content_type: - type: string - template: - type: string - minLength: 1 - description: Jinja2 template code for field value - maxLength: 500 - fallback_value: - type: string - description: Fallback value (if any) to be output for the field in the case - of a template rendering error. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - content_type - - id - - label - - template - BulkWritableConfigComplianceRequest: - type: object - description: Serializer for ConfigCompliance object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - compliance: - type: boolean - nullable: true - actual: - type: object - additionalProperties: {} - description: Actual Configuration for feature - intended: - type: object - additionalProperties: {} - description: Intended Configuration for feature - missing: - type: object - additionalProperties: {} - description: Configuration that should be on the device. - extra: - type: object - additionalProperties: {} - description: Configuration that should not be on the device. - ordered: - type: boolean - compliance_int: - type: integer - maximum: 2147483647 - minimum: -2147483648 - nullable: true - device: - type: string - format: uuid - description: The device - rule: - type: string - format: uuid - required: - - device - - id - - rule - BulkWritableConfigContextRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchemaRequest' - nullable: true - is_active: - type: boolean - regions: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - sites: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - locations: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - roles: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - device_types: - type: array - items: - type: object - properties: - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - model - - slug - platforms: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - cluster_groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - clusters: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - tenant_groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - tenants: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - tags: - type: array - items: - type: string - data: - type: object - additionalProperties: {} - required: - - data - - id - - name - BulkWritableConfigContextSchemaRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 200 - slug: - type: string - maxLength: 200 - pattern: ^[-a-zA-Z0-9_]+$ - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - data_schema: - type: object - additionalProperties: {} - description: A JSON Schema document which is used to validate a config context - object. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - data_schema - - id - - name - BulkWritableConfigRemoveRequest: - type: object - description: Serializer for ConfigRemove object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern - description: Regex pattern used to remove a line from the backup configuration. - maxLength: 200 - platform: - type: string - format: uuid - required: - - id - - name - - platform - - regex - BulkWritableConfigReplaceRequest: - type: object - description: Serializer for ConfigReplace object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern to Substitute - description: Regex pattern that will be found and replaced with 'replaced - text'. - maxLength: 200 - replace: - type: string - minLength: 1 - title: Replaced Text - description: Text that will be inserted in place of Regex pattern match. - maxLength: 200 - platform: - type: string - format: uuid - required: - - id - - name - - platform - - regex - - replace - BulkWritableConsolePortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - BulkWritableConsolePortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - BulkWritableConsoleServerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - BulkWritableConsoleServerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - BulkWritableContactLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - name: - type: string - nullable: true - minLength: 1 - maxLength: 80 - address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - priority: - type: integer - maximum: 2147483647 - minimum: 0 - contract: - allOf: - - $ref: '#/components/schemas/NestedContractLCMRequest' - description: Associated Contract - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - contract - - id - - name - BulkWritableContractLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - provider: - allOf: - - $ref: '#/components/schemas/NestedProviderLCMRequest' - description: Vendor - name: - type: string - minLength: 1 - maxLength: 100 - start: - type: string - format: date - nullable: true - title: Contract Start Date - end: - type: string - format: date - nullable: true - title: Contract End Date - cost: - type: string - format: decimal - pattern: ^-?\d{0,13}(?:\.\d{0,2})?$ - nullable: true - title: Contract Cost - support_level: - type: string - nullable: true - maxLength: 64 - contract_type: - type: string - nullable: true - maxLength: 32 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - provider - BulkWritableCustomFieldChoiceRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - field: - $ref: '#/components/schemas/NestedCustomFieldRequest' - value: - type: string - minLength: 1 - maxLength: 100 - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Higher weights appear later in the list - required: - - field - - id - - value - BulkWritableCustomLinkRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - target_url: - type: string - minLength: 1 - title: URL - description: Jinja2 template code for link URL. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. - maxLength: 500 - name: - type: string - minLength: 1 - maxLength: 100 - content_type: - type: string - text: - type: string - minLength: 1 - description: Jinja2 template code for link text. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. Links - which render as empty text will not be displayed. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - group_name: - type: string - description: Links with the same group will appear as a dropdown menu - maxLength: 50 - button_class: - allOf: - - $ref: '#/components/schemas/ButtonClassEnum' - description: The class of the first link in a group will be used for the - dropdown button - new_window: - type: boolean - description: Force link to open in a new window - required: - - content_type - - id - - name - - new_window - - target_url - - text - BulkWritableDeviceBayRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - installed_device: - allOf: - - $ref: '#/components/schemas/NestedDeviceRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - BulkWritableDeviceBayTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - BulkWritableDeviceRedundancyGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - failover_strategy: - $ref: '#/components/schemas/FailoverStrategyEnum' - secrets_group: - type: string - format: uuid - nullable: true - comments: - type: string - status: - $ref: '#/components/schemas/LocationStatusChoices' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - failover_strategy - - id - - name - - status - BulkWritableDeviceRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableDeviceTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - manufacturer: - $ref: '#/components/schemas/NestedManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: integer - maximum: 32767 - minimum: 0 - title: Height (U) - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces - subdevice_role: - $ref: '#/components/schemas/SubdeviceRoleEnum' - front_image: - type: string - format: binary - rear_image: - type: string - format: binary - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - manufacturer - - model - BulkWritableDeviceWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - device_role: - $ref: '#/components/schemas/NestedDeviceRoleRequest' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatformRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/NestedRackRequest' - nullable: true - position: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - title: Position (U) - description: The lowest-numbered unit occupied by the device - face: - $ref: '#/components/schemas/FaceEnum' - status: - $ref: '#/components/schemas/DeviceStatusChoices' - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroupRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/NestedClusterRequest' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/NestedVirtualChassisRequest' - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 - nullable: true - device_redundancy_group: - allOf: - - $ref: '#/components/schemas/NestedDeviceRedundancyGroupRequest' - nullable: true - device_redundancy_group_priority: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: The priority the device has in the device redundancy group. - comments: - type: string - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchemaRequest' - nullable: true - local_context_data: - type: object - additionalProperties: {} - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_role - - device_type - - id - - site - - status - BulkWritableDynamicGroupMembershipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - parent_group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - operator: - $ref: '#/components/schemas/OperatorEnum' - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - group - - id - - operator - - parent_group - - weight - BulkWritableDynamicGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - description: Dynamic Group name - maxLength: 100 - slug: - type: string - description: Unique slug - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - content_type: - type: string - filter: - type: object - additionalProperties: {} - description: A JSON-encoded dictionary of filter parameters for group membership - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_type - - filter - - id - - name - BulkWritableExportTemplateRequest: - type: object - description: Extend ValidatedModelSerializer with a `relationships` field. - properties: - id: - type: string - format: uuid - content_type: - type: string - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: - type: string - minLength: 1 - description: The list of objects being exported is passed as a context variable - named queryset. - mime_type: - type: string - description: Defaults to text/plain - maxLength: 50 - file_extension: - type: string - description: Extension to append to the rendered filename - maxLength: 15 - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_type - - id - - name - - template_code - BulkWritableFQDNRequest: - type: object - description: FQDN Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_addresses: - type: array - items: - type: object - properties: - address: - type: string - minLength: 1 - required: - - address - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Resolvable fully qualified domain name (e.g. networktocode.com) - maxLength: 254 - required: - - id - - name - BulkWritableFrontPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - $ref: '#/components/schemas/FrontPortRearPortRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - - rear_port - - type - BulkWritableFrontPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - $ref: '#/components/schemas/NestedRearPortTemplateRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - - rear_port - - type - BulkWritableGitRepositoryRequest: - type: object - description: Git repositories defined as a data source. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - remote_url: - type: string - format: uri - minLength: 1 - description: Only HTTP and HTTPS URLs are presently supported - maxLength: 255 - branch: - type: string - minLength: 1 - maxLength: 64 - token: - type: string - writeOnly: true - minLength: 1 - username: - type: string - maxLength: 64 - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroupRequest' - nullable: true - current_head: - type: string - description: Commit hash of the most recent fetch from the selected branch. - Used for syncing between workers. - maxLength: 48 - provided_contents: - type: array - items: - oneOf: - - $ref: '#/components/schemas/ProvidedContentsEnum' - - $ref: '#/components/schemas/BlankEnum' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - remote_url - BulkWritableGoldenConfigRequest: - type: object - description: Serializer for GoldenConfig object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - backup_config: - type: string - description: Full backup config for device. - backup_last_attempt_date: - type: string - format: date-time - nullable: true - backup_last_success_date: - type: string - format: date-time - nullable: true - intended_config: - type: string - description: Intended config for the device. - intended_last_attempt_date: - type: string - format: date-time - nullable: true - intended_last_success_date: - type: string - format: date-time - nullable: true - compliance_config: - type: string - description: Full config diff for device. - compliance_last_attempt_date: - type: string - format: date-time - nullable: true - compliance_last_success_date: - type: string - format: date-time - nullable: true - device: - type: string - format: uuid - description: device - required: - - device - - id - BulkWritableGoldenConfigSettingRequest: - type: object - description: Serializer for GoldenConfigSetting object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - scope: - type: object - additionalProperties: {} - dynamic_group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - backup_path_template: - type: string - title: Backup Path in Jinja Template Form - description: The Jinja path representation of where the backup file will - be found. The variable `obj` is available as the device instance object - of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - intended_path_template: - type: string - title: Intended Path in Jinja Template Form - description: The Jinja path representation of where the generated file will - be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - jinja_path_template: - type: string - title: Template Path in Jinja Template Form - description: The Jinja path representation of where the Jinja template can - be found. e.g. `{{obj.platform.slug}}.j2` - maxLength: 255 - backup_test_connectivity: - type: boolean - title: Backup Test - description: Whether or not to pretest the connectivity of the device by - verifying there is a resolvable IP that can connect to port 22. - backup_repository: - type: string - format: uuid - nullable: true - intended_repository: - type: string - format: uuid - nullable: true - jinja_repository: - type: string - format: uuid - nullable: true - sot_agg_query: - type: string - format: uuid - nullable: true - required: - - id - - name - - slug - BulkWritableGraphQLQueryRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - query: - type: string - minLength: 1 - variables: - type: object - additionalProperties: {} - nullable: true - default: {} - required: - - id - - name - - query - BulkWritableGroupRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: integer - name: - type: string - minLength: 1 - maxLength: 150 - required: - - id - - name - BulkWritableHardwareLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - device_type: - allOf: - - $ref: '#/components/schemas/NestedDeviceTypeRequest' - description: Device Type to attach the Hardware LCM to - inventory_item: - type: string - nullable: true - title: Inventory Item Part - maxLength: 255 - release_date: - type: string - format: date - nullable: true - end_of_sale: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - end_of_sw_releases: - type: string - format: date - nullable: true - title: End of Software Releases - end_of_security_patches: - type: string - format: date - nullable: true - documentation_url: - type: string - format: uri - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - BulkWritableIPAddressRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - address: - type: string - minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - status: - $ref: '#/components/schemas/IPAddressStatusChoices' - role: - $ref: '#/components/schemas/RoleEnum' - assigned_object_type: - type: string - nullable: true - assigned_object_id: - type: string - format: uuid - nullable: true - nat_inside: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^[0-9A-Za-z._-]+$ - maxLength: 255 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - address - - id - - status - BulkWritableIPRangeRequest: - type: object - description: IPRange Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - start_address: - type: string - minLength: 1 - end_address: - type: string - minLength: 1 - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - vrf: - type: string - format: uuid - nullable: true - required: - - end_address - - id - - start_address - BulkWritableImageAttachmentRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - content_type: - type: string - object_id: - type: string - format: uuid - name: - type: string - maxLength: 50 - image: - type: string - format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 - required: - - content_type - - id - - image - - image_height - - image_width - - object_id - BulkWritableInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - enabled: - type: boolean - parent_interface: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - bridge: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - lag: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management - description: - type: string - maxLength: 200 - mode: - $ref: '#/components/schemas/ModeEnum' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/NestedVLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: object - properties: - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - required: - - name - - vid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - - status - - type - BulkWritableInterfaceTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - mgmt_only: - type: boolean - title: Management only - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - - type - BulkWritableInventoryItemRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - parent: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturerRequest' - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - BulkWritableJobHookRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - content_types: - type: array - items: - type: string - job: - type: string - format: uuid - description: The job that this job hook will initiate - enabled: - type: boolean - type_create: - type: boolean - description: Call this job hook when a matching object is created. - type_update: - type: boolean - description: Call this job hook when a matching object is updated. - type_delete: - type: boolean - description: Call this job hook when a matching object is deleted. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_types - - id - - job - - name - BulkWritableJobRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - grouping: - type: string - minLength: 1 - description: Human-readable grouping that this job belongs to - maxLength: 255 - grouping_override: - type: boolean - description: If set, the configured grouping will remain even if the underlying - Job source code changes - name: - type: string - minLength: 1 - description: Human-readable name of this job - maxLength: 100 - name_override: - type: boolean - description: If set, the configured name will remain even if the underlying - Job source code changes - slug: - type: string - maxLength: 320 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - description: Markdown formatting is supported - description_override: - type: boolean - description: If set, the configured description will remain even if the - underlying Job source code changes - enabled: - type: boolean - description: Whether this job can be executed by users - has_sensitive_variables: - type: boolean - description: Whether this job contains sensitive variables - has_sensitive_variables_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - approval_required: - type: boolean - description: Whether the job requires approval from another user before - running - approval_required_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - commit_default: - type: boolean - description: Whether the job defaults to committing changes when run, or - defaults to a dry-run - commit_default_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - hidden: - type: boolean - description: Whether the job defaults to not being shown in the UI - hidden_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - read_only: - type: boolean - description: Whether the job is prevented from making lasting changes to - the database - read_only_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - soft_time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded - exception.
Set to 0 to use Nautobot system default - soft_time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will be forcibly - terminated.
Set to 0 to use Nautobot system default - time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - task_queues: - type: object - additionalProperties: {} - description: Comma separated list of task queues that this job can run on. - A blank list will use the default queue - task_queues_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - grouping - - id - - name - BulkWritableLocationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - location_type: - $ref: '#/components/schemas/NestedLocationTypeRequest' - parent: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - location_type - - name - - status - BulkWritableLocationTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedLocationTypeRequest' - nullable: true - nestable: - type: boolean - description: Allow Locations of this type to be parents/children of other - Locations of this same type - content_types: - type: array - items: - type: string - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableManufacturerRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableMinMaxValidationRuleRequest: - type: object - description: Serializer for `MinMaxValidationRule` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - min: - type: number - format: double - nullable: true - description: When set, apply a minimum value contraint to the value of the - model field. - max: - type: number - format: double - nullable: true - description: When set, apply a maximum value contraint to the value of the - model field. - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - required: - - content_type - - field - - id - - name - - slug - BulkWritableNATPolicyRequest: - type: object - description: NATPolicy Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/NATPolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/NATPolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - required: - - id - - name - BulkWritableNATPolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - original_source_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - original_source_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - original_source_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - original_source_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - translated_source_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - translated_source_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - translated_source_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - translated_source_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - original_destination_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - original_destination_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - original_destination_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - original_destination_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - translated_destination_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - translated_destination_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - translated_destination_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - translated_destination_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - remark: - type: boolean - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - required: - - id - - name - BulkWritableNoteRequest: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: string - format: uuid - assigned_object_type: - type: string - assigned_object_id: - type: string - format: uuid - note: - type: string - minLength: 1 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - assigned_object_id - - assigned_object_type - - id - - note - BulkWritableObjectPermissionRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - enabled: - type: boolean - object_types: - type: array - items: - type: string - groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 150 - required: - - name - users: - type: array - items: - type: object - properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and - @/./+/-/_ only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - required: - - username - actions: - type: object - additionalProperties: {} - description: The list of actions granted by this permission - constraints: - type: object - additionalProperties: {} - nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - required: - - actions - - id - - name - - object_types - BulkWritablePeerEndpointRequest: - type: object - description: REST API serializer for PeerEndpoint records. - properties: - id: - type: string - format: uuid - source_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - source_interface: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - peer_group: - allOf: - - $ref: '#/components/schemas/NestedPeerGroupRequest' - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - peering: - allOf: - - $ref: '#/components/schemas/NestedPeeringRequest' - nullable: true - secret: - allOf: - - $ref: '#/components/schemas/NestedSecretRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - enabled: - type: boolean - custom_fields: - type: object - additionalProperties: {} - required: - - id - - peering - BulkWritablePeerGroupRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - source_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - source_interface: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - template: - allOf: - - $ref: '#/components/schemas/NestedPeerGroupTemplateRequest' - nullable: true - secret: - allOf: - - $ref: '#/components/schemas/NestedSecretRequest' - nullable: true - role: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - required: - - id - - name - BulkWritablePeerGroupTemplateRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - role: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - secret: - allOf: - - $ref: '#/components/schemas/NestedSecretRequest' - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - id - - name - BulkWritablePeeringRequest: - type: object - description: REST API serializer for Peering records. - properties: - id: - type: string - format: uuid - status: - $ref: '#/components/schemas/CircuitStatusChoices' - custom_fields: - type: object - additionalProperties: {} - required: - - id - - status - BulkWritablePeeringRoleRequest: - type: object - description: REST API serializer for PeeringRole records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - required: - - id - - name - BulkWritablePlatformRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturerRequest' - nullable: true - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritablePolicyRequest: - type: object - description: Policy Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/PolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/PolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - required: - - id - - name - BulkWritablePolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_users: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last - name (e.g. John Smith) - maxLength: 100 - required: - - username - source_user_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - user_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. - john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first - & last name (e.g. John Smith) - maxLength: 100 - required: - - username - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - source_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - source_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - destination_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - destination_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - action: - $ref: '#/components/schemas/ActionEnum' - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - required: - - action - - id - - name - BulkWritablePowerFeedRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - power_panel: - $ref: '#/components/schemas/NestedPowerPanelRequest' - rack: - allOf: - - $ref: '#/components/schemas/NestedRackRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - status: - $ref: '#/components/schemas/PowerFeedStatusChoices' - type: - allOf: - - $ref: '#/components/schemas/PowerFeedTypeChoices' - default: - value: primary - label: Primary - supply: - allOf: - - $ref: '#/components/schemas/SupplyEnum' - default: - value: ac - label: AC - phase: - allOf: - - $ref: '#/components/schemas/PhaseEnum' - default: - value: single-phase - label: Single phase - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - power_panel - - status - BulkWritablePowerOutletRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerOutletTypeChoices' - power_port: - $ref: '#/components/schemas/NestedPowerPortRequest' - feed_leg: - $ref: '#/components/schemas/FeedLegEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - BulkWritablePowerOutletTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerOutletTypeChoices' - power_port: - $ref: '#/components/schemas/NestedPowerPortTemplateRequest' - feed_leg: - $ref: '#/components/schemas/FeedLegEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - BulkWritablePowerPanelRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - rack_group: - allOf: - - $ref: '#/components/schemas/NestedRackGroupRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - site - BulkWritablePowerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerPortTypeChoices' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - BulkWritablePowerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerPortTypeChoices' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - BulkWritablePrefixRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - prefix: - type: string - minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - vlan: - allOf: - - $ref: '#/components/schemas/NestedVLANRequest' - nullable: true - status: - $ref: '#/components/schemas/PrefixStatusChoices' - role: - allOf: - - $ref: '#/components/schemas/NestedRoleRequest' - nullable: true - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - prefix - - status - BulkWritableProviderLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: E-mail - maxLength: 254 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableProviderNetworkRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - provider: - $ref: '#/components/schemas/NestedProviderRequest' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - provider - BulkWritableProviderRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - account: - type: string - title: Account number - maxLength: 100 - portal_url: - type: string - format: uri - maxLength: 200 - noc_contact: - type: string - admin_contact: - type: string - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableRIRRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableRackGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - parent: - allOf: - - $ref: '#/components/schemas/NestedRackGroupRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - site - BulkWritableRackRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - facility_id: - type: string - nullable: true - description: Locally-assigned identifier - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/NestedRackGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - status: - $ref: '#/components/schemas/RackStatusChoices' - role: - allOf: - - $ref: '#/components/schemas/NestedRackRoleRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - $ref: '#/components/schemas/RackTypeChoices' - width: - $ref: '#/components/schemas/WidthEnum' - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - $ref: '#/components/schemas/OuterUnitEnum' - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - site - - status - BulkWritableRackReservationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - rack: - $ref: '#/components/schemas/NestedRackRequest' - units: - type: object - additionalProperties: {} - user: - $ref: '#/components/schemas/NestedUserRequest' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - description: - type: string - minLength: 1 - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - description - - id - - rack - - units - - user - BulkWritableRackRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableRearPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - id - - name - - type - BulkWritableRearPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - id - - name - - type - BulkWritableRegionRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedRegionRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableRegularExpressionValidationRuleRequest: - type: object - description: Serializer for `RegularExpressionValidationRule` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - regular_expression: - type: string - minLength: 1 - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - required: - - content_type - - field - - id - - name - - regular_expression - - slug - BulkWritableRelationshipAssociationRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - relationship: - $ref: '#/components/schemas/NestedRelationshipRequest' - source_type: - type: string - source_id: - type: string - format: uuid - destination_type: - type: string - destination_id: - type: string - format: uuid - required: - - destination_id - - destination_type - - id - - relationship - - source_id - - source_type - BulkWritableRelationshipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - description: Name of the relationship as displayed to users - maxLength: 100 - slug: - type: string - description: Internal relationship name. Please use underscores rather than - dashes in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - type: - allOf: - - $ref: '#/components/schemas/RelationshipTypeChoices' - description: Cardinality of this relationship - required_on: - description: Objects on the specified side MUST implement this relationship. - Not permitted for symmetric relationships. - oneOf: - - $ref: '#/components/schemas/RequiredOnEnum' - - $ref: '#/components/schemas/BlankEnum' - source_type: - type: string - source_label: - type: string - description: Label for related destination objects, as displayed on the - source object. - maxLength: 50 - source_hidden: - type: boolean - title: Hide for source object - description: Hide this relationship on the source object. - source_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable source objects of - the selected type - destination_type: - type: string - destination_label: - type: string - description: Label for related source objects, as displayed on the destination - object. - maxLength: 50 - destination_hidden: - type: boolean - title: Hide for destination object - description: Hide this relationship on the destination object. - destination_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable destination objects - of the selected type - required: - - destination_type - - id - - name - - source_type - BulkWritableRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableRouteTargetRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableSecretRequest: - type: object - description: Serializer for `Secret` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - provider: - type: string - minLength: 1 - maxLength: 100 - parameters: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - provider - BulkWritableSecretsGroupAssociationRequest: - type: object - description: Serializer for `SecretsGroupAssociation` objects. - properties: - id: - type: string - format: uuid - group: - $ref: '#/components/schemas/NestedSecretsGroupRequest' - access_type: - $ref: '#/components/schemas/AccessTypeEnum' - secret_type: - $ref: '#/components/schemas/SecretTypeEnum' - secret: - $ref: '#/components/schemas/NestedSecretRequest' - required: - - access_type - - group - - id - - secret - - secret_type - BulkWritableSecretsGroupRequest: - type: object - description: Serializer for `SecretsGroup` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableServiceObjectGroupRequest: - type: object - description: ServiceObjectGroup Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - id - - name - BulkWritableServiceObjectRequest: - type: object - description: ServiceObject Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP would - be port 80) - maxLength: 20 - ip_protocol: - allOf: - - $ref: '#/components/schemas/IpProtocolEnum' - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - id - - ip_protocol - - name - BulkWritableServiceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - allOf: - - $ref: '#/components/schemas/NestedDeviceRequest' - nullable: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/NestedVirtualMachineRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - protocol: - $ref: '#/components/schemas/ProtocolEnum' - ipaddresses: - type: array - items: - type: object - properties: - address: - type: string - minLength: 1 - required: - - address - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - ports - BulkWritableSiteRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - region: - allOf: - - $ref: '#/components/schemas/NestedRegionRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - shipping_address: - type: string - maxLength: 200 - latitude: - type: string - format: decimal - pattern: ^-?\d{0,2}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (latitude) - longitude: - type: string - format: decimal - pattern: ^-?\d{0,3}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (longitude) - contact_name: - type: string - maxLength: 50 - contact_phone: - type: string - maxLength: 20 - contact_email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - status - BulkWritableSoftwareImageLCMRequest: - type: object - description: REST API serializer for SoftwareImageLCM records. - properties: - id: - type: string - format: uuid - image_file_name: - type: string - minLength: 1 - maxLength: 100 - software: - $ref: '#/components/schemas/NestedSoftwareLCMRequest' - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - image_file_name - - software - BulkWritableSoftwareLCMRequest: - type: object - description: REST API serializer for SoftwareLCM records. - properties: - id: - type: string - format: uuid - device_platform: - $ref: '#/components/schemas/NestedPlatformRequest' - version: - type: string - minLength: 1 - maxLength: 50 - alias: - type: string - nullable: true - maxLength: 50 - release_date: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - title: End of Software Support - documentation_url: - type: string - format: uri - maxLength: 200 - software_images: - type: array - items: - type: object - properties: - image_file_name: - type: string - minLength: 1 - maxLength: 100 - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - required: - - image_file_name - long_term_support: - type: boolean - pre_release: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_platform - - id - - version - BulkWritableStatusRequest: - type: object - description: Serializer for `Status` objects. - properties: - id: - type: string - format: uuid - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 50 - slug: - type: string - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_types - - id - - name - BulkWritableTagSerializerVersion13Request: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - content_types: - type: array - items: - type: string - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_types - - id - - name - - slug - BulkWritableTenantGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedTenantGroupRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableTenantRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - $ref: '#/components/schemas/NestedTenantGroupRequest' - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableTokenRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - expires: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - required: - - id - BulkWritableUserObjectGroupRequest: - type: object - description: UserObjectGroup Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - user_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last - name (e.g. John Smith) - maxLength: 100 - required: - - username - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - id - - name - BulkWritableUserObjectRequest: - type: object - description: UserObject Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last name - (e.g. John Smith) - maxLength: 100 - required: - - id - - username - BulkWritableUserRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: - type: string - writeOnly: true - minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 150 - required: - - name - required: - - id - - password - - username - BulkWritableVLANGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableVLANRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/NestedVLANGroupRequest' - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - status: - $ref: '#/components/schemas/VLANStatusChoices' - role: - allOf: - - $ref: '#/components/schemas/NestedRoleRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - status - - vid - BulkWritableVMInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - virtual_machine: - $ref: '#/components/schemas/NestedVirtualMachineRequest' - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - parent_interface: - allOf: - - $ref: '#/components/schemas/NestedVMInterfaceRequest' - nullable: true - bridge: - allOf: - - $ref: '#/components/schemas/NestedVMInterfaceRequest' - nullable: true - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - description: - type: string - maxLength: 200 - mode: - $ref: '#/components/schemas/ModeEnum' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/NestedVLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: object - properties: - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - required: - - name - - vid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - - status - - virtual_machine - BulkWritableVRFRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF - description: - type: string - maxLength: 200 - import_targets: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC - 4360) - maxLength: 21 - required: - - name - export_targets: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC - 4360) - maxLength: 21 - required: - - name - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableValidatedSoftwareLCMRequest: - type: object - description: REST API serializer for ValidatedSoftwareLCM records. - properties: - id: - type: string - format: uuid - software: - $ref: '#/components/schemas/NestedSoftwareLCMRequest' - devices: - type: array - items: - type: string - format: uuid - device_types: - type: array - items: - type: string - format: uuid - device_roles: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - start: - type: string - format: date - title: Valid Since - end: - type: string - format: date - nullable: true - title: Valid Until - preferred: - type: boolean - title: Preferred Version - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - software - - start - BulkWritableVirtualChassisRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - allOf: - - $ref: '#/components/schemas/NestedDeviceRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - name - BulkWritableVirtualMachineWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - status: - $ref: '#/components/schemas/VirtualMachineStatusChoices' - cluster: - $ref: '#/components/schemas/NestedClusterRequest' - role: - allOf: - - $ref: '#/components/schemas/NestedDeviceRoleRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatformRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - vcpus: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - comments: - type: string - local_context_data: - type: object - additionalProperties: {} - nullable: true - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchemaRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - cluster - - id - - name - - status - BulkWritableVulnerabilityLCMRequest: - type: object - description: REST API serializer for VulnerabilityLCM records. - properties: - id: - type: string - format: uuid - status: - $ref: '#/components/schemas/Status4f5Enum' - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - - status - BulkWritableWebhookRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 150 - type_create: - type: boolean - description: Call this webhook when a matching object is created. - type_update: - type: boolean - description: Call this webhook when a matching object is updated. - type_delete: - type: boolean - description: Call this webhook when a matching object is deleted. - payload_url: - type: string - minLength: 1 - title: URL - description: A POST will be sent to this URL when the webhook is called. - maxLength: 500 - http_method: - $ref: '#/components/schemas/HttpMethodEnum' - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is support with the - same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a 'X-Hook-Signature' - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: - type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - required: - - content_types - - id - - name - - payload_url - BulkWritableZoneRequest: - type: object - description: Zone Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - interfaces: - type: array - items: - $ref: '#/components/schemas/NestedInterfaceRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the zone (e.g. trust) - maxLength: 100 - required: - - id - - name - ButtonClassEnum: - enum: - - default - - primary - - success - - info - - warning - - danger - - link - type: string - CVELCM: - type: object - description: REST API serializer for CVELCM records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 16 - published_date: - type: string - format: date - link: - type: string - format: uri - maxLength: 200 - status: - type: object - properties: - value: - type: string - enum: [] - label: - type: string - enum: [] - description: - type: string - nullable: true - maxLength: 255 - severity: - type: object - properties: - value: - type: string - enum: - - Critical - - High - - Medium - - Low - - None - label: - type: string - enum: - - Critical - - High - - Medium - - Low - - None - cvss: - type: number - format: double - nullable: true - title: CVSS Base Score - cvss_v2: - type: number - format: double - nullable: true - title: CVSSv2 Score - cvss_v3: - type: number - format: double - nullable: true - title: CVSSv3 Score - fix: - type: string - nullable: true - maxLength: 255 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - last_updated - - link - - name - - published_date - - url - Cable: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - termination_a_type: - type: string - termination_a_id: - type: string - format: uuid - termination_a: - type: object - additionalProperties: {} - nullable: true - readOnly: true - termination_b_type: - type: string - termination_b_id: - type: string - format: uuid - termination_b: - type: object - additionalProperties: {} - nullable: true - readOnly: true - type: - oneOf: - - $ref: '#/components/schemas/CableTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - status: - type: object - properties: - value: - type: string - enum: - - connected - - decommissioning - - planned - label: - type: string - enum: - - Connected - - Decommissioning - - Planned - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - length_unit: - type: object - properties: - value: - type: string - enum: - - m - - cm - - ft - - in - label: - type: string - enum: - - Meters - - Centimeters - - Feet - - Inches - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - notes_url - - status - - termination_a - - termination_a_id - - termination_a_type - - termination_b - - termination_b_id - - termination_b_type - - url - CableStatusChoices: - type: string - enum: - - connected - - decommissioning - - planned - CableTypeChoices: - enum: - - cat3 - - cat5 - - cat5e - - cat6 - - cat6a - - cat7 - - cat7a - - cat8 - - dac-active - - dac-passive - - mrj21-trunk - - coaxial - - mmf - - mmf-om1 - - mmf-om2 - - mmf-om3 - - mmf-om4 - - smf - - smf-os1 - - smf-os2 - - aoc - - power - type: string - CapircaPolicy: - type: object - description: CapircaPolicy Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - pol: - type: string - nullable: true - net: - type: string - nullable: true - svc: - type: string - nullable: true - cfg: - type: string - nullable: true - device: - type: string - format: uuid - nullable: true - required: - - created - - display - - id - - last_updated - - url - CapircaPolicyRequest: - type: object - description: CapircaPolicy Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - pol: - type: string - nullable: true - net: - type: string - nullable: true - svc: - type: string - nullable: true - cfg: - type: string - nullable: true - device: - type: string - format: uuid - nullable: true - Circuit: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - cid: - type: string - title: Circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/NestedProvider' - type: - $ref: '#/components/schemas/NestedCircuitType' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - deprovisioning - - offline - - planned - - provisioning - label: - type: string - enum: - - Active - - Decommissioned - - Deprovisioning - - Offline - - Planned - - Provisioning - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - install_date: - type: string - format: date - nullable: true - title: Date installed - commit_rate: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Commit rate (Kbps) - description: - type: string - maxLength: 200 - termination_a: - allOf: - - $ref: '#/components/schemas/CircuitCircuitTermination' - readOnly: true - termination_z: - allOf: - - $ref: '#/components/schemas/CircuitCircuitTermination' - readOnly: true - comments: - type: string - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cid - - created - - display - - id - - last_updated - - notes_url - - provider - - status - - termination_a - - termination_z - - type - - url - CircuitCircuitTermination: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - site: - $ref: '#/components/schemas/NestedSite' - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - provider_network: - $ref: '#/components/schemas/NestedProviderNetwork' - connected_endpoint: - $ref: '#/components/schemas/NestedInterface' - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - maxLength: 50 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - connected_endpoint - - created - - display - - id - - last_updated - - notes_url - - provider_network - - site - - url - CircuitCircuitTerminationRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - provider_network: - $ref: '#/components/schemas/NestedProviderNetworkRequest' - connected_endpoint: - $ref: '#/components/schemas/NestedInterfaceRequest' - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - maxLength: 50 - required: - - id - CircuitMaintenance: - type: object - description: Serializer for API. - properties: - id: - type: string - format: uuid - readOnly: true - name: - type: string - maxLength: 100 - start_time: - type: string - format: date-time - end_time: - type: string - format: date-time - description: - type: string - nullable: true - status: - nullable: true - oneOf: - - $ref: '#/components/schemas/StatusD95Enum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - ack: - type: boolean - nullable: true - required: - - end_time - - id - - start_time - CircuitMaintenanceCircuitImpact: - type: object - description: Serializer for API. - properties: - id: - type: string - format: uuid - readOnly: true - maintenance: - type: string - format: uuid - circuit: - type: string - format: uuid - impact: - nullable: true - oneOf: - - $ref: '#/components/schemas/ImpactEnum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - required: - - circuit - - id - - maintenance - CircuitMaintenanceCircuitImpactRequest: - type: object - description: Serializer for API. - properties: - maintenance: - type: string - format: uuid - circuit: - type: string - format: uuid - impact: - nullable: true - oneOf: - - $ref: '#/components/schemas/ImpactEnum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - required: - - circuit - - maintenance - CircuitMaintenanceRequest: - type: object - description: Serializer for API. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - start_time: - type: string - format: date-time - end_time: - type: string - format: date-time - description: - type: string - nullable: true - status: - nullable: true - oneOf: - - $ref: '#/components/schemas/StatusD95Enum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - ack: - type: boolean - nullable: true - required: - - end_time - - start_time - CircuitStatusChoices: - type: string - enum: - - active - - decommissioned - - deprovisioning - - offline - - planned - - provisioning - CircuitTermination: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - circuit: - $ref: '#/components/schemas/NestedCircuit' - term_side: - allOf: - - $ref: '#/components/schemas/TermSideEnum' - title: Termination - site: - allOf: - - $ref: '#/components/schemas/NestedSite' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/NestedProviderNetwork' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - maxLength: 100 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - circuit - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - created - - display - - id - - last_updated - - notes_url - - term_side - - url - CircuitType: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - circuit_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - circuit_count - - created - - display - - id - - last_updated - - name - - notes_url - - url - CircuitTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - Cluster: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - type: - $ref: '#/components/schemas/NestedClusterType' - group: - allOf: - - $ref: '#/components/schemas/NestedClusterGroup' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/NestedSite' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - device_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_count - - display - - id - - last_updated - - name - - notes_url - - type - - url - - virtualmachine_count - ClusterGroup: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - cluster_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cluster_count - - created - - display - - id - - last_updated - - name - - notes_url - - url - ClusterGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - ClusterType: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - cluster_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cluster_count - - created - - display - - id - - last_updated - - name - - notes_url - - url - ClusterTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - CommandToken: - type: object - description: API serializer for interacting with CommandToken objects. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - comment: - type: string - description: 'Optional: Enter description of token' - maxLength: 255 - platform: - $ref: '#/components/schemas/PlatformEnum' - token: - type: string - description: Token given by chat platform for signing or command validation - maxLength: 255 - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - last_updated - - platform - - token - - url - CommandTokenRequest: - type: object - description: API serializer for interacting with CommandToken objects. - properties: - comment: - type: string - description: 'Optional: Enter description of token' - maxLength: 255 - platform: - $ref: '#/components/schemas/PlatformEnum' - token: - type: string - minLength: 1 - description: Token given by chat platform for signing or command validation - maxLength: 255 - required: - - platform - - token - ComplianceFeature: - type: object - description: Serializer for ComplianceFeature object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - created - - display - - id - - last_updated - - name - - slug - - url - ComplianceFeatureRequest: - type: object - description: Serializer for ComplianceFeature object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - ComplianceRule: - type: object - description: Serializer for ComplianceRule object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - config_ordered: - type: boolean - title: Configured Ordered - description: Whether or not the configuration order matters, such as in - ACLs. - match_config: - type: string - nullable: true - title: Config to Match - description: The config to match that is matched based on the parent most - configuration. e.g. `router bgp` or `ntp`. - config_type: - allOf: - - $ref: '#/components/schemas/ConfigTypeEnum' - description: Whether the config is in cli or json/structured format. - feature: - type: string - format: uuid - platform: - type: string - format: uuid - required: - - config_ordered - - created - - display - - feature - - id - - last_updated - - platform - - url - ComplianceRuleRequest: - type: object - description: Serializer for ComplianceRule object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - config_ordered: - type: boolean - title: Configured Ordered - description: Whether or not the configuration order matters, such as in - ACLs. - match_config: - type: string - nullable: true - title: Config to Match - description: The config to match that is matched based on the parent most - configuration. e.g. `router bgp` or `ntp`. - config_type: - allOf: - - $ref: '#/components/schemas/ConfigTypeEnum' - description: Whether the config is in cli or json/structured format. - feature: - type: string - format: uuid - platform: - type: string - format: uuid - required: - - config_ordered - - feature - - platform - ComputedField: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - slug: - type: string - description: Internal field name. Please use underscores rather than dashes - in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - label: - type: string - description: Name of the field as displayed to users - maxLength: 100 - description: - type: string - maxLength: 200 - content_type: - type: string - template: - type: string - description: Jinja2 template code for field value - maxLength: 500 - fallback_value: - type: string - description: Fallback value (if any) to be output for the field in the case - of a template rendering error. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - content_type - - created - - display - - id - - label - - last_updated - - notes_url - - template - - url - ComputedFieldRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - slug: - type: string - description: Internal field name. Please use underscores rather than dashes - in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - label: - type: string - minLength: 1 - description: Name of the field as displayed to users - maxLength: 100 - description: - type: string - maxLength: 200 - content_type: - type: string - template: - type: string - minLength: 1 - description: Jinja2 template code for field value - maxLength: 500 - fallback_value: - type: string - description: Fallback value (if any) to be output for the field in the case - of a template rendering error. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - content_type - - label - - template - ConfigCompliance: - type: object - description: Serializer for ConfigCompliance object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - compliance: - type: boolean - nullable: true - actual: - type: object - additionalProperties: {} - description: Actual Configuration for feature - intended: - type: object - additionalProperties: {} - description: Intended Configuration for feature - missing: - type: object - additionalProperties: {} - description: Configuration that should be on the device. - extra: - type: object - additionalProperties: {} - description: Configuration that should not be on the device. - ordered: - type: boolean - compliance_int: - type: integer - maximum: 2147483647 - minimum: -2147483648 - nullable: true - device: - type: string - format: uuid - description: The device - rule: - type: string - format: uuid - required: - - created - - device - - display - - id - - last_updated - - rule - ConfigComplianceRequest: - type: object - description: Serializer for ConfigCompliance object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - compliance: - type: boolean - nullable: true - actual: - type: object - additionalProperties: {} - description: Actual Configuration for feature - intended: - type: object - additionalProperties: {} - description: Intended Configuration for feature - missing: - type: object - additionalProperties: {} - description: Configuration that should be on the device. - extra: - type: object - additionalProperties: {} - description: Configuration that should not be on the device. - ordered: - type: boolean - compliance_int: - type: integer - maximum: 2147483647 - minimum: -2147483648 - nullable: true - device: - type: string - format: uuid - description: The device - rule: - type: string - format: uuid - required: - - device - - rule - ConfigContext: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - owner: - type: object - additionalProperties: {} - nullable: true - readOnly: true - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchema' - nullable: true - is_active: - type: boolean - regions: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - site_count - - url - sites: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - locations: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - tree_depth: - type: integer - nullable: true - readOnly: true - required: - - display - - id - - name - - tree_depth - - url - roles: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - device_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - required: - - device_count - - display - - id - - name - - url - - virtualmachine_count - device_types: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturer' - readOnly: true - model: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - device_count: - type: integer - readOnly: true - required: - - device_count - - display - - id - - manufacturer - - model - - slug - - url - platforms: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - device_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - required: - - device_count - - display - - id - - name - - url - - virtualmachine_count - cluster_groups: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - cluster_count: - type: integer - readOnly: true - required: - - cluster_count - - display - - id - - name - - url - clusters: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - virtualmachine_count: - type: integer - readOnly: true - required: - - display - - id - - name - - url - - virtualmachine_count - tenant_groups: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - tenant_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - tenant_count - - url - tenants: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - tags: - type: array - items: - type: string - data: - type: object - additionalProperties: {} - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - created - - data - - display - - id - - last_updated - - name - - notes_url - - owner - - url - ConfigContextSchema: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 200 - slug: - type: string - maxLength: 200 - pattern: ^[-a-zA-Z0-9_]+$ - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - owner: - type: object - additionalProperties: {} - nullable: true - readOnly: true - description: - type: string - maxLength: 200 - data_schema: - type: object - additionalProperties: {} - description: A JSON Schema document which is used to validate a config context - object. - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - data_schema - - display - - id - - last_updated - - name - - notes_url - - owner - - url - ConfigContextSchemaRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 200 - slug: - type: string - maxLength: 200 - pattern: ^[-a-zA-Z0-9_]+$ - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - data_schema: - type: object - additionalProperties: {} - description: A JSON Schema document which is used to validate a config context - object. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - data_schema - - name - ConfigRemove: - type: object - description: Serializer for ConfigRemove object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - title: Regex Pattern - description: Regex pattern used to remove a line from the backup configuration. - maxLength: 200 - platform: - type: string - format: uuid - required: - - created - - display - - id - - last_updated - - name - - platform - - regex - - url - ConfigRemoveRequest: - type: object - description: Serializer for ConfigRemove object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern - description: Regex pattern used to remove a line from the backup configuration. - maxLength: 200 - platform: - type: string - format: uuid - required: - - name - - platform - - regex - ConfigReplace: - type: object - description: Serializer for ConfigReplace object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - title: Regex Pattern to Substitute - description: Regex pattern that will be found and replaced with 'replaced - text'. - maxLength: 200 - replace: - type: string - title: Replaced Text - description: Text that will be inserted in place of Regex pattern match. - maxLength: 200 - platform: - type: string - format: uuid - required: - - created - - display - - id - - last_updated - - name - - platform - - regex - - replace - - url - ConfigReplaceRequest: - type: object - description: Serializer for ConfigReplace object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern to Substitute - description: Regex pattern that will be found and replaced with 'replaced - text'. - maxLength: 200 - replace: - type: string - minLength: 1 - title: Replaced Text - description: Text that will be inserted in place of Regex pattern match. - maxLength: 200 - platform: - type: string - format: uuid - required: - - name - - platform - - regex - - replace - ConfigToPush: - type: object - description: Serializer for ConfigToPush view. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/NestedDeviceType' - device_role: - $ref: '#/components/schemas/NestedDeviceRole' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatform' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSite' - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/NestedRack' - nullable: true - position: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - title: Position (U) - description: The lowest-numbered unit occupied by the device - face: - type: object - properties: - value: - type: string - enum: - - front - - rear - label: - type: string - enum: - - Front - - Rear - parent_device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - failed - - inventory - - offline - - planned - - staged - label: - type: string - enum: - - Active - - Decommissioning - - Failed - - Inventory - - Offline - - Planned - - Staged - primary_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - readOnly: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroup' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/NestedCluster' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/NestedVirtualChassis' - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 - nullable: true - device_redundancy_group: - allOf: - - $ref: '#/components/schemas/NestedDeviceRedundancyGroup' - nullable: true - device_redundancy_group_priority: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: The priority the device has in the device redundancy group. - comments: - type: string - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchema' - nullable: true - local_context_data: - type: object - additionalProperties: {} - nullable: true - config: - type: string - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - config - - created - - device_role - - device_type - - display - - id - - last_updated - - notes_url - - parent_device - - primary_ip - - site - - status - - url - ConfigTypeEnum: - enum: - - cli - - json - - custom - type: string - ConsolePort: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - other - label: - type: string - enum: - - DE-9 - - DB-25 - - RJ-11 - - RJ-12 - - RJ-45 - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - Other - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - created - - device - - display - - id - - last_updated - - name - - notes_url - - url - ConsolePortTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - other - label: - type: string - enum: - - DE-9 - - DB-25 - - RJ-11 - - RJ-12 - - RJ-45 - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - Other - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - url - ConsolePortTypeChoices: - type: string - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - other - ConsoleServerPort: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - other - label: - type: string - enum: - - DE-9 - - DB-25 - - RJ-11 - - RJ-12 - - RJ-45 - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - Other - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - created - - device - - display - - id - - last_updated - - name - - notes_url - - url - ConsoleServerPortTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - other - label: - type: string - enum: - - DE-9 - - DB-25 - - RJ-11 - - RJ-12 - - RJ-45 - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - Other - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - url - ContactLCM: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - nullable: true - maxLength: 80 - address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - priority: - type: integer - maximum: 2147483647 - minimum: 0 - contract: - allOf: - - $ref: '#/components/schemas/NestedContractLCM' - description: Associated Contract - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - contract - - created - - display - - id - - last_updated - - name - - url - ContentType: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: integer - readOnly: true - display: - type: string - readOnly: true - url: - type: string - format: uri - readOnly: true - app_label: - type: string - maxLength: 100 - model: - type: string - title: Python model class name - maxLength: 100 - required: - - app_label - - display - - id - - model - - url - ContractLCM: - type: object - description: API serializer. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - id: - type: string - format: uuid - readOnly: true - provider: - allOf: - - $ref: '#/components/schemas/NestedProviderLCM' - description: Vendor - name: - type: string - maxLength: 100 - start: - type: string - format: date - nullable: true - title: Contract Start Date - end: - type: string - format: date - nullable: true - title: Contract End Date - cost: - type: string - format: decimal - pattern: ^-?\d{0,13}(?:\.\d{0,2})?$ - nullable: true - title: Contract Cost - support_level: - type: string - nullable: true - maxLength: 64 - contract_type: - type: string - nullable: true - maxLength: 32 - expired: - type: string - readOnly: true - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - expired - - id - - last_updated - - name - - provider - - url - CustomFieldChoice: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - field: - $ref: '#/components/schemas/NestedCustomField' - value: - type: string - maxLength: 100 - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Higher weights appear later in the list - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - field - - id - - last_updated - - url - - value - CustomFieldSerializerVersion12: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - content_types: - type: array - items: - type: string - type: - type: object - properties: - value: - type: string - enum: - - text - - integer - - boolean - - date - - url - - select - - multi-select - - json - label: - type: string - enum: - - Text - - Integer - - Boolean (true/false) - - Date - - URL - - Selection - - Multiple selection - - JSON - label: - type: string - maxLength: 50 - name: - type: string - description: Human-readable unique name of this field. - maxLength: 50 - slug: - type: string - maxLength: 50 - description: - type: string - description: A helpful description for this field. - maxLength: 200 - required: - type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. - filter_logic: - type: object - properties: - value: - type: string - enum: - - disabled - - loose - - exact - label: - type: string - enum: - - Disabled - - Loose - - Exact - default: - type: object - additionalProperties: {} - nullable: true - description: Default value for the field (must be a JSON value). Encapsulate - strings with double quotes (e.g. "Foo"). - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Fields with higher weights appear lower in a form. - validation_minimum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Minimum value - description: Minimum allowed value (for numeric fields). - validation_maximum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Maximum value - description: Maximum allowed value (for numeric fields). - validation_regex: - type: string - description: Regular expression to enforce on text field values. Use ^ and - $ to force matching of entire string. For example, ^[A-Z]{3}$ - will limit values to exactly three uppercase letters. Regular expression - on select and multi-select will be applied at Custom Field Choices - definition. - maxLength: 500 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - content_types - - created - - display - - id - - last_updated - - name - - notes_url - - type - - url - CustomFieldSerializerVersion12Request: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - content_types: - type: array - items: - type: string - type: - $ref: '#/components/schemas/CustomFieldTypeChoices' - label: - type: string - minLength: 1 - maxLength: 50 - name: - type: string - minLength: 1 - description: Human-readable unique name of this field. - maxLength: 50 - slug: - type: string - minLength: 1 - maxLength: 50 - description: - type: string - description: A helpful description for this field. - maxLength: 200 - required: - type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. - filter_logic: - $ref: '#/components/schemas/FilterLogicEnum' - default: - type: object - additionalProperties: {} - nullable: true - description: Default value for the field (must be a JSON value). Encapsulate - strings with double quotes (e.g. "Foo"). - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Fields with higher weights appear lower in a form. - validation_minimum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Minimum value - description: Minimum allowed value (for numeric fields). - validation_maximum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Maximum value - description: Maximum allowed value (for numeric fields). - validation_regex: - type: string - description: Regular expression to enforce on text field values. Use ^ and - $ to force matching of entire string. For example, ^[A-Z]{3}$ - will limit values to exactly three uppercase letters. Regular expression - on select and multi-select will be applied at Custom Field Choices - definition. - maxLength: 500 - required: - - id - CustomFieldTypeChoices: - type: string - enum: - - text - - integer - - boolean - - date - - url - - select - - multi-select - - json - CustomLink: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - target_url: - type: string - title: URL - description: Jinja2 template code for link URL. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. - maxLength: 500 - name: - type: string - maxLength: 100 - content_type: - type: string - text: - type: string - description: Jinja2 template code for link text. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. Links - which render as empty text will not be displayed. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - group_name: - type: string - description: Links with the same group will appear as a dropdown menu - maxLength: 50 - button_class: - allOf: - - $ref: '#/components/schemas/ButtonClassEnum' - description: The class of the first link in a group will be used for the - dropdown button - new_window: - type: boolean - description: Force link to open in a new window - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - content_type - - created - - display - - id - - last_updated - - name - - new_window - - notes_url - - target_url - - text - - url - CustomLinkRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - target_url: - type: string - minLength: 1 - title: URL - description: Jinja2 template code for link URL. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. - maxLength: 500 - name: - type: string - minLength: 1 - maxLength: 100 - content_type: - type: string - text: - type: string - minLength: 1 - description: Jinja2 template code for link text. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. Links - which render as empty text will not be displayed. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - group_name: - type: string - description: Links with the same group will appear as a dropdown menu - maxLength: 50 - button_class: - allOf: - - $ref: '#/components/schemas/ButtonClassEnum' - description: The class of the first link in a group will be used for the - dropdown button - new_window: - type: boolean - description: Force link to open in a new window - required: - - content_type - - name - - new_window - - target_url - - text - Device: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/NestedDeviceType' - device_role: - $ref: '#/components/schemas/NestedDeviceRole' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatform' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSite' - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/NestedRack' - nullable: true - position: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - title: Position (U) - description: The lowest-numbered unit occupied by the device - face: - type: object - properties: - value: - type: string - enum: - - front - - rear - label: - type: string - enum: - - Front - - Rear - parent_device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - failed - - inventory - - offline - - planned - - staged - label: - type: string - enum: - - Active - - Decommissioning - - Failed - - Inventory - - Offline - - Planned - - Staged - primary_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - readOnly: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroup' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/NestedCluster' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/NestedVirtualChassis' - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 - nullable: true - device_redundancy_group: - allOf: - - $ref: '#/components/schemas/NestedDeviceRedundancyGroup' - nullable: true - device_redundancy_group_priority: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: The priority the device has in the device redundancy group. - comments: - type: string - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchema' - nullable: true - local_context_data: - type: object - additionalProperties: {} - nullable: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_role - - device_type - - display - - id - - last_updated - - notes_url - - parent_device - - primary_ip - - site - - status - - url - DeviceBay: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - installed_device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - nullable: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device - - display - - id - - last_updated - - name - - notes_url - - url - DeviceBayTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - url - DeviceNAPALM: - type: object - properties: - method: - type: object - additionalProperties: {} - required: - - method - DeviceRedundancyGroup: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - failover_strategy: - type: object - properties: - value: - type: string - enum: - - active-active - - active-passive - label: - type: string - enum: - - Active/Active - - Active/Passive - secrets_group: - type: string - format: uuid - nullable: true - comments: - type: string - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - planned - - retired - - staging - label: - type: string - enum: - - Active - - Decommissioning - - Planned - - Retired - - Staging - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - failover_strategy - - id - - last_updated - - name - - notes_url - - status - - url - DeviceRole: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - description: - type: string - maxLength: 200 - device_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_count - - display - - id - - last_updated - - name - - notes_url - - url - - virtualmachine_count - DeviceRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - DeviceStatusChoices: - type: string - enum: - - active - - decommissioning - - failed - - inventory - - offline - - planned - - staged - DeviceType: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - manufacturer: - $ref: '#/components/schemas/NestedManufacturer' - model: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: integer - maximum: 32767 - minimum: 0 - title: Height (U) - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces - subdevice_role: - type: object - properties: - value: - type: string - enum: - - parent - - child - label: - type: string - enum: - - Parent - - Child - front_image: - type: string - format: uri - rear_image: - type: string - format: uri - comments: - type: string - device_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_count - - display - - id - - last_updated - - manufacturer - - model - - notes_url - - url - DeviceWithConfigContext: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/NestedDeviceType' - device_role: - $ref: '#/components/schemas/NestedDeviceRole' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatform' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSite' - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/NestedRack' - nullable: true - position: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - title: Position (U) - description: The lowest-numbered unit occupied by the device - face: - type: object - properties: - value: - type: string - enum: - - front - - rear - label: - type: string - enum: - - Front - - Rear - parent_device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - failed - - inventory - - offline - - planned - - staged - label: - type: string - enum: - - Active - - Decommissioning - - Failed - - Inventory - - Offline - - Planned - - Staged - primary_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - readOnly: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroup' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/NestedCluster' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/NestedVirtualChassis' - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 - nullable: true - device_redundancy_group: - allOf: - - $ref: '#/components/schemas/NestedDeviceRedundancyGroup' - nullable: true - device_redundancy_group_priority: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: The priority the device has in the device redundancy group. - comments: - type: string - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchema' - nullable: true - local_context_data: - type: object - additionalProperties: {} - nullable: true - config_context: - type: object - additionalProperties: {} - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - config_context - - created - - device_role - - device_type - - display - - id - - last_updated - - notes_url - - parent_device - - primary_ip - - site - - status - - url - DynamicGroup: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Dynamic Group name - maxLength: 100 - slug: - type: string - description: Unique slug - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - content_type: - type: string - filter: - type: object - additionalProperties: {} - description: A JSON-encoded dictionary of filter parameters for group membership - children: - type: array - items: - $ref: '#/components/schemas/NestedDynamicGroupMembership' - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - children - - content_type - - created - - display - - filter - - id - - last_updated - - name - - notes_url - - url - DynamicGroupMembership: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - group: - $ref: '#/components/schemas/NestedDynamicGroup' - parent_group: - $ref: '#/components/schemas/NestedDynamicGroup' - operator: - $ref: '#/components/schemas/OperatorEnum' - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - display - - group - - id - - operator - - parent_group - - url - - weight - DynamicGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - description: Dynamic Group name - maxLength: 100 - slug: - type: string - description: Unique slug - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - content_type: - type: string - filter: - type: object - additionalProperties: {} - description: A JSON-encoded dictionary of filter parameters for group membership - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_type - - filter - - name - ExportTemplate: - type: object - description: Extend ValidatedModelSerializer with a `relationships` field. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - content_type: - type: string - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - owner: - type: object - additionalProperties: {} - nullable: true - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: - type: string - description: The list of objects being exported is passed as a context variable - named queryset. - mime_type: - type: string - description: Defaults to text/plain - maxLength: 50 - file_extension: - type: string - description: Extension to append to the rendered filename - maxLength: 15 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - content_type - - created - - display - - id - - last_updated - - name - - notes_url - - owner - - template_code - - url - ExportTemplateRequest: - type: object - description: Extend ValidatedModelSerializer with a `relationships` field. - properties: - content_type: - type: string - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: - type: string - minLength: 1 - description: The list of objects being exported is passed as a context variable - named queryset. - mime_type: - type: string - description: Defaults to text/plain - maxLength: 50 - file_extension: - type: string - description: Extension to append to the rendered filename - maxLength: 15 - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_type - - name - - template_code - FQDN: - type: object - description: FQDN Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_addresses: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - family: - type: integer - readOnly: true - address: - type: string - required: - - address - - display - - family - - id - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Resolvable fully qualified domain name (e.g. networktocode.com) - maxLength: 254 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - FaceEnum: - type: string - enum: - - front - - rear - FailoverStrategyEnum: - type: string - enum: - - active-active - - active-passive - FeedLegEnum: - type: string - enum: - - A - - B - - C - FilterLogicEnum: - type: string - enum: - - disabled - - loose - - exact - FrontPort: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - mrj21 - - fc - - lc - - lc-apc - - lsh - - lsh-apc - - mpo - - mtrj - - sc - - sc-apc - - st - - cs - - sn - - urm-p2 - - urm-p4 - - urm-p8 - - splice - label: - type: string - enum: - - 8P8C - - 8P6C - - 8P4C - - 8P2C - - GG45 - - TERA 4P - - TERA 2P - - TERA 1P - - 110 Punch - - BNC - - MRJ21 - - FC - - LC - - LC/APC - - LSH - - LSH/APC - - MPO - - MTRJ - - SC - - SC/APC - - ST - - CS - - SN - - URM-P2 - - URM-P4 - - URM-P8 - - Splice - rear_port: - $ref: '#/components/schemas/FrontPortRearPort' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - created - - device - - display - - id - - last_updated - - name - - notes_url - - rear_port - - type - - url - FrontPortRearPort: - type: object - description: NestedRearPortSerializer but with parent device omitted (since - front and rear ports must belong to same device) - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - last_updated - - name - - url - FrontPortRearPortRequest: - type: object - description: NestedRearPortSerializer but with parent device omitted (since - front and rear ports must belong to same device) - properties: - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - required: - - id - FrontPortTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - mrj21 - - fc - - lc - - lc-apc - - lsh - - lsh-apc - - mpo - - mtrj - - sc - - sc-apc - - st - - cs - - sn - - urm-p2 - - urm-p4 - - urm-p8 - - splice - label: - type: string - enum: - - 8P8C - - 8P6C - - 8P4C - - 8P2C - - GG45 - - TERA 4P - - TERA 2P - - TERA 1P - - 110 Punch - - BNC - - MRJ21 - - FC - - LC - - LC/APC - - LSH - - LSH/APC - - MPO - - MTRJ - - SC - - SC/APC - - ST - - CS - - SN - - URM-P2 - - URM-P4 - - URM-P8 - - Splice - rear_port: - $ref: '#/components/schemas/NestedRearPortTemplate' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - rear_port - - type - - url - GitRepository: - type: object - description: Git repositories defined as a data source. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - remote_url: - type: string - format: uri - description: Only HTTP and HTTPS URLs are presently supported - maxLength: 255 - branch: - type: string - maxLength: 64 - username: - type: string - maxLength: 64 - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroup' - nullable: true - current_head: - type: string - description: Commit hash of the most recent fetch from the selected branch. - Used for syncing between workers. - maxLength: 48 - provided_contents: - type: array - items: - oneOf: - - $ref: '#/components/schemas/ProvidedContentsEnum' - - $ref: '#/components/schemas/BlankEnum' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - remote_url - - url - GitRepositoryRequest: - type: object - description: Git repositories defined as a data source. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - remote_url: - type: string - format: uri - minLength: 1 - description: Only HTTP and HTTPS URLs are presently supported - maxLength: 255 - branch: - type: string - minLength: 1 - maxLength: 64 - token: - type: string - writeOnly: true - minLength: 1 - username: - type: string - maxLength: 64 - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroupRequest' - nullable: true - current_head: - type: string - description: Commit hash of the most recent fetch from the selected branch. - Used for syncing between workers. - maxLength: 48 - provided_contents: - type: array - items: - oneOf: - - $ref: '#/components/schemas/ProvidedContentsEnum' - - $ref: '#/components/schemas/BlankEnum' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - remote_url - GoldenConfig: - type: object - description: Serializer for GoldenConfig object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - backup_config: - type: string - description: Full backup config for device. - backup_last_attempt_date: - type: string - format: date-time - nullable: true - backup_last_success_date: - type: string - format: date-time - nullable: true - intended_config: - type: string - description: Intended config for the device. - intended_last_attempt_date: - type: string - format: date-time - nullable: true - intended_last_success_date: - type: string - format: date-time - nullable: true - compliance_config: - type: string - description: Full config diff for device. - compliance_last_attempt_date: - type: string - format: date-time - nullable: true - compliance_last_success_date: - type: string - format: date-time - nullable: true - device: - type: string - format: uuid - description: device - required: - - created - - device - - display - - id - - last_updated - - url - GoldenConfigRequest: - type: object - description: Serializer for GoldenConfig object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - backup_config: - type: string - description: Full backup config for device. - backup_last_attempt_date: - type: string - format: date-time - nullable: true - backup_last_success_date: - type: string - format: date-time - nullable: true - intended_config: - type: string - description: Intended config for the device. - intended_last_attempt_date: - type: string - format: date-time - nullable: true - intended_last_success_date: - type: string - format: date-time - nullable: true - compliance_config: - type: string - description: Full config diff for device. - compliance_last_attempt_date: - type: string - format: date-time - nullable: true - compliance_last_success_date: - type: string - format: date-time - nullable: true - device: - type: string - format: uuid - description: device - required: - - device - GoldenConfigSetting: - type: object - description: Serializer for GoldenConfigSetting object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - custom_fields: - type: object - additionalProperties: {} - url: - type: string - format: uri - readOnly: true - scope: - type: object - additionalProperties: {} - dynamic_group: - $ref: '#/components/schemas/NestedDynamicGroup' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - backup_path_template: - type: string - title: Backup Path in Jinja Template Form - description: The Jinja path representation of where the backup file will - be found. The variable `obj` is available as the device instance object - of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - intended_path_template: - type: string - title: Intended Path in Jinja Template Form - description: The Jinja path representation of where the generated file will - be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - jinja_path_template: - type: string - title: Template Path in Jinja Template Form - description: The Jinja path representation of where the Jinja template can - be found. e.g. `{{obj.platform.slug}}.j2` - maxLength: 255 - backup_test_connectivity: - type: boolean - title: Backup Test - description: Whether or not to pretest the connectivity of the device by - verifying there is a resolvable IP that can connect to port 22. - backup_repository: - type: string - format: uuid - nullable: true - intended_repository: - type: string - format: uuid - nullable: true - jinja_repository: - type: string - format: uuid - nullable: true - sot_agg_query: - type: string - format: uuid - nullable: true - required: - - created - - display - - id - - last_updated - - name - - slug - - url - GrantTypeEnum: - enum: - - organization - - channel - - user - type: string - GraphQLAPIRequest: - type: object - properties: - query: - type: string - minLength: 1 - description: GraphQL query - variables: - type: object - additionalProperties: {} - description: Variables in JSON Format - required: - - query - GraphQLQuery: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - query: - type: string - variables: - type: object - additionalProperties: {} - nullable: true - default: {} - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - created - - display - - id - - last_updated - - name - - notes_url - - query - - url - GraphQLQueryInputRequest: - type: object - properties: - variables: - type: object - additionalProperties: {} - nullable: true - default: {} - GraphQLQueryOutput: - type: object - properties: - data: - type: object - additionalProperties: {} - default: {} - GraphQLQueryRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - query: - type: string - minLength: 1 - variables: - type: object - additionalProperties: {} - nullable: true - default: {} - required: - - name - - query - Group: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 150 - user_count: - type: integer - readOnly: true - required: - - display - - id - - name - - url - - user_count - GroupRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 150 - required: - - name - HardwareLCM: - type: object - description: API serializer. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - id: - type: string - format: uuid - readOnly: true - expired: - type: string - readOnly: true - devices: - type: array - items: - $ref: '#/components/schemas/NestedDevice' - readOnly: true - description: Devices tied to Device Type - device_type: - allOf: - - $ref: '#/components/schemas/NestedDeviceType' - description: Device Type to attach the Hardware LCM to - inventory_item: - type: string - nullable: true - title: Inventory Item Part - maxLength: 255 - release_date: - type: string - format: date - nullable: true - end_of_sale: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - end_of_sw_releases: - type: string - format: date - nullable: true - title: End of Software Releases - end_of_security_patches: - type: string - format: date - nullable: true - documentation_url: - type: string - format: uri - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - device_type - - devices - - display - - expired - - id - - last_updated - - url - HttpMethodEnum: - enum: - - GET - - POST - - PUT - - PATCH - - DELETE - type: string - IPAddress: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - family: - type: object - properties: - value: - type: integer - enum: - - 4 - - 6 - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - address: - type: string - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRF' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - status: - type: object - properties: - value: - type: string - enum: - - active - - deprecated - - dhcp - - reserved - - slaac - label: - type: string - enum: - - Active - - Deprecated - - DHCP - - Reserved - - SLAAC - role: - type: object - properties: - value: - type: string - enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - label: - type: string - enum: - - Loopback - - Secondary - - Anycast - - VIP - - VRRP - - HSRP - - GLBP - - CARP - assigned_object_type: - type: string - nullable: true - assigned_object_id: - type: string - format: uuid - nullable: true - assigned_object: - type: object - additionalProperties: {} - nullable: true - readOnly: true - nat_inside: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - nat_outside: - type: array - items: - $ref: '#/components/schemas/NestedIPAddress' - readOnly: true - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^[0-9A-Za-z._-]+$ - maxLength: 255 - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - address - - assigned_object - - created - - display - - family - - id - - last_updated - - nat_outside - - notes_url - - status - - url - IPAddressStatusChoices: - type: string - enum: - - active - - deprecated - - dhcp - - reserved - - slaac - IPRange: - type: object - description: IPRange Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - start_address: - type: string - end_address: - type: string - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - size: - type: integer - readOnly: true - vrf: - type: string - format: uuid - nullable: true - required: - - created - - display - - end_address - - id - - last_updated - - notes_url - - size - - start_address - - url - IPRangeRequest: - type: object - description: IPRange Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - start_address: - type: string - minLength: 1 - end_address: - type: string - minLength: 1 - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - vrf: - type: string - format: uuid - nullable: true - required: - - end_address - - start_address - ImageAttachment: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - content_type: - type: string - object_id: - type: string - format: uuid - parent: - type: object - additionalProperties: {} - readOnly: true - name: - type: string - maxLength: 50 - image: - type: string - format: uri - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 - created: - type: string - format: date-time - readOnly: true - required: - - content_type - - created - - display - - id - - image - - image_height - - image_width - - object_id - - parent - - url - ImageAttachmentRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - content_type: - type: string - object_id: - type: string - format: uuid - name: - type: string - maxLength: 50 - image: - type: string - format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 - required: - - content_type - - image - - image_height - - image_width - - object_id - ImpactEnum: - enum: - - NO-IMPACT - - REDUCED-REDUNDANCY - - DEGRADED - - OUTAGE - type: string - Interface: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - failed - - maintenance - - planned - label: - type: string - enum: - - Active - - Decommissioning - - Failed - - Maintenance - - Planned - type: - type: object - properties: - value: - type: string - enum: - - virtual - - bridge - - lag - - 100base-tx - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cpak - - 100gbase-x-qsfp28 - - 200gbase-x-qsfp56 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - gsm - - cdma - - lte - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 64gfc-qsfpp - - 128gfc-sfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other - label: - type: string - enum: - - Virtual - - Bridge - - Link Aggregation Group (LAG) - - 100BASE-TX (10/100ME) - - 1000BASE-T (1GE) - - 2.5GBASE-T (2.5GE) - - 5GBASE-T (5GE) - - 10GBASE-T (10GE) - - 10GBASE-CX4 (10GE) - - GBIC (1GE) - - SFP (1GE) - - SFP+ (10GE) - - XFP (10GE) - - XENPAK (10GE) - - X2 (10GE) - - SFP28 (25GE) - - QSFP+ (40GE) - - QSFP28 (50GE) - - CFP (100GE) - - CFP2 (100GE) - - CFP2 (200GE) - - CFP4 (100GE) - - Cisco CPAK (100GE) - - QSFP28 (100GE) - - QSFP56 (200GE) - - QSFP-DD (400GE) - - OSFP (400GE) - - IEEE 802.11a - - IEEE 802.11b/g - - IEEE 802.11n - - IEEE 802.11ac - - IEEE 802.11ad - - IEEE 802.11ax - - GSM - - CDMA - - LTE - - OC-3/STM-1 - - OC-12/STM-4 - - OC-48/STM-16 - - OC-192/STM-64 - - OC-768/STM-256 - - OC-1920/STM-640 - - OC-3840/STM-1234 - - SFP (1GFC) - - SFP (2GFC) - - SFP (4GFC) - - SFP+ (8GFC) - - SFP+ (16GFC) - - SFP28 (32GFC) - - QSFP+ (64GFC) - - QSFP28 (128GFC) - - SDR (2 Gbps) - - DDR (4 Gbps) - - QDR (8 Gbps) - - FDR10 (10 Gbps) - - FDR (13.5 Gbps) - - EDR (25 Gbps) - - HDR (50 Gbps) - - NDR (100 Gbps) - - XDR (250 Gbps) - - T1 (1.544 Mbps) - - E1 (2.048 Mbps) - - T3 (45 Mbps) - - E3 (34 Mbps) - - Cisco StackWise - - Cisco StackWise Plus - - Cisco FlexStack - - Cisco FlexStack Plus - - Juniper VCP - - Extreme SummitStack - - Extreme SummitStack-128 - - Extreme SummitStack-256 - - Extreme SummitStack-512 - - Other - enabled: - type: boolean - parent_interface: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - bridge: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - lag: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management - description: - type: string - maxLength: 200 - mode: - type: object - properties: - value: - type: string - enum: - - access - - tagged - - tagged-all - label: - type: string - enum: - - Access - - Tagged - - Tagged (All) - untagged_vlan: - allOf: - - $ref: '#/components/schemas/NestedVLAN' - nullable: true - tagged_vlans: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - - vid - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - count_ipaddresses: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - count_ipaddresses - - created - - device - - display - - id - - last_updated - - name - - notes_url - - status - - type - - url - InterfaceConnection: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - interface_a: - allOf: - - $ref: '#/components/schemas/NestedInterface' - readOnly: true - interface_b: - $ref: '#/components/schemas/NestedInterface' - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - connected_endpoint_reachable - - created - - display - - id - - interface_a - - interface_b - - last_updated - InterfaceSerializerVersion12: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - virtual - - bridge - - lag - - 100base-tx - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cpak - - 100gbase-x-qsfp28 - - 200gbase-x-qsfp56 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - gsm - - cdma - - lte - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 64gfc-qsfpp - - 128gfc-sfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other - label: - type: string - enum: - - Virtual - - Bridge - - Link Aggregation Group (LAG) - - 100BASE-TX (10/100ME) - - 1000BASE-T (1GE) - - 2.5GBASE-T (2.5GE) - - 5GBASE-T (5GE) - - 10GBASE-T (10GE) - - 10GBASE-CX4 (10GE) - - GBIC (1GE) - - SFP (1GE) - - SFP+ (10GE) - - XFP (10GE) - - XENPAK (10GE) - - X2 (10GE) - - SFP28 (25GE) - - QSFP+ (40GE) - - QSFP28 (50GE) - - CFP (100GE) - - CFP2 (100GE) - - CFP2 (200GE) - - CFP4 (100GE) - - Cisco CPAK (100GE) - - QSFP28 (100GE) - - QSFP56 (200GE) - - QSFP-DD (400GE) - - OSFP (400GE) - - IEEE 802.11a - - IEEE 802.11b/g - - IEEE 802.11n - - IEEE 802.11ac - - IEEE 802.11ad - - IEEE 802.11ax - - GSM - - CDMA - - LTE - - OC-3/STM-1 - - OC-12/STM-4 - - OC-48/STM-16 - - OC-192/STM-64 - - OC-768/STM-256 - - OC-1920/STM-640 - - OC-3840/STM-1234 - - SFP (1GFC) - - SFP (2GFC) - - SFP (4GFC) - - SFP+ (8GFC) - - SFP+ (16GFC) - - SFP28 (32GFC) - - QSFP+ (64GFC) - - QSFP28 (128GFC) - - SDR (2 Gbps) - - DDR (4 Gbps) - - QDR (8 Gbps) - - FDR10 (10 Gbps) - - FDR (13.5 Gbps) - - EDR (25 Gbps) - - HDR (50 Gbps) - - NDR (100 Gbps) - - XDR (250 Gbps) - - T1 (1.544 Mbps) - - E1 (2.048 Mbps) - - T3 (45 Mbps) - - E3 (34 Mbps) - - Cisco StackWise - - Cisco StackWise Plus - - Cisco FlexStack - - Cisco FlexStack Plus - - Juniper VCP - - Extreme SummitStack - - Extreme SummitStack-128 - - Extreme SummitStack-256 - - Extreme SummitStack-512 - - Other - enabled: - type: boolean - parent_interface: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - bridge: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - lag: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management - description: - type: string - maxLength: 200 - mode: - type: object - properties: - value: - type: string - enum: - - access - - tagged - - tagged-all - label: - type: string - enum: - - Access - - Tagged - - Tagged (All) - untagged_vlan: - allOf: - - $ref: '#/components/schemas/NestedVLAN' - nullable: true - tagged_vlans: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - - vid - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - count_ipaddresses: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - count_ipaddresses - - created - - device - - display - - id - - last_updated - - name - - notes_url - - type - - url - InterfaceStatusChoices: - type: string - enum: - - active - - decommissioning - - failed - - maintenance - - planned - InterfaceTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - virtual - - bridge - - lag - - 100base-tx - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cpak - - 100gbase-x-qsfp28 - - 200gbase-x-qsfp56 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - gsm - - cdma - - lte - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 64gfc-qsfpp - - 128gfc-sfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other - label: - type: string - enum: - - Virtual - - Bridge - - Link Aggregation Group (LAG) - - 100BASE-TX (10/100ME) - - 1000BASE-T (1GE) - - 2.5GBASE-T (2.5GE) - - 5GBASE-T (5GE) - - 10GBASE-T (10GE) - - 10GBASE-CX4 (10GE) - - GBIC (1GE) - - SFP (1GE) - - SFP+ (10GE) - - XFP (10GE) - - XENPAK (10GE) - - X2 (10GE) - - SFP28 (25GE) - - QSFP+ (40GE) - - QSFP28 (50GE) - - CFP (100GE) - - CFP2 (100GE) - - CFP2 (200GE) - - CFP4 (100GE) - - Cisco CPAK (100GE) - - QSFP28 (100GE) - - QSFP56 (200GE) - - QSFP-DD (400GE) - - OSFP (400GE) - - IEEE 802.11a - - IEEE 802.11b/g - - IEEE 802.11n - - IEEE 802.11ac - - IEEE 802.11ad - - IEEE 802.11ax - - GSM - - CDMA - - LTE - - OC-3/STM-1 - - OC-12/STM-4 - - OC-48/STM-16 - - OC-192/STM-64 - - OC-768/STM-256 - - OC-1920/STM-640 - - OC-3840/STM-1234 - - SFP (1GFC) - - SFP (2GFC) - - SFP (4GFC) - - SFP+ (8GFC) - - SFP+ (16GFC) - - SFP28 (32GFC) - - QSFP+ (64GFC) - - QSFP28 (128GFC) - - SDR (2 Gbps) - - DDR (4 Gbps) - - QDR (8 Gbps) - - FDR10 (10 Gbps) - - FDR (13.5 Gbps) - - EDR (25 Gbps) - - HDR (50 Gbps) - - NDR (100 Gbps) - - XDR (250 Gbps) - - T1 (1.544 Mbps) - - E1 (2.048 Mbps) - - T3 (45 Mbps) - - E3 (34 Mbps) - - Cisco StackWise - - Cisco StackWise Plus - - Cisco FlexStack - - Cisco FlexStack Plus - - Juniper VCP - - Extreme SummitStack - - Extreme SummitStack-128 - - Extreme SummitStack-256 - - Extreme SummitStack-512 - - Other - mgmt_only: - type: boolean - title: Management only - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - type - - url - InterfaceTypeChoices: - type: string - enum: - - virtual - - bridge - - lag - - 100base-tx - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cpak - - 100gbase-x-qsfp28 - - 200gbase-x-qsfp56 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - gsm - - cdma - - lte - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 64gfc-qsfpp - - 128gfc-sfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other - InventoryItem: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - parent: - type: string - format: uuid - nullable: true - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturer' - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered - description: - type: string - maxLength: 200 - _depth: - type: integer - readOnly: true - title: ' depth' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - _depth - - created - - device - - display - - id - - last_updated - - name - - notes_url - - url - IpProtocolEnum: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - Job: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - source: - type: string - readOnly: true - description: Source of the Python code for this job - local, Git repository, - or plugins - module_name: - type: string - readOnly: true - description: Dotted name of the Python module providing this job - job_class_name: - type: string - readOnly: true - description: Name of the Python class providing this job - grouping: - type: string - description: Human-readable grouping that this job belongs to - maxLength: 255 - grouping_override: - type: boolean - description: If set, the configured grouping will remain even if the underlying - Job source code changes - name: - type: string - description: Human-readable name of this job - maxLength: 100 - name_override: - type: boolean - description: If set, the configured name will remain even if the underlying - Job source code changes - slug: - type: string - maxLength: 320 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - description: Markdown formatting is supported - description_override: - type: boolean - description: If set, the configured description will remain even if the - underlying Job source code changes - installed: - type: boolean - readOnly: true - description: Whether the Python module and class providing this job are - presently installed and loadable - enabled: - type: boolean - description: Whether this job can be executed by users - is_job_hook_receiver: - type: boolean - readOnly: true - description: Whether this job is a job hook receiver - has_sensitive_variables: - type: boolean - description: Whether this job contains sensitive variables - has_sensitive_variables_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - approval_required: - type: boolean - description: Whether the job requires approval from another user before - running - approval_required_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - commit_default: - type: boolean - description: Whether the job defaults to committing changes when run, or - defaults to a dry-run - commit_default_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - hidden: - type: boolean - description: Whether the job defaults to not being shown in the UI - hidden_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - read_only: - type: boolean - description: Whether the job is prevented from making lasting changes to - the database - read_only_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - soft_time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded - exception.
Set to 0 to use Nautobot system default - soft_time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will be forcibly - terminated.
Set to 0 to use Nautobot system default - time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - task_queues: - type: object - additionalProperties: {} - description: Comma separated list of task queues that this job can run on. - A blank list will use the default queue - task_queues_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - grouping - - id - - installed - - is_job_hook_receiver - - job_class_name - - last_updated - - module_name - - name - - notes_url - - source - - url - JobClassDetail: - type: object - properties: - url: - type: string - format: uri - readOnly: true - id: - type: string - readOnly: true - pk: - type: string - format: uuid - nullable: true - readOnly: true - name: - type: string - readOnly: true - maxLength: 255 - description: - type: string - readOnly: true - maxLength: 255 - test_methods: - type: array - items: - type: string - maxLength: 255 - vars: - type: object - additionalProperties: {} - readOnly: true - result: - $ref: '#/components/schemas/JobResult' - required: - - description - - id - - name - - pk - - test_methods - - url - - vars - JobExecutionTypeIntervalChoices: - type: string - enum: - - immediately - - future - - hourly - - daily - - weekly - - custom - JobHook: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - content_types: - type: array - items: - type: string - job: - type: string - format: uuid - description: The job that this job hook will initiate - enabled: - type: boolean - type_create: - type: boolean - description: Call this job hook when a matching object is created. - type_update: - type: boolean - description: Call this job hook when a matching object is updated. - type_delete: - type: boolean - description: Call this job hook when a matching object is deleted. - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - content_types - - created - - display - - id - - job - - last_updated - - name - - notes_url - - url - JobHookRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - content_types: - type: array - items: - type: string - job: - type: string - format: uuid - description: The job that this job hook will initiate - enabled: - type: boolean - type_create: - type: boolean - description: Call this job hook when a matching object is created. - type_update: - type: boolean - description: Call this job hook when a matching object is updated. - type_delete: - type: boolean - description: Call this job hook when a matching object is deleted. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_types - - job - - name - JobInputRequest: - type: object - properties: - data: - type: object - additionalProperties: {} - commit: - type: boolean - schedule: - $ref: '#/components/schemas/NestedScheduledJobRequest' - task_queue: - type: string - JobLogEntry: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - url: - type: string - format: uri - readOnly: true - absolute_url: - type: string - nullable: true - maxLength: 255 - created: - type: string - format: date-time - grouping: - type: string - maxLength: 100 - job_result: - type: string - format: uuid - log_level: - $ref: '#/components/schemas/LogLevelEnum' - log_object: - type: string - nullable: true - maxLength: 200 - message: - type: string - required: - - display - - id - - job_result - - url - JobMultiPartInputRequest: - type: object - description: JobMultiPartInputSerializer is a "flattened" version of JobInputSerializer - for use with multipart/form-data submissions which only accept key-value pairs - properties: - _commit: - type: boolean - title: ' commit' - _schedule_name: - type: string - minLength: 1 - title: ' schedule name' - maxLength: 255 - _schedule_start_time: - type: string - format: date-time - title: ' schedule start time' - _schedule_interval: - allOf: - - $ref: '#/components/schemas/JobExecutionTypeIntervalChoices' - title: ' schedule interval' - _schedule_crontab: - type: string - title: ' schedule crontab' - _task_queue: - type: string - title: ' task queue' - JobRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - grouping: - type: string - minLength: 1 - description: Human-readable grouping that this job belongs to - maxLength: 255 - grouping_override: - type: boolean - description: If set, the configured grouping will remain even if the underlying - Job source code changes - name: - type: string - minLength: 1 - description: Human-readable name of this job - maxLength: 100 - name_override: - type: boolean - description: If set, the configured name will remain even if the underlying - Job source code changes - slug: - type: string - maxLength: 320 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - description: Markdown formatting is supported - description_override: - type: boolean - description: If set, the configured description will remain even if the - underlying Job source code changes - enabled: - type: boolean - description: Whether this job can be executed by users - has_sensitive_variables: - type: boolean - description: Whether this job contains sensitive variables - has_sensitive_variables_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - approval_required: - type: boolean - description: Whether the job requires approval from another user before - running - approval_required_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - commit_default: - type: boolean - description: Whether the job defaults to committing changes when run, or - defaults to a dry-run - commit_default_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - hidden: - type: boolean - description: Whether the job defaults to not being shown in the UI - hidden_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - read_only: - type: boolean - description: Whether the job is prevented from making lasting changes to - the database - read_only_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - soft_time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded - exception.
Set to 0 to use Nautobot system default - soft_time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will be forcibly - terminated.
Set to 0 to use Nautobot system default - time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - task_queues: - type: object - additionalProperties: {} - description: Comma separated list of task queues that this job can run on. - A blank list will use the default queue - task_queues_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - grouping - - name - JobResult: - type: object - description: Extends ModelSerializer to render any CustomFields and their values - associated with an object. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date-time - readOnly: true - completed: - type: string - format: date-time - nullable: true - name: - type: string - maxLength: 255 - job_model: - allOf: - - $ref: '#/components/schemas/NestedJob' - readOnly: true - obj_type: - type: string - readOnly: true - status: - type: object - properties: - value: - type: string - enum: - - pending - - running - - completed - - errored - - failed - label: - type: string - enum: - - Pending - - Running - - Completed - - Errored - - Failed - readOnly: true - user: - allOf: - - $ref: '#/components/schemas/NestedUser' - readOnly: true - data: - type: object - additionalProperties: {} - nullable: true - job_id: - type: string - format: uuid - job_kwargs: - type: object - additionalProperties: {} - nullable: true - schedule: - allOf: - - $ref: '#/components/schemas/NestedScheduledJob' - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - job_id - - job_model - - name - - obj_type - - schedule - - status - - url - - user - JobRunResponse: - type: object - description: Serializer representing responses from the JobModelViewSet.run() - POST endpoint. - properties: - schedule: - allOf: - - $ref: '#/components/schemas/NestedScheduledJob' - readOnly: true - job_result: - allOf: - - $ref: '#/components/schemas/NestedJobResult' - readOnly: true - required: - - job_result - - schedule - JobVariable: - type: object - description: Serializer used for responses from the JobModelViewSet.variables() - detail endpoint. - properties: - name: - type: string - readOnly: true - type: - type: string - readOnly: true - label: - type: string - readOnly: true - help_text: - type: string - readOnly: true - default: - type: object - additionalProperties: {} - readOnly: true - required: - type: boolean - readOnly: true - min_length: - type: integer - readOnly: true - max_length: - type: integer - readOnly: true - min_value: - type: integer - readOnly: true - max_value: - type: integer - readOnly: true - choices: - type: object - additionalProperties: {} - readOnly: true - model: - type: string - readOnly: true - required: - - choices - - default - - help_text - - label - - max_length - - max_value - - min_length - - min_value - - model - - name - - required - - type - LengthUnitEnum: - type: string - enum: - - m - - cm - - ft - - in - Location: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - planned - - retired - - staging - label: - type: string - enum: - - Active - - Decommissioning - - Planned - - Retired - - Staging - location_type: - $ref: '#/components/schemas/NestedLocationType' - parent: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/NestedSite' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - description: - type: string - maxLength: 200 - tree_depth: - type: integer - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - location_type - - name - - notes_url - - status - - tree_depth - - url - LocationStatusChoices: - type: string - enum: - - active - - decommissioning - - planned - - retired - - staging - LocationType: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedLocationType' - nullable: true - nestable: - type: boolean - description: Allow Locations of this type to be parents/children of other - Locations of this same type - content_types: - type: array - items: - type: string - description: - type: string - maxLength: 200 - tree_depth: - type: integer - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - tree_depth - - url - LogLevelEnum: - enum: - - default - - success - - info - - warning - - failure - type: string - Manufacturer: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - devicetype_count: - type: integer - readOnly: true - inventoryitem_count: - type: integer - readOnly: true - platform_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - devicetype_count - - display - - id - - inventoryitem_count - - last_updated - - name - - notes_url - - platform_count - - url - ManufacturerRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - MinMaxValidationRule: - type: object - description: Serializer for `MinMaxValidationRule` objects. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - maxLength: 50 - min: - type: number - format: double - nullable: true - description: When set, apply a minimum value contraint to the value of the - model field. - max: - type: number - format: double - nullable: true - description: When set, apply a maximum value contraint to the value of the - model field. - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - content_type - - created - - display - - field - - id - - last_updated - - name - - slug - - url - MinMaxValidationRuleRequest: - type: object - description: Serializer for `MinMaxValidationRule` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - min: - type: number - format: double - nullable: true - description: When set, apply a minimum value contraint to the value of the - model field. - max: - type: number - format: double - nullable: true - description: When set, apply a maximum value contraint to the value of the - model field. - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - required: - - content_type - - field - - name - - slug - ModeEnum: - type: string - enum: - - access - - tagged - - tagged-all - NATPolicy: - type: object - description: NATPolicy Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - assigned_devices: - type: array - items: - $ref: '#/components/schemas/NATPolicyDeviceM2MNested' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/NATPolicyDynamicGroupM2MNested' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - nat_policy_rules: - type: array - items: - type: string - format: uuid - readOnly: true - required: - - created - - display - - id - - last_updated - - name - - nat_policy_rules - - notes_url - - url - NATPolicyDeviceM2MNested: - type: object - description: NATPolicyDeviceM2M NestedSerializer. - properties: - device: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - device - NATPolicyDeviceM2MNestedRequest: - type: object - description: NATPolicyDeviceM2M NestedSerializer. - properties: - device: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - NATPolicyDynamicGroupM2MNested: - type: object - description: NATPolicyDynamicGroupM2M NestedSerializer. - properties: - dynamic_group: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - dynamic_group - NATPolicyDynamicGroupM2MNestedRequest: - type: object - description: NATPolicyDynamicGroupM2M NestedSerializer. - properties: - dynamic_group: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - NATPolicyRequest: - type: object - description: NATPolicy Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/NATPolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/NATPolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - required: - - name - NATPolicyRule: - type: object - description: PolicyRule Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - source_zone: - $ref: '#/components/schemas/Zone' - destination_zone: - $ref: '#/components/schemas/Zone' - original_source_addresses: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - original_source_address_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - address_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - original_source_services: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - original_source_service_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - service_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - translated_source_addresses: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - translated_source_address_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - address_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - translated_source_services: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - translated_source_service_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - service_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - original_destination_addresses: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - original_destination_address_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - address_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - original_destination_services: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - original_destination_service_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - service_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - translated_destination_addresses: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - translated_destination_address_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - address_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - translated_destination_services: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - translated_destination_service_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - service_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - maxLength: 100 - remark: - type: boolean - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - NestedAutonomousSystem: - type: object - description: Nested/brief serializer for AutonomousSystem. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 32-bit autonomous system number - required: - - asn - - display - - id - - url - NestedAutonomousSystemRequest: - type: object - description: Nested/brief serializer for AutonomousSystem. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 32-bit autonomous system number - required: - - id - NestedCVELCM: - type: object - description: Nested serializer for the CVE class. - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - name: - type: string - maxLength: 16 - published_date: - type: string - format: date - link: - type: string - format: uri - maxLength: 200 - status: - type: string - format: uuid - nullable: true - description: - type: string - nullable: true - maxLength: 255 - severity: - $ref: '#/components/schemas/SeverityEnum' - cvss: - type: number - format: double - nullable: true - title: CVSS Base Score - cvss_v2: - type: number - format: double - nullable: true - title: CVSSv2 Score - cvss_v3: - type: number - format: double - nullable: true - title: CVSSv3 Score - fix: - type: string - nullable: true - maxLength: 255 - comments: - type: string - required: - - display - - id - - link - - name - - published_date - - url - NestedCVELCMRequest: - type: object - description: Nested serializer for the CVE class. - properties: - name: - type: string - minLength: 1 - maxLength: 16 - published_date: - type: string - format: date - link: - type: string - format: uri - minLength: 1 - maxLength: 200 - status: - type: string - format: uuid - nullable: true - description: - type: string - nullable: true - maxLength: 255 - severity: - $ref: '#/components/schemas/SeverityEnum' - cvss: - type: number - format: double - nullable: true - title: CVSS Base Score - cvss_v2: - type: number - format: double - nullable: true - title: CVSSv2 Score - cvss_v3: - type: number - format: double - nullable: true - title: CVSSv3 Score - fix: - type: string - nullable: true - maxLength: 255 - comments: - type: string - required: - - id - NestedCable: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - label: - type: string - maxLength: 100 - required: - - display - - id - - url - NestedCableRequest: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - label: - type: string - maxLength: 100 - required: - - id - NestedCircuit: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - cid: - type: string - title: Circuit ID - maxLength: 100 - required: - - cid - - display - - id - - url - NestedCircuitRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - maxLength: 100 - required: - - id - NestedCircuitType: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - circuit_count: - type: integer - readOnly: true - required: - - circuit_count - - display - - id - - name - - url - NestedCircuitTypeRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedCluster: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - virtualmachine_count: - type: integer - readOnly: true - required: - - display - - id - - name - - url - - virtualmachine_count - NestedClusterGroup: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - cluster_count: - type: integer - readOnly: true - required: - - cluster_count - - display - - id - - name - - url - NestedClusterGroupRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedClusterRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - required: - - id - NestedClusterType: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - cluster_count: - type: integer - readOnly: true - required: - - cluster_count - - display - - id - - name - - url - NestedClusterTypeRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedConfigContextSchema: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 200 - slug: - type: string - maxLength: 200 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - NestedConfigContextSchemaRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 200 - slug: - type: string - maxLength: 200 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedContractLCM: - type: object - description: API serializer. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - provider: - allOf: - - $ref: '#/components/schemas/NestedProviderLCM' - description: Contract Provider - name: - type: string - maxLength: 100 - start: - type: string - format: date - nullable: true - title: Contract Start Date - end: - type: string - format: date - nullable: true - title: Contract End Date - cost: - type: string - format: decimal - pattern: ^-?\d{0,13}(?:\.\d{0,2})?$ - nullable: true - title: Contract Cost - support_level: - type: string - nullable: true - maxLength: 64 - contract_type: - type: string - nullable: true - maxLength: 32 - expired: - type: string - readOnly: true - required: - - display - - expired - - id - - name - - provider - NestedContractLCMRequest: - type: object - description: API serializer. - properties: - provider: - allOf: - - $ref: '#/components/schemas/NestedProviderLCMRequest' - description: Contract Provider - name: - type: string - minLength: 1 - maxLength: 100 - start: - type: string - format: date - nullable: true - title: Contract Start Date - end: - type: string - format: date - nullable: true - title: Contract End Date - cost: - type: string - format: decimal - pattern: ^-?\d{0,13}(?:\.\d{0,2})?$ - nullable: true - title: Contract Cost - support_level: - type: string - nullable: true - maxLength: 64 - contract_type: - type: string - nullable: true - maxLength: 32 - required: - - id - NestedCustomField: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Human-readable unique name of this field. - maxLength: 50 - required: - - display - - id - - name - - url - NestedCustomFieldRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - description: Human-readable unique name of this field. - maxLength: 50 - required: - - id - NestedDevice: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - nullable: true - maxLength: 64 - required: - - display - - id - - url - NestedDeviceRedundancyGroup: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - failover_strategy: - oneOf: - - $ref: '#/components/schemas/FailoverStrategyEnum' - - $ref: '#/components/schemas/BlankEnum' - required: - - display - - id - - name - - url - NestedDeviceRedundancyGroupRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - failover_strategy: - oneOf: - - $ref: '#/components/schemas/FailoverStrategyEnum' - - $ref: '#/components/schemas/BlankEnum' - required: - - id - NestedDeviceRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - nullable: true - maxLength: 64 - required: - - id - NestedDeviceRole: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - device_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - required: - - device_count - - display - - id - - name - - url - - virtualmachine_count - NestedDeviceRoleRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedDeviceType: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturer' - readOnly: true - model: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - device_count: - type: integer - readOnly: true - required: - - device_count - - display - - id - - manufacturer - - model - - slug - - url - NestedDeviceTypeRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedDynamicGroup: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Dynamic Group name - maxLength: 100 - slug: - type: string - description: Unique slug - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - required: - - content_type - - display - - id - - name - - url - NestedDynamicGroupMembership: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - group: - $ref: '#/components/schemas/NestedDynamicGroup' - parent_group: - $ref: '#/components/schemas/NestedDynamicGroup' - operator: - $ref: '#/components/schemas/OperatorEnum' - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - display - - group - - id - - operator - - parent_group - - url - - weight - NestedDynamicGroupMembershipRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - parent_group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - operator: - $ref: '#/components/schemas/OperatorEnum' - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - NestedDynamicGroupRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - description: Dynamic Group name - maxLength: 100 - slug: - type: string - description: Unique slug - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - required: - - id - NestedFQDN: - type: object - description: Nested serializer for FQDN. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Resolvable fully qualified domain name (e.g. networktocode.com) - maxLength: 254 - required: - - display - - id - - name - - url - NestedFQDNRequest: - type: object - description: Nested serializer for FQDN. - properties: - name: - type: string - minLength: 1 - description: Resolvable fully qualified domain name (e.g. networktocode.com) - maxLength: 254 - required: - - id - NestedIPAddress: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - family: - type: integer - readOnly: true - address: - type: string - required: - - address - - display - - family - - id - - url - NestedIPAddressRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - address: - type: string - minLength: 1 - required: - - id - NestedIPRange: - type: object - description: Nested serializer for IPRange. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - start_address: - type: string - end_address: - type: string - required: - - display - - end_address - - id - - start_address - - url - NestedIPRangeRequest: - type: object - description: Nested serializer for IPRange. - properties: - start_address: - type: string - minLength: 1 - end_address: - type: string - minLength: 1 - required: - - id - NestedInterface: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - name: - type: string - maxLength: 64 - cable: - type: string - format: uuid - nullable: true - required: - - device - - display - - id - - name - - url - NestedInterfaceRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - cable: - type: string - format: uuid - nullable: true - required: - - id - NestedInventoryItem: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - name: - type: string - maxLength: 64 - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - device - - display - - id - - name - - url - NestedInventoryItemRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - required: - - id - NestedJob: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - source: - type: string - readOnly: true - description: Source of the Python code for this job - local, Git repository, - or plugins - module_name: - type: string - readOnly: true - description: Dotted name of the Python module providing this job - job_class_name: - type: string - readOnly: true - description: Name of the Python class providing this job - grouping: - type: string - description: Human-readable grouping that this job belongs to - maxLength: 255 - name: - type: string - description: Human-readable name of this job - maxLength: 100 - slug: - type: string - maxLength: 320 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - grouping - - id - - job_class_name - - module_name - - name - - source - - url - NestedJobResult: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 255 - created: - type: string - format: date-time - readOnly: true - completed: - type: string - format: date-time - nullable: true - user: - allOf: - - $ref: '#/components/schemas/NestedUser' - readOnly: true - status: - type: object - properties: - value: - type: string - enum: - - pending - - running - - completed - - errored - - failed - label: - type: string - enum: - - Pending - - Running - - Completed - - Errored - - Failed - required: - - created - - display - - id - - name - - status - - url - - user - NestedLocation: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - tree_depth: - type: integer - nullable: true - readOnly: true - required: - - display - - id - - name - - tree_depth - - url - NestedLocationRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedLocationType: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - tree_depth: - type: integer - nullable: true - readOnly: true - required: - - display - - id - - name - - tree_depth - - url - NestedLocationTypeRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedManufacturer: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - devicetype_count: - type: integer - readOnly: true - required: - - devicetype_count - - display - - id - - name - - url - NestedManufacturerRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedPeerEndpoint: - type: object - description: Nested/brief serializer for PeerEndpoint. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - required: - - display - - id - - url - NestedPeerGroup: - type: object - description: Nested/brief serializer for PeerGroup. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - role: - type: string - format: uuid - nullable: true - enabled: - type: boolean - required: - - display - - id - - name - - url - NestedPeerGroupRequest: - type: object - description: Nested/brief serializer for PeerGroup. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - role: - type: string - format: uuid - nullable: true - enabled: - type: boolean - required: - - id - NestedPeerGroupTemplate: - type: object - description: Nested/brief serializer for PeerGroup. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - role: - type: string - format: uuid - nullable: true - enabled: - type: boolean - required: - - display - - id - - name - - url - NestedPeerGroupTemplateRequest: - type: object - description: Nested/brief serializer for PeerGroup. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - role: - type: string - format: uuid - nullable: true - enabled: - type: boolean - required: - - id - NestedPeering: - type: object - description: Nested/brief serializer for Peering. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - status: - type: string - format: uuid - nullable: true - required: - - display - - id - - url - NestedPeeringRequest: - type: object - description: Nested/brief serializer for Peering. - properties: - status: - type: string - format: uuid - nullable: true - required: - - id - NestedPlatform: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - device_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - required: - - device_count - - display - - id - - name - - url - - virtualmachine_count - NestedPlatformRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedPowerPanel: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - powerfeed_count: - type: integer - readOnly: true - required: - - display - - id - - name - - powerfeed_count - - url - NestedPowerPanelRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - required: - - id - NestedPowerPort: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - name: - type: string - maxLength: 64 - cable: - type: string - format: uuid - nullable: true - required: - - device - - display - - id - - name - - url - NestedPowerPortRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - cable: - type: string - format: uuid - nullable: true - required: - - id - NestedPowerPortTemplate: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - NestedPowerPortTemplateRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - required: - - id - NestedPrefix: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - family: - type: integer - readOnly: true - prefix: - type: string - required: - - display - - family - - id - - prefix - - url - NestedPrefixRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - prefix: - type: string - minLength: 1 - required: - - id - NestedProvider: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - circuit_count: - type: integer - readOnly: true - required: - - circuit_count - - display - - id - - name - - url - NestedProviderLCM: - type: object - description: Nested serializer for the provider class. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: E-mail - maxLength: 254 - comments: - type: string - required: - - display - - id - - name - NestedProviderLCMRequest: - type: object - description: Nested serializer for the provider class. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: E-mail - maxLength: 254 - comments: - type: string - required: - - id - NestedProviderNetwork: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - NestedProviderNetworkRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedProviderRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedRIR: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - aggregate_count: - type: integer - readOnly: true - required: - - aggregate_count - - display - - id - - name - - url - NestedRIRRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedRack: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - device_count: - type: integer - readOnly: true - required: - - device_count - - display - - id - - name - - url - NestedRackGroup: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rack_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - rack_count - - url - NestedRackGroupRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedRackRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - required: - - id - NestedRackRole: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rack_count: - type: integer - readOnly: true - required: - - display - - id - - name - - rack_count - - url - NestedRackRoleRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedRearPortTemplate: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - NestedRearPortTemplateRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - required: - - id - NestedRegion: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - site_count - - url - NestedRegionRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedRelationship: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Name of the relationship as displayed to users - maxLength: 100 - slug: - type: string - description: Internal relationship name. Please use underscores rather than - dashes in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - NestedRelationshipRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - description: Name of the relationship as displayed to users - maxLength: 100 - slug: - type: string - description: Internal relationship name. Please use underscores rather than - dashes in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedRole: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - prefix_count: - type: integer - readOnly: true - vlan_count: - type: integer - readOnly: true - required: - - display - - id - - name - - prefix_count - - url - - vlan_count - NestedRoleRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedRoutingInstance: - type: object - description: Nested/brief serializer for PeerEndpoint. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - required: - - display - - id - - url - NestedScheduledJob: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 255 - start_time: - type: string - format: date-time - interval: - $ref: '#/components/schemas/JobExecutionTypeIntervalChoices' - crontab: - type: string - title: Custom cronjob - description: Cronjob syntax string for custom scheduling - maxLength: 255 - required: - - display - - id - - interval - - url - NestedScheduledJobRequest: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - name: - type: string - minLength: 1 - maxLength: 255 - start_time: - type: string - format: date-time - interval: - $ref: '#/components/schemas/JobExecutionTypeIntervalChoices' - crontab: - type: string - title: Custom cronjob - description: Cronjob syntax string for custom scheduling - maxLength: 255 - required: - - interval - NestedSecret: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - NestedSecretRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedSecretsGroup: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - NestedSecretsGroupAssociation: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - access_type: - $ref: '#/components/schemas/AccessTypeEnum' - secret_type: - $ref: '#/components/schemas/SecretTypeEnum' - secret: - $ref: '#/components/schemas/NestedSecret' - required: - - access_type - - display - - id - - secret - - secret_type - - url - NestedSecretsGroupAssociationRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - access_type: - $ref: '#/components/schemas/AccessTypeEnum' - secret_type: - $ref: '#/components/schemas/SecretTypeEnum' - secret: - $ref: '#/components/schemas/NestedSecretRequest' - required: - - id - NestedSecretsGroupRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedSite: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - NestedSiteRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedSoftwareLCM: - type: object - description: Nested/brief serializer for SoftwareLCM. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - device_platform: - type: string - format: uuid - readOnly: true - version: - type: string - maxLength: 50 - end_of_support: - type: string - format: date - nullable: true - title: End of Software Support - required: - - device_platform - - display - - id - - url - - version - NestedSoftwareLCMRequest: - type: object - description: Nested/brief serializer for SoftwareLCM. - properties: - version: - type: string - minLength: 1 - maxLength: 50 - end_of_support: - type: string - format: date - nullable: true - title: End of Software Support - required: - - id - NestedTenant: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - display - - id - - name - - url - NestedTenantGroup: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - tenant_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - tenant_count - - url - NestedTenantGroupRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedTenantRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedUser: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - username: - type: string - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - required: - - display - - id - - url - - username - NestedUserRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - required: - - id - NestedVLAN: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - - vid - NestedVLANGroup: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - vlan_count: - type: integer - readOnly: true - required: - - display - - id - - name - - url - - vlan_count - NestedVLANGroupRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - NestedVLANRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - required: - - id - NestedVMInterface: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/NestedVirtualMachine' - readOnly: true - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - - virtual_machine - NestedVMInterfaceRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - required: - - id - NestedVRF: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - display: - type: string - readOnly: true - description: Human friendly display value - prefix_count: - type: integer - readOnly: true - required: - - display - - id - - name - - prefix_count - - url - NestedVRFRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - required: - - id - NestedVirtualChassis: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - name: - type: string - maxLength: 64 - url: - type: string - format: uri - readOnly: true - master: - $ref: '#/components/schemas/NestedDevice' - member_count: - type: integer - readOnly: true - required: - - display - - id - - master - - member_count - - name - - url - NestedVirtualChassisRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - master: - $ref: '#/components/schemas/NestedDeviceRequest' - required: - - id - NestedVirtualMachine: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - NestedVirtualMachineRequest: - type: object - description: |- - Returns a nested representation of an object on read, but accepts either the nested representation or the - primary key value on write operations. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - required: - - id - Note: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - user: - allOf: - - $ref: '#/components/schemas/NestedUser' - readOnly: true - user_name: - type: string - readOnly: true - assigned_object_type: - type: string - assigned_object_id: - type: string - format: uuid - assigned_object: - type: object - additionalProperties: {} - nullable: true - readOnly: true - note: - type: string - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - assigned_object - - assigned_object_id - - assigned_object_type - - created - - display - - id - - last_updated - - note - - url - - user - - user_name - NoteInputRequest: - type: object - properties: - note: - type: string - minLength: 1 - required: - - note - NoteRequest: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - assigned_object_type: - type: string - assigned_object_id: - type: string - format: uuid - note: - type: string - minLength: 1 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - assigned_object_id - - assigned_object_type - - note - NotificationSource: - type: object - description: Serializer for NotificationSource records. - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Notification Source Name as defined in configuration file. - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - providers: - type: array - items: - $ref: '#/components/schemas/NestedProvider' - attach_all_providers: - type: boolean - description: Attach all the Providers to this Notification Source - required: - - id - - name - - providers - - slug - - url - NullEnum: - enum: - - null - ObjectChange: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - time: - type: string - format: date-time - readOnly: true - user: - allOf: - - $ref: '#/components/schemas/NestedUser' - readOnly: true - user_name: - type: string - readOnly: true - request_id: - type: string - format: uuid - readOnly: true - action: - type: object - properties: - value: - type: string - enum: - - create - - update - - delete - label: - type: string - enum: - - Created - - Updated - - Deleted - readOnly: true - changed_object_type: - type: string - readOnly: true - changed_object_id: - type: string - format: uuid - changed_object: - type: object - additionalProperties: {} - nullable: true - readOnly: true - object_data: - type: object - additionalProperties: {} - readOnly: true - required: - - action - - changed_object - - changed_object_id - - changed_object_type - - display - - id - - object_data - - request_id - - time - - url - - user - - user_name - ObjectPermission: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - enabled: - type: boolean - object_types: - type: array - items: - type: string - groups: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 150 - required: - - display - - id - - name - - url - users: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - username: - type: string - description: Required. 150 characters or fewer. Letters, digits and - @/./+/-/_ only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - required: - - display - - id - - url - - username - actions: - type: object - additionalProperties: {} - description: The list of actions granted by this permission - constraints: - type: object - additionalProperties: {} - nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - required: - - actions - - display - - id - - name - - object_types - - url - OnboardingTask: - type: object - description: Serializer for the OnboardingTask model. - properties: - id: - type: string - format: uuid - readOnly: true - site: - type: string - description: Nautobot site 'slug' value - ip_address: - type: string - description: IP Address to reach device - port: - type: integer - description: Device PORT to check for online - timeout: - type: integer - description: Timeout (sec) for device connect - role: - type: string - description: Nautobot device role 'slug' value - device_type: - type: string - description: Nautobot device type 'slug' value - platform: - type: string - description: Nautobot Platform 'slug' value - created_device: - type: string - readOnly: true - description: Created device name - status: - type: string - readOnly: true - description: Onboarding Status - failed_reason: - type: string - readOnly: true - description: Failure reason - message: - type: string - readOnly: true - description: Status message - required: - - created_device - - failed_reason - - id - - ip_address - - message - - site - - status - OnboardingTaskRequest: - type: object - description: Serializer for the OnboardingTask model. - properties: - site: - type: string - description: Nautobot site 'slug' value - ip_address: - type: string - minLength: 1 - description: IP Address to reach device - username: - type: string - writeOnly: true - minLength: 1 - description: Device username - password: - type: string - writeOnly: true - minLength: 1 - description: Device password - secret: - type: string - writeOnly: true - minLength: 1 - description: Device secret password - port: - type: integer - description: Device PORT to check for online - timeout: - type: integer - description: Timeout (sec) for device connect - role: - type: string - description: Nautobot device role 'slug' value - device_type: - type: string - minLength: 1 - description: Nautobot device type 'slug' value - platform: - type: string - description: Nautobot Platform 'slug' value - required: - - ip_address - - site - OperatorEnum: - enum: - - union - - intersection - - difference - type: string - OuterUnitEnum: - type: string - enum: - - mm - - in - PaginatedAccessGrantList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/AccessGrant' - PaginatedAddressFamilyList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/AddressFamily' - PaginatedAddressObjectGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/AddressObjectGroup' - PaginatedAddressObjectList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/AddressObject' - PaginatedAggregateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Aggregate' - PaginatedAutonomousSystemList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/AutonomousSystem' - PaginatedAvailableIPList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - PaginatedAvailablePrefixList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/AvailablePrefix' - PaginatedBGPRoutingInstanceList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/BGPRoutingInstance' - PaginatedCVELCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CVELCM' - PaginatedCableList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Cable' - PaginatedCapircaPolicyList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CapircaPolicy' - PaginatedCircuitList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Circuit' - PaginatedCircuitMaintenanceCircuitImpactList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CircuitMaintenanceCircuitImpact' - PaginatedCircuitMaintenanceList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CircuitMaintenance' - PaginatedCircuitTerminationList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CircuitTermination' - PaginatedCircuitTypeList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CircuitType' - PaginatedClusterGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ClusterGroup' - PaginatedClusterList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Cluster' - PaginatedClusterTypeList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ClusterType' - PaginatedCommandTokenList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CommandToken' - PaginatedComplianceFeatureList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ComplianceFeature' - PaginatedComplianceRuleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ComplianceRule' - PaginatedComputedFieldList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ComputedField' - PaginatedConfigComplianceList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConfigCompliance' - PaginatedConfigContextList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConfigContext' - PaginatedConfigContextSchemaList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConfigContextSchema' - PaginatedConfigRemoveList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConfigRemove' - PaginatedConfigReplaceList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConfigReplace' - PaginatedConsolePortList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConsolePort' - PaginatedConsolePortTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' - PaginatedConsoleServerPortList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConsoleServerPort' - PaginatedConsoleServerPortTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' - PaginatedContactLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ContactLCM' - PaginatedContentTypeList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ContentType' - PaginatedContractLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ContractLCM' - PaginatedCustomFieldChoiceList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoice' - PaginatedCustomFieldSerializerVersion12List: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CustomFieldSerializerVersion12' - PaginatedCustomLinkList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CustomLink' - PaginatedDeviceBayList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DeviceBay' - PaginatedDeviceBayTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DeviceBayTemplate' - PaginatedDeviceRedundancyGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DeviceRedundancyGroup' - PaginatedDeviceRoleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DeviceRole' - PaginatedDeviceTypeList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DeviceType' - PaginatedDeviceWithConfigContextList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DeviceWithConfigContext' - PaginatedDynamicGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DynamicGroup' - PaginatedDynamicGroupMembershipList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/DynamicGroupMembership' - PaginatedExportTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ExportTemplate' - PaginatedFQDNList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/FQDN' - PaginatedFrontPortList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/FrontPort' - PaginatedFrontPortTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - PaginatedGitRepositoryList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/GitRepository' - PaginatedGoldenConfigList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/GoldenConfig' - PaginatedGoldenConfigSettingList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/GoldenConfigSetting' - PaginatedGraphQLQueryList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/GraphQLQuery' - PaginatedGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Group' - PaginatedHardwareLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/HardwareLCM' - PaginatedIPAddressList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/IPAddress' - PaginatedIPRangeList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/IPRange' - PaginatedImageAttachmentList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - PaginatedInterfaceConnectionList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/InterfaceConnection' - PaginatedInterfaceSerializerVersion12List: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/InterfaceSerializerVersion12' - PaginatedInterfaceTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplate' - PaginatedInventoryItemList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/InventoryItem' - PaginatedJobHookList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/JobHook' - PaginatedJobList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Job' - PaginatedJobLogEntryList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/JobLogEntry' - PaginatedJobResultList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/JobResult' - PaginatedJobVariableList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/JobVariable' - PaginatedLocationList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Location' - PaginatedLocationTypeList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/LocationType' - PaginatedManufacturerList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - PaginatedMinMaxValidationRuleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/MinMaxValidationRule' - PaginatedNATPolicyList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/NATPolicy' - PaginatedNATPolicyRuleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/NATPolicyRule' - PaginatedNoteList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Note' - PaginatedNotificationSourceList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/NotificationSource' - PaginatedObjectChangeList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ObjectChange' - PaginatedObjectPermissionList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ObjectPermission' - PaginatedOnboardingTaskList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/OnboardingTask' - PaginatedPeerEndpointList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PeerEndpoint' - PaginatedPeerGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PeerGroup' - PaginatedPeerGroupTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PeerGroupTemplate' - PaginatedPeeringList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Peering' - PaginatedPeeringRoleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PeeringRole' - PaginatedPlatformList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Platform' - PaginatedPolicyList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Policy' - PaginatedPolicyRuleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PolicyRule' - PaginatedPowerFeedList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PowerFeed' - PaginatedPowerOutletList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PowerOutlet' - PaginatedPowerOutletTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PowerOutletTemplate' - PaginatedPowerPanelList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PowerPanel' - PaginatedPowerPortList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PowerPort' - PaginatedPowerPortTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/PowerPortTemplate' - PaginatedPrefixList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Prefix' - PaginatedProviderLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ProviderLCM' - PaginatedProviderList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Provider' - PaginatedProviderNetworkList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ProviderNetwork' - PaginatedRIRList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RIR' - PaginatedRackGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RackGroup' - PaginatedRackList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Rack' - PaginatedRackReservationList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RackReservation' - PaginatedRackRoleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RackRole' - PaginatedRackUnitList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RackUnit' - PaginatedRearPortList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RearPort' - PaginatedRearPortTemplateList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RearPortTemplate' - PaginatedRegionList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Region' - PaginatedRegularExpressionValidationRuleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RegularExpressionValidationRule' - PaginatedRelationshipAssociationList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RelationshipAssociation' - PaginatedRelationshipList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Relationship' - PaginatedRoleList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Role' - PaginatedRouteTargetList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RouteTarget' - PaginatedScheduledJobList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ScheduledJob' - PaginatedSecretList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Secret' - PaginatedSecretsGroupAssociationList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/SecretsGroupAssociation' - PaginatedSecretsGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/SecretsGroup' - PaginatedServiceList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Service' - PaginatedServiceObjectGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ServiceObjectGroup' - PaginatedServiceObjectList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ServiceObject' - PaginatedSiteList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Site' - PaginatedSoftwareImageLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/SoftwareImageLCM' - PaginatedSoftwareLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/SoftwareLCM' - PaginatedStatusList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Status' - PaginatedTagSerializerVersion13List: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/TagSerializerVersion13' - PaginatedTenantGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/TenantGroup' - PaginatedTenantList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Tenant' - PaginatedTokenList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Token' - PaginatedUserList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/User' - PaginatedUserObjectGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/UserObjectGroup' - PaginatedUserObjectList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/UserObject' - PaginatedVLANGroupList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/VLANGroup' - PaginatedVLANList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/VLAN' - PaginatedVMInterfaceSerializerVersion12List: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/VMInterfaceSerializerVersion12' - PaginatedVRFList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/VRF' - PaginatedValidatedSoftwareLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/ValidatedSoftwareLCM' - PaginatedVirtualChassisList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/VirtualChassis' - PaginatedVirtualMachineWithConfigContextList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - PaginatedVulnerabilityLCMList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/VulnerabilityLCM' - PaginatedWebhookList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Webhook' - PaginatedZoneList: - type: object - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Zone' - PatchedAccessGrantRequest: - type: object - description: API serializer for interacting with AccessGrant objects. - properties: - command: - type: string - minLength: 1 - description: Enter * to grant access to all commands - maxLength: 64 - subcommand: - type: string - minLength: 1 - description: Enter * to grant access to all subcommands of the - given command - maxLength: 64 - grant_type: - $ref: '#/components/schemas/GrantTypeEnum' - name: - type: string - minLength: 1 - description: Organization name, channel name, or user name - maxLength: 255 - value: - type: string - minLength: 1 - description: Corresponding ID value to grant access to.
Enter * - to grant access to all organizations, channels, or users - maxLength: 255 - PatchedBulkWritableAccessGrantRequest: - type: object - description: API serializer for interacting with AccessGrant objects. - properties: - id: - type: string - format: uuid - command: - type: string - minLength: 1 - description: Enter * to grant access to all commands - maxLength: 64 - subcommand: - type: string - minLength: 1 - description: Enter * to grant access to all subcommands of the - given command - maxLength: 64 - grant_type: - $ref: '#/components/schemas/GrantTypeEnum' - name: - type: string - minLength: 1 - description: Organization name, channel name, or user name - maxLength: 255 - value: - type: string - minLength: 1 - description: Corresponding ID value to grant access to.
Enter * - to grant access to all organizations, channels, or users - maxLength: 255 - required: - - id - PatchedBulkWritableAddressFamilyRequest: - type: object - description: REST API serializer for AddressFamily records. - properties: - id: - type: string - format: uuid - afi_safi: - $ref: '#/components/schemas/AfiSafiEnum' - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRFRequest' - nullable: true - export_policy: - type: string - maxLength: 100 - import_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritableAddressObjectGroupRequest: - type: object - description: AddressObjectGroup Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - id - PatchedBulkWritableAddressObjectRequest: - type: object - description: AddressObject Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - id - PatchedBulkWritableAggregateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - prefix: - type: string - minLength: 1 - rir: - $ref: '#/components/schemas/NestedRIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableAutonomousSystemRequest: - type: object - description: REST API serializer for AutonomousSystem records. - properties: - id: - type: string - format: uuid - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 32-bit autonomous system number - description: - type: string - maxLength: 200 - status: - $ref: '#/components/schemas/Status2a0Enum' - provider: - allOf: - - $ref: '#/components/schemas/NestedProviderRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritableBGPRoutingInstanceRequest: - type: object - description: REST API serializer for Peering records. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - description: - type: string - maxLength: 200 - router_id: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritableCVELCMRequest: - type: object - description: REST API serializer for CVELCM records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 16 - published_date: - type: string - format: date - link: - type: string - format: uri - minLength: 1 - maxLength: 200 - status: - $ref: '#/components/schemas/Status4f5Enum' - description: - type: string - nullable: true - maxLength: 255 - severity: - $ref: '#/components/schemas/SeverityEnum' - cvss: - type: number - format: double - nullable: true - title: CVSS Base Score - cvss_v2: - type: number - format: double - nullable: true - title: CVSSv2 Score - cvss_v3: - type: number - format: double - nullable: true - title: CVSSv3 Score - fix: - type: string - nullable: true - maxLength: 255 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableCableRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - termination_a_type: - type: string - termination_a_id: - type: string - format: uuid - termination_b_type: - type: string - termination_b_id: - type: string - format: uuid - type: - oneOf: - - $ref: '#/components/schemas/CableTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - status: - $ref: '#/components/schemas/CableStatusChoices' - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - length_unit: - $ref: '#/components/schemas/LengthUnitEnum' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableCapircaPolicyRequest: - type: object - description: CapircaPolicy Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - pol: - type: string - nullable: true - net: - type: string - nullable: true - svc: - type: string - nullable: true - cfg: - type: string - nullable: true - device: - type: string - format: uuid - nullable: true - required: - - id - PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest: - type: object - description: Serializer for API. - properties: - id: - type: string - format: uuid - maintenance: - type: string - format: uuid - circuit: - type: string - format: uuid - impact: - nullable: true - oneOf: - - $ref: '#/components/schemas/ImpactEnum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - required: - - id - PatchedBulkWritableCircuitMaintenanceRequest: - type: object - description: Serializer for API. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - start_time: - type: string - format: date-time - end_time: - type: string - format: date-time - description: - type: string - nullable: true - status: - nullable: true - oneOf: - - $ref: '#/components/schemas/StatusD95Enum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - ack: - type: boolean - nullable: true - required: - - id - PatchedBulkWritableCircuitRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - cid: - type: string - minLength: 1 - title: Circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/NestedProviderRequest' - type: - $ref: '#/components/schemas/NestedCircuitTypeRequest' - status: - $ref: '#/components/schemas/CircuitStatusChoices' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - install_date: - type: string - format: date - nullable: true - title: Date installed - commit_rate: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Commit rate (Kbps) - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableCircuitTerminationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - circuit: - $ref: '#/components/schemas/NestedCircuitRequest' - term_side: - allOf: - - $ref: '#/components/schemas/TermSideEnum' - title: Termination - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/NestedProviderNetworkRequest' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - maxLength: 100 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableCircuitTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableClusterGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableClusterRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - type: - $ref: '#/components/schemas/NestedClusterTypeRequest' - group: - allOf: - - $ref: '#/components/schemas/NestedClusterGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableClusterTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableCommandTokenRequest: - type: object - description: API serializer for interacting with CommandToken objects. - properties: - id: - type: string - format: uuid - comment: - type: string - description: 'Optional: Enter description of token' - maxLength: 255 - platform: - $ref: '#/components/schemas/PlatformEnum' - token: - type: string - minLength: 1 - description: Token given by chat platform for signing or command validation - maxLength: 255 - required: - - id - PatchedBulkWritableComplianceFeatureRequest: - type: object - description: Serializer for ComplianceFeature object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - id - PatchedBulkWritableComplianceRuleRequest: - type: object - description: Serializer for ComplianceRule object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - config_ordered: - type: boolean - title: Configured Ordered - description: Whether or not the configuration order matters, such as in - ACLs. - match_config: - type: string - nullable: true - title: Config to Match - description: The config to match that is matched based on the parent most - configuration. e.g. `router bgp` or `ntp`. - config_type: - allOf: - - $ref: '#/components/schemas/ConfigTypeEnum' - description: Whether the config is in cli or json/structured format. - feature: - type: string - format: uuid - platform: - type: string - format: uuid - required: - - id - PatchedBulkWritableComputedFieldRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - slug: - type: string - description: Internal field name. Please use underscores rather than dashes - in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - label: - type: string - minLength: 1 - description: Name of the field as displayed to users - maxLength: 100 - description: - type: string - maxLength: 200 - content_type: - type: string - template: - type: string - minLength: 1 - description: Jinja2 template code for field value - maxLength: 500 - fallback_value: - type: string - description: Fallback value (if any) to be output for the field in the case - of a template rendering error. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - PatchedBulkWritableConfigComplianceRequest: - type: object - description: Serializer for ConfigCompliance object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - compliance: - type: boolean - nullable: true - actual: - type: object - additionalProperties: {} - description: Actual Configuration for feature - intended: - type: object - additionalProperties: {} - description: Intended Configuration for feature - missing: - type: object - additionalProperties: {} - description: Configuration that should be on the device. - extra: - type: object - additionalProperties: {} - description: Configuration that should not be on the device. - ordered: - type: boolean - compliance_int: - type: integer - maximum: 2147483647 - minimum: -2147483648 - nullable: true - device: - type: string - format: uuid - description: The device - rule: - type: string - format: uuid - required: - - id - PatchedBulkWritableConfigContextRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchemaRequest' - nullable: true - is_active: - type: boolean - regions: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - sites: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - locations: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - roles: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - device_types: - type: array - items: - type: object - properties: - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - model - - slug - platforms: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - cluster_groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - clusters: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - tenant_groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - tenants: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - tags: - type: array - items: - type: string - data: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritableConfigContextSchemaRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 200 - slug: - type: string - maxLength: 200 - pattern: ^[-a-zA-Z0-9_]+$ - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - data_schema: - type: object - additionalProperties: {} - description: A JSON Schema document which is used to validate a config context - object. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableConfigRemoveRequest: - type: object - description: Serializer for ConfigRemove object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern - description: Regex pattern used to remove a line from the backup configuration. - maxLength: 200 - platform: - type: string - format: uuid - required: - - id - PatchedBulkWritableConfigReplaceRequest: - type: object - description: Serializer for ConfigReplace object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern to Substitute - description: Regex pattern that will be found and replaced with 'replaced - text'. - maxLength: 200 - replace: - type: string - minLength: 1 - title: Replaced Text - description: Text that will be inserted in place of Regex pattern match. - maxLength: 200 - platform: - type: string - format: uuid - required: - - id - PatchedBulkWritableConsolePortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableConsolePortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableConsoleServerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableConsoleServerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/ConsolePortTypeChoices' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableContactLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - name: - type: string - nullable: true - minLength: 1 - maxLength: 80 - address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - priority: - type: integer - maximum: 2147483647 - minimum: 0 - contract: - allOf: - - $ref: '#/components/schemas/NestedContractLCMRequest' - description: Associated Contract - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableContractLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - provider: - allOf: - - $ref: '#/components/schemas/NestedProviderLCMRequest' - description: Vendor - name: - type: string - minLength: 1 - maxLength: 100 - start: - type: string - format: date - nullable: true - title: Contract Start Date - end: - type: string - format: date - nullable: true - title: Contract End Date - cost: - type: string - format: decimal - pattern: ^-?\d{0,13}(?:\.\d{0,2})?$ - nullable: true - title: Contract Cost - support_level: - type: string - nullable: true - maxLength: 64 - contract_type: - type: string - nullable: true - maxLength: 32 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableCustomFieldChoiceRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - field: - $ref: '#/components/schemas/NestedCustomFieldRequest' - value: - type: string - minLength: 1 - maxLength: 100 - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Higher weights appear later in the list - required: - - id - PatchedBulkWritableCustomLinkRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - target_url: - type: string - minLength: 1 - title: URL - description: Jinja2 template code for link URL. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. - maxLength: 500 - name: - type: string - minLength: 1 - maxLength: 100 - content_type: - type: string - text: - type: string - minLength: 1 - description: Jinja2 template code for link text. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. Links - which render as empty text will not be displayed. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - group_name: - type: string - description: Links with the same group will appear as a dropdown menu - maxLength: 50 - button_class: - allOf: - - $ref: '#/components/schemas/ButtonClassEnum' - description: The class of the first link in a group will be used for the - dropdown button - new_window: - type: boolean - description: Force link to open in a new window - required: - - id - PatchedBulkWritableDeviceBayRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - installed_device: - allOf: - - $ref: '#/components/schemas/NestedDeviceRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableDeviceBayTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableDeviceRedundancyGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - failover_strategy: - $ref: '#/components/schemas/FailoverStrategyEnum' - secrets_group: - type: string - format: uuid - nullable: true - comments: - type: string - status: - $ref: '#/components/schemas/LocationStatusChoices' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableDeviceRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableDeviceTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - manufacturer: - $ref: '#/components/schemas/NestedManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: integer - maximum: 32767 - minimum: 0 - title: Height (U) - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces - subdevice_role: - $ref: '#/components/schemas/SubdeviceRoleEnum' - front_image: - type: string - format: binary - rear_image: - type: string - format: binary - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableDeviceWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - device_role: - $ref: '#/components/schemas/NestedDeviceRoleRequest' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatformRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/NestedRackRequest' - nullable: true - position: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - title: Position (U) - description: The lowest-numbered unit occupied by the device - face: - $ref: '#/components/schemas/FaceEnum' - status: - $ref: '#/components/schemas/DeviceStatusChoices' - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroupRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/NestedClusterRequest' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/NestedVirtualChassisRequest' - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 - nullable: true - device_redundancy_group: - allOf: - - $ref: '#/components/schemas/NestedDeviceRedundancyGroupRequest' - nullable: true - device_redundancy_group_priority: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: The priority the device has in the device redundancy group. - comments: - type: string - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchemaRequest' - nullable: true - local_context_data: - type: object - additionalProperties: {} - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableDynamicGroupMembershipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - parent_group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - operator: - $ref: '#/components/schemas/OperatorEnum' - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - PatchedBulkWritableDynamicGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - description: Dynamic Group name - maxLength: 100 - slug: - type: string - description: Unique slug - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - content_type: - type: string - filter: - type: object - additionalProperties: {} - description: A JSON-encoded dictionary of filter parameters for group membership - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableExportTemplateRequest: - type: object - description: Extend ValidatedModelSerializer with a `relationships` field. - properties: - id: - type: string - format: uuid - content_type: - type: string - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: - type: string - minLength: 1 - description: The list of objects being exported is passed as a context variable - named queryset. - mime_type: - type: string - description: Defaults to text/plain - maxLength: 50 - file_extension: - type: string - description: Extension to append to the rendered filename - maxLength: 15 - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableFQDNRequest: - type: object - description: FQDN Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_addresses: - type: array - items: - type: object - properties: - address: - type: string - minLength: 1 - required: - - address - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Resolvable fully qualified domain name (e.g. networktocode.com) - maxLength: 254 - required: - - id - PatchedBulkWritableFrontPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - $ref: '#/components/schemas/FrontPortRearPortRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableFrontPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - $ref: '#/components/schemas/NestedRearPortTemplateRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableGitRepositoryRequest: - type: object - description: Git repositories defined as a data source. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - remote_url: - type: string - format: uri - minLength: 1 - description: Only HTTP and HTTPS URLs are presently supported - maxLength: 255 - branch: - type: string - minLength: 1 - maxLength: 64 - token: - type: string - writeOnly: true - minLength: 1 - username: - type: string - maxLength: 64 - secrets_group: - allOf: - - $ref: '#/components/schemas/NestedSecretsGroupRequest' - nullable: true - current_head: - type: string - description: Commit hash of the most recent fetch from the selected branch. - Used for syncing between workers. - maxLength: 48 - provided_contents: - type: array - items: - oneOf: - - $ref: '#/components/schemas/ProvidedContentsEnum' - - $ref: '#/components/schemas/BlankEnum' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableGoldenConfigRequest: - type: object - description: Serializer for GoldenConfig object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - backup_config: - type: string - description: Full backup config for device. - backup_last_attempt_date: - type: string - format: date-time - nullable: true - backup_last_success_date: - type: string - format: date-time - nullable: true - intended_config: - type: string - description: Intended config for the device. - intended_last_attempt_date: - type: string - format: date-time - nullable: true - intended_last_success_date: - type: string - format: date-time - nullable: true - compliance_config: - type: string - description: Full config diff for device. - compliance_last_attempt_date: - type: string - format: date-time - nullable: true - compliance_last_success_date: - type: string - format: date-time - nullable: true - device: - type: string - format: uuid - description: device - required: - - id - PatchedBulkWritableGoldenConfigSettingRequest: - type: object - description: Serializer for GoldenConfigSetting object. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - scope: - type: object - additionalProperties: {} - dynamic_group: - $ref: '#/components/schemas/NestedDynamicGroupRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - backup_path_template: - type: string - title: Backup Path in Jinja Template Form - description: The Jinja path representation of where the backup file will - be found. The variable `obj` is available as the device instance object - of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - intended_path_template: - type: string - title: Intended Path in Jinja Template Form - description: The Jinja path representation of where the generated file will - be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - jinja_path_template: - type: string - title: Template Path in Jinja Template Form - description: The Jinja path representation of where the Jinja template can - be found. e.g. `{{obj.platform.slug}}.j2` - maxLength: 255 - backup_test_connectivity: - type: boolean - title: Backup Test - description: Whether or not to pretest the connectivity of the device by - verifying there is a resolvable IP that can connect to port 22. - backup_repository: - type: string - format: uuid - nullable: true - intended_repository: - type: string - format: uuid - nullable: true - jinja_repository: - type: string - format: uuid - nullable: true - sot_agg_query: - type: string - format: uuid - nullable: true - required: - - id - PatchedBulkWritableGraphQLQueryRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - query: - type: string - minLength: 1 - variables: - type: object - additionalProperties: {} - nullable: true - default: {} - required: - - id - PatchedBulkWritableGroupRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: integer - name: - type: string - minLength: 1 - maxLength: 150 - required: - - id - PatchedBulkWritableHardwareLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - device_type: - allOf: - - $ref: '#/components/schemas/NestedDeviceTypeRequest' - description: Device Type to attach the Hardware LCM to - inventory_item: - type: string - nullable: true - title: Inventory Item Part - maxLength: 255 - release_date: - type: string - format: date - nullable: true - end_of_sale: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - end_of_sw_releases: - type: string - format: date - nullable: true - title: End of Software Releases - end_of_security_patches: - type: string - format: date - nullable: true - documentation_url: - type: string - format: uri - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableIPAddressRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - address: - type: string - minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - status: - $ref: '#/components/schemas/IPAddressStatusChoices' - role: - $ref: '#/components/schemas/RoleEnum' - assigned_object_type: - type: string - nullable: true - assigned_object_id: - type: string - format: uuid - nullable: true - nat_inside: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^[0-9A-Za-z._-]+$ - maxLength: 255 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableIPRangeRequest: - type: object - description: IPRange Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - start_address: - type: string - minLength: 1 - end_address: - type: string - minLength: 1 - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - vrf: - type: string - format: uuid - nullable: true - required: - - id - PatchedBulkWritableImageAttachmentRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - content_type: - type: string - object_id: - type: string - format: uuid - name: - type: string - maxLength: 50 - image: - type: string - format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - PatchedBulkWritableInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - enabled: - type: boolean - parent_interface: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - bridge: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - lag: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management - description: - type: string - maxLength: 200 - mode: - $ref: '#/components/schemas/ModeEnum' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/NestedVLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: object - properties: - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - required: - - name - - vid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableInterfaceTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - mgmt_only: - type: boolean - title: Management only - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableInventoryItemRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - parent: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturerRequest' - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableJobHookRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - content_types: - type: array - items: - type: string - job: - type: string - format: uuid - description: The job that this job hook will initiate - enabled: - type: boolean - type_create: - type: boolean - description: Call this job hook when a matching object is created. - type_update: - type: boolean - description: Call this job hook when a matching object is updated. - type_delete: - type: boolean - description: Call this job hook when a matching object is deleted. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableJobRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - grouping: - type: string - minLength: 1 - description: Human-readable grouping that this job belongs to - maxLength: 255 - grouping_override: - type: boolean - description: If set, the configured grouping will remain even if the underlying - Job source code changes - name: - type: string - minLength: 1 - description: Human-readable name of this job - maxLength: 100 - name_override: - type: boolean - description: If set, the configured name will remain even if the underlying - Job source code changes - slug: - type: string - maxLength: 320 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - description: Markdown formatting is supported - description_override: - type: boolean - description: If set, the configured description will remain even if the - underlying Job source code changes - enabled: - type: boolean - description: Whether this job can be executed by users - has_sensitive_variables: - type: boolean - description: Whether this job contains sensitive variables - has_sensitive_variables_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - approval_required: - type: boolean - description: Whether the job requires approval from another user before - running - approval_required_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - commit_default: - type: boolean - description: Whether the job defaults to committing changes when run, or - defaults to a dry-run - commit_default_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - hidden: - type: boolean - description: Whether the job defaults to not being shown in the UI - hidden_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - read_only: - type: boolean - description: Whether the job is prevented from making lasting changes to - the database - read_only_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - soft_time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded - exception.
Set to 0 to use Nautobot system default - soft_time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will be forcibly - terminated.
Set to 0 to use Nautobot system default - time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - task_queues: - type: object - additionalProperties: {} - description: Comma separated list of task queues that this job can run on. - A blank list will use the default queue - task_queues_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableLocationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - location_type: - $ref: '#/components/schemas/NestedLocationTypeRequest' - parent: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableLocationTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedLocationTypeRequest' - nullable: true - nestable: - type: boolean - description: Allow Locations of this type to be parents/children of other - Locations of this same type - content_types: - type: array - items: - type: string - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableManufacturerRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableMinMaxValidationRuleRequest: - type: object - description: Serializer for `MinMaxValidationRule` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - min: - type: number - format: double - nullable: true - description: When set, apply a minimum value contraint to the value of the - model field. - max: - type: number - format: double - nullable: true - description: When set, apply a maximum value contraint to the value of the - model field. - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - required: - - id - PatchedBulkWritableNATPolicyRequest: - type: object - description: NATPolicy Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/NATPolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/NATPolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - required: - - id - PatchedBulkWritableNATPolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - original_source_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - original_source_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - original_source_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - original_source_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - translated_source_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - translated_source_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - translated_source_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - translated_source_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - original_destination_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - original_destination_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - original_destination_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - original_destination_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - translated_destination_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - translated_destination_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - translated_destination_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - translated_destination_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - remark: - type: boolean - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - required: - - id - PatchedBulkWritableNoteRequest: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: string - format: uuid - assigned_object_type: - type: string - assigned_object_id: - type: string - format: uuid - note: - type: string - minLength: 1 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - id - PatchedBulkWritableObjectPermissionRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - enabled: - type: boolean - object_types: - type: array - items: - type: string - groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 150 - required: - - name - users: - type: array - items: - type: object - properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and - @/./+/-/_ only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - required: - - username - actions: - type: object - additionalProperties: {} - description: The list of actions granted by this permission - constraints: - type: object - additionalProperties: {} - nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - required: - - id - PatchedBulkWritablePeerEndpointRequest: - type: object - description: REST API serializer for PeerEndpoint records. - properties: - id: - type: string - format: uuid - source_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - source_interface: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - peer_group: - allOf: - - $ref: '#/components/schemas/NestedPeerGroupRequest' - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - peering: - allOf: - - $ref: '#/components/schemas/NestedPeeringRequest' - nullable: true - secret: - allOf: - - $ref: '#/components/schemas/NestedSecretRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - enabled: - type: boolean - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritablePeerGroupRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - source_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - source_interface: - allOf: - - $ref: '#/components/schemas/NestedInterfaceRequest' - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - template: - allOf: - - $ref: '#/components/schemas/NestedPeerGroupTemplateRequest' - nullable: true - secret: - allOf: - - $ref: '#/components/schemas/NestedSecretRequest' - nullable: true - role: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritablePeerGroupTemplateRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - role: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystemRequest' - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - secret: - allOf: - - $ref: '#/components/schemas/NestedSecretRequest' - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritablePeeringRequest: - type: object - description: REST API serializer for Peering records. - properties: - id: - type: string - format: uuid - status: - $ref: '#/components/schemas/CircuitStatusChoices' - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritablePeeringRoleRequest: - type: object - description: REST API serializer for PeeringRole records. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - required: - - id - PatchedBulkWritablePlatformRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturerRequest' - nullable: true - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritablePolicyRequest: - type: object - description: Policy Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/PolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/PolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - required: - - id - PatchedBulkWritablePolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_users: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last - name (e.g. John Smith) - maxLength: 100 - required: - - username - source_user_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - user_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. - john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first - & last name (e.g. John Smith) - maxLength: 100 - required: - - username - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - source_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - source_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_addresses: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - destination_address_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - address_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - ip_range: - $ref: '#/components/schemas/NestedIPRangeRequest' - fqdn: - $ref: '#/components/schemas/NestedFQDNRequest' - ip_address: - $ref: '#/components/schemas/NestedIPAddressRequest' - prefix: - $ref: '#/components/schemas/NestedPrefixRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_services: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - destination_service_groups: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - action: - $ref: '#/components/schemas/ActionEnum' - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - required: - - id - PatchedBulkWritablePowerFeedRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - power_panel: - $ref: '#/components/schemas/NestedPowerPanelRequest' - rack: - allOf: - - $ref: '#/components/schemas/NestedRackRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - status: - $ref: '#/components/schemas/PowerFeedStatusChoices' - type: - allOf: - - $ref: '#/components/schemas/PowerFeedTypeChoices' - default: - value: primary - label: Primary - supply: - allOf: - - $ref: '#/components/schemas/SupplyEnum' - default: - value: ac - label: AC - phase: - allOf: - - $ref: '#/components/schemas/PhaseEnum' - default: - value: single-phase - label: Single phase - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritablePowerOutletRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerOutletTypeChoices' - power_port: - $ref: '#/components/schemas/NestedPowerPortRequest' - feed_leg: - $ref: '#/components/schemas/FeedLegEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritablePowerOutletTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerOutletTypeChoices' - power_port: - $ref: '#/components/schemas/NestedPowerPortTemplateRequest' - feed_leg: - $ref: '#/components/schemas/FeedLegEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritablePowerPanelRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - rack_group: - allOf: - - $ref: '#/components/schemas/NestedRackGroupRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritablePowerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerPortTypeChoices' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritablePowerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PowerPortTypeChoices' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritablePrefixRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - prefix: - type: string - minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - vlan: - allOf: - - $ref: '#/components/schemas/NestedVLANRequest' - nullable: true - status: - $ref: '#/components/schemas/PrefixStatusChoices' - role: - allOf: - - $ref: '#/components/schemas/NestedRoleRequest' - nullable: true - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableProviderLCMRequest: - type: object - description: API serializer. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: E-mail - maxLength: 254 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableProviderNetworkRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - provider: - $ref: '#/components/schemas/NestedProviderRequest' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableProviderRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - account: - type: string - title: Account number - maxLength: 100 - portal_url: - type: string - format: uri - maxLength: 200 - noc_contact: - type: string - admin_contact: - type: string - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRIRRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRackGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - parent: - allOf: - - $ref: '#/components/schemas/NestedRackGroupRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRackRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - facility_id: - type: string - nullable: true - description: Locally-assigned identifier - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/NestedRackGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - status: - $ref: '#/components/schemas/RackStatusChoices' - role: - allOf: - - $ref: '#/components/schemas/NestedRackRoleRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - $ref: '#/components/schemas/RackTypeChoices' - width: - $ref: '#/components/schemas/WidthEnum' - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - $ref: '#/components/schemas/OuterUnitEnum' - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRackReservationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - rack: - $ref: '#/components/schemas/NestedRackRequest' - units: - type: object - additionalProperties: {} - user: - $ref: '#/components/schemas/NestedUserRequest' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - description: - type: string - minLength: 1 - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRackRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRearPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - $ref: '#/components/schemas/NestedDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRearPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device_type: - $ref: '#/components/schemas/NestedDeviceTypeRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRegionRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedRegionRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRegularExpressionValidationRuleRequest: - type: object - description: Serializer for `RegularExpressionValidationRule` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - regular_expression: - type: string - minLength: 1 - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - required: - - id - PatchedBulkWritableRelationshipAssociationRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - relationship: - $ref: '#/components/schemas/NestedRelationshipRequest' - source_type: - type: string - source_id: - type: string - format: uuid - destination_type: - type: string - destination_id: - type: string - format: uuid - required: - - id - PatchedBulkWritableRelationshipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - description: Name of the relationship as displayed to users - maxLength: 100 - slug: - type: string - description: Internal relationship name. Please use underscores rather than - dashes in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - type: - allOf: - - $ref: '#/components/schemas/RelationshipTypeChoices' - description: Cardinality of this relationship - required_on: - description: Objects on the specified side MUST implement this relationship. - Not permitted for symmetric relationships. - oneOf: - - $ref: '#/components/schemas/RequiredOnEnum' - - $ref: '#/components/schemas/BlankEnum' - source_type: - type: string - source_label: - type: string - description: Label for related destination objects, as displayed on the - source object. - maxLength: 50 - source_hidden: - type: boolean - title: Hide for source object - description: Hide this relationship on the source object. - source_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable source objects of - the selected type - destination_type: - type: string - destination_label: - type: string - description: Label for related source objects, as displayed on the destination - object. - maxLength: 50 - destination_hidden: - type: boolean - title: Hide for destination object - description: Hide this relationship on the destination object. - destination_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable destination objects - of the selected type - required: - - id - PatchedBulkWritableRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableRouteTargetRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableSecretRequest: - type: object - description: Serializer for `Secret` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - provider: - type: string - minLength: 1 - maxLength: 100 - parameters: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableSecretsGroupAssociationRequest: - type: object - description: Serializer for `SecretsGroupAssociation` objects. - properties: - id: - type: string - format: uuid - group: - $ref: '#/components/schemas/NestedSecretsGroupRequest' - access_type: - $ref: '#/components/schemas/AccessTypeEnum' - secret_type: - $ref: '#/components/schemas/SecretTypeEnum' - secret: - $ref: '#/components/schemas/NestedSecretRequest' - required: - - id - PatchedBulkWritableSecretsGroupRequest: - type: object - description: Serializer for `SecretsGroup` objects. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableServiceObjectGroupRequest: - type: object - description: ServiceObjectGroup Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - service_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - id - PatchedBulkWritableServiceObjectRequest: - type: object - description: ServiceObject Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP would - be port 80) - maxLength: 20 - ip_protocol: - allOf: - - $ref: '#/components/schemas/IpProtocolEnum' - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - id - PatchedBulkWritableServiceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - device: - allOf: - - $ref: '#/components/schemas/NestedDeviceRequest' - nullable: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/NestedVirtualMachineRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - protocol: - $ref: '#/components/schemas/ProtocolEnum' - ipaddresses: - type: array - items: - type: object - properties: - address: - type: string - minLength: 1 - required: - - address - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableSiteRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - region: - allOf: - - $ref: '#/components/schemas/NestedRegionRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - shipping_address: - type: string - maxLength: 200 - latitude: - type: string - format: decimal - pattern: ^-?\d{0,2}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (latitude) - longitude: - type: string - format: decimal - pattern: ^-?\d{0,3}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (longitude) - contact_name: - type: string - maxLength: 50 - contact_phone: - type: string - maxLength: 20 - contact_email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableSoftwareImageLCMRequest: - type: object - description: REST API serializer for SoftwareImageLCM records. - properties: - id: - type: string - format: uuid - image_file_name: - type: string - minLength: 1 - maxLength: 100 - software: - $ref: '#/components/schemas/NestedSoftwareLCMRequest' - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableSoftwareLCMRequest: - type: object - description: REST API serializer for SoftwareLCM records. - properties: - id: - type: string - format: uuid - device_platform: - $ref: '#/components/schemas/NestedPlatformRequest' - version: - type: string - minLength: 1 - maxLength: 50 - alias: - type: string - nullable: true - maxLength: 50 - release_date: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - title: End of Software Support - documentation_url: - type: string - format: uri - maxLength: 200 - software_images: - type: array - items: - type: object - properties: - image_file_name: - type: string - minLength: 1 - maxLength: 100 - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - required: - - image_file_name - long_term_support: - type: boolean - pre_release: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableStatusRequest: - type: object - description: Serializer for `Status` objects. - properties: - id: - type: string - format: uuid - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 50 - slug: - type: string - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableTagSerializerVersion13Request: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - content_types: - type: array - items: - type: string - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableTenantGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedTenantGroupRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableTenantRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - $ref: '#/components/schemas/NestedTenantGroupRequest' - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableTokenRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - expires: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - required: - - id - PatchedBulkWritableUserObjectGroupRequest: - type: object - description: UserObjectGroup Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - user_objects: - type: array - items: - type: object - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - type: string - enum: - - active - - decommissioned - - staged - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last - name (e.g. John Smith) - maxLength: 100 - required: - - username - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - id - PatchedBulkWritableUserObjectRequest: - type: object - description: UserObject Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last name - (e.g. John Smith) - maxLength: 100 - required: - - id - PatchedBulkWritableUserRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: - type: string - writeOnly: true - minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - groups: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 150 - required: - - name - required: - - id - PatchedBulkWritableVLANGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableVLANRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - site: - allOf: - - $ref: '#/components/schemas/NestedSiteRequest' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/NestedVLANGroupRequest' - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - status: - $ref: '#/components/schemas/VLANStatusChoices' - role: - allOf: - - $ref: '#/components/schemas/NestedRoleRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableVMInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - virtual_machine: - $ref: '#/components/schemas/NestedVirtualMachineRequest' - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - parent_interface: - allOf: - - $ref: '#/components/schemas/NestedVMInterfaceRequest' - nullable: true - bridge: - allOf: - - $ref: '#/components/schemas/NestedVMInterfaceRequest' - nullable: true - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - description: - type: string - maxLength: 200 - mode: - $ref: '#/components/schemas/ModeEnum' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/NestedVLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: object - properties: - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - required: - - name - - vid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableVRFRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF - description: - type: string - maxLength: 200 - import_targets: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC - 4360) - maxLength: 21 - required: - - name - export_targets: - type: array - items: - type: object - properties: - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC - 4360) - maxLength: 21 - required: - - name - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableValidatedSoftwareLCMRequest: - type: object - description: REST API serializer for ValidatedSoftwareLCM records. - properties: - id: - type: string - format: uuid - software: - $ref: '#/components/schemas/NestedSoftwareLCMRequest' - devices: - type: array - items: - type: string - format: uuid - device_types: - type: array - items: - type: string - format: uuid - device_roles: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - start: - type: string - format: date - title: Valid Since - end: - type: string - format: date - nullable: true - title: Valid Until - preferred: - type: boolean - title: Preferred Version - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableVirtualChassisRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - allOf: - - $ref: '#/components/schemas/NestedDeviceRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableVirtualMachineWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - status: - $ref: '#/components/schemas/VirtualMachineStatusChoices' - cluster: - $ref: '#/components/schemas/NestedClusterRequest' - role: - allOf: - - $ref: '#/components/schemas/NestedDeviceRoleRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatformRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - vcpus: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - comments: - type: string - local_context_data: - type: object - additionalProperties: {} - nullable: true - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchemaRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableVulnerabilityLCMRequest: - type: object - description: REST API serializer for VulnerabilityLCM records. - properties: - id: - type: string - format: uuid - status: - $ref: '#/components/schemas/Status4f5Enum' - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - id - PatchedBulkWritableWebhookRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 150 - type_create: - type: boolean - description: Call this webhook when a matching object is created. - type_update: - type: boolean - description: Call this webhook when a matching object is updated. - type_delete: - type: boolean - description: Call this webhook when a matching object is deleted. - payload_url: - type: string - minLength: 1 - title: URL - description: A POST will be sent to this URL when the webhook is called. - maxLength: 500 - http_method: - $ref: '#/components/schemas/HttpMethodEnum' - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is support with the - same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a 'X-Hook-Signature' - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: - type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - required: - - id - PatchedBulkWritableZoneRequest: - type: object - description: Zone Serializer. - properties: - id: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - interfaces: - type: array - items: - $ref: '#/components/schemas/NestedInterfaceRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the zone (e.g. trust) - maxLength: 100 - required: - - id - PatchedCapircaPolicyRequest: - type: object - description: CapircaPolicy Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - pol: - type: string - nullable: true - net: - type: string - nullable: true - svc: - type: string - nullable: true - cfg: - type: string - nullable: true - device: - type: string - format: uuid - nullable: true - PatchedCircuitMaintenanceCircuitImpactRequest: - type: object - description: Serializer for API. - properties: - maintenance: - type: string - format: uuid - circuit: - type: string - format: uuid - impact: - nullable: true - oneOf: - - $ref: '#/components/schemas/ImpactEnum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - PatchedCircuitMaintenanceRequest: - type: object - description: Serializer for API. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - start_time: - type: string - format: date-time - end_time: - type: string - format: date-time - description: - type: string - nullable: true - status: - nullable: true - oneOf: - - $ref: '#/components/schemas/StatusD95Enum' - - $ref: '#/components/schemas/BlankEnum' - - $ref: '#/components/schemas/NullEnum' - ack: - type: boolean - nullable: true - PatchedCircuitTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedClusterGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedClusterTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedCommandTokenRequest: - type: object - description: API serializer for interacting with CommandToken objects. - properties: - comment: - type: string - description: 'Optional: Enter description of token' - maxLength: 255 - platform: - $ref: '#/components/schemas/PlatformEnum' - token: - type: string - minLength: 1 - description: Token given by chat platform for signing or command validation - maxLength: 255 - PatchedComplianceFeatureRequest: - type: object - description: Serializer for ComplianceFeature object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - PatchedComplianceRuleRequest: - type: object - description: Serializer for ComplianceRule object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - config_ordered: - type: boolean - title: Configured Ordered - description: Whether or not the configuration order matters, such as in - ACLs. - match_config: - type: string - nullable: true - title: Config to Match - description: The config to match that is matched based on the parent most - configuration. e.g. `router bgp` or `ntp`. - config_type: - allOf: - - $ref: '#/components/schemas/ConfigTypeEnum' - description: Whether the config is in cli or json/structured format. - feature: - type: string - format: uuid - platform: - type: string - format: uuid - PatchedComputedFieldRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - slug: - type: string - description: Internal field name. Please use underscores rather than dashes - in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - label: - type: string - minLength: 1 - description: Name of the field as displayed to users - maxLength: 100 - description: - type: string - maxLength: 200 - content_type: - type: string - template: - type: string - minLength: 1 - description: Jinja2 template code for field value - maxLength: 500 - fallback_value: - type: string - description: Fallback value (if any) to be output for the field in the case - of a template rendering error. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - PatchedConfigComplianceRequest: - type: object - description: Serializer for ConfigCompliance object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - compliance: - type: boolean - nullable: true - actual: - type: object - additionalProperties: {} - description: Actual Configuration for feature - intended: - type: object - additionalProperties: {} - description: Intended Configuration for feature - missing: - type: object - additionalProperties: {} - description: Configuration that should be on the device. - extra: - type: object - additionalProperties: {} - description: Configuration that should not be on the device. - ordered: - type: boolean - compliance_int: - type: integer - maximum: 2147483647 - minimum: -2147483648 - nullable: true - device: - type: string - format: uuid - description: The device - rule: - type: string - format: uuid - PatchedConfigContextSchemaRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 200 - slug: - type: string - maxLength: 200 - pattern: ^[-a-zA-Z0-9_]+$ - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - data_schema: - type: object - additionalProperties: {} - description: A JSON Schema document which is used to validate a config context - object. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedConfigRemoveRequest: - type: object - description: Serializer for ConfigRemove object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern - description: Regex pattern used to remove a line from the backup configuration. - maxLength: 200 - platform: - type: string - format: uuid - PatchedConfigReplaceRequest: - type: object - description: Serializer for ConfigReplace object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 255 - description: - type: string - maxLength: 200 - regex: - type: string - minLength: 1 - title: Regex Pattern to Substitute - description: Regex pattern that will be found and replaced with 'replaced - text'. - maxLength: 200 - replace: - type: string - minLength: 1 - title: Replaced Text - description: Text that will be inserted in place of Regex pattern match. - maxLength: 200 - platform: - type: string - format: uuid - PatchedCustomFieldSerializerVersion12Request: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - content_types: - type: array - items: - type: string - type: - $ref: '#/components/schemas/CustomFieldTypeChoices' - label: - type: string - minLength: 1 - maxLength: 50 - name: - type: string - minLength: 1 - description: Human-readable unique name of this field. - maxLength: 50 - slug: - type: string - minLength: 1 - maxLength: 50 - description: - type: string - description: A helpful description for this field. - maxLength: 200 - required: - type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. - filter_logic: - $ref: '#/components/schemas/FilterLogicEnum' - default: - type: object - additionalProperties: {} - nullable: true - description: Default value for the field (must be a JSON value). Encapsulate - strings with double quotes (e.g. "Foo"). - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Fields with higher weights appear lower in a form. - validation_minimum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Minimum value - description: Minimum allowed value (for numeric fields). - validation_maximum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Maximum value - description: Maximum allowed value (for numeric fields). - validation_regex: - type: string - description: Regular expression to enforce on text field values. Use ^ and - $ to force matching of entire string. For example, ^[A-Z]{3}$ - will limit values to exactly three uppercase letters. Regular expression - on select and multi-select will be applied at Custom Field Choices - definition. - maxLength: 500 - PatchedCustomLinkRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - target_url: - type: string - minLength: 1 - title: URL - description: Jinja2 template code for link URL. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. - maxLength: 500 - name: - type: string - minLength: 1 - maxLength: 100 - content_type: - type: string - text: - type: string - minLength: 1 - description: Jinja2 template code for link text. Reference the object as - {{ obj }} such as {{ obj.platform.slug }}. Links - which render as empty text will not be displayed. - maxLength: 500 - weight: - type: integer - maximum: 32767 - minimum: 0 - group_name: - type: string - description: Links with the same group will appear as a dropdown menu - maxLength: 50 - button_class: - allOf: - - $ref: '#/components/schemas/ButtonClassEnum' - description: The class of the first link in a group will be used for the - dropdown button - new_window: - type: boolean - description: Force link to open in a new window - PatchedDeviceRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedDynamicGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - description: Dynamic Group name - maxLength: 100 - slug: - type: string - description: Unique slug - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - content_type: - type: string - filter: - type: object - additionalProperties: {} - description: A JSON-encoded dictionary of filter parameters for group membership - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedExportTemplateRequest: - type: object - description: Extend ValidatedModelSerializer with a `relationships` field. - properties: - content_type: - type: string - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: - type: string - minLength: 1 - description: The list of objects being exported is passed as a context variable - named queryset. - mime_type: - type: string - description: Defaults to text/plain - maxLength: 50 - file_extension: - type: string - description: Extension to append to the rendered filename - maxLength: 15 - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedGoldenConfigRequest: - type: object - description: Serializer for GoldenConfig object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - backup_config: - type: string - description: Full backup config for device. - backup_last_attempt_date: - type: string - format: date-time - nullable: true - backup_last_success_date: - type: string - format: date-time - nullable: true - intended_config: - type: string - description: Intended config for the device. - intended_last_attempt_date: - type: string - format: date-time - nullable: true - intended_last_success_date: - type: string - format: date-time - nullable: true - compliance_config: - type: string - description: Full config diff for device. - compliance_last_attempt_date: - type: string - format: date-time - nullable: true - compliance_last_success_date: - type: string - format: date-time - nullable: true - device: - type: string - format: uuid - description: device - PatchedGraphQLQueryRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - query: - type: string - minLength: 1 - variables: - type: object - additionalProperties: {} - nullable: true - default: {} - PatchedGroupRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 150 - PatchedIPRangeRequest: - type: object - description: IPRange Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - start_address: - type: string - minLength: 1 - end_address: - type: string - minLength: 1 - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - vrf: - type: string - format: uuid - nullable: true - PatchedImageAttachmentRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - content_type: - type: string - object_id: - type: string - format: uuid - name: - type: string - maxLength: 50 - image: - type: string - format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 - PatchedJobHookRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - content_types: - type: array - items: - type: string - job: - type: string - format: uuid - description: The job that this job hook will initiate - enabled: - type: boolean - type_create: - type: boolean - description: Call this job hook when a matching object is created. - type_update: - type: boolean - description: Call this job hook when a matching object is updated. - type_delete: - type: boolean - description: Call this job hook when a matching object is deleted. - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedJobRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - grouping: - type: string - minLength: 1 - description: Human-readable grouping that this job belongs to - maxLength: 255 - grouping_override: - type: boolean - description: If set, the configured grouping will remain even if the underlying - Job source code changes - name: - type: string - minLength: 1 - description: Human-readable name of this job - maxLength: 100 - name_override: - type: boolean - description: If set, the configured name will remain even if the underlying - Job source code changes - slug: - type: string - maxLength: 320 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - description: Markdown formatting is supported - description_override: - type: boolean - description: If set, the configured description will remain even if the - underlying Job source code changes - enabled: - type: boolean - description: Whether this job can be executed by users - has_sensitive_variables: - type: boolean - description: Whether this job contains sensitive variables - has_sensitive_variables_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - approval_required: - type: boolean - description: Whether the job requires approval from another user before - running - approval_required_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - commit_default: - type: boolean - description: Whether the job defaults to committing changes when run, or - defaults to a dry-run - commit_default_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - hidden: - type: boolean - description: Whether the job defaults to not being shown in the UI - hidden_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - read_only: - type: boolean - description: Whether the job is prevented from making lasting changes to - the database - read_only_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - soft_time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded - exception.
Set to 0 to use Nautobot system default - soft_time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - time_limit: - type: number - format: double - minimum: 0 - description: Maximum runtime in seconds before the job will be forcibly - terminated.
Set to 0 to use Nautobot system default - time_limit_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - task_queues: - type: object - additionalProperties: {} - description: Comma separated list of task queues that this job can run on. - A blank list will use the default queue - task_queues_override: - type: boolean - description: If set, the configured value will remain even if the underlying - Job source code changes - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedManufacturerRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedMinMaxValidationRuleRequest: - type: object - description: Serializer for `MinMaxValidationRule` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - min: - type: number - format: double - nullable: true - description: When set, apply a minimum value contraint to the value of the - model field. - max: - type: number - format: double - nullable: true - description: When set, apply a maximum value contraint to the value of the - model field. - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - PatchedNATPolicyRequest: - type: object - description: NATPolicy Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/NATPolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/NATPolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - PatchedNoteRequest: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - assigned_object_type: - type: string - assigned_object_id: - type: string - format: uuid - note: - type: string - minLength: 1 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - PatchedPeeringRequest: - type: object - description: REST API serializer for Peering records. - properties: - status: - $ref: '#/components/schemas/CircuitStatusChoices' - custom_fields: - type: object - additionalProperties: {} - PatchedPeeringRoleRequest: - type: object - description: REST API serializer for PeeringRole records. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - PatchedPolicyRequest: - type: object - description: Policy Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/PolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/PolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - PatchedProviderLCMRequest: - type: object - description: API serializer. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: E-mail - maxLength: 254 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedProviderRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - account: - type: string - title: Account number - maxLength: 100 - portal_url: - type: string - format: uri - maxLength: 200 - noc_contact: - type: string - admin_contact: - type: string - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedRIRRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedRackRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedRegularExpressionValidationRuleRequest: - type: object - description: Serializer for `RegularExpressionValidationRule` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - regular_expression: - type: string - minLength: 1 - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - PatchedRelationshipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - description: Name of the relationship as displayed to users - maxLength: 100 - slug: - type: string - description: Internal relationship name. Please use underscores rather than - dashes in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - type: - allOf: - - $ref: '#/components/schemas/RelationshipTypeChoices' - description: Cardinality of this relationship - required_on: - description: Objects on the specified side MUST implement this relationship. - Not permitted for symmetric relationships. - oneOf: - - $ref: '#/components/schemas/RequiredOnEnum' - - $ref: '#/components/schemas/BlankEnum' - source_type: - type: string - source_label: - type: string - description: Label for related destination objects, as displayed on the - source object. - maxLength: 50 - source_hidden: - type: boolean - title: Hide for source object - description: Hide this relationship on the source object. - source_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable source objects of - the selected type - destination_type: - type: string - destination_label: - type: string - description: Label for related source objects, as displayed on the destination - object. - maxLength: 50 - destination_hidden: - type: boolean - title: Hide for destination object - description: Hide this relationship on the destination object. - destination_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable destination objects - of the selected type - PatchedRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedSecretRequest: - type: object - description: Serializer for `Secret` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - provider: - type: string - minLength: 1 - maxLength: 100 - parameters: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedSecretsGroupRequest: - type: object - description: Serializer for `SecretsGroup` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedServiceObjectRequest: - type: object - description: ServiceObject Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP would - be port 80) - maxLength: 20 - ip_protocol: - allOf: - - $ref: '#/components/schemas/IpProtocolEnum' - description: IANA IP Protocol (e.g. TCP UDP ICMP) - PatchedStatusRequest: - type: object - description: Serializer for `Status` objects. - properties: - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 50 - slug: - type: string - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedTagSerializerVersion13Request: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - content_types: - type: array - items: - type: string - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedTokenRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - expires: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - PatchedUserObjectRequest: - type: object - description: UserObject Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last name - (e.g. John Smith) - maxLength: 100 - PatchedVulnerabilityLCMRequest: - type: object - description: REST API serializer for VulnerabilityLCM records. - properties: - status: - $ref: '#/components/schemas/Status4f5Enum' - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWebhookRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 150 - type_create: - type: boolean - description: Call this webhook when a matching object is created. - type_update: - type: boolean - description: Call this webhook when a matching object is updated. - type_delete: - type: boolean - description: Call this webhook when a matching object is deleted. - payload_url: - type: string - minLength: 1 - title: URL - description: A POST will be sent to this URL when the webhook is called. - maxLength: 500 - http_method: - $ref: '#/components/schemas/HttpMethodEnum' - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is support with the - same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a 'X-Hook-Signature' - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: - type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - PatchedWritableAddressFamilyRequest: - type: object - description: REST API serializer for AddressFamily records. - properties: - afi_safi: - $ref: '#/components/schemas/AfiSafiEnum' - routing_instance: - type: string - format: uuid - title: BGP Routing Instance - vrf: - type: string - format: uuid - nullable: true - export_policy: - type: string - maxLength: 100 - import_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - PatchedWritableAddressObjectGroupRequest: - type: object - description: AddressObjectGroup Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - PatchedWritableAddressObjectRequest: - type: object - description: AddressObject Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - fqdn: - type: string - format: uuid - nullable: true - ip_range: - type: string - format: uuid - nullable: true - ip_address: - type: string - format: uuid - nullable: true - prefix: - type: string - format: uuid - nullable: true - PatchedWritableAggregateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - prefix: - type: string - minLength: 1 - rir: - type: string - format: uuid - tenant: - type: string - format: uuid - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableAutonomousSystemRequest: - type: object - description: REST API serializer for AutonomousSystem records. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 32-bit autonomous system number - description: - type: string - maxLength: 200 - status: - $ref: '#/components/schemas/Status2a0Enum' - provider: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableBGPRoutingInstanceRequest: - type: object - description: REST API serializer for Peering records. - properties: - device: - type: string - format: uuid - description: - type: string - maxLength: 200 - router_id: - type: string - format: uuid - nullable: true - autonomous_system: - type: string - format: uuid - custom_fields: - type: object - additionalProperties: {} - PatchedWritableCVELCMRequest: - type: object - description: REST API serializer for CVELCM records. - properties: - name: - type: string - minLength: 1 - maxLength: 16 - published_date: - type: string - format: date - link: - type: string - format: uri - minLength: 1 - maxLength: 200 - status: - $ref: '#/components/schemas/Status4f5Enum' - description: - type: string - nullable: true - maxLength: 255 - severity: - $ref: '#/components/schemas/SeverityEnum' - cvss: - type: number - format: double - nullable: true - title: CVSS Base Score - cvss_v2: - type: number - format: double - nullable: true - title: CVSSv2 Score - cvss_v3: - type: number - format: double - nullable: true - title: CVSSv3 Score - fix: - type: string - nullable: true - maxLength: 255 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableCableRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - termination_a_type: - type: string - termination_a_id: - type: string - format: uuid - termination_b_type: - type: string - termination_b_id: - type: string - format: uuid - type: - oneOf: - - $ref: '#/components/schemas/CableTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - status: - $ref: '#/components/schemas/CableStatusChoices' - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - length_unit: - oneOf: - - $ref: '#/components/schemas/LengthUnitEnum' - - $ref: '#/components/schemas/BlankEnum' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableCircuitRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - maxLength: 100 - provider: - type: string - format: uuid - type: - type: string - format: uuid - status: - $ref: '#/components/schemas/CircuitStatusChoices' - tenant: - type: string - format: uuid - nullable: true - install_date: - type: string - format: date - nullable: true - title: Date installed - commit_rate: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Commit rate (Kbps) - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableCircuitTerminationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - circuit: - type: string - format: uuid - term_side: - allOf: - - $ref: '#/components/schemas/TermSideEnum' - title: Termination - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - provider_network: - type: string - format: uuid - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - maxLength: 100 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableClusterRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - type: string - format: uuid - group: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableConfigContextRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 100 - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - schema: - type: string - format: uuid - nullable: true - description: Optional schema to validate the structure of the data - is_active: - type: boolean - regions: - type: array - items: - type: string - format: uuid - sites: - type: array - items: - type: string - format: uuid - locations: - type: array - items: - type: string - format: uuid - roles: - type: array - items: - type: string - format: uuid - device_types: - type: array - items: - type: string - format: uuid - platforms: - type: array - items: - type: string - format: uuid - cluster_groups: - type: array - items: - type: string - format: uuid - clusters: - type: array - items: - type: string - format: uuid - tenant_groups: - type: array - items: - type: string - format: uuid - tenants: - type: array - items: - type: string - format: uuid - tags: - type: array - items: - type: string - data: - type: object - additionalProperties: {} - PatchedWritableConsolePortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableConsolePortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableConsoleServerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableConsoleServerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableContactLCMRequest: - type: object - description: API serializer. - properties: - name: - type: string - nullable: true - minLength: 1 - maxLength: 80 - address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - priority: - type: integer - maximum: 2147483647 - minimum: 0 - contract: - type: string - format: uuid - nullable: true - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableContractLCMRequest: - type: object - description: API serializer. - properties: - provider: - type: string - format: uuid - nullable: true - title: Vendor - name: - type: string - minLength: 1 - maxLength: 100 - start: - type: string - format: date - nullable: true - title: Contract Start Date - end: - type: string - format: date - nullable: true - title: Contract End Date - cost: - type: string - format: decimal - pattern: ^-?\d{0,13}(?:\.\d{0,2})?$ - nullable: true - title: Contract Cost - support_level: - type: string - nullable: true - maxLength: 64 - contract_type: - type: string - nullable: true - maxLength: 32 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableCustomFieldChoiceRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - field: - type: string - format: uuid - value: - type: string - minLength: 1 - maxLength: 100 - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Higher weights appear later in the list - PatchedWritableDeviceBayRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - installed_device: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableDeviceBayTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableDeviceRedundancyGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - failover_strategy: - oneOf: - - $ref: '#/components/schemas/FailoverStrategyEnum' - - $ref: '#/components/schemas/BlankEnum' - secrets_group: - type: string - format: uuid - nullable: true - comments: - type: string - status: - $ref: '#/components/schemas/LocationStatusChoices' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableDeviceTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - manufacturer: - type: string - format: uuid - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: integer - maximum: 32767 - minimum: 0 - title: Height (U) - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces - subdevice_role: - title: Parent/child status - description: Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - oneOf: - - $ref: '#/components/schemas/SubdeviceRoleEnum' - - $ref: '#/components/schemas/BlankEnum' - front_image: - type: string - format: binary - rear_image: - type: string - format: binary - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableDeviceWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - nullable: true - maxLength: 64 - device_type: - type: string - format: uuid - device_role: - type: string - format: uuid - tenant: - type: string - format: uuid - nullable: true - platform: - type: string - format: uuid - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - rack: - type: string - format: uuid - nullable: true - position: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - title: Position (U) - description: The lowest-numbered unit occupied by the device - face: - title: Rack face - oneOf: - - $ref: '#/components/schemas/FaceEnum' - - $ref: '#/components/schemas/BlankEnum' - status: - $ref: '#/components/schemas/DeviceStatusChoices' - primary_ip4: - type: string - format: uuid - nullable: true - title: Primary IPv4 - primary_ip6: - type: string - format: uuid - nullable: true - title: Primary IPv6 - secrets_group: - type: string - format: uuid - nullable: true - cluster: - type: string - format: uuid - nullable: true - virtual_chassis: - type: string - format: uuid - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 - nullable: true - device_redundancy_group: - type: string - format: uuid - nullable: true - device_redundancy_group_priority: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: The priority the device has in the device redundancy group. - comments: - type: string - local_context_schema: - type: string - format: uuid - nullable: true - description: Optional schema to validate the structure of the data - local_context_data: - type: object - additionalProperties: {} - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableDynamicGroupMembershipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - group: - type: string - format: uuid - parent_group: - type: string - format: uuid - operator: - $ref: '#/components/schemas/OperatorEnum' - weight: - type: integer - maximum: 32767 - minimum: 0 - PatchedWritableFQDNRequest: - type: object - description: FQDN Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Resolvable fully qualified domain name (e.g. networktocode.com) - maxLength: 254 - PatchedWritableFrontPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - type: string - format: uuid - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableFrontPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - type: string - format: uuid - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableGitRepositoryRequest: - type: object - description: Git repositories defined as a data source. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - remote_url: - type: string - format: uri - minLength: 1 - description: Only HTTP and HTTPS URLs are presently supported - maxLength: 255 - branch: - type: string - minLength: 1 - maxLength: 64 - token: - type: string - writeOnly: true - minLength: 1 - username: - type: string - maxLength: 64 - secrets_group: - type: string - format: uuid - nullable: true - current_head: - type: string - description: Commit hash of the most recent fetch from the selected branch. - Used for syncing between workers. - maxLength: 48 - provided_contents: - type: array - items: - oneOf: - - $ref: '#/components/schemas/ProvidedContentsEnum' - - $ref: '#/components/schemas/BlankEnum' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableGoldenConfigSettingRequest: - type: object - description: Serializer for GoldenConfigSetting object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - scope: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - backup_path_template: - type: string - title: Backup Path in Jinja Template Form - description: The Jinja path representation of where the backup file will - be found. The variable `obj` is available as the device instance object - of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - intended_path_template: - type: string - title: Intended Path in Jinja Template Form - description: The Jinja path representation of where the generated file will - be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - jinja_path_template: - type: string - title: Template Path in Jinja Template Form - description: The Jinja path representation of where the Jinja template can - be found. e.g. `{{obj.platform.slug}}.j2` - maxLength: 255 - backup_test_connectivity: - type: boolean - title: Backup Test - description: Whether or not to pretest the connectivity of the device by - verifying there is a resolvable IP that can connect to port 22. - backup_repository: - type: string - format: uuid - nullable: true - intended_repository: - type: string - format: uuid - nullable: true - jinja_repository: - type: string - format: uuid - nullable: true - sot_agg_query: - type: string - format: uuid - nullable: true - dynamic_group: - type: string - format: uuid - PatchedWritableHardwareLCMRequest: - type: object - description: API serializer. - properties: - device_type: - type: string - format: uuid - nullable: true - inventory_item: - type: string - nullable: true - title: Inventory Item Part - maxLength: 255 - release_date: - type: string - format: date - nullable: true - end_of_sale: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - end_of_sw_releases: - type: string - format: date - nullable: true - title: End of Software Releases - end_of_security_patches: - type: string - format: date - nullable: true - documentation_url: - type: string - format: uri - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableIPAddressRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - address: - type: string - minLength: 1 - vrf: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/IPAddressStatusChoices' - role: - description: The functional role of this IP - oneOf: - - $ref: '#/components/schemas/RoleEnum' - - $ref: '#/components/schemas/BlankEnum' - assigned_object_type: - type: string - nullable: true - assigned_object_id: - type: string - format: uuid - nullable: true - nat_inside: - type: string - format: uuid - nullable: true - title: NAT (Inside) - description: The IP Addresses for which this address is the "outside" IP - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^[0-9A-Za-z._-]+$ - maxLength: 255 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - enabled: - type: boolean - parent_interface: - type: string - format: uuid - nullable: true - description: Assigned parent interface - bridge: - type: string - format: uuid - nullable: true - title: Bridge interface - description: Assigned bridge interface - lag: - type: string - format: uuid - nullable: true - title: Parent LAG - description: Assigned LAG interface - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management - description: - type: string - maxLength: 200 - mode: - oneOf: - - $ref: '#/components/schemas/ModeEnum' - - $ref: '#/components/schemas/BlankEnum' - untagged_vlan: - type: string - format: uuid - nullable: true - tagged_vlans: - type: array - items: - type: string - format: uuid - title: Tagged VLANs - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableInterfaceTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - mgmt_only: - type: boolean - title: Management only - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableInventoryItemRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - parent: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - manufacturer: - type: string - format: uuid - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableLocationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - location_type: - type: string - format: uuid - parent: - type: string - format: uuid - nullable: true - site: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableLocationTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: string - format: uuid - nullable: true - nestable: - type: boolean - description: Allow Locations of this type to be parents/children of other - Locations of this same type - content_types: - type: array - items: - type: string - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableNATPolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - remark: - type: boolean - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - PatchedWritableObjectPermissionRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - enabled: - type: boolean - object_types: - type: array - items: - type: string - groups: - type: array - items: - type: integer - users: - type: array - items: - type: string - format: uuid - actions: - type: object - additionalProperties: {} - description: The list of actions granted by this permission - constraints: - type: object - additionalProperties: {} - nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - PatchedWritablePeerEndpointRequest: - type: object - description: REST API serializer for PeerEndpoint records. - properties: - routing_instance: - type: string - format: uuid - nullable: true - title: BGP Routing Instance - source_ip: - type: string - format: uuid - nullable: true - title: BGP Peer IP - source_interface: - type: string - format: uuid - nullable: true - autonomous_system: - type: string - format: uuid - nullable: true - peer_group: - type: string - format: uuid - nullable: true - peer: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - peering: - type: string - format: uuid - secret: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - enabled: - type: boolean - custom_fields: - type: object - additionalProperties: {} - PatchedWritablePeerGroupRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - source_ip: - type: string - format: uuid - nullable: true - title: Source IP Address - source_interface: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - type: string - format: uuid - nullable: true - routing_instance: - type: string - format: uuid - template: - type: string - format: uuid - nullable: true - secret: - type: string - format: uuid - nullable: true - role: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - PatchedWritablePeerGroupTemplateRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - role: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - secret: - type: string - format: uuid - nullable: true - custom_fields: - type: object - additionalProperties: {} - PatchedWritablePlatformRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - type: string - format: uuid - nullable: true - description: Optionally limit this platform to devices of a certain manufacturer - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritablePolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - action: - $ref: '#/components/schemas/ActionEnum' - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - PatchedWritablePowerFeedRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - power_panel: - type: string - format: uuid - rack: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - status: - $ref: '#/components/schemas/PowerFeedStatusChoices' - type: - $ref: '#/components/schemas/PowerFeedTypeChoices' - supply: - $ref: '#/components/schemas/SupplyEnum' - phase: - $ref: '#/components/schemas/PhaseEnum' - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritablePowerOutletRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/PowerOutletTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - power_port: - type: string - format: uuid - nullable: true - feed_leg: - description: Phase (for three-phase feeds) - oneOf: - - $ref: '#/components/schemas/FeedLegEnum' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritablePowerOutletTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/PowerOutletTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - power_port: - type: string - format: uuid - nullable: true - feed_leg: - description: Phase (for three-phase feeds) - oneOf: - - $ref: '#/components/schemas/FeedLegEnum' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritablePowerPanelRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - rack_group: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritablePowerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/PowerPortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritablePowerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/PowerPortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritablePrefixRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - prefix: - type: string - minLength: 1 - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - vrf: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - vlan: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/PrefixStatusChoices' - role: - type: string - format: uuid - nullable: true - description: The primary function of this prefix - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableProviderNetworkRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - provider: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableRackGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - parent: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableRackRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - facility_id: - type: string - nullable: true - description: Locally-assigned identifier - maxLength: 50 - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - group: - type: string - format: uuid - nullable: true - description: Assigned group - tenant: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/RackStatusChoices' - role: - type: string - format: uuid - nullable: true - description: Functional role - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - oneOf: - - $ref: '#/components/schemas/RackTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - width: - allOf: - - $ref: '#/components/schemas/WidthEnum' - description: Rail-to-rail width - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - oneOf: - - $ref: '#/components/schemas/OuterUnitEnum' - - $ref: '#/components/schemas/BlankEnum' - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableRackReservationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - rack: - type: string - format: uuid - units: - type: object - additionalProperties: {} - user: - type: string - format: uuid - tenant: - type: string - format: uuid - nullable: true - description: - type: string - minLength: 1 - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableRearPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableRearPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableRegionRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableRelationshipAssociationRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - relationship: - type: string - format: uuid - source_type: - type: string - source_id: - type: string - format: uuid - destination_type: - type: string - destination_id: - type: string - format: uuid - PatchedWritableRouteTargetRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableSecretsGroupAssociationRequest: - type: object - description: Serializer for `SecretsGroupAssociation` objects. - properties: - group: - type: string - format: uuid - access_type: - $ref: '#/components/schemas/AccessTypeEnum' - secret_type: - $ref: '#/components/schemas/SecretTypeEnum' - secret: - type: string - format: uuid - PatchedWritableServiceObjectGroupRequest: - type: object - description: ServiceObjectGroup Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - PatchedWritableServiceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - nullable: true - virtual_machine: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - protocol: - $ref: '#/components/schemas/ProtocolEnum' - ipaddresses: - type: array - items: - type: string - format: uuid - title: IP addresses - title: IP addresses - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableSiteRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - region: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - shipping_address: - type: string - maxLength: 200 - latitude: - type: string - format: decimal - pattern: ^-?\d{0,2}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (latitude) - longitude: - type: string - format: decimal - pattern: ^-?\d{0,3}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (longitude) - contact_name: - type: string - maxLength: 50 - contact_phone: - type: string - maxLength: 20 - contact_email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableSoftwareImageLCMRequest: - type: object - description: REST API serializer for SoftwareImageLCM records. - properties: - image_file_name: - type: string - minLength: 1 - maxLength: 100 - software: - type: string - format: uuid - title: Software Version - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableSoftwareLCMRequest: - type: object - description: REST API serializer for SoftwareLCM records. - properties: - device_platform: - type: string - format: uuid - version: - type: string - minLength: 1 - maxLength: 50 - alias: - type: string - nullable: true - maxLength: 50 - release_date: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - title: End of Software Support - documentation_url: - type: string - format: uri - maxLength: 200 - software_images: - type: array - items: - type: string - format: uuid - long_term_support: - type: boolean - pre_release: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableTenantGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableTenantRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableUserObjectGroupRequest: - type: object - description: UserObjectGroup Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - PatchedWritableUserRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: - type: string - writeOnly: true - minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - groups: - type: array - items: - type: integer - description: The groups this user belongs to. A user will get all permissions - granted to each of their groups. - PatchedWritableVLANGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableVLANRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - group: - type: string - format: uuid - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/VLANStatusChoices' - role: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableVMInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - virtual_machine: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - parent_interface: - type: string - format: uuid - nullable: true - description: Assigned parent interface - bridge: - type: string - format: uuid - nullable: true - title: Bridge interface - description: Assigned bridge interface - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - description: - type: string - maxLength: 200 - mode: - oneOf: - - $ref: '#/components/schemas/ModeEnum' - - $ref: '#/components/schemas/BlankEnum' - untagged_vlan: - type: string - format: uuid - nullable: true - tagged_vlans: - type: array - items: - type: string - format: uuid - title: Tagged VLANs - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableVRFRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - tenant: - type: string - format: uuid - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF - description: - type: string - maxLength: 200 - import_targets: - type: array - items: - type: string - format: uuid - export_targets: - type: array - items: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableValidatedSoftwareLCMRequest: - type: object - description: REST API serializer for ValidatedSoftwareLCM records. - properties: - software: - type: string - format: uuid - title: Software Version - devices: - type: array - items: - type: string - format: uuid - device_types: - type: array - items: - type: string - format: uuid - device_roles: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - start: - type: string - format: date - title: Valid Since - end: - type: string - format: date - nullable: true - title: Valid Until - preferred: - type: boolean - title: Preferred Version - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableVirtualChassisRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedWritableVirtualMachineWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - status: - $ref: '#/components/schemas/VirtualMachineStatusChoices' - cluster: - type: string - format: uuid - role: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - platform: - type: string - format: uuid - nullable: true - primary_ip4: - type: string - format: uuid - nullable: true - title: Primary IPv4 - primary_ip6: - type: string - format: uuid - nullable: true - title: Primary IPv6 - vcpus: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - comments: - type: string - local_context_data: - type: object - additionalProperties: {} - nullable: true - local_context_schema: - type: string - format: uuid - nullable: true - description: Optional schema to validate the structure of the data - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - PatchedZoneRequest: - type: object - description: Zone Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - interfaces: - type: array - items: - $ref: '#/components/schemas/NestedInterfaceRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the zone (e.g. trust) - maxLength: 100 - PeerEndpoint: - type: object - description: REST API serializer for PeerEndpoint records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - routing_instance: - allOf: - - $ref: '#/components/schemas/NestedRoutingInstance' - nullable: true - source_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - source_interface: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystem' - nullable: true - peer_group: - allOf: - - $ref: '#/components/schemas/NestedPeerGroup' - nullable: true - peer: - allOf: - - $ref: '#/components/schemas/NestedPeerEndpoint' - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - peering: - allOf: - - $ref: '#/components/schemas/NestedPeering' - nullable: true - secret: - allOf: - - $ref: '#/components/schemas/NestedSecret' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - enabled: - type: boolean - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - peering - - url - PeerGroup: - type: object - description: REST API serializer for PeerGroup records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - source_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - source_interface: - allOf: - - $ref: '#/components/schemas/NestedInterface' - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystem' - nullable: true - routing_instance: - $ref: '#/components/schemas/NestedRoutingInstance' - template: - allOf: - - $ref: '#/components/schemas/NestedPeerGroupTemplate' - nullable: true - secret: - allOf: - - $ref: '#/components/schemas/NestedSecret' - nullable: true - extra_attributes: - type: string - readOnly: true - role: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - extra_attributes - - id - - last_updated - - name - - routing_instance - - url - PeerGroupTemplate: - type: object - description: REST API serializer for PeerGroup records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - role: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - allOf: - - $ref: '#/components/schemas/NestedAutonomousSystem' - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - secret: - allOf: - - $ref: '#/components/schemas/NestedSecret' - nullable: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - url - Peering: - type: object - description: REST API serializer for Peering records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - deprovisioning - - offline - - planned - - provisioning - label: - type: string - enum: - - Active - - Decommissioned - - Deprovisioning - - Offline - - Planned - - Provisioning - endpoints: - type: array - items: - $ref: '#/components/schemas/NestedPeerEndpoint' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - status - - url - PeeringRequest: - type: object - description: REST API serializer for Peering records. - properties: - status: - $ref: '#/components/schemas/CircuitStatusChoices' - custom_fields: - type: object - additionalProperties: {} - required: - - status - PeeringRole: - type: object - description: REST API serializer for PeeringRole records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - url - PeeringRoleRequest: - type: object - description: REST API serializer for PeeringRole records. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - required: - - name - PhaseEnum: - type: string - enum: - - single-phase - - three-phase - Platform: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/NestedManufacturer' - nullable: true - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) - description: - type: string - maxLength: 200 - device_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_count - - display - - id - - last_updated - - name - - notes_url - - url - - virtualmachine_count - PlatformEnum: - enum: - - mattermost - type: string - Policy: - type: object - description: Policy Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - assigned_devices: - type: array - items: - $ref: '#/components/schemas/PolicyDeviceM2MNested' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/PolicyDynamicGroupM2MNested' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - policy_rules: - type: array - items: - type: string - format: uuid - readOnly: true - required: - - created - - display - - id - - last_updated - - name - - notes_url - - policy_rules - - url - PolicyDeviceM2MNested: - type: object - description: PolicyDeviceM2M NestedSerializer. - properties: - device: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - device - PolicyDeviceM2MNestedRequest: - type: object - description: PolicyDeviceM2M NestedSerializer. - properties: - device: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - PolicyDynamicGroupM2MNested: - type: object - description: PolicyDynamicGroupM2M NestedSerializer. - properties: - dynamic_group: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - dynamic_group - PolicyDynamicGroupM2MNestedRequest: - type: object - description: PolicyDynamicGroupM2M NestedSerializer. - properties: - dynamic_group: - type: string - format: uuid - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - id - PolicyRequest: - type: object - description: Policy Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - assigned_devices: - type: array - items: - $ref: '#/components/schemas/PolicyDeviceM2MNestedRequest' - assigned_dynamic_groups: - type: array - items: - $ref: '#/components/schemas/PolicyDynamicGroupM2MNestedRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - tenant: - type: string - format: uuid - nullable: true - required: - - name - PolicyRule: - type: object - description: PolicyRule Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - source_users: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last - name (e.g. John Smith) - maxLength: 100 - required: - - created - - display - - id - - last_updated - - notes_url - - url - - username - source_user_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - user_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - description: Signifies the username in identify provider (e.g. - john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first - & last name (e.g. John Smith) - maxLength: 100 - required: - - created - - display - - id - - last_updated - - notes_url - - url - - username - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - source_addresses: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - source_address_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - address_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - source_zone: - $ref: '#/components/schemas/Zone' - destination_addresses: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - destination_address_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - address_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - ip_range: - $ref: '#/components/schemas/NestedIPRange' - fqdn: - $ref: '#/components/schemas/NestedFQDN' - ip_address: - $ref: '#/components/schemas/NestedIPAddress' - prefix: - $ref: '#/components/schemas/NestedPrefix' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for an address object type. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - destination_zone: - $ref: '#/components/schemas/Zone' - destination_services: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - destination_service_groups: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - service_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. - HTTP would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - maxLength: 100 - action: - $ref: '#/components/schemas/ActionEnum' - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - source_services: - type: array - items: - type: string - format: uuid - readOnly: true - source_service_groups: - type: array - items: - type: string - format: uuid - readOnly: true - required: - - action - - created - - display - - id - - last_updated - - name - - notes_url - - source_service_groups - - source_services - - url - PortTypeChoices: - type: string - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - mrj21 - - fc - - lc - - lc-apc - - lsh - - lsh-apc - - mpo - - mtrj - - sc - - sc-apc - - st - - cs - - sn - - urm-p2 - - urm-p4 - - urm-p8 - - splice - PowerFeed: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - power_panel: - $ref: '#/components/schemas/NestedPowerPanel' - rack: - allOf: - - $ref: '#/components/schemas/NestedRack' - nullable: true - name: - type: string - maxLength: 100 - status: - type: object - properties: - value: - type: string - enum: - - active - - failed - - offline - - planned - label: - type: string - enum: - - Active - - Failed - - Offline - - Planned - type: - type: object - properties: - value: - type: string - enum: - - primary - - redundant - label: - type: string - enum: - - Primary - - Redundant - default: - value: primary - label: Primary - supply: - type: object - properties: - value: - type: string - enum: - - ac - - dc - label: - type: string - enum: - - AC - - DC - default: - value: ac - label: AC - phase: - type: object - properties: - value: - type: string - enum: - - single-phase - - three-phase - label: - type: string - enum: - - Single phase - - Three-phase - default: - value: single-phase - label: Single phase - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - comments: - type: string - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - created - - display - - id - - last_updated - - name - - notes_url - - power_panel - - status - - url - PowerFeedStatusChoices: - type: string - enum: - - active - - failed - - offline - - planned - PowerFeedTypeChoices: - type: string - enum: - - primary - - redundant - PowerOutlet: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-micro-b - - usb-c - - hdot-cx - label: - type: string - enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE7/5) - - ITA Type F (CEE7/3) - - ITA Type G (BS 1363) - - ITA Type H - - ITA Type I - - ITA Type J - - ITA Type K - - ITA Type L (CEI 23-50) - - ITA Type M (BS 546) - - ITA Type N - - ITA Type O - - USB Type A - - USB Micro B - - USB Type C - - HDOT Cx - power_port: - $ref: '#/components/schemas/NestedPowerPort' - feed_leg: - type: object - properties: - value: - type: string - enum: - - A - - B - - C - label: - type: string - enum: - - A - - B - - C - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - created - - device - - display - - id - - last_updated - - name - - notes_url - - url - PowerOutletTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-micro-b - - usb-c - - hdot-cx - label: - type: string - enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE7/5) - - ITA Type F (CEE7/3) - - ITA Type G (BS 1363) - - ITA Type H - - ITA Type I - - ITA Type J - - ITA Type K - - ITA Type L (CEI 23-50) - - ITA Type M (BS 546) - - ITA Type N - - ITA Type O - - USB Type A - - USB Micro B - - USB Type C - - HDOT Cx - power_port: - $ref: '#/components/schemas/NestedPowerPortTemplate' - feed_leg: - type: object - properties: - value: - type: string - enum: - - A - - B - - C - label: - type: string - enum: - - A - - B - - C - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - url - PowerOutletTypeChoices: - type: string - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-micro-b - - usb-c - - hdot-cx - PowerPanel: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - site: - $ref: '#/components/schemas/NestedSite' - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - rack_group: - allOf: - - $ref: '#/components/schemas/NestedRackGroup' - nullable: true - name: - type: string - maxLength: 100 - powerfeed_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - powerfeed_count - - site - - url - PowerPort: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-3-b - - usb-3-micro-b - label: - type: string - enum: - - C6 - - C8 - - C14 - - C16 - - C20 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - NEMA 1-15P - - NEMA 5-15P - - NEMA 5-20P - - NEMA 5-30P - - NEMA 5-50P - - NEMA 6-15P - - NEMA 6-20P - - NEMA 6-30P - - NEMA 6-50P - - NEMA 10-30P - - NEMA 10-50P - - NEMA 14-20P - - NEMA 14-30P - - NEMA 14-50P - - NEMA 14-60P - - NEMA 15-15P - - NEMA 15-20P - - NEMA 15-30P - - NEMA 15-50P - - NEMA 15-60P - - NEMA L1-15P - - NEMA L5-15P - - NEMA L5-20P - - NEMA L5-30P - - NEMA L5-50P - - NEMA L6-15P - - NEMA L6-20P - - NEMA L6-30P - - NEMA L6-50P - - NEMA L10-30P - - NEMA L14-20P - - NEMA L14-30P - - NEMA L14-50P - - NEMA L14-60P - - NEMA L15-20P - - NEMA L15-30P - - NEMA L15-50P - - NEMA L15-60P - - NEMA L21-20P - - NEMA L21-30P - - CS6361C - - CS6365C - - CS8165C - - CS8265C - - CS8365C - - CS8465C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/4) - - ITA Type E/F (CEE 7/7) - - ITA Type G (BS 1363) - - ITA Type H - - ITA Type I - - ITA Type J - - ITA Type K - - ITA Type L (CEI 23-50) - - ITA Type M (BS 546) - - ITA Type N - - ITA Type O - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - USB 3.0 Type B - - USB 3.0 Micro B - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - connected_endpoint: - type: object - additionalProperties: {} - nullable: true - readOnly: true - connected_endpoint_type: - type: string - nullable: true - readOnly: true - connected_endpoint_reachable: - type: boolean - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - connected_endpoint - - connected_endpoint_reachable - - connected_endpoint_type - - created - - device - - display - - id - - last_updated - - name - - notes_url - - url - PowerPortTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-3-b - - usb-3-micro-b - label: - type: string - enum: - - C6 - - C8 - - C14 - - C16 - - C20 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - NEMA 1-15P - - NEMA 5-15P - - NEMA 5-20P - - NEMA 5-30P - - NEMA 5-50P - - NEMA 6-15P - - NEMA 6-20P - - NEMA 6-30P - - NEMA 6-50P - - NEMA 10-30P - - NEMA 10-50P - - NEMA 14-20P - - NEMA 14-30P - - NEMA 14-50P - - NEMA 14-60P - - NEMA 15-15P - - NEMA 15-20P - - NEMA 15-30P - - NEMA 15-50P - - NEMA 15-60P - - NEMA L1-15P - - NEMA L5-15P - - NEMA L5-20P - - NEMA L5-30P - - NEMA L5-50P - - NEMA L6-15P - - NEMA L6-20P - - NEMA L6-30P - - NEMA L6-50P - - NEMA L10-30P - - NEMA L14-20P - - NEMA L14-30P - - NEMA L14-50P - - NEMA L14-60P - - NEMA L15-20P - - NEMA L15-30P - - NEMA L15-50P - - NEMA L15-60P - - NEMA L21-20P - - NEMA L21-30P - - CS6361C - - CS6365C - - CS8165C - - CS8265C - - CS8365C - - CS8465C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/4) - - ITA Type E/F (CEE 7/7) - - ITA Type G (BS 1363) - - ITA Type H - - ITA Type I - - ITA Type J - - ITA Type K - - ITA Type L (CEI 23-50) - - ITA Type M (BS 546) - - ITA Type N - - ITA Type O - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - USB 3.0 Type B - - USB 3.0 Micro B - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - url - PowerPortTypeChoices: - type: string - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-3-b - - usb-3-micro-b - Prefix: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - family: - type: object - properties: - value: - type: integer - enum: - - 4 - - 6 - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - prefix: - type: string - site: - allOf: - - $ref: '#/components/schemas/NestedSite' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - vrf: - allOf: - - $ref: '#/components/schemas/NestedVRF' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - vlan: - allOf: - - $ref: '#/components/schemas/NestedVLAN' - nullable: true - status: - type: object - properties: - value: - type: string - enum: - - active - - container - - deprecated - - p2p - - reserved - label: - type: string - enum: - - Active - - Container - - Deprecated - - Peer-to-Peer - - Reserved - role: - allOf: - - $ref: '#/components/schemas/NestedRole' - nullable: true - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - family - - id - - last_updated - - notes_url - - prefix - - status - - url - PrefixLengthRequest: - type: object - properties: - prefix_length: - type: integer - required: - - prefix_length - PrefixStatusChoices: - type: string - enum: - - active - - container - - deprecated - - p2p - - reserved - ProtocolEnum: - type: string - enum: - - tcp - - udp - ProvidedContentsEnum: - enum: - - extras.configcontext - - extras.configcontextschema - - extras.exporttemplate - - extras.job - - nautobot_golden_config.backupconfigs - - nautobot_golden_config.intendedconfigs - - nautobot_golden_config.jinjatemplate - - nautobot_golden_config.pluginproperties - type: string - Provider: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - account: - type: string - title: Account number - maxLength: 100 - portal_url: - type: string - format: uri - maxLength: 200 - noc_contact: - type: string - admin_contact: - type: string - comments: - type: string - circuit_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - circuit_count - - created - - display - - id - - last_updated - - name - - notes_url - - url - ProviderLCM: - type: object - description: API serializer. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - id: - type: string - format: uuid - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: E-mail - maxLength: 254 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - last_updated - - name - - url - ProviderLCMRequest: - type: object - description: API serializer. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: E-mail - maxLength: 254 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - ProviderNetwork: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - provider: - $ref: '#/components/schemas/NestedProvider' - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - comments: - type: string - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - provider - - url - ProviderRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - account: - type: string - title: Account number - maxLength: 100 - portal_url: - type: string - format: uri - maxLength: 200 - noc_contact: - type: string - admin_contact: - type: string - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - RIR: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - aggregate_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - aggregate_count - - created - - display - - id - - last_updated - - name - - notes_url - - url - RIRRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - Rack: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - facility_id: - type: string - nullable: true - description: Locally-assigned identifier - maxLength: 50 - site: - $ref: '#/components/schemas/NestedSite' - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/NestedRackGroup' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - status: - type: object - properties: - value: - type: string - enum: - - active - - available - - deprecated - - planned - - reserved - label: - type: string - enum: - - Active - - Available - - Deprecated - - Planned - - Reserved - role: - allOf: - - $ref: '#/components/schemas/NestedRackRole' - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - type: object - properties: - value: - type: string - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-cabinet - label: - type: string - enum: - - 2-post frame - - 4-post frame - - 4-post cabinet - - Wall-mounted frame - - Wall-mounted cabinet - width: - type: object - properties: - value: - type: integer - enum: - - 10 - - 19 - - 21 - - 23 - label: - type: string - enum: - - 10 inches - - 19 inches - - 21 inches - - 23 inches - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - type: object - properties: - value: - type: string - enum: - - mm - - in - label: - type: string - enum: - - Millimeters - - Inches - comments: - type: string - device_count: - type: integer - readOnly: true - powerfeed_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_count - - display - - id - - last_updated - - name - - notes_url - - powerfeed_count - - site - - status - - url - RackGroup: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/NestedSite' - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - parent: - allOf: - - $ref: '#/components/schemas/NestedRackGroup' - nullable: true - description: - type: string - maxLength: 200 - rack_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - _depth - - created - - display - - id - - last_updated - - name - - notes_url - - rack_count - - site - - url - RackReservation: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - rack: - $ref: '#/components/schemas/NestedRack' - units: - type: object - additionalProperties: {} - user: - $ref: '#/components/schemas/NestedUser' - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - description - - display - - id - - last_updated - - notes_url - - rack - - units - - url - - user - RackRole: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - rack_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - rack_count - - url - RackRoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - RackStatusChoices: - type: string - enum: - - active - - available - - deprecated - - planned - - reserved - RackTypeChoices: - type: string - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-cabinet - RackUnit: - type: object - description: A rack unit is an abstraction formed by the set (rack, position, - face); it does not exist as a row in the database. - properties: - id: - type: integer - readOnly: true - name: - type: string - readOnly: true - face: - type: object - properties: - value: - type: string - enum: - - front - - rear - label: - type: string - enum: - - Front - - Rear - readOnly: true - device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - occupied: - type: boolean - readOnly: true - required: - - device - - face - - id - - name - - occupied - RearPort: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - $ref: '#/components/schemas/NestedDevice' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - mrj21 - - fc - - lc - - lc-apc - - lsh - - lsh-apc - - mpo - - mtrj - - sc - - sc-apc - - st - - cs - - sn - - urm-p2 - - urm-p4 - - urm-p8 - - splice - label: - type: string - enum: - - 8P8C - - 8P6C - - 8P4C - - 8P2C - - GG45 - - TERA 4P - - TERA 2P - - TERA 1P - - 110 Punch - - BNC - - MRJ21 - - FC - - LC - - LC/APC - - LSH - - LSH/APC - - MPO - - MTRJ - - SC - - SC/APC - - ST - - CS - - SN - - URM-P2 - - URM-P4 - - URM-P8 - - Splice - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/NestedCable' - readOnly: true - cable_peer: - type: object - additionalProperties: {} - nullable: true - readOnly: true - cable_peer_type: - type: string - nullable: true - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cable - - cable_peer - - cable_peer_type - - created - - device - - display - - id - - last_updated - - name - - notes_url - - type - - url - RearPortTemplate: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device_type: - $ref: '#/components/schemas/NestedDeviceType' - name: - type: string - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - type: string - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - mrj21 - - fc - - lc - - lc-apc - - lsh - - lsh-apc - - mpo - - mtrj - - sc - - sc-apc - - st - - cs - - sn - - urm-p2 - - urm-p4 - - urm-p8 - - splice - label: - type: string - enum: - - 8P8C - - 8P6C - - 8P4C - - 8P2C - - GG45 - - TERA 4P - - TERA 2P - - TERA 1P - - 110 Punch - - BNC - - MRJ21 - - FC - - LC - - LC/APC - - LSH - - LSH/APC - - MPO - - MTRJ - - SC - - SC/APC - - ST - - CS - - SN - - URM-P2 - - URM-P4 - - URM-P8 - - Splice - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - device_type - - display - - id - - last_updated - - name - - type - - url - Region: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedRegion' - nullable: true - description: - type: string - maxLength: 200 - site_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - _depth - - created - - display - - id - - last_updated - - name - - notes_url - - site_count - - url - RegularExpressionValidationRule: - type: object - description: Serializer for `RegularExpressionValidationRule` objects. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - maxLength: 50 - regular_expression: - type: string - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - content_type - - created - - display - - field - - id - - last_updated - - name - - regular_expression - - slug - - url - RegularExpressionValidationRuleRequest: - type: object - description: Serializer for `RegularExpressionValidationRule` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - content_type: - type: string - field: - type: string - minLength: 1 - maxLength: 50 - regular_expression: - type: string - minLength: 1 - enabled: - type: boolean - error_message: - type: string - nullable: true - description: Optional error message to display when validation fails. - maxLength: 255 - required: - - content_type - - field - - name - - regular_expression - - slug - Relationship: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Name of the relationship as displayed to users - maxLength: 100 - slug: - type: string - description: Internal relationship name. Please use underscores rather than - dashes in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - type: - allOf: - - $ref: '#/components/schemas/RelationshipTypeChoices' - description: Cardinality of this relationship - required_on: - description: Objects on the specified side MUST implement this relationship. - Not permitted for symmetric relationships. - oneOf: - - $ref: '#/components/schemas/RequiredOnEnum' - - $ref: '#/components/schemas/BlankEnum' - source_type: - type: string - source_label: - type: string - description: Label for related destination objects, as displayed on the - source object. - maxLength: 50 - source_hidden: - type: boolean - title: Hide for source object - description: Hide this relationship on the source object. - source_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable source objects of - the selected type - destination_type: - type: string - destination_label: - type: string - description: Label for related source objects, as displayed on the destination - object. - maxLength: 50 - destination_hidden: - type: boolean - title: Hide for destination object - description: Hide this relationship on the destination object. - destination_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable destination objects - of the selected type - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - created - - destination_type - - display - - id - - last_updated - - name - - notes_url - - source_type - - url - RelationshipAssociation: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - relationship: - $ref: '#/components/schemas/NestedRelationship' - source_type: - type: string - source_id: - type: string - format: uuid - destination_type: - type: string - destination_id: - type: string - format: uuid - required: - - destination_id - - destination_type - - display - - id - - relationship - - source_id - - source_type - - url - RelationshipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - description: Name of the relationship as displayed to users - maxLength: 100 - slug: - type: string - description: Internal relationship name. Please use underscores rather than - dashes in this slug. - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - type: - allOf: - - $ref: '#/components/schemas/RelationshipTypeChoices' - description: Cardinality of this relationship - required_on: - description: Objects on the specified side MUST implement this relationship. - Not permitted for symmetric relationships. - oneOf: - - $ref: '#/components/schemas/RequiredOnEnum' - - $ref: '#/components/schemas/BlankEnum' - source_type: - type: string - source_label: - type: string - description: Label for related destination objects, as displayed on the - source object. - maxLength: 50 - source_hidden: - type: boolean - title: Hide for source object - description: Hide this relationship on the source object. - source_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable source objects of - the selected type - destination_type: - type: string - destination_label: - type: string - description: Label for related source objects, as displayed on the destination - object. - maxLength: 50 - destination_hidden: - type: boolean - title: Hide for destination object - description: Hide this relationship on the destination object. - destination_filter: - type: object - additionalProperties: {} - nullable: true - description: Filterset filter matching the applicable destination objects - of the selected type - required: - - destination_type - - name - - source_type - RelationshipTypeChoices: - enum: - - one-to-one - - symmetric-one-to-one - - one-to-many - - many-to-many - - symmetric-many-to-many - type: string - RequiredOnEnum: - enum: - - source - - destination - type: string - Role: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - prefix_count: - type: integer - readOnly: true - vlan_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - prefix_count - - url - - vlan_count - RoleEnum: - type: string - enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - RoleRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - RouteTarget: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - ScheduledJob: - type: object - description: |- - This base serializer implements common fields and logic for all ModelSerializers. - - Namely, it: - - - defines the `display` field which exposes a human friendly value for the given object. - - ensures that `id` field is always present on the serializer as well - - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Short Description For This Task - maxLength: 200 - user: - allOf: - - $ref: '#/components/schemas/NestedUser' - readOnly: true - job_model: - allOf: - - $ref: '#/components/schemas/NestedJob' - readOnly: true - task: - type: string - title: Task Name - description: 'The name of the Celery task that should be run. (Example: - "proj.tasks.import_contacts")' - maxLength: 200 - interval: - $ref: '#/components/schemas/JobExecutionTypeIntervalChoices' - queue: - type: string - nullable: true - title: Queue Override - description: Queue defined in CELERY_TASK_QUEUES. Leave None for default - queuing. - maxLength: 200 - job_class: - type: string - description: Name of the fully qualified Nautobot Job class path - maxLength: 255 - last_run_at: - type: string - format: date-time - readOnly: true - nullable: true - title: Most Recent Run - description: Datetime that the schedule last triggered the task to run. - Reset to None if enabled is set to False. - total_run_count: - type: integer - readOnly: true - description: Running count of how many times the schedule has triggered - the task - date_changed: - type: string - format: date-time - readOnly: true - title: Last Modified - description: Datetime that this scheduled job was last modified - description: - type: string - description: Detailed description about the details of this scheduled job - approved_by_user: - allOf: - - $ref: '#/components/schemas/NestedUser' - readOnly: true - approval_required: - type: boolean - approved_at: - type: string - format: date-time - readOnly: true - nullable: true - title: Approval date/time - description: Datetime that the schedule was approved - crontab: - type: string - title: Custom cronjob - description: Cronjob syntax string for custom scheduling - maxLength: 255 - required: - - approved_at - - approved_by_user - - date_changed - - display - - id - - interval - - job_class - - job_model - - last_run_at - - name - - task - - total_run_count - - url - - user - Secret: - type: object - description: Serializer for `Secret` objects. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - provider: - type: string - maxLength: 100 - parameters: - type: object - additionalProperties: {} - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - provider - - url - SecretRequest: - type: object - description: Serializer for `Secret` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - provider: - type: string - minLength: 1 - maxLength: 100 - parameters: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - provider - SecretTypeEnum: - enum: - - key - - password - - secret - - token - - username - type: string - SecretsGroup: - type: object - description: Serializer for `SecretsGroup` objects. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - secrets: - type: array - items: - $ref: '#/components/schemas/NestedSecretsGroupAssociation' - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - secrets - - url - SecretsGroupAssociation: - type: object - description: Serializer for `SecretsGroupAssociation` objects. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - group: - $ref: '#/components/schemas/NestedSecretsGroup' - access_type: - $ref: '#/components/schemas/AccessTypeEnum' - secret_type: - $ref: '#/components/schemas/SecretTypeEnum' - secret: - $ref: '#/components/schemas/NestedSecret' - required: - - access_type - - display - - group - - id - - secret - - secret_type - - url - SecretsGroupRequest: - type: object - description: Serializer for `SecretsGroup` objects. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - Service: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - nullable: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/NestedVirtualMachine' - nullable: true - name: - type: string - maxLength: 100 - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - protocol: - type: object - properties: - value: - type: string - enum: - - tcp - - udp - label: - type: string - enum: - - TCP - - UDP - ipaddresses: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - family: - type: integer - readOnly: true - address: - type: string - required: - - address - - display - - family - - id - - url - description: - type: string - maxLength: 200 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - ports - - url - ServiceObject: - type: object - description: ServiceObject Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP would - be port 80) - maxLength: 20 - ip_protocol: - allOf: - - $ref: '#/components/schemas/IpProtocolEnum' - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - ServiceObjectGroup: - type: object - description: ServiceObjectGroup Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - service_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP - would be port 80) - maxLength: 20 - ip_protocol: - enum: - - ICMP - - IGMP - - GGP - - TCP - - CBT - - EGP - - IGP - - BBN-RCC-MON - - NVP-II - - PUP - - EMCON - - XNET - - CHAOS - - UDP - - MUX - - DCN-MEAS - - HMP - - PRM - - XNS-IDP - - TRUNK-1 - - TRUNK-2 - - LEAF-1 - - LEAF-2 - - RDP - - IRTP - - ISO-TP4 - - NETBLT - - MFE-NSP - - MERIT-INP - - DCCP - - 3PC - - IDPR - - XTP - - DDP - - IDPR-CMTP - - TP++ - - IL - - SDRP - - IDRP - - RSVP - - GRE - - DSR - - BNA - - ESP - - AH - - I-NLSP - - NARP - - MOBILE - - TLSP - - SKIP - - CFTP - - SAT-EXPAK - - KRYPTOLAN - - RVD - - IPPC - - SAT-MON - - VISA - - IPCV - - CPNX - - CPHB - - WSN - - PVP - - BR-SAT-MON - - SUN-ND - - WB-MON - - WB-EXPAK - - ISO-IP - - VMTP - - SECURE-VMTP - - VINES - - TTP - - NSFNET-IGP - - DGP - - TCF - - EIGRP - - OSPFIGP - - Sprite-RPC - - LARP - - MTP - - AX.25 - - IPIP - - SCC-SP - - ETHERIP - - ENCAP - - GMTP - - IFMP - - PNNI - - PIM - - ARIS - - SCPS - - QNX - - A/N - - IPComp - - SNP - - Compaq-Peer - - IPX-in-IP - - PGM - - L2TP - - DDX - - IATP - - STP - - SRP - - UTI - - SMP - - SM - - PTP - - FIRE - - CRTP - - CRUDP - - SSCOPMCE - - IPLT - - SPS - - PIPE - - SCTP - - FC - - RSVP-E2E-IGNORE - - UDPLite - - manet - - HIP - - WESP - - ROHC - - Ethernet - type: string - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - created - - display - - id - - ip_protocol - - last_updated - - name - - notes_url - - url - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - ServiceObjectRequest: - type: object - description: ServiceObject Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the service (e.g. HTTP) - maxLength: 100 - port: - type: string - nullable: true - description: The port or port range to tie to a service (e.g. HTTP would - be port 80) - maxLength: 20 - ip_protocol: - allOf: - - $ref: '#/components/schemas/IpProtocolEnum' - description: IANA IP Protocol (e.g. TCP UDP ICMP) - required: - - ip_protocol - - name - SeverityEnum: - type: string - enum: - - Critical - - High - - Medium - - Low - - None - Site: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - planned - - retired - - staging - label: - type: string - enum: - - Active - - Decommissioning - - Planned - - Retired - - Staging - region: - allOf: - - $ref: '#/components/schemas/NestedRegion' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - shipping_address: - type: string - maxLength: 200 - latitude: - type: string - format: decimal - pattern: ^-?\d{0,2}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (latitude) - longitude: - type: string - format: decimal - pattern: ^-?\d{0,3}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (longitude) - contact_name: - type: string - maxLength: 50 - contact_phone: - type: string - maxLength: 20 - contact_email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - circuit_count: - type: integer - readOnly: true - device_count: - type: integer - readOnly: true - prefix_count: - type: integer - readOnly: true - rack_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - vlan_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - circuit_count - - created - - device_count - - display - - id - - last_updated - - name - - notes_url - - prefix_count - - rack_count - - status - - url - - virtualmachine_count - - vlan_count - SoftwareImageLCM: - type: object - description: REST API serializer for SoftwareImageLCM records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - image_file_name: - type: string - maxLength: 100 - software: - $ref: '#/components/schemas/NestedSoftwareLCM' - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - image_file_name - - last_updated - - software - - url - SoftwareLCM: - type: object - description: REST API serializer for SoftwareLCM records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - device_platform: - $ref: '#/components/schemas/NestedPlatform' - version: - type: string - maxLength: 50 - alias: - type: string - nullable: true - maxLength: 50 - release_date: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - title: End of Software Support - documentation_url: - type: string - format: uri - maxLength: 200 - software_images: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - image_file_name: - type: string - maxLength: 100 - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - required: - - display - - id - - image_file_name - - url - long_term_support: - type: boolean - pre_release: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - device_platform - - display - - id - - last_updated - - url - - version - Status: - type: object - description: Serializer for `Status` objects. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - content_types: - type: array - items: - type: string - name: - type: string - maxLength: 50 - slug: - type: string - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - content_types - - created - - display - - id - - last_updated - - name - - notes_url - - url - Status2a0Enum: - type: string - enum: - - active - - available - - planned - Status4f5Enum: - type: string - enum: [] - Status8f7Enum: - type: string - enum: - - active - - decommissioned - - staged - StatusD95Enum: - enum: - - TENTATIVE - - CONFIRMED - - CANCELLED - - IN-PROCESS - - COMPLETED - - RE-SCHEDULED - - UNKNOWN - type: string - StatusRequest: - type: object - description: Serializer for `Status` objects. - properties: - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 50 - slug: - type: string - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_types - - name - SubdeviceRoleEnum: - type: string - enum: - - parent - - child - SupplyEnum: - type: string - enum: - - ac - - dc - TagSerializerField: - type: object - description: NestedSerializer field for `Tag` object fields. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - last_updated - - name - - slug - - url - TagSerializerFieldRequest: - type: object - description: NestedSerializer field for `Tag` object fields. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - required: - - id - TagSerializerVersion13: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - tagged_items: - type: integer - readOnly: true - content_types: - type: array - items: - type: string - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - content_types - - created - - display - - id - - last_updated - - name - - notes_url - - slug - - tagged_items - - url - TagSerializerVersion13Request: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - content_types: - type: array - items: - type: string - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - content_types - - name - - slug - Tenant: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - $ref: '#/components/schemas/NestedTenantGroup' - description: - type: string - maxLength: 200 - comments: - type: string - circuit_count: - type: integer - readOnly: true - device_count: - type: integer - readOnly: true - ipaddress_count: - type: integer - readOnly: true - prefix_count: - type: integer - readOnly: true - rack_count: - type: integer - readOnly: true - site_count: - type: integer - readOnly: true - virtualmachine_count: - type: integer - readOnly: true - vlan_count: - type: integer - readOnly: true - vrf_count: - type: integer - readOnly: true - cluster_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - circuit_count - - cluster_count - - created - - device_count - - display - - id - - ipaddress_count - - last_updated - - name - - notes_url - - prefix_count - - rack_count - - site_count - - url - - virtualmachine_count - - vlan_count - - vrf_count - TenantGroup: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedTenantGroup' - nullable: true - description: - type: string - maxLength: 200 - tenant_count: - type: integer - readOnly: true - _depth: - type: integer - readOnly: true - title: ' depth' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - _depth - - created - - display - - id - - last_updated - - name - - notes_url - - tenant_count - - url - TermSideEnum: - enum: - - A - - Z - type: string - Token: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - created: - type: string - format: date-time - readOnly: true - expires: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - required: - - created - - display - - id - - url - TokenRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - expires: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - User: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - username: - type: string - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - groups: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 150 - required: - - display - - id - - name - - url - required: - - display - - id - - url - - username - UserObject: - type: object - description: UserObject Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last name - (e.g. John Smith) - maxLength: 100 - required: - - created - - display - - id - - last_updated - - notes_url - - url - - username - UserObjectGroup: - type: object - description: UserObjectGroup Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - user_objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last - name (e.g. John Smith) - maxLength: 100 - required: - - created - - display - - id - - last_updated - - notes_url - - url - - username - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - maxLength: 100 - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - UserObjectRequest: - type: object - description: UserObject Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - username: - type: string - minLength: 1 - description: Signifies the username in identify provider (e.g. john.smith) - maxLength: 100 - name: - type: string - description: Signifies the name of the user, commonly first & last name - (e.g. John Smith) - maxLength: 100 - required: - - username - VLAN: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - site: - allOf: - - $ref: '#/components/schemas/NestedSite' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/NestedVLANGroup' - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - status: - type: object - properties: - value: - type: string - enum: - - active - - deprecated - - reserved - label: - type: string - enum: - - Active - - Deprecated - - Reserved - role: - allOf: - - $ref: '#/components/schemas/NestedRole' - nullable: true - description: - type: string - maxLength: 200 - prefix_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - prefix_count - - status - - url - - vid - VLANGroup: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - allOf: - - $ref: '#/components/schemas/NestedSite' - nullable: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - description: - type: string - maxLength: 200 - vlan_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - - vlan_count - VLANStatusChoices: - type: string - enum: - - active - - deprecated - - reserved - VMInterfaceSerializerVersion12: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - virtual_machine: - $ref: '#/components/schemas/NestedVirtualMachine' - name: - type: string - maxLength: 64 - enabled: - type: boolean - parent_interface: - allOf: - - $ref: '#/components/schemas/NestedVMInterface' - nullable: true - bridge: - allOf: - - $ref: '#/components/schemas/NestedVMInterface' - nullable: true - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - description: - type: string - maxLength: 200 - mode: - type: object - properties: - value: - type: string - enum: - - access - - tagged - - tagged-all - label: - type: string - enum: - - Access - - Tagged - - Tagged (All) - untagged_vlan: - allOf: - - $ref: '#/components/schemas/NestedVLAN' - nullable: true - tagged_vlans: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - maxLength: 64 - required: - - display - - id - - name - - url - - vid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - display - - id - - name - - notes_url - - url - - virtual_machine - VRF: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF - description: - type: string - maxLength: 200 - import_targets: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Route target value (formatted in accordance with RFC - 4360) - maxLength: 21 - required: - - display - - id - - name - - url - export_targets: - type: array - items: - type: object - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - description: Route target value (formatted in accordance with RFC - 4360) - maxLength: 21 - required: - - display - - id - - name - - url - ipaddress_count: - type: integer - readOnly: true - prefix_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - ipaddress_count - - last_updated - - name - - notes_url - - prefix_count - - url - ValidatedSoftwareLCM: - type: object - description: REST API serializer for ValidatedSoftwareLCM records. - properties: - display: - type: string - readOnly: true - description: Human friendly display value - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - software: - $ref: '#/components/schemas/NestedSoftwareLCM' - devices: - type: array - items: - type: string - format: uuid - device_types: - type: array - items: - type: string - format: uuid - device_roles: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - start: - type: string - format: date - title: Valid Since - end: - type: string - format: date - nullable: true - title: Valid Until - preferred: - type: boolean - title: Preferred Version - valid: - type: string - readOnly: true - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - last_updated - - software - - start - - url - - valid - VirtualChassis: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - allOf: - - $ref: '#/components/schemas/NestedDevice' - nullable: true - member_count: - type: integer - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - created - - display - - id - - last_updated - - member_count - - name - - notes_url - - url - VirtualMachineStatusChoices: - type: string - enum: - - active - - decommissioning - - failed - - offline - - planned - - staged - VirtualMachineWithConfigContext: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 64 - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioning - - failed - - offline - - planned - - staged - label: - type: string - enum: - - Active - - Decommissioning - - Failed - - Offline - - Planned - - Staged - site: - allOf: - - $ref: '#/components/schemas/NestedSite' - readOnly: true - location: - allOf: - - $ref: '#/components/schemas/NestedLocation' - readOnly: true - nullable: true - cluster: - $ref: '#/components/schemas/NestedCluster' - role: - allOf: - - $ref: '#/components/schemas/NestedDeviceRole' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/NestedTenant' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/NestedPlatform' - nullable: true - primary_ip: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - readOnly: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - vcpus: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - comments: - type: string - local_context_data: - type: object - additionalProperties: {} - nullable: true - local_context_schema: - allOf: - - $ref: '#/components/schemas/NestedConfigContextSchema' - nullable: true - config_context: - type: object - additionalProperties: {} - readOnly: true - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - notes_url: - type: string - format: uri - readOnly: true - custom_fields: - type: object - additionalProperties: {} - required: - - cluster - - config_context - - created - - display - - id - - last_updated - - location - - name - - notes_url - - primary_ip - - site - - status - - url - VulnerabilityLCM: - type: object - description: REST API serializer for VulnerabilityLCM records. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - cve: - allOf: - - $ref: '#/components/schemas/NestedCVELCM' - readOnly: true - software: - allOf: - - $ref: '#/components/schemas/NestedSoftwareLCM' - readOnly: true - device: - allOf: - - $ref: '#/components/schemas/NestedDevice' - readOnly: true - inventory_item: - allOf: - - $ref: '#/components/schemas/NestedInventoryItem' - readOnly: true - status: - type: object - properties: - value: - type: string - enum: [] - label: - type: string - enum: [] - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - cve - - device - - display - - id - - inventory_item - - last_updated - - software - - status - - url - VulnerabilityLCMRequest: - type: object - description: REST API serializer for VulnerabilityLCM records. - properties: - status: - $ref: '#/components/schemas/Status4f5Enum' - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - status - Webhook: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - url: - type: string - format: uri - readOnly: true - content_types: - type: array - items: - type: string - name: - type: string - maxLength: 150 - type_create: - type: boolean - description: Call this webhook when a matching object is created. - type_update: - type: boolean - description: Call this webhook when a matching object is updated. - type_delete: - type: boolean - description: Call this webhook when a matching object is deleted. - payload_url: - type: string - title: URL - description: A POST will be sent to this URL when the webhook is called. - maxLength: 500 - http_method: - $ref: '#/components/schemas/HttpMethodEnum' - http_content_type: - type: string - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is support with the - same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a 'X-Hook-Signature' - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: - type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - notes_url: - type: string - format: uri - readOnly: true - required: - - content_types - - created - - display - - id - - last_updated - - name - - notes_url - - payload_url - - url - WebhookRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - content_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 150 - type_create: - type: boolean - description: Call this webhook when a matching object is created. - type_update: - type: boolean - description: Call this webhook when a matching object is updated. - type_delete: - type: boolean - description: Call this webhook when a matching object is deleted. - payload_url: - type: string - minLength: 1 - title: URL - description: A POST will be sent to this URL when the webhook is called. - maxLength: 500 - http_method: - $ref: '#/components/schemas/HttpMethodEnum' - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is support with the - same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a 'X-Hook-Signature' - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: - type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - required: - - content_types - - name - - payload_url - WidthEnum: - type: integer - enum: - - 10 - - 19 - - 21 - - 23 - WritableAddressFamilyRequest: - type: object - description: REST API serializer for AddressFamily records. - properties: - afi_safi: - $ref: '#/components/schemas/AfiSafiEnum' - routing_instance: - type: string - format: uuid - title: BGP Routing Instance - vrf: - type: string - format: uuid - nullable: true - export_policy: - type: string - maxLength: 100 - import_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - required: - - afi_safi - - routing_instance - WritableAddressObjectGroupRequest: - type: object - description: AddressObjectGroup Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for a group address objects. - maxLength: 100 - required: - - name - WritableAddressObjectRequest: - type: object - description: AddressObject Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name descriptor for an address object type. - maxLength: 100 - fqdn: - type: string - format: uuid - nullable: true - ip_range: - type: string - format: uuid - nullable: true - ip_address: - type: string - format: uuid - nullable: true - prefix: - type: string - format: uuid - nullable: true - required: - - name - WritableAggregateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - prefix: - type: string - minLength: 1 - rir: - type: string - format: uuid - tenant: - type: string - format: uuid - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - prefix - - rir - WritableAutonomousSystemRequest: - type: object - description: REST API serializer for AutonomousSystem records. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 32-bit autonomous system number - description: - type: string - maxLength: 200 - status: - $ref: '#/components/schemas/Status2a0Enum' - provider: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - asn - - status - WritableBGPRoutingInstanceRequest: - type: object - description: REST API serializer for Peering records. - properties: - device: - type: string - format: uuid - description: - type: string - maxLength: 200 - router_id: - type: string - format: uuid - nullable: true - autonomous_system: - type: string - format: uuid - custom_fields: - type: object - additionalProperties: {} - required: - - autonomous_system - - device - WritableCVELCMRequest: - type: object - description: REST API serializer for CVELCM records. - properties: - name: - type: string - minLength: 1 - maxLength: 16 - published_date: - type: string - format: date - link: - type: string - format: uri - minLength: 1 - maxLength: 200 - status: - $ref: '#/components/schemas/Status4f5Enum' - description: - type: string - nullable: true - maxLength: 255 - severity: - $ref: '#/components/schemas/SeverityEnum' - cvss: - type: number - format: double - nullable: true - title: CVSS Base Score - cvss_v2: - type: number - format: double - nullable: true - title: CVSSv2 Score - cvss_v3: - type: number - format: double - nullable: true - title: CVSSv3 Score - fix: - type: string - nullable: true - maxLength: 255 - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - link - - name - - published_date - WritableCableRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - termination_a_type: - type: string - termination_a_id: - type: string - format: uuid - termination_b_type: - type: string - termination_b_id: - type: string - format: uuid - type: - oneOf: - - $ref: '#/components/schemas/CableTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - status: - $ref: '#/components/schemas/CableStatusChoices' - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - length_unit: - oneOf: - - $ref: '#/components/schemas/LengthUnitEnum' - - $ref: '#/components/schemas/BlankEnum' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - status - - termination_a_id - - termination_a_type - - termination_b_id - - termination_b_type - WritableCircuitRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - maxLength: 100 - provider: - type: string - format: uuid - type: - type: string - format: uuid - status: - $ref: '#/components/schemas/CircuitStatusChoices' - tenant: - type: string - format: uuid - nullable: true - install_date: - type: string - format: date - nullable: true - title: Date installed - commit_rate: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Commit rate (Kbps) - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - cid - - provider - - status - - type - WritableCircuitTerminationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - circuit: - type: string - format: uuid - term_side: - allOf: - - $ref: '#/components/schemas/TermSideEnum' - title: Termination - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - provider_network: - type: string - format: uuid - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - maxLength: 100 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - circuit - - term_side - WritableClusterRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - type: string - format: uuid - group: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - type - WritableConfigContextRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 100 - owner_content_type: - type: string - nullable: true - owner_object_id: - type: string - format: uuid - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - schema: - type: string - format: uuid - nullable: true - description: Optional schema to validate the structure of the data - is_active: - type: boolean - regions: - type: array - items: - type: string - format: uuid - sites: - type: array - items: - type: string - format: uuid - locations: - type: array - items: - type: string - format: uuid - roles: - type: array - items: - type: string - format: uuid - device_types: - type: array - items: - type: string - format: uuid - platforms: - type: array - items: - type: string - format: uuid - cluster_groups: - type: array - items: - type: string - format: uuid - clusters: - type: array - items: - type: string - format: uuid - tenant_groups: - type: array - items: - type: string - format: uuid - tenants: - type: array - items: - type: string - format: uuid - tags: - type: array - items: - type: string - data: - type: object - additionalProperties: {} - required: - - data - - name - WritableConsolePortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - WritableConsolePortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - WritableConsoleServerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - WritableConsoleServerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/ConsolePortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - WritableContactLCMRequest: - type: object - description: API serializer. - properties: - name: - type: string - nullable: true - minLength: 1 - maxLength: 80 - address: - type: string - maxLength: 200 - phone: - type: string - maxLength: 20 - email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - priority: - type: integer - maximum: 2147483647 - minimum: 0 - contract: - type: string - format: uuid - nullable: true - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - contract - - name - WritableContractLCMRequest: - type: object - description: API serializer. - properties: - provider: - type: string - format: uuid - nullable: true - title: Vendor - name: - type: string - minLength: 1 - maxLength: 100 - start: - type: string - format: date - nullable: true - title: Contract Start Date - end: - type: string - format: date - nullable: true - title: Contract End Date - cost: - type: string - format: decimal - pattern: ^-?\d{0,13}(?:\.\d{0,2})?$ - nullable: true - title: Contract Cost - support_level: - type: string - nullable: true - maxLength: 64 - contract_type: - type: string - nullable: true - maxLength: 32 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableCustomFieldChoiceRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - field: - type: string - format: uuid - value: - type: string - minLength: 1 - maxLength: 100 - weight: - type: integer - maximum: 32767 - minimum: 0 - description: Higher weights appear later in the list - required: - - field - - value - WritableDeviceBayRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - installed_device: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - WritableDeviceBayTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - WritableDeviceRedundancyGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - failover_strategy: - oneOf: - - $ref: '#/components/schemas/FailoverStrategyEnum' - - $ref: '#/components/schemas/BlankEnum' - secrets_group: - type: string - format: uuid - nullable: true - comments: - type: string - status: - $ref: '#/components/schemas/LocationStatusChoices' - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - status - WritableDeviceTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - manufacturer: - type: string - format: uuid - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: integer - maximum: 32767 - minimum: 0 - title: Height (U) - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces - subdevice_role: - title: Parent/child status - description: Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - oneOf: - - $ref: '#/components/schemas/SubdeviceRoleEnum' - - $ref: '#/components/schemas/BlankEnum' - front_image: - type: string - format: binary - rear_image: - type: string - format: binary - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - manufacturer - - model - WritableDeviceWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - nullable: true - maxLength: 64 - device_type: - type: string - format: uuid - device_role: - type: string - format: uuid - tenant: - type: string - format: uuid - nullable: true - platform: - type: string - format: uuid - nullable: true - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - rack: - type: string - format: uuid - nullable: true - position: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - title: Position (U) - description: The lowest-numbered unit occupied by the device - face: - title: Rack face - oneOf: - - $ref: '#/components/schemas/FaceEnum' - - $ref: '#/components/schemas/BlankEnum' - status: - $ref: '#/components/schemas/DeviceStatusChoices' - primary_ip4: - type: string - format: uuid - nullable: true - title: Primary IPv4 - primary_ip6: - type: string - format: uuid - nullable: true - title: Primary IPv6 - secrets_group: - type: string - format: uuid - nullable: true - cluster: - type: string - format: uuid - nullable: true - virtual_chassis: - type: string - format: uuid - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 - nullable: true - device_redundancy_group: - type: string - format: uuid - nullable: true - device_redundancy_group_priority: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: The priority the device has in the device redundancy group. - comments: - type: string - local_context_schema: - type: string - format: uuid - nullable: true - description: Optional schema to validate the structure of the data - local_context_data: - type: object - additionalProperties: {} - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_role - - device_type - - site - - status - WritableDynamicGroupMembershipRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - group: - type: string - format: uuid - parent_group: - type: string - format: uuid - operator: - $ref: '#/components/schemas/OperatorEnum' - weight: - type: integer - maximum: 32767 - minimum: 0 - required: - - group - - operator - - parent_group - - weight - WritableFQDNRequest: - type: object - description: FQDN Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Resolvable fully qualified domain name (e.g. networktocode.com) - maxLength: 254 - required: - - name - WritableFrontPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - type: string - format: uuid - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - - rear_port - - type - WritableFrontPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - rear_port: - type: string - format: uuid - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - - rear_port - - type - WritableGitRepositoryRequest: - type: object - description: Git repositories defined as a data source. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - remote_url: - type: string - format: uri - minLength: 1 - description: Only HTTP and HTTPS URLs are presently supported - maxLength: 255 - branch: - type: string - minLength: 1 - maxLength: 64 - token: - type: string - writeOnly: true - minLength: 1 - username: - type: string - maxLength: 64 - secrets_group: - type: string - format: uuid - nullable: true - current_head: - type: string - description: Commit hash of the most recent fetch from the selected branch. - Used for syncing between workers. - maxLength: 48 - provided_contents: - type: array - items: - oneOf: - - $ref: '#/components/schemas/ProvidedContentsEnum' - - $ref: '#/components/schemas/BlankEnum' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - remote_url - WritableGoldenConfigSettingRequest: - type: object - description: Serializer for GoldenConfigSetting object. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - scope: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - backup_path_template: - type: string - title: Backup Path in Jinja Template Form - description: The Jinja path representation of where the backup file will - be found. The variable `obj` is available as the device instance object - of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - intended_path_template: - type: string - title: Intended Path in Jinja Template Form - description: The Jinja path representation of where the generated file will - be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - maxLength: 255 - jinja_path_template: - type: string - title: Template Path in Jinja Template Form - description: The Jinja path representation of where the Jinja template can - be found. e.g. `{{obj.platform.slug}}.j2` - maxLength: 255 - backup_test_connectivity: - type: boolean - title: Backup Test - description: Whether or not to pretest the connectivity of the device by - verifying there is a resolvable IP that can connect to port 22. - backup_repository: - type: string - format: uuid - nullable: true - intended_repository: - type: string - format: uuid - nullable: true - jinja_repository: - type: string - format: uuid - nullable: true - sot_agg_query: - type: string - format: uuid - nullable: true - dynamic_group: - type: string - format: uuid - required: - - dynamic_group - - name - - slug - WritableHardwareLCMRequest: - type: object - description: API serializer. - properties: - device_type: - type: string - format: uuid - nullable: true - inventory_item: - type: string - nullable: true - title: Inventory Item Part - maxLength: 255 - release_date: - type: string - format: date - nullable: true - end_of_sale: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - end_of_sw_releases: - type: string - format: date - nullable: true - title: End of Software Releases - end_of_security_patches: - type: string - format: date - nullable: true - documentation_url: - type: string - format: uri - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - WritableIPAddressRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - address: - type: string - minLength: 1 - vrf: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/IPAddressStatusChoices' - role: - description: The functional role of this IP - oneOf: - - $ref: '#/components/schemas/RoleEnum' - - $ref: '#/components/schemas/BlankEnum' - assigned_object_type: - type: string - nullable: true - assigned_object_id: - type: string - format: uuid - nullable: true - nat_inside: - type: string - format: uuid - nullable: true - title: NAT (Inside) - description: The IP Addresses for which this address is the "outside" IP - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^[0-9A-Za-z._-]+$ - maxLength: 255 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - address - - status - WritableInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - enabled: - type: boolean - parent_interface: - type: string - format: uuid - nullable: true - description: Assigned parent interface - bridge: - type: string - format: uuid - nullable: true - title: Bridge interface - description: Assigned bridge interface - lag: - type: string - format: uuid - nullable: true - title: Parent LAG - description: Assigned LAG interface - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management - description: - type: string - maxLength: 200 - mode: - oneOf: - - $ref: '#/components/schemas/ModeEnum' - - $ref: '#/components/schemas/BlankEnum' - untagged_vlan: - type: string - format: uuid - nullable: true - tagged_vlans: - type: array - items: - type: string - format: uuid - title: Tagged VLANs - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - - status - - type - WritableInterfaceTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/InterfaceTypeChoices' - mgmt_only: - type: boolean - title: Management only - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - - type - WritableInventoryItemRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - parent: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - manufacturer: - type: string - format: uuid - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - WritableLocationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - location_type: - type: string - format: uuid - parent: - type: string - format: uuid - nullable: true - site: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - location_type - - name - - status - WritableLocationTypeRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: string - format: uuid - nullable: true - nestable: - type: boolean - description: Allow Locations of this type to be parents/children of other - Locations of this same type - content_types: - type: array - items: - type: string - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableNATPolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - remark: - type: boolean - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - required: - - name - WritableObjectPermissionRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - enabled: - type: boolean - object_types: - type: array - items: - type: string - groups: - type: array - items: - type: integer - users: - type: array - items: - type: string - format: uuid - actions: - type: object - additionalProperties: {} - description: The list of actions granted by this permission - constraints: - type: object - additionalProperties: {} - nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - required: - - actions - - name - - object_types - WritablePeerEndpointRequest: - type: object - description: REST API serializer for PeerEndpoint records. - properties: - routing_instance: - type: string - format: uuid - nullable: true - title: BGP Routing Instance - source_ip: - type: string - format: uuid - nullable: true - title: BGP Peer IP - source_interface: - type: string - format: uuid - nullable: true - autonomous_system: - type: string - format: uuid - nullable: true - peer_group: - type: string - format: uuid - nullable: true - peer: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - peering: - type: string - format: uuid - secret: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - enabled: - type: boolean - custom_fields: - type: object - additionalProperties: {} - required: - - peering - WritablePeerGroupRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - source_ip: - type: string - format: uuid - nullable: true - title: Source IP Address - source_interface: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - type: string - format: uuid - nullable: true - routing_instance: - type: string - format: uuid - template: - type: string - format: uuid - nullable: true - secret: - type: string - format: uuid - nullable: true - role: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - custom_fields: - type: object - additionalProperties: {} - required: - - name - - routing_instance - WritablePeerGroupTemplateRequest: - type: object - description: REST API serializer for PeerGroup records. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - role: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - enabled: - type: boolean - autonomous_system: - type: string - format: uuid - nullable: true - import_policy: - type: string - maxLength: 100 - export_policy: - type: string - maxLength: 100 - secret: - type: string - format: uuid - nullable: true - custom_fields: - type: object - additionalProperties: {} - required: - - name - WritablePlatformRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - type: string - format: uuid - nullable: true - description: Optionally limit this platform to devices of a certain manufacturer - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritablePolicyRuleRequest: - type: object - description: PolicyRule Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - source_zone: - $ref: '#/components/schemas/ZoneRequest' - destination_zone: - $ref: '#/components/schemas/ZoneRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - name: - type: string - minLength: 1 - maxLength: 100 - action: - $ref: '#/components/schemas/ActionEnum' - log: - type: boolean - request_id: - type: string - nullable: true - maxLength: 100 - description: - type: string - nullable: true - maxLength: 200 - index: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - required: - - action - - name - WritablePowerFeedRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - power_panel: - type: string - format: uuid - rack: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - status: - $ref: '#/components/schemas/PowerFeedStatusChoices' - type: - $ref: '#/components/schemas/PowerFeedTypeChoices' - supply: - $ref: '#/components/schemas/SupplyEnum' - phase: - $ref: '#/components/schemas/PhaseEnum' - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - power_panel - - status - WritablePowerOutletRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/PowerOutletTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - power_port: - type: string - format: uuid - nullable: true - feed_leg: - description: Phase (for three-phase feeds) - oneOf: - - $ref: '#/components/schemas/FeedLegEnum' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - WritablePowerOutletTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/PowerOutletTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - power_port: - type: string - format: uuid - nullable: true - feed_leg: - description: Phase (for three-phase feeds) - oneOf: - - $ref: '#/components/schemas/FeedLegEnum' - - $ref: '#/components/schemas/BlankEnum' - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - WritablePowerPanelRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - rack_group: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - site - WritablePowerPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - description: Physical port type - oneOf: - - $ref: '#/components/schemas/PowerPortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - WritablePowerPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - oneOf: - - $ref: '#/components/schemas/PowerPortTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - maximum_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 32767 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - WritablePrefixRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - prefix: - type: string - minLength: 1 - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - vrf: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - vlan: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/PrefixStatusChoices' - role: - type: string - format: uuid - nullable: true - description: The primary function of this prefix - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - prefix - - status - WritableProviderNetworkRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - provider: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - provider - WritableRackGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - parent: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - site - WritableRackRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - facility_id: - type: string - nullable: true - description: Locally-assigned identifier - maxLength: 50 - site: - type: string - format: uuid - location: - type: string - format: uuid - nullable: true - group: - type: string - format: uuid - nullable: true - description: Assigned group - tenant: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/RackStatusChoices' - role: - type: string - format: uuid - nullable: true - description: Functional role - serial: - type: string - title: Serial number - maxLength: 255 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - oneOf: - - $ref: '#/components/schemas/RackTypeChoices' - - $ref: '#/components/schemas/BlankEnum' - width: - allOf: - - $ref: '#/components/schemas/WidthEnum' - description: Rail-to-rail width - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - oneOf: - - $ref: '#/components/schemas/OuterUnitEnum' - - $ref: '#/components/schemas/BlankEnum' - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - site - - status - WritableRackReservationRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - rack: - type: string - format: uuid - units: - type: object - additionalProperties: {} - user: - type: string - format: uuid - tenant: - type: string - format: uuid - nullable: true - description: - type: string - minLength: 1 - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - description - - rack - - units - - user - WritableRearPortRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device - - name - - type - WritableRearPortTemplateRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device_type: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - $ref: '#/components/schemas/PortTypeChoices' - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_type - - name - - type - WritableRegionRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableRelationshipAssociationRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - relationship: - type: string - format: uuid - source_type: - type: string - source_id: - type: string - format: uuid - destination_type: - type: string - destination_id: - type: string - format: uuid - required: - - destination_id - - destination_type - - relationship - - source_id - - source_type - WritableRouteTargetRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableSecretsGroupAssociationRequest: - type: object - description: Serializer for `SecretsGroupAssociation` objects. - properties: - group: - type: string - format: uuid - access_type: - $ref: '#/components/schemas/AccessTypeEnum' - secret_type: - $ref: '#/components/schemas/SecretTypeEnum' - secret: - type: string - format: uuid - required: - - access_type - - group - - secret - - secret_type - WritableServiceObjectGroupRequest: - type: object - description: ServiceObjectGroup Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - WritableServiceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - device: - type: string - format: uuid - nullable: true - virtual_machine: - type: string - format: uuid - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - protocol: - $ref: '#/components/schemas/ProtocolEnum' - ipaddresses: - type: array - items: - type: string - format: uuid - title: IP addresses - title: IP addresses - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - ports - - protocol - WritableSiteRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - $ref: '#/components/schemas/LocationStatusChoices' - region: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - nullable: true - description: 32-bit autonomous system number - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - maxLength: 200 - shipping_address: - type: string - maxLength: 200 - latitude: - type: string - format: decimal - pattern: ^-?\d{0,2}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (latitude) - longitude: - type: string - format: decimal - pattern: ^-?\d{0,3}(?:\.\d{0,6})?$ - nullable: true - description: GPS coordinate (longitude) - contact_name: - type: string - maxLength: 50 - contact_phone: - type: string - maxLength: 20 - contact_email: - type: string - format: email - title: Contact E-mail - maxLength: 254 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - status - WritableSoftwareImageLCMRequest: - type: object - description: REST API serializer for SoftwareImageLCM records. - properties: - image_file_name: - type: string - minLength: 1 - maxLength: 100 - software: - type: string - format: uuid - title: Software Version - device_types: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - download_url: - type: string - format: uri - maxLength: 200 - image_file_checksum: - type: string - maxLength: 256 - default_image: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - image_file_name - - software - WritableSoftwareLCMRequest: - type: object - description: REST API serializer for SoftwareLCM records. - properties: - device_platform: - type: string - format: uuid - version: - type: string - minLength: 1 - maxLength: 50 - alias: - type: string - nullable: true - maxLength: 50 - release_date: - type: string - format: date - nullable: true - end_of_support: - type: string - format: date - nullable: true - title: End of Software Support - documentation_url: - type: string - format: uri - maxLength: 200 - software_images: - type: array - items: - type: string - format: uuid - long_term_support: - type: boolean - pre_release: - type: boolean - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - device_platform - - software_images - - version - WritableTenantGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableTenantRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableUserObjectGroupRequest: - type: object - description: UserObjectGroup Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - WritableUserRequest: - type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) - properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: - type: string - writeOnly: true - minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - groups: - type: array - items: - type: integer - description: The groups this user belongs to. A user will get all permissions - granted to each of their groups. - required: - - password - - username - WritableVLANGroupRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableVLANRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - site: - type: string - format: uuid - nullable: true - location: - type: string - format: uuid - nullable: true - group: - type: string - format: uuid - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: ID - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - type: string - format: uuid - nullable: true - status: - $ref: '#/components/schemas/VLANStatusChoices' - role: - type: string - format: uuid - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - status - - vid - WritableVMInterfaceRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - virtual_machine: - type: string - format: uuid - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - status: - $ref: '#/components/schemas/InterfaceStatusChoices' - parent_interface: - type: string - format: uuid - nullable: true - description: Assigned parent interface - bridge: - type: string - format: uuid - nullable: true - title: Bridge interface - description: Assigned bridge interface - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - maxLength: 18 - description: - type: string - maxLength: 200 - mode: - oneOf: - - $ref: '#/components/schemas/ModeEnum' - - $ref: '#/components/schemas/BlankEnum' - untagged_vlan: - type: string - format: uuid - nullable: true - tagged_vlans: - type: array - items: - type: string - format: uuid - title: Tagged VLANs - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - - status - - virtual_machine - WritableVRFRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - tenant: - type: string - format: uuid - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF - description: - type: string - maxLength: 200 - import_targets: - type: array - items: - type: string - format: uuid - export_targets: - type: array - items: - type: string - format: uuid - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableValidatedSoftwareLCMRequest: - type: object - description: REST API serializer for ValidatedSoftwareLCM records. - properties: - software: - type: string - format: uuid - title: Software Version - devices: - type: array - items: - type: string - format: uuid - device_types: - type: array - items: - type: string - format: uuid - device_roles: - type: array - items: - type: string - format: uuid - inventory_items: - type: array - items: - type: string - format: uuid - object_tags: - type: array - items: - type: string - format: uuid - start: - type: string - format: date - title: Valid Since - end: - type: string - format: date - nullable: true - title: Valid Until - preferred: - type: boolean - title: Preferred Version - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - software - - start - WritableVirtualChassisRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - type: string - format: uuid - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - name - WritableVirtualMachineWithConfigContextRequest: - type: object - description: |- - Base class to use for serializers based on OrganizationalModel or PrimaryModel. - - Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - status: - $ref: '#/components/schemas/VirtualMachineStatusChoices' - cluster: - type: string - format: uuid - role: - type: string - format: uuid - nullable: true - tenant: - type: string - format: uuid - nullable: true - platform: - type: string - format: uuid - nullable: true - primary_ip4: - type: string - format: uuid - nullable: true - title: Primary IPv4 - primary_ip6: - type: string - format: uuid - nullable: true - title: Primary IPv6 - vcpus: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - comments: - type: string - local_context_data: - type: object - additionalProperties: {} - nullable: true - local_context_schema: - type: string - format: uuid - nullable: true - description: Optional schema to validate the structure of the data - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - custom_fields: - type: object - additionalProperties: {} - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - required: - - cluster - - name - - status - Zone: - type: object - description: Zone Serializer. - properties: - id: - type: string - format: uuid - readOnly: true - display: - type: string - readOnly: true - description: Human friendly display value - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerField' - status: - type: object - properties: - value: - type: string - enum: - - active - - decommissioned - - staged - label: - type: string - enum: - - Active - - Decommissioned - - Staged - custom_fields: - type: object - additionalProperties: {} - notes_url: - type: string - format: uri - readOnly: true - url: - type: string - format: uri - readOnly: true - interfaces: - type: array - items: - $ref: '#/components/schemas/NestedInterface' - created: - type: string - format: date - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - description: Name of the zone (e.g. trust) - maxLength: 100 - vrfs: - type: array - items: - type: string - format: uuid - readOnly: true - required: - - created - - display - - id - - last_updated - - name - - notes_url - - url - - vrfs - ZoneRequest: - type: object - description: Zone Serializer. - properties: - tags: - type: array - items: - $ref: '#/components/schemas/TagSerializerFieldRequest' - status: - $ref: '#/components/schemas/Status8f7Enum' - relationships: - type: object - additionalProperties: - type: object - required: - - id - - url - - name - - type - properties: - id: - type: string - format: uuid - readOnly: true - url: - type: string - format: uri - readOnly: true - name: - type: string - readOnly: true - type: - type: string - readOnly: true - example: one-to-many - source: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - destination: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - peer: - type: object - properties: - label: - type: string - readOnly: true - object_type: - type: string - readOnly: true - example: dcim.site - objects: - type: array - items: - type: object - properties: - id: - type: string - format: uuid - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - additionalProperties: true - custom_fields: - type: object - additionalProperties: {} - interfaces: - type: array - items: - $ref: '#/components/schemas/NestedInterfaceRequest' - _custom_field_data: - type: object - additionalProperties: {} - title: ' custom field data' - description: - type: string - maxLength: 200 - name: - type: string - minLength: 1 - description: Name of the zone (e.g. trust) - maxLength: 100 - required: - - id - securitySchemes: - basicAuth: - type: http - scheme: basic - cookieAuth: - type: apiKey - in: cookie - name: sessionid - tokenAuth: - type: apiKey - in: header - name: Authorization - description: Token-based authentication with required prefix "Token" -servers: -- url: /api diff --git a/client/types.go b/client/types.go deleted file mode 100644 index 1019531..0000000 --- a/client/types.go +++ /dev/null @@ -1,199541 +0,0 @@ -// Package nautobot provides primitives to interact with the openapi HTTP API. -// -// Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT. -package nautobot - -import ( - "encoding/json" - "fmt" - "time" - - "github.com/deepmap/oapi-codegen/pkg/runtime" - openapi_types "github.com/deepmap/oapi-codegen/pkg/types" -) - -const ( - BasicAuthScopes = "basicAuth.Scopes" - CookieAuthScopes = "cookieAuth.Scopes" - TokenAuthScopes = "tokenAuth.Scopes" -) - -// Defines values for AccessTypeEnum. -const ( - Console AccessTypeEnum = "Console" - GNMI AccessTypeEnum = "gNMI" - Generic AccessTypeEnum = "Generic" - HTTPS AccessTypeEnum = "HTTP(S)" - NETCONF AccessTypeEnum = "NETCONF" - REST AccessTypeEnum = "REST" - RESTCONF AccessTypeEnum = "RESTCONF" - SNMP AccessTypeEnum = "SNMP" - SSH AccessTypeEnum = "SSH" -) - -// Defines values for ActionEnum. -const ( - ActionEnumAllow ActionEnum = "allow" - ActionEnumDeny ActionEnum = "deny" - ActionEnumDrop ActionEnum = "drop" - ActionEnumRemark ActionEnum = "remark" -) - -// Defines values for AddressObjectStatusLabel. -const ( - AddressObjectStatusLabelActive AddressObjectStatusLabel = "Active" - AddressObjectStatusLabelDecommissioned AddressObjectStatusLabel = "Decommissioned" - AddressObjectStatusLabelStaged AddressObjectStatusLabel = "Staged" -) - -// Defines values for AddressObjectStatusValue. -const ( - AddressObjectStatusValueActive AddressObjectStatusValue = "active" - AddressObjectStatusValueDecommissioned AddressObjectStatusValue = "decommissioned" - AddressObjectStatusValueStaged AddressObjectStatusValue = "staged" -) - -// Defines values for AddressObjectGroupAddressObjectsStatusLabel. -const ( - AddressObjectGroupAddressObjectsStatusLabelActive AddressObjectGroupAddressObjectsStatusLabel = "Active" - AddressObjectGroupAddressObjectsStatusLabelDecommissioned AddressObjectGroupAddressObjectsStatusLabel = "Decommissioned" - AddressObjectGroupAddressObjectsStatusLabelStaged AddressObjectGroupAddressObjectsStatusLabel = "Staged" -) - -// Defines values for AddressObjectGroupAddressObjectsStatusValue. -const ( - AddressObjectGroupAddressObjectsStatusValueActive AddressObjectGroupAddressObjectsStatusValue = "active" - AddressObjectGroupAddressObjectsStatusValueDecommissioned AddressObjectGroupAddressObjectsStatusValue = "decommissioned" - AddressObjectGroupAddressObjectsStatusValueStaged AddressObjectGroupAddressObjectsStatusValue = "staged" -) - -// Defines values for AddressObjectGroupStatusLabel. -const ( - AddressObjectGroupStatusLabelActive AddressObjectGroupStatusLabel = "Active" - AddressObjectGroupStatusLabelDecommissioned AddressObjectGroupStatusLabel = "Decommissioned" - AddressObjectGroupStatusLabelStaged AddressObjectGroupStatusLabel = "Staged" -) - -// Defines values for AddressObjectGroupStatusValue. -const ( - AddressObjectGroupStatusValueActive AddressObjectGroupStatusValue = "active" - AddressObjectGroupStatusValueDecommissioned AddressObjectGroupStatusValue = "decommissioned" - AddressObjectGroupStatusValueStaged AddressObjectGroupStatusValue = "staged" -) - -// Defines values for AfiSafiEnum. -const ( - Ipv4Flowspec AfiSafiEnum = "ipv4_flowspec" - Ipv4Multicast AfiSafiEnum = "ipv4_multicast" - Ipv4Unicast AfiSafiEnum = "ipv4_unicast" - Ipv6Flowspec AfiSafiEnum = "ipv6_flowspec" - Ipv6Multicast AfiSafiEnum = "ipv6_multicast" - Ipv6Unicast AfiSafiEnum = "ipv6_unicast" - L2Evpn AfiSafiEnum = "l2_evpn" - L2Vpls AfiSafiEnum = "l2_vpls" - Vpnv4Multicast AfiSafiEnum = "vpnv4_multicast" - Vpnv4Unicast AfiSafiEnum = "vpnv4_unicast" - Vpnv6Multicast AfiSafiEnum = "vpnv6_multicast" - Vpnv6Unicast AfiSafiEnum = "vpnv6_unicast" -) - -// Defines values for AggregateFamilyLabel. -const ( - AggregateFamilyLabelIPv4 AggregateFamilyLabel = "IPv4" - AggregateFamilyLabelIPv6 AggregateFamilyLabel = "IPv6" -) - -// Defines values for AggregateFamilyValue. -const ( - AggregateFamilyValueN4 AggregateFamilyValue = 4 - AggregateFamilyValueN6 AggregateFamilyValue = 6 -) - -// Defines values for AutonomousSystemStatusLabel. -const ( - AutonomousSystemStatusLabelActive AutonomousSystemStatusLabel = "Active" - AutonomousSystemStatusLabelAvailable AutonomousSystemStatusLabel = "Available" - AutonomousSystemStatusLabelPlanned AutonomousSystemStatusLabel = "Planned" -) - -// Defines values for AutonomousSystemStatusValue. -const ( - AutonomousSystemStatusValueActive AutonomousSystemStatusValue = "active" - AutonomousSystemStatusValueAvailable AutonomousSystemStatusValue = "available" - AutonomousSystemStatusValuePlanned AutonomousSystemStatusValue = "planned" -) - -// Defines values for BulkWritableAddressObjectGroupRequestAddressObjectsStatus. -const ( - BulkWritableAddressObjectGroupRequestAddressObjectsStatusActive BulkWritableAddressObjectGroupRequestAddressObjectsStatus = "active" - BulkWritableAddressObjectGroupRequestAddressObjectsStatusDecommissioned BulkWritableAddressObjectGroupRequestAddressObjectsStatus = "decommissioned" - BulkWritableAddressObjectGroupRequestAddressObjectsStatusStaged BulkWritableAddressObjectGroupRequestAddressObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatusActive BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatusStaged BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatusActive BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatusStaged BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatusActive BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatusStaged BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolAH BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolAN BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolARIS BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolAX25 BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolBNA BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCBT BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCFTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCHAOS BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCPHB BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCPNX BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCRTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCRUDP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDCCP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDDP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDDX BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDGP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDSR BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEGP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEIGRP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEMCON BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolENCAP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolESP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolETHERIP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEthernet BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolFC BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolFIRE BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolGGP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolGMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolGRE BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolHIP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolHMP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIATP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolICMP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDPR BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDRP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIFMP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIGMP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIGP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIL BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolINLSP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPCV BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPComp BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPIP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPLT BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPPC BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIRTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolISOIP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolL2TP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolLARP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMERITINP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMFENSP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMOBILE BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMUX BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolManet BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolN3PC BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNARP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNETBLT BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNVPII BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPGM BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPIM BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPIPE BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPNNI BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPRM BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPUP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPVP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolQNX BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRDP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolROHC BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRSVP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRVD BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSATMON BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCCSP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCPS BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSDRP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSKIP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSM BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSMP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSNP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSPS BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSRP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSUNND BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTCF BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTCP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTLSP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolUDP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolUDPLite BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolUTI BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolVINES BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolVISA BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolVMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWBMON BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWESP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWSN BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolXNET BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolXTP BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatusActive BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatusStaged BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatusActive BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatusStaged BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolAH BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolAN BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolARIS BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolAX25 BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolBNA BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCBT BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCFTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCHAOS BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCPHB BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCPNX BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCRTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCRUDP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDCCP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDDP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDDX BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDGP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDSR BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEGP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEIGRP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEMCON BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolENCAP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolESP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolETHERIP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEthernet BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolFC BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolFIRE BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolGGP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolGMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolGRE BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolHIP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolHMP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIATP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolICMP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIDPR BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIDRP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIFMP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIGMP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIGP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIL BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolINLSP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPCV BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPComp BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPIP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPLT BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPPC BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIRTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolISOIP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolL2TP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolLARP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMERITINP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMFENSP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMOBILE BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMUX BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolManet BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolN3PC BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNARP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNETBLT BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNVPII BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPGM BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPIM BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPIPE BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPNNI BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPRM BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPUP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPVP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolQNX BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRDP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolROHC BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRSVP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRVD BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSATMON BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSCCSP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSCPS BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSCTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSDRP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSKIP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSM BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSMP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSNP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSPS BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSRP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSUNND BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTCF BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTCP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTLSP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolUDP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolUDPLite BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolUTI BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolVINES BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolVISA BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolVMTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWBMON BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWESP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWSN BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolXNET BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolXTP BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatusActive BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatusStaged BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatusActive BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatusStaged BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatusActive BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatusStaged BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatusActive BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatusStaged BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolAH BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolAN BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolARIS BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolAX25 BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolBNA BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCBT BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCFTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCHAOS BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCPHB BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCPNX BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCRTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCRUDP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDCCP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDDP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDDX BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDGP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDSR BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEGP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEIGRP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEMCON BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolENCAP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolESP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolETHERIP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEthernet BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolFC BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolFIRE BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolGGP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolGMTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolGRE BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolHIP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolHMP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIATP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolICMP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIDPR BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIDRP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIFMP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIGMP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIGP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIL BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolINLSP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPCV BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPComp BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPIP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPLT BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPPC BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIRTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolISOIP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolL2TP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolLARP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMERITINP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMFENSP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMOBILE BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMUX BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolManet BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolN3PC BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNARP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNETBLT BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNVPII BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPGM BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPIM BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPIPE BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPNNI BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPRM BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPUP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPVP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolQNX BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRDP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolROHC BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRSVP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRVD BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSATMON BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSCCSP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSCPS BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSCTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSDRP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSKIP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSM BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSMP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSNP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSPS BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSRP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSUNND BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTCF BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTCP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTLSP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolUDP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolUDPLite BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolUTI BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolVINES BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolVISA BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolVMTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWBMON BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWESP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWSN BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolXNET BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolXTP BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatusActive BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatusStaged BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatusActive BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatusStaged BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolAH BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolAN BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolARIS BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolAX25 BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolBNA BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCBT BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCFTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCHAOS BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCPHB BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCPNX BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCRTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCRUDP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDCCP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDDP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDDX BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDGP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDSR BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEGP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEIGRP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEMCON BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolENCAP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolESP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolETHERIP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEthernet BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolFC BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolFIRE BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolGGP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolGMTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolGRE BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolHIP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolHMP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIATP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolICMP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIDPR BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIDRP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIFMP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIGMP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIGP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIL BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolINLSP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPCV BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPComp BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPIP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPLT BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPPC BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIRTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolISOIP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolL2TP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolLARP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMERITINP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMFENSP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMOBILE BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMUX BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolManet BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolN3PC BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNARP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNETBLT BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNVPII BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPGM BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPIM BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPIPE BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPNNI BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPRM BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPUP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPVP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolQNX BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRDP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolROHC BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRSVP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRVD BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSATMON BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSCCSP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSCPS BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSCTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSDRP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSKIP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSM BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSMP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSNP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSPS BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSRP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSUNND BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTCF BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTCP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTLSP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolUDP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolUDPLite BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolUTI BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolVINES BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolVISA BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolVMTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWBMON BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWESP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWSN BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolXNET BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolXTP BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus. -const ( - BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatusActive BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus = "active" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatusDecommissioned BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatusStaged BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatusActive BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatusActive BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatusActive BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatusStaged BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAH BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAN BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolARIS BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAX25 BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBNA BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCBT BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCFTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCHAOS BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCPHB BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCPNX BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCRTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCRUDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDCCP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDDX BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDSR BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEIGRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEMCON BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolENCAP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolESP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolETHERIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEthernet BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolFC BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolFIRE BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGRE BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolHIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolHMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIATP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolICMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDPR BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIFMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIGMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIL BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolINLSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPCV BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPComp BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPLT BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPPC BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIRTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolISOIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolL2TP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLARP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMERITINP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMFENSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMOBILE BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMUX BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolManet BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolN3PC BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNARP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNETBLT BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNVPII BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPGM BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPIM BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPIPE BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPNNI BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPRM BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPUP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPVP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolQNX BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolROHC BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRSVP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRVD BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSATMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCCSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCPS BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSDRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSKIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSM BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSNP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSPS BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSUNND BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTCF BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTCP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTLSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUDPLite BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUTI BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVINES BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVISA BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWBMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWESP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWSN BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXNET BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatusActive BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatusActive BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolAH BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolAN BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolARIS BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolAX25 BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolBNA BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCBT BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCFTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCHAOS BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCPHB BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCPNX BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCRTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCRUDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDCCP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDDX BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDSR BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEIGRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEMCON BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolENCAP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolESP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolETHERIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEthernet BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolFC BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolFIRE BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolGGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolGMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolGRE BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolHIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolHMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIATP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolICMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIDPR BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIDRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIFMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIGMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIL BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolINLSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPCV BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPComp BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPLT BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPPC BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIRTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolISOIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolL2TP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolLARP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMERITINP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMFENSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMOBILE BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMUX BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolManet BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolN3PC BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNARP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNETBLT BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNVPII BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPGM BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPIM BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPIPE BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPNNI BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPRM BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPUP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPVP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolQNX BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolROHC BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRSVP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRVD BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSATMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSCCSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSCPS BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSCTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSDRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSKIP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSM BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSMP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSNP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSPS BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSRP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSUNND BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTCF BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTCP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTLSP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolUDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolUDPLite BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolUTI BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolVINES BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolVISA BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolVMTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWBMON BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWESP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWSN BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolXNET BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolXTP BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatusActive BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatusStaged BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatusActive BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatusActive BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatusActive BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatusStaged BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolAH BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolAN BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolARIS BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolAX25 BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolBNA BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCBT BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCFTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCHAOS BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCPHB BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCPNX BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCRTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCRUDP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDCCP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDDP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDDX BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDGP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDSR BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEGP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEIGRP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEMCON BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolENCAP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolESP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolETHERIP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEthernet BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolFC BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolFIRE BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolGGP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolGMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolGRE BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolHIP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolHMP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIATP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolICMP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDPR BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDRP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIFMP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIGMP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIGP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIL BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolINLSP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPCV BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPComp BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPIP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPLT BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPPC BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIRTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolISOIP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolL2TP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolLARP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMERITINP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMFENSP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMOBILE BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMUX BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolManet BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolN3PC BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNARP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNETBLT BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNVPII BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPGM BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPIM BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPIPE BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPNNI BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPRM BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPUP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPVP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolQNX BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRDP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolROHC BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRSVP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRVD BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSATMON BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCCSP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCPS BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSDRP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSKIP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSM BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSMP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSNP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSPS BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSRP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSUNND BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTCF BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTCP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTLSP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolUDP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolUDPLite BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolUTI BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolVINES BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolVISA BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolVMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWBMON BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWESP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWSN BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolXNET BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolXTP BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatusActive BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatusActive BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatusStaged BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus = "staged" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolAH BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "AH" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolAN BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "A/N" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolARIS BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ARIS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolAX25 BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "AX.25" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolBBNRCCMON BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "BBN-RCC-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolBNA BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "BNA" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolBRSATMON BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "BR-SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCBT BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CBT" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCFTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CFTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCHAOS BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CHAOS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCPHB BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CPHB" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCPNX BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CPNX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCRTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CRTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCRUDP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CRUDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCompaqPeer BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "Compaq-Peer" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDCCP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DCCP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDCNMEAS BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DCN-MEAS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDDP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDDX BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DDX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDGP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDSR BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DSR" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEGP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "EGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEIGRP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "EIGRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEMCON BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "EMCON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolENCAP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ENCAP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolESP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ESP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolETHERIP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ETHERIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEthernet BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "Ethernet" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolFC BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "FC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolFIRE BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "FIRE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolGGP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "GGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolGMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "GMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolGRE BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "GRE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolHIP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "HIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolHMP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "HMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIATP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IATP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolICMP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ICMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIDPR BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IDPR" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIDPRCMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IDPR-CMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIDRP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IDRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIFMP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IFMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIGMP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IGMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIGP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIL BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IL" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolINLSP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "I-NLSP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPCV BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPCV" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPComp BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPComp" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPIP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPLT BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPLT" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPPC BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPPC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPXInIP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPX-in-IP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIRTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IRTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolISOIP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ISO-IP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolISOTP4 BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ISO-TP4" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolKRYPTOLAN BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "KRYPTOLAN" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolL2TP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "L2TP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolLARP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "LARP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolLEAF1 BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "LEAF-1" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolLEAF2 BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "LEAF-2" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMERITINP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MERIT-INP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMFENSP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MFE-NSP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMOBILE BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MOBILE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMUX BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MUX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolManet BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "manet" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolN3PC BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "3PC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNARP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NARP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNETBLT BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NETBLT" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNSFNETIGP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NSFNET-IGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNVPII BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NVP-II" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolOSPFIGP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "OSPFIGP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPGM BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PGM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPIM BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PIM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPIPE BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PIPE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPNNI BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PNNI" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPRM BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PRM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPUP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PUP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPVP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PVP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolQNX BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "QNX" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRDP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolROHC BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ROHC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRSVP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RSVP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRSVPE2EIGNORE BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRVD BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RVD" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSATEXPAK BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SAT-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSATMON BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SAT-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSCCSP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SCC-SP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSCPS BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SCPS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSCTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SCTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSDRP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SDRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSECUREVMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SECURE-VMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSKIP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SKIP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSM BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SM" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSMP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SMP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSNP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SNP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSPS BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SPS" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSRP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SRP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSSCOPMCE BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SSCOPMCE" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "STP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSUNND BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SUN-ND" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSpriteRPC BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "Sprite-RPC" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTCF BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TCF" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTCP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TCP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTLSP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TLSP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TP++" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTRUNK1 BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TRUNK-1" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTRUNK2 BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TRUNK-2" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolUDP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "UDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolUDPLite BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "UDPLite" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolUTI BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "UTI" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolVINES BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "VINES" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolVISA BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "VISA" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolVMTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "VMTP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWBEXPAK BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WB-EXPAK" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWBMON BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WB-MON" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWESP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WESP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWSN BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WSN" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolXNET BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "XNET" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolXNSIDP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "XNS-IDP" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolXTP BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "XTP" -) - -// Defines values for BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus. -const ( - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatusActive BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus = "active" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatusDecommissioned BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus = "decommissioned" - BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatusStaged BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus. -const ( - BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatusActive BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus = "active" - BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatusDecommissioned BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus = "decommissioned" - BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatusStaged BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationAddressGroupsStatus. -const ( - BulkWritablePolicyRuleRequestDestinationAddressGroupsStatusActive BulkWritablePolicyRuleRequestDestinationAddressGroupsStatus = "active" - BulkWritablePolicyRuleRequestDestinationAddressGroupsStatusDecommissioned BulkWritablePolicyRuleRequestDestinationAddressGroupsStatus = "decommissioned" - BulkWritablePolicyRuleRequestDestinationAddressGroupsStatusStaged BulkWritablePolicyRuleRequestDestinationAddressGroupsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationAddressesStatus. -const ( - BulkWritablePolicyRuleRequestDestinationAddressesStatusActive BulkWritablePolicyRuleRequestDestinationAddressesStatus = "active" - BulkWritablePolicyRuleRequestDestinationAddressesStatusDecommissioned BulkWritablePolicyRuleRequestDestinationAddressesStatus = "decommissioned" - BulkWritablePolicyRuleRequestDestinationAddressesStatusStaged BulkWritablePolicyRuleRequestDestinationAddressesStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolAH BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolAN BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolARIS BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolAX25 BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolBNA BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCBT BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCFTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCHAOS BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCPHB BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCPNX BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCRTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCRUDP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDCCP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDDP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDDX BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDGP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDSR BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEGP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEIGRP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEMCON BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolENCAP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolESP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolETHERIP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEthernet BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolFC BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolFIRE BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolGGP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolGMTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolGRE BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolHIP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolHMP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIATP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolICMP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIDPR BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIDRP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIFMP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIGMP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIGP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIL BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolINLSP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPCV BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPComp BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPIP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPLT BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPPC BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIRTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolISOIP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolL2TP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolLARP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMERITINP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMFENSP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMOBILE BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMUX BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolManet BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolN3PC BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNARP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNETBLT BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNVPII BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPGM BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPIM BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPIPE BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPNNI BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPRM BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPUP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPVP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolQNX BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRDP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolROHC BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRSVP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRVD BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSATMON BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSCCSP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSCPS BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSCTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSDRP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSKIP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSM BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSMP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSNP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSPS BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSRP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSUNND BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTCF BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTCP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTLSP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolUDP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolUDPLite BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolUTI BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolVINES BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolVISA BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolVMTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWBMON BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWESP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWSN BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolXNET BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolXTP BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus. -const ( - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatusActive BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus = "active" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatusDecommissioned BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus = "decommissioned" - BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatusStaged BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationServiceGroupsStatus. -const ( - BulkWritablePolicyRuleRequestDestinationServiceGroupsStatusActive BulkWritablePolicyRuleRequestDestinationServiceGroupsStatus = "active" - BulkWritablePolicyRuleRequestDestinationServiceGroupsStatusDecommissioned BulkWritablePolicyRuleRequestDestinationServiceGroupsStatus = "decommissioned" - BulkWritablePolicyRuleRequestDestinationServiceGroupsStatusStaged BulkWritablePolicyRuleRequestDestinationServiceGroupsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationServicesIpProtocol. -const ( - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolAH BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "AH" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolAN BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "A/N" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolARIS BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ARIS" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolAX25 BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "AX.25" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolBBNRCCMON BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "BBN-RCC-MON" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolBNA BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "BNA" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolBRSATMON BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "BR-SAT-MON" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCBT BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CBT" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCFTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CFTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCHAOS BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CHAOS" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCPHB BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CPHB" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCPNX BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CPNX" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCRTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CRTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCRUDP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CRUDP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolCompaqPeer BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "Compaq-Peer" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolDCCP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DCCP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolDCNMEAS BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DCN-MEAS" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolDDP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DDP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolDDX BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DDX" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolDGP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DGP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolDSR BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DSR" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolEGP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "EGP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolEIGRP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "EIGRP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolEMCON BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "EMCON" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolENCAP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ENCAP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolESP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ESP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolETHERIP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ETHERIP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolEthernet BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "Ethernet" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolFC BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "FC" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolFIRE BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "FIRE" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolGGP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "GGP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolGMTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "GMTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolGRE BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "GRE" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolHIP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "HIP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolHMP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "HMP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIATP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IATP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolICMP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ICMP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIDPR BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IDPR" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIDPRCMTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IDPR-CMTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIDRP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IDRP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIFMP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IFMP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIGMP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IGMP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIGP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IGP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIL BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IL" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolINLSP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "I-NLSP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPCV BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPCV" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPComp BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPComp" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPIP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPIP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPLT BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPLT" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPPC BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPPC" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPXInIP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPX-in-IP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolIRTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IRTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolISOIP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ISO-IP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolISOTP4 BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ISO-TP4" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolKRYPTOLAN BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "KRYPTOLAN" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolL2TP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "L2TP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolLARP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "LARP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolLEAF1 BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "LEAF-1" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolLEAF2 BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "LEAF-2" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolMERITINP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MERIT-INP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolMFENSP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MFE-NSP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolMOBILE BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MOBILE" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolMTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolMUX BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MUX" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolManet BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "manet" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolN3PC BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "3PC" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolNARP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NARP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolNETBLT BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NETBLT" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolNSFNETIGP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NSFNET-IGP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolNVPII BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NVP-II" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolOSPFIGP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "OSPFIGP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPGM BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PGM" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPIM BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PIM" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPIPE BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PIPE" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPNNI BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PNNI" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPRM BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PRM" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPUP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PUP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolPVP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PVP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolQNX BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "QNX" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolRDP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RDP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolROHC BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ROHC" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolRSVP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RSVP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolRSVPE2EIGNORE BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolRVD BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RVD" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSATEXPAK BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SAT-EXPAK" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSATMON BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SAT-MON" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSCCSP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SCC-SP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSCPS BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SCPS" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSCTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SCTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSDRP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SDRP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSECUREVMTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SECURE-VMTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSKIP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SKIP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSM BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SM" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSMP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SMP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSNP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SNP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSPS BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SPS" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSRP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SRP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSSCOPMCE BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SSCOPMCE" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "STP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSUNND BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SUN-ND" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolSpriteRPC BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "Sprite-RPC" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolTCF BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TCF" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolTCP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TCP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolTLSP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TLSP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TP++" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolTRUNK1 BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TRUNK-1" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolTRUNK2 BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TRUNK-2" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolTTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolUDP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "UDP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolUDPLite BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "UDPLite" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolUTI BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "UTI" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolVINES BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "VINES" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolVISA BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "VISA" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolVMTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "VMTP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolWBEXPAK BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WB-EXPAK" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolWBMON BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WB-MON" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolWESP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WESP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolWSN BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WSN" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolXNET BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "XNET" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolXNSIDP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "XNS-IDP" - BulkWritablePolicyRuleRequestDestinationServicesIpProtocolXTP BulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "XTP" -) - -// Defines values for BulkWritablePolicyRuleRequestDestinationServicesStatus. -const ( - BulkWritablePolicyRuleRequestDestinationServicesStatusActive BulkWritablePolicyRuleRequestDestinationServicesStatus = "active" - BulkWritablePolicyRuleRequestDestinationServicesStatusDecommissioned BulkWritablePolicyRuleRequestDestinationServicesStatus = "decommissioned" - BulkWritablePolicyRuleRequestDestinationServicesStatusStaged BulkWritablePolicyRuleRequestDestinationServicesStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus. -const ( - BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatusActive BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus = "active" - BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatusDecommissioned BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus = "decommissioned" - BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatusStaged BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestSourceAddressGroupsStatus. -const ( - BulkWritablePolicyRuleRequestSourceAddressGroupsStatusActive BulkWritablePolicyRuleRequestSourceAddressGroupsStatus = "active" - BulkWritablePolicyRuleRequestSourceAddressGroupsStatusDecommissioned BulkWritablePolicyRuleRequestSourceAddressGroupsStatus = "decommissioned" - BulkWritablePolicyRuleRequestSourceAddressGroupsStatusStaged BulkWritablePolicyRuleRequestSourceAddressGroupsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestSourceAddressesStatus. -const ( - BulkWritablePolicyRuleRequestSourceAddressesStatusActive BulkWritablePolicyRuleRequestSourceAddressesStatus = "active" - BulkWritablePolicyRuleRequestSourceAddressesStatusDecommissioned BulkWritablePolicyRuleRequestSourceAddressesStatus = "decommissioned" - BulkWritablePolicyRuleRequestSourceAddressesStatusStaged BulkWritablePolicyRuleRequestSourceAddressesStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestSourceUserGroupsStatus. -const ( - BulkWritablePolicyRuleRequestSourceUserGroupsStatusActive BulkWritablePolicyRuleRequestSourceUserGroupsStatus = "active" - BulkWritablePolicyRuleRequestSourceUserGroupsStatusDecommissioned BulkWritablePolicyRuleRequestSourceUserGroupsStatus = "decommissioned" - BulkWritablePolicyRuleRequestSourceUserGroupsStatusStaged BulkWritablePolicyRuleRequestSourceUserGroupsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus. -const ( - BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatusActive BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus = "active" - BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatusDecommissioned BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus = "decommissioned" - BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatusStaged BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus = "staged" -) - -// Defines values for BulkWritablePolicyRuleRequestSourceUsersStatus. -const ( - BulkWritablePolicyRuleRequestSourceUsersStatusActive BulkWritablePolicyRuleRequestSourceUsersStatus = "active" - BulkWritablePolicyRuleRequestSourceUsersStatusDecommissioned BulkWritablePolicyRuleRequestSourceUsersStatus = "decommissioned" - BulkWritablePolicyRuleRequestSourceUsersStatusStaged BulkWritablePolicyRuleRequestSourceUsersStatus = "staged" -) - -// Defines values for BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol. -const ( - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolAH BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "AH" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolAN BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "A/N" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolARIS BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ARIS" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolAX25 BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "AX.25" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolBBNRCCMON BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "BBN-RCC-MON" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolBNA BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "BNA" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolBRSATMON BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "BR-SAT-MON" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCBT BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CBT" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCFTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CFTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCHAOS BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CHAOS" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCPHB BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CPHB" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCPNX BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CPNX" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCRTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CRTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCRUDP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CRUDP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCompaqPeer BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "Compaq-Peer" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDCCP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DCCP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDCNMEAS BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DCN-MEAS" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDDP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DDP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDDX BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DDX" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDGP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DGP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDSR BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DSR" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEGP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "EGP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEIGRP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "EIGRP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEMCON BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "EMCON" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolENCAP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ENCAP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolESP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ESP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolETHERIP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ETHERIP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEthernet BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "Ethernet" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolFC BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "FC" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolFIRE BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "FIRE" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolGGP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "GGP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolGMTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "GMTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolGRE BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "GRE" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolHIP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "HIP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolHMP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "HMP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIATP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IATP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolICMP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ICMP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIDPR BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IDPR" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIDPRCMTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IDPR-CMTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIDRP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IDRP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIFMP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IFMP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIGMP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IGMP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIGP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IGP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIL BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IL" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolINLSP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "I-NLSP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPCV BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPCV" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPComp BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPComp" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPIP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPIP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPLT BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPLT" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPPC BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPPC" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPXInIP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPX-in-IP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIRTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IRTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolISOIP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ISO-IP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolISOTP4 BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ISO-TP4" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolKRYPTOLAN BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "KRYPTOLAN" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolL2TP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "L2TP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolLARP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "LARP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolLEAF1 BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "LEAF-1" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolLEAF2 BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "LEAF-2" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMERITINP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MERIT-INP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMFENSP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MFE-NSP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMOBILE BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MOBILE" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMUX BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MUX" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolManet BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "manet" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolN3PC BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "3PC" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNARP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NARP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNETBLT BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NETBLT" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNSFNETIGP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NSFNET-IGP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNVPII BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NVP-II" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolOSPFIGP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "OSPFIGP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPGM BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PGM" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPIM BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PIM" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPIPE BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PIPE" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPNNI BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PNNI" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPRM BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PRM" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPUP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PUP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPVP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PVP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolQNX BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "QNX" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRDP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RDP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolROHC BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ROHC" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRSVP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RSVP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRSVPE2EIGNORE BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRVD BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RVD" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSATEXPAK BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SAT-EXPAK" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSATMON BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SAT-MON" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSCCSP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SCC-SP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSCPS BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SCPS" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSCTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SCTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSDRP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SDRP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSECUREVMTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SECURE-VMTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSKIP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SKIP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSM BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SM" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSMP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SMP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSNP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SNP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSPS BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SPS" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSRP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SRP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSSCOPMCE BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SSCOPMCE" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "STP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSUNND BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SUN-ND" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSpriteRPC BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "Sprite-RPC" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTCF BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TCF" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTCP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TCP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTLSP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TLSP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TP++" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTRUNK1 BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TRUNK-1" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTRUNK2 BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TRUNK-2" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolUDP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "UDP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolUDPLite BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "UDPLite" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolUTI BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "UTI" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolVINES BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "VINES" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolVISA BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "VISA" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolVMTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "VMTP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWBEXPAK BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WB-EXPAK" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWBMON BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WB-MON" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWESP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WESP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWSN BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WSN" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolXNET BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "XNET" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolXNSIDP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "XNS-IDP" - BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolXTP BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "XTP" -) - -// Defines values for BulkWritableServiceObjectGroupRequestServiceObjectsStatus. -const ( - BulkWritableServiceObjectGroupRequestServiceObjectsStatusActive BulkWritableServiceObjectGroupRequestServiceObjectsStatus = "active" - BulkWritableServiceObjectGroupRequestServiceObjectsStatusDecommissioned BulkWritableServiceObjectGroupRequestServiceObjectsStatus = "decommissioned" - BulkWritableServiceObjectGroupRequestServiceObjectsStatusStaged BulkWritableServiceObjectGroupRequestServiceObjectsStatus = "staged" -) - -// Defines values for BulkWritableUserObjectGroupRequestUserObjectsStatus. -const ( - BulkWritableUserObjectGroupRequestUserObjectsStatusActive BulkWritableUserObjectGroupRequestUserObjectsStatus = "active" - BulkWritableUserObjectGroupRequestUserObjectsStatusDecommissioned BulkWritableUserObjectGroupRequestUserObjectsStatus = "decommissioned" - BulkWritableUserObjectGroupRequestUserObjectsStatusStaged BulkWritableUserObjectGroupRequestUserObjectsStatus = "staged" -) - -// Defines values for ButtonClassEnum. -const ( - ButtonClassEnumDanger ButtonClassEnum = "danger" - ButtonClassEnumDefault ButtonClassEnum = "default" - ButtonClassEnumInfo ButtonClassEnum = "info" - ButtonClassEnumLink ButtonClassEnum = "link" - ButtonClassEnumPrimary ButtonClassEnum = "primary" - ButtonClassEnumSuccess ButtonClassEnum = "success" - ButtonClassEnumWarning ButtonClassEnum = "warning" -) - -// Defines values for CVELCMSeverityLabel. -const ( - CVELCMSeverityLabelCritical CVELCMSeverityLabel = "Critical" - CVELCMSeverityLabelHigh CVELCMSeverityLabel = "High" - CVELCMSeverityLabelLow CVELCMSeverityLabel = "Low" - CVELCMSeverityLabelMedium CVELCMSeverityLabel = "Medium" - CVELCMSeverityLabelNone CVELCMSeverityLabel = "None" -) - -// Defines values for CVELCMSeverityValue. -const ( - CVELCMSeverityValueCritical CVELCMSeverityValue = "Critical" - CVELCMSeverityValueHigh CVELCMSeverityValue = "High" - CVELCMSeverityValueLow CVELCMSeverityValue = "Low" - CVELCMSeverityValueMedium CVELCMSeverityValue = "Medium" - CVELCMSeverityValueNone CVELCMSeverityValue = "None" -) - -// Defines values for CableLengthUnitLabel. -const ( - CableLengthUnitLabelCentimeters CableLengthUnitLabel = "Centimeters" - CableLengthUnitLabelFeet CableLengthUnitLabel = "Feet" - CableLengthUnitLabelInches CableLengthUnitLabel = "Inches" - CableLengthUnitLabelMeters CableLengthUnitLabel = "Meters" -) - -// Defines values for CableLengthUnitValue. -const ( - CableLengthUnitValueCm CableLengthUnitValue = "cm" - CableLengthUnitValueFt CableLengthUnitValue = "ft" - CableLengthUnitValueIn CableLengthUnitValue = "in" - CableLengthUnitValueM CableLengthUnitValue = "m" -) - -// Defines values for CableStatusLabel. -const ( - CableStatusLabelConnected CableStatusLabel = "Connected" - CableStatusLabelDecommissioning CableStatusLabel = "Decommissioning" - CableStatusLabelPlanned CableStatusLabel = "Planned" -) - -// Defines values for CableStatusValue. -const ( - CableStatusValueConnected CableStatusValue = "connected" - CableStatusValueDecommissioning CableStatusValue = "decommissioning" - CableStatusValuePlanned CableStatusValue = "planned" -) - -// Defines values for CableStatusChoices. -const ( - CableStatusChoicesConnected CableStatusChoices = "connected" - CableStatusChoicesDecommissioning CableStatusChoices = "decommissioning" - CableStatusChoicesPlanned CableStatusChoices = "planned" -) - -// Defines values for CableTypeChoices. -const ( - Aoc CableTypeChoices = "aoc" - Cat3 CableTypeChoices = "cat3" - Cat5 CableTypeChoices = "cat5" - Cat5e CableTypeChoices = "cat5e" - Cat6 CableTypeChoices = "cat6" - Cat6a CableTypeChoices = "cat6a" - Cat7 CableTypeChoices = "cat7" - Cat7a CableTypeChoices = "cat7a" - Cat8 CableTypeChoices = "cat8" - Coaxial CableTypeChoices = "coaxial" - DacActive CableTypeChoices = "dac-active" - DacPassive CableTypeChoices = "dac-passive" - Mmf CableTypeChoices = "mmf" - MmfOm1 CableTypeChoices = "mmf-om1" - MmfOm2 CableTypeChoices = "mmf-om2" - MmfOm3 CableTypeChoices = "mmf-om3" - MmfOm4 CableTypeChoices = "mmf-om4" - Mrj21Trunk CableTypeChoices = "mrj21-trunk" - Power CableTypeChoices = "power" - Smf CableTypeChoices = "smf" - SmfOs1 CableTypeChoices = "smf-os1" - SmfOs2 CableTypeChoices = "smf-os2" -) - -// Defines values for CircuitStatusLabel. -const ( - CircuitStatusLabelActive CircuitStatusLabel = "Active" - CircuitStatusLabelDecommissioned CircuitStatusLabel = "Decommissioned" - CircuitStatusLabelDeprovisioning CircuitStatusLabel = "Deprovisioning" - CircuitStatusLabelOffline CircuitStatusLabel = "Offline" - CircuitStatusLabelPlanned CircuitStatusLabel = "Planned" - CircuitStatusLabelProvisioning CircuitStatusLabel = "Provisioning" -) - -// Defines values for CircuitStatusValue. -const ( - CircuitStatusValueActive CircuitStatusValue = "active" - CircuitStatusValueDecommissioned CircuitStatusValue = "decommissioned" - CircuitStatusValueDeprovisioning CircuitStatusValue = "deprovisioning" - CircuitStatusValueOffline CircuitStatusValue = "offline" - CircuitStatusValuePlanned CircuitStatusValue = "planned" - CircuitStatusValueProvisioning CircuitStatusValue = "provisioning" -) - -// Defines values for CircuitStatusChoices. -const ( - CircuitStatusChoicesActive CircuitStatusChoices = "active" - CircuitStatusChoicesDecommissioned CircuitStatusChoices = "decommissioned" - CircuitStatusChoicesDeprovisioning CircuitStatusChoices = "deprovisioning" - CircuitStatusChoicesOffline CircuitStatusChoices = "offline" - CircuitStatusChoicesPlanned CircuitStatusChoices = "planned" - CircuitStatusChoicesProvisioning CircuitStatusChoices = "provisioning" -) - -// Defines values for ConfigToPushFaceLabel. -const ( - ConfigToPushFaceLabelFront ConfigToPushFaceLabel = "Front" - ConfigToPushFaceLabelRear ConfigToPushFaceLabel = "Rear" -) - -// Defines values for ConfigToPushFaceValue. -const ( - ConfigToPushFaceValueFront ConfigToPushFaceValue = "front" - ConfigToPushFaceValueRear ConfigToPushFaceValue = "rear" -) - -// Defines values for ConfigToPushStatusLabel. -const ( - ConfigToPushStatusLabelActive ConfigToPushStatusLabel = "Active" - ConfigToPushStatusLabelDecommissioning ConfigToPushStatusLabel = "Decommissioning" - ConfigToPushStatusLabelFailed ConfigToPushStatusLabel = "Failed" - ConfigToPushStatusLabelInventory ConfigToPushStatusLabel = "Inventory" - ConfigToPushStatusLabelOffline ConfigToPushStatusLabel = "Offline" - ConfigToPushStatusLabelPlanned ConfigToPushStatusLabel = "Planned" - ConfigToPushStatusLabelStaged ConfigToPushStatusLabel = "Staged" -) - -// Defines values for ConfigToPushStatusValue. -const ( - ConfigToPushStatusValueActive ConfigToPushStatusValue = "active" - ConfigToPushStatusValueDecommissioning ConfigToPushStatusValue = "decommissioning" - ConfigToPushStatusValueFailed ConfigToPushStatusValue = "failed" - ConfigToPushStatusValueInventory ConfigToPushStatusValue = "inventory" - ConfigToPushStatusValueOffline ConfigToPushStatusValue = "offline" - ConfigToPushStatusValuePlanned ConfigToPushStatusValue = "planned" - ConfigToPushStatusValueStaged ConfigToPushStatusValue = "staged" -) - -// Defines values for ConfigTypeEnum. -const ( - ConfigTypeEnumCli ConfigTypeEnum = "cli" - ConfigTypeEnumCustom ConfigTypeEnum = "custom" - ConfigTypeEnumJson ConfigTypeEnum = "json" -) - -// Defines values for ConsolePortTypeLabel. -const ( - ConsolePortTypeLabelDB25 ConsolePortTypeLabel = "DB-25" - ConsolePortTypeLabelDE9 ConsolePortTypeLabel = "DE-9" - ConsolePortTypeLabelOther ConsolePortTypeLabel = "Other" - ConsolePortTypeLabelRJ11 ConsolePortTypeLabel = "RJ-11" - ConsolePortTypeLabelRJ12 ConsolePortTypeLabel = "RJ-12" - ConsolePortTypeLabelRJ45 ConsolePortTypeLabel = "RJ-45" - ConsolePortTypeLabelUSBMicroA ConsolePortTypeLabel = "USB Micro A" - ConsolePortTypeLabelUSBMicroB ConsolePortTypeLabel = "USB Micro B" - ConsolePortTypeLabelUSBMiniA ConsolePortTypeLabel = "USB Mini A" - ConsolePortTypeLabelUSBMiniB ConsolePortTypeLabel = "USB Mini B" - ConsolePortTypeLabelUSBTypeA ConsolePortTypeLabel = "USB Type A" - ConsolePortTypeLabelUSBTypeB ConsolePortTypeLabel = "USB Type B" - ConsolePortTypeLabelUSBTypeC ConsolePortTypeLabel = "USB Type C" -) - -// Defines values for ConsolePortTypeValue. -const ( - ConsolePortTypeValueDb25 ConsolePortTypeValue = "db-25" - ConsolePortTypeValueDe9 ConsolePortTypeValue = "de-9" - ConsolePortTypeValueOther ConsolePortTypeValue = "other" - ConsolePortTypeValueRj11 ConsolePortTypeValue = "rj-11" - ConsolePortTypeValueRj12 ConsolePortTypeValue = "rj-12" - ConsolePortTypeValueRj45 ConsolePortTypeValue = "rj-45" - ConsolePortTypeValueUsbA ConsolePortTypeValue = "usb-a" - ConsolePortTypeValueUsbB ConsolePortTypeValue = "usb-b" - ConsolePortTypeValueUsbC ConsolePortTypeValue = "usb-c" - ConsolePortTypeValueUsbMicroA ConsolePortTypeValue = "usb-micro-a" - ConsolePortTypeValueUsbMicroB ConsolePortTypeValue = "usb-micro-b" - ConsolePortTypeValueUsbMiniA ConsolePortTypeValue = "usb-mini-a" - ConsolePortTypeValueUsbMiniB ConsolePortTypeValue = "usb-mini-b" -) - -// Defines values for ConsolePortTemplateTypeLabel. -const ( - ConsolePortTemplateTypeLabelDB25 ConsolePortTemplateTypeLabel = "DB-25" - ConsolePortTemplateTypeLabelDE9 ConsolePortTemplateTypeLabel = "DE-9" - ConsolePortTemplateTypeLabelOther ConsolePortTemplateTypeLabel = "Other" - ConsolePortTemplateTypeLabelRJ11 ConsolePortTemplateTypeLabel = "RJ-11" - ConsolePortTemplateTypeLabelRJ12 ConsolePortTemplateTypeLabel = "RJ-12" - ConsolePortTemplateTypeLabelRJ45 ConsolePortTemplateTypeLabel = "RJ-45" - ConsolePortTemplateTypeLabelUSBMicroA ConsolePortTemplateTypeLabel = "USB Micro A" - ConsolePortTemplateTypeLabelUSBMicroB ConsolePortTemplateTypeLabel = "USB Micro B" - ConsolePortTemplateTypeLabelUSBMiniA ConsolePortTemplateTypeLabel = "USB Mini A" - ConsolePortTemplateTypeLabelUSBMiniB ConsolePortTemplateTypeLabel = "USB Mini B" - ConsolePortTemplateTypeLabelUSBTypeA ConsolePortTemplateTypeLabel = "USB Type A" - ConsolePortTemplateTypeLabelUSBTypeB ConsolePortTemplateTypeLabel = "USB Type B" - ConsolePortTemplateTypeLabelUSBTypeC ConsolePortTemplateTypeLabel = "USB Type C" -) - -// Defines values for ConsolePortTemplateTypeValue. -const ( - ConsolePortTemplateTypeValueDb25 ConsolePortTemplateTypeValue = "db-25" - ConsolePortTemplateTypeValueDe9 ConsolePortTemplateTypeValue = "de-9" - ConsolePortTemplateTypeValueOther ConsolePortTemplateTypeValue = "other" - ConsolePortTemplateTypeValueRj11 ConsolePortTemplateTypeValue = "rj-11" - ConsolePortTemplateTypeValueRj12 ConsolePortTemplateTypeValue = "rj-12" - ConsolePortTemplateTypeValueRj45 ConsolePortTemplateTypeValue = "rj-45" - ConsolePortTemplateTypeValueUsbA ConsolePortTemplateTypeValue = "usb-a" - ConsolePortTemplateTypeValueUsbB ConsolePortTemplateTypeValue = "usb-b" - ConsolePortTemplateTypeValueUsbC ConsolePortTemplateTypeValue = "usb-c" - ConsolePortTemplateTypeValueUsbMicroA ConsolePortTemplateTypeValue = "usb-micro-a" - ConsolePortTemplateTypeValueUsbMicroB ConsolePortTemplateTypeValue = "usb-micro-b" - ConsolePortTemplateTypeValueUsbMiniA ConsolePortTemplateTypeValue = "usb-mini-a" - ConsolePortTemplateTypeValueUsbMiniB ConsolePortTemplateTypeValue = "usb-mini-b" -) - -// Defines values for ConsolePortTypeChoices. -const ( - ConsolePortTypeChoicesDb25 ConsolePortTypeChoices = "db-25" - ConsolePortTypeChoicesDe9 ConsolePortTypeChoices = "de-9" - ConsolePortTypeChoicesOther ConsolePortTypeChoices = "other" - ConsolePortTypeChoicesRj11 ConsolePortTypeChoices = "rj-11" - ConsolePortTypeChoicesRj12 ConsolePortTypeChoices = "rj-12" - ConsolePortTypeChoicesRj45 ConsolePortTypeChoices = "rj-45" - ConsolePortTypeChoicesUsbA ConsolePortTypeChoices = "usb-a" - ConsolePortTypeChoicesUsbB ConsolePortTypeChoices = "usb-b" - ConsolePortTypeChoicesUsbC ConsolePortTypeChoices = "usb-c" - ConsolePortTypeChoicesUsbMicroA ConsolePortTypeChoices = "usb-micro-a" - ConsolePortTypeChoicesUsbMicroB ConsolePortTypeChoices = "usb-micro-b" - ConsolePortTypeChoicesUsbMiniA ConsolePortTypeChoices = "usb-mini-a" - ConsolePortTypeChoicesUsbMiniB ConsolePortTypeChoices = "usb-mini-b" -) - -// Defines values for ConsoleServerPortTypeLabel. -const ( - ConsoleServerPortTypeLabelDB25 ConsoleServerPortTypeLabel = "DB-25" - ConsoleServerPortTypeLabelDE9 ConsoleServerPortTypeLabel = "DE-9" - ConsoleServerPortTypeLabelOther ConsoleServerPortTypeLabel = "Other" - ConsoleServerPortTypeLabelRJ11 ConsoleServerPortTypeLabel = "RJ-11" - ConsoleServerPortTypeLabelRJ12 ConsoleServerPortTypeLabel = "RJ-12" - ConsoleServerPortTypeLabelRJ45 ConsoleServerPortTypeLabel = "RJ-45" - ConsoleServerPortTypeLabelUSBMicroA ConsoleServerPortTypeLabel = "USB Micro A" - ConsoleServerPortTypeLabelUSBMicroB ConsoleServerPortTypeLabel = "USB Micro B" - ConsoleServerPortTypeLabelUSBMiniA ConsoleServerPortTypeLabel = "USB Mini A" - ConsoleServerPortTypeLabelUSBMiniB ConsoleServerPortTypeLabel = "USB Mini B" - ConsoleServerPortTypeLabelUSBTypeA ConsoleServerPortTypeLabel = "USB Type A" - ConsoleServerPortTypeLabelUSBTypeB ConsoleServerPortTypeLabel = "USB Type B" - ConsoleServerPortTypeLabelUSBTypeC ConsoleServerPortTypeLabel = "USB Type C" -) - -// Defines values for ConsoleServerPortTypeValue. -const ( - ConsoleServerPortTypeValueDb25 ConsoleServerPortTypeValue = "db-25" - ConsoleServerPortTypeValueDe9 ConsoleServerPortTypeValue = "de-9" - ConsoleServerPortTypeValueOther ConsoleServerPortTypeValue = "other" - ConsoleServerPortTypeValueRj11 ConsoleServerPortTypeValue = "rj-11" - ConsoleServerPortTypeValueRj12 ConsoleServerPortTypeValue = "rj-12" - ConsoleServerPortTypeValueRj45 ConsoleServerPortTypeValue = "rj-45" - ConsoleServerPortTypeValueUsbA ConsoleServerPortTypeValue = "usb-a" - ConsoleServerPortTypeValueUsbB ConsoleServerPortTypeValue = "usb-b" - ConsoleServerPortTypeValueUsbC ConsoleServerPortTypeValue = "usb-c" - ConsoleServerPortTypeValueUsbMicroA ConsoleServerPortTypeValue = "usb-micro-a" - ConsoleServerPortTypeValueUsbMicroB ConsoleServerPortTypeValue = "usb-micro-b" - ConsoleServerPortTypeValueUsbMiniA ConsoleServerPortTypeValue = "usb-mini-a" - ConsoleServerPortTypeValueUsbMiniB ConsoleServerPortTypeValue = "usb-mini-b" -) - -// Defines values for ConsoleServerPortTemplateTypeLabel. -const ( - ConsoleServerPortTemplateTypeLabelDB25 ConsoleServerPortTemplateTypeLabel = "DB-25" - ConsoleServerPortTemplateTypeLabelDE9 ConsoleServerPortTemplateTypeLabel = "DE-9" - ConsoleServerPortTemplateTypeLabelOther ConsoleServerPortTemplateTypeLabel = "Other" - ConsoleServerPortTemplateTypeLabelRJ11 ConsoleServerPortTemplateTypeLabel = "RJ-11" - ConsoleServerPortTemplateTypeLabelRJ12 ConsoleServerPortTemplateTypeLabel = "RJ-12" - ConsoleServerPortTemplateTypeLabelRJ45 ConsoleServerPortTemplateTypeLabel = "RJ-45" - ConsoleServerPortTemplateTypeLabelUSBMicroA ConsoleServerPortTemplateTypeLabel = "USB Micro A" - ConsoleServerPortTemplateTypeLabelUSBMicroB ConsoleServerPortTemplateTypeLabel = "USB Micro B" - ConsoleServerPortTemplateTypeLabelUSBMiniA ConsoleServerPortTemplateTypeLabel = "USB Mini A" - ConsoleServerPortTemplateTypeLabelUSBMiniB ConsoleServerPortTemplateTypeLabel = "USB Mini B" - ConsoleServerPortTemplateTypeLabelUSBTypeA ConsoleServerPortTemplateTypeLabel = "USB Type A" - ConsoleServerPortTemplateTypeLabelUSBTypeB ConsoleServerPortTemplateTypeLabel = "USB Type B" - ConsoleServerPortTemplateTypeLabelUSBTypeC ConsoleServerPortTemplateTypeLabel = "USB Type C" -) - -// Defines values for ConsoleServerPortTemplateTypeValue. -const ( - ConsoleServerPortTemplateTypeValueDb25 ConsoleServerPortTemplateTypeValue = "db-25" - ConsoleServerPortTemplateTypeValueDe9 ConsoleServerPortTemplateTypeValue = "de-9" - ConsoleServerPortTemplateTypeValueOther ConsoleServerPortTemplateTypeValue = "other" - ConsoleServerPortTemplateTypeValueRj11 ConsoleServerPortTemplateTypeValue = "rj-11" - ConsoleServerPortTemplateTypeValueRj12 ConsoleServerPortTemplateTypeValue = "rj-12" - ConsoleServerPortTemplateTypeValueRj45 ConsoleServerPortTemplateTypeValue = "rj-45" - ConsoleServerPortTemplateTypeValueUsbA ConsoleServerPortTemplateTypeValue = "usb-a" - ConsoleServerPortTemplateTypeValueUsbB ConsoleServerPortTemplateTypeValue = "usb-b" - ConsoleServerPortTemplateTypeValueUsbC ConsoleServerPortTemplateTypeValue = "usb-c" - ConsoleServerPortTemplateTypeValueUsbMicroA ConsoleServerPortTemplateTypeValue = "usb-micro-a" - ConsoleServerPortTemplateTypeValueUsbMicroB ConsoleServerPortTemplateTypeValue = "usb-micro-b" - ConsoleServerPortTemplateTypeValueUsbMiniA ConsoleServerPortTemplateTypeValue = "usb-mini-a" - ConsoleServerPortTemplateTypeValueUsbMiniB ConsoleServerPortTemplateTypeValue = "usb-mini-b" -) - -// Defines values for CustomFieldSerializerVersion12FilterLogicLabel. -const ( - CustomFieldSerializerVersion12FilterLogicLabelDisabled CustomFieldSerializerVersion12FilterLogicLabel = "Disabled" - CustomFieldSerializerVersion12FilterLogicLabelExact CustomFieldSerializerVersion12FilterLogicLabel = "Exact" - CustomFieldSerializerVersion12FilterLogicLabelLoose CustomFieldSerializerVersion12FilterLogicLabel = "Loose" -) - -// Defines values for CustomFieldSerializerVersion12FilterLogicValue. -const ( - CustomFieldSerializerVersion12FilterLogicValueDisabled CustomFieldSerializerVersion12FilterLogicValue = "disabled" - CustomFieldSerializerVersion12FilterLogicValueExact CustomFieldSerializerVersion12FilterLogicValue = "exact" - CustomFieldSerializerVersion12FilterLogicValueLoose CustomFieldSerializerVersion12FilterLogicValue = "loose" -) - -// Defines values for CustomFieldSerializerVersion12TypeLabel. -const ( - CustomFieldSerializerVersion12TypeLabelBooleanTruefalse CustomFieldSerializerVersion12TypeLabel = "Boolean (true/false)" - CustomFieldSerializerVersion12TypeLabelDate CustomFieldSerializerVersion12TypeLabel = "Date" - CustomFieldSerializerVersion12TypeLabelInteger CustomFieldSerializerVersion12TypeLabel = "Integer" - CustomFieldSerializerVersion12TypeLabelJSON CustomFieldSerializerVersion12TypeLabel = "JSON" - CustomFieldSerializerVersion12TypeLabelMultipleSelection CustomFieldSerializerVersion12TypeLabel = "Multiple selection" - CustomFieldSerializerVersion12TypeLabelSelection CustomFieldSerializerVersion12TypeLabel = "Selection" - CustomFieldSerializerVersion12TypeLabelText CustomFieldSerializerVersion12TypeLabel = "Text" - CustomFieldSerializerVersion12TypeLabelURL CustomFieldSerializerVersion12TypeLabel = "URL" -) - -// Defines values for CustomFieldSerializerVersion12TypeValue. -const ( - CustomFieldSerializerVersion12TypeValueBoolean CustomFieldSerializerVersion12TypeValue = "boolean" - CustomFieldSerializerVersion12TypeValueDate CustomFieldSerializerVersion12TypeValue = "date" - CustomFieldSerializerVersion12TypeValueInteger CustomFieldSerializerVersion12TypeValue = "integer" - CustomFieldSerializerVersion12TypeValueJson CustomFieldSerializerVersion12TypeValue = "json" - CustomFieldSerializerVersion12TypeValueMultiSelect CustomFieldSerializerVersion12TypeValue = "multi-select" - CustomFieldSerializerVersion12TypeValueSelect CustomFieldSerializerVersion12TypeValue = "select" - CustomFieldSerializerVersion12TypeValueText CustomFieldSerializerVersion12TypeValue = "text" - CustomFieldSerializerVersion12TypeValueUrl CustomFieldSerializerVersion12TypeValue = "url" -) - -// Defines values for CustomFieldTypeChoices. -const ( - CustomFieldTypeChoicesBoolean CustomFieldTypeChoices = "boolean" - CustomFieldTypeChoicesDate CustomFieldTypeChoices = "date" - CustomFieldTypeChoicesInteger CustomFieldTypeChoices = "integer" - CustomFieldTypeChoicesJson CustomFieldTypeChoices = "json" - CustomFieldTypeChoicesMultiSelect CustomFieldTypeChoices = "multi-select" - CustomFieldTypeChoicesSelect CustomFieldTypeChoices = "select" - CustomFieldTypeChoicesText CustomFieldTypeChoices = "text" - CustomFieldTypeChoicesUrl CustomFieldTypeChoices = "url" -) - -// Defines values for DeviceFaceLabel. -const ( - DeviceFaceLabelFront DeviceFaceLabel = "Front" - DeviceFaceLabelRear DeviceFaceLabel = "Rear" -) - -// Defines values for DeviceFaceValue. -const ( - DeviceFaceValueFront DeviceFaceValue = "front" - DeviceFaceValueRear DeviceFaceValue = "rear" -) - -// Defines values for DeviceStatusLabel. -const ( - DeviceStatusLabelActive DeviceStatusLabel = "Active" - DeviceStatusLabelDecommissioning DeviceStatusLabel = "Decommissioning" - DeviceStatusLabelFailed DeviceStatusLabel = "Failed" - DeviceStatusLabelInventory DeviceStatusLabel = "Inventory" - DeviceStatusLabelOffline DeviceStatusLabel = "Offline" - DeviceStatusLabelPlanned DeviceStatusLabel = "Planned" - DeviceStatusLabelStaged DeviceStatusLabel = "Staged" -) - -// Defines values for DeviceStatusValue. -const ( - DeviceStatusValueActive DeviceStatusValue = "active" - DeviceStatusValueDecommissioning DeviceStatusValue = "decommissioning" - DeviceStatusValueFailed DeviceStatusValue = "failed" - DeviceStatusValueInventory DeviceStatusValue = "inventory" - DeviceStatusValueOffline DeviceStatusValue = "offline" - DeviceStatusValuePlanned DeviceStatusValue = "planned" - DeviceStatusValueStaged DeviceStatusValue = "staged" -) - -// Defines values for DeviceRedundancyGroupFailoverStrategyLabel. -const ( - DeviceRedundancyGroupFailoverStrategyLabelActiveActive DeviceRedundancyGroupFailoverStrategyLabel = "Active/Active" - DeviceRedundancyGroupFailoverStrategyLabelActivePassive DeviceRedundancyGroupFailoverStrategyLabel = "Active/Passive" -) - -// Defines values for DeviceRedundancyGroupFailoverStrategyValue. -const ( - DeviceRedundancyGroupFailoverStrategyValueActiveActive DeviceRedundancyGroupFailoverStrategyValue = "active-active" - DeviceRedundancyGroupFailoverStrategyValueActivePassive DeviceRedundancyGroupFailoverStrategyValue = "active-passive" -) - -// Defines values for DeviceRedundancyGroupStatusLabel. -const ( - DeviceRedundancyGroupStatusLabelActive DeviceRedundancyGroupStatusLabel = "Active" - DeviceRedundancyGroupStatusLabelDecommissioning DeviceRedundancyGroupStatusLabel = "Decommissioning" - DeviceRedundancyGroupStatusLabelPlanned DeviceRedundancyGroupStatusLabel = "Planned" - DeviceRedundancyGroupStatusLabelRetired DeviceRedundancyGroupStatusLabel = "Retired" - DeviceRedundancyGroupStatusLabelStaging DeviceRedundancyGroupStatusLabel = "Staging" -) - -// Defines values for DeviceRedundancyGroupStatusValue. -const ( - DeviceRedundancyGroupStatusValueActive DeviceRedundancyGroupStatusValue = "active" - DeviceRedundancyGroupStatusValueDecommissioning DeviceRedundancyGroupStatusValue = "decommissioning" - DeviceRedundancyGroupStatusValuePlanned DeviceRedundancyGroupStatusValue = "planned" - DeviceRedundancyGroupStatusValueRetired DeviceRedundancyGroupStatusValue = "retired" - DeviceRedundancyGroupStatusValueStaging DeviceRedundancyGroupStatusValue = "staging" -) - -// Defines values for DeviceStatusChoices. -const ( - DeviceStatusChoicesActive DeviceStatusChoices = "active" - DeviceStatusChoicesDecommissioning DeviceStatusChoices = "decommissioning" - DeviceStatusChoicesFailed DeviceStatusChoices = "failed" - DeviceStatusChoicesInventory DeviceStatusChoices = "inventory" - DeviceStatusChoicesOffline DeviceStatusChoices = "offline" - DeviceStatusChoicesPlanned DeviceStatusChoices = "planned" - DeviceStatusChoicesStaged DeviceStatusChoices = "staged" -) - -// Defines values for DeviceTypeSubdeviceRoleLabel. -const ( - DeviceTypeSubdeviceRoleLabelChild DeviceTypeSubdeviceRoleLabel = "Child" - DeviceTypeSubdeviceRoleLabelParent DeviceTypeSubdeviceRoleLabel = "Parent" -) - -// Defines values for DeviceTypeSubdeviceRoleValue. -const ( - DeviceTypeSubdeviceRoleValueChild DeviceTypeSubdeviceRoleValue = "child" - DeviceTypeSubdeviceRoleValueParent DeviceTypeSubdeviceRoleValue = "parent" -) - -// Defines values for DeviceWithConfigContextFaceLabel. -const ( - DeviceWithConfigContextFaceLabelFront DeviceWithConfigContextFaceLabel = "Front" - DeviceWithConfigContextFaceLabelRear DeviceWithConfigContextFaceLabel = "Rear" -) - -// Defines values for DeviceWithConfigContextFaceValue. -const ( - DeviceWithConfigContextFaceValueFront DeviceWithConfigContextFaceValue = "front" - DeviceWithConfigContextFaceValueRear DeviceWithConfigContextFaceValue = "rear" -) - -// Defines values for DeviceWithConfigContextStatusLabel. -const ( - DeviceWithConfigContextStatusLabelActive DeviceWithConfigContextStatusLabel = "Active" - DeviceWithConfigContextStatusLabelDecommissioning DeviceWithConfigContextStatusLabel = "Decommissioning" - DeviceWithConfigContextStatusLabelFailed DeviceWithConfigContextStatusLabel = "Failed" - DeviceWithConfigContextStatusLabelInventory DeviceWithConfigContextStatusLabel = "Inventory" - DeviceWithConfigContextStatusLabelOffline DeviceWithConfigContextStatusLabel = "Offline" - DeviceWithConfigContextStatusLabelPlanned DeviceWithConfigContextStatusLabel = "Planned" - DeviceWithConfigContextStatusLabelStaged DeviceWithConfigContextStatusLabel = "Staged" -) - -// Defines values for DeviceWithConfigContextStatusValue. -const ( - DeviceWithConfigContextStatusValueActive DeviceWithConfigContextStatusValue = "active" - DeviceWithConfigContextStatusValueDecommissioning DeviceWithConfigContextStatusValue = "decommissioning" - DeviceWithConfigContextStatusValueFailed DeviceWithConfigContextStatusValue = "failed" - DeviceWithConfigContextStatusValueInventory DeviceWithConfigContextStatusValue = "inventory" - DeviceWithConfigContextStatusValueOffline DeviceWithConfigContextStatusValue = "offline" - DeviceWithConfigContextStatusValuePlanned DeviceWithConfigContextStatusValue = "planned" - DeviceWithConfigContextStatusValueStaged DeviceWithConfigContextStatusValue = "staged" -) - -// Defines values for FQDNStatusLabel. -const ( - FQDNStatusLabelActive FQDNStatusLabel = "Active" - FQDNStatusLabelDecommissioned FQDNStatusLabel = "Decommissioned" - FQDNStatusLabelStaged FQDNStatusLabel = "Staged" -) - -// Defines values for FQDNStatusValue. -const ( - FQDNStatusValueActive FQDNStatusValue = "active" - FQDNStatusValueDecommissioned FQDNStatusValue = "decommissioned" - FQDNStatusValueStaged FQDNStatusValue = "staged" -) - -// Defines values for FaceEnum. -const ( - FaceEnumFront FaceEnum = "front" - FaceEnumRear FaceEnum = "rear" -) - -// Defines values for FailoverStrategyEnum. -const ( - ActiveActive FailoverStrategyEnum = "active-active" - ActivePassive FailoverStrategyEnum = "active-passive" -) - -// Defines values for FeedLegEnum. -const ( - FeedLegEnumA FeedLegEnum = "A" - FeedLegEnumB FeedLegEnum = "B" - FeedLegEnumC FeedLegEnum = "C" -) - -// Defines values for FilterLogicEnum. -const ( - Disabled FilterLogicEnum = "disabled" - Exact FilterLogicEnum = "exact" - Loose FilterLogicEnum = "loose" -) - -// Defines values for FrontPortTypeLabel. -const ( - FrontPortTypeLabelBNC FrontPortTypeLabel = "BNC" - FrontPortTypeLabelCS FrontPortTypeLabel = "CS" - FrontPortTypeLabelFC FrontPortTypeLabel = "FC" - FrontPortTypeLabelGG45 FrontPortTypeLabel = "GG45" - FrontPortTypeLabelLC FrontPortTypeLabel = "LC" - FrontPortTypeLabelLCAPC FrontPortTypeLabel = "LC/APC" - FrontPortTypeLabelLSH FrontPortTypeLabel = "LSH" - FrontPortTypeLabelLSHAPC FrontPortTypeLabel = "LSH/APC" - FrontPortTypeLabelMPO FrontPortTypeLabel = "MPO" - FrontPortTypeLabelMRJ21 FrontPortTypeLabel = "MRJ21" - FrontPortTypeLabelMTRJ FrontPortTypeLabel = "MTRJ" - FrontPortTypeLabelN110Punch FrontPortTypeLabel = "110 Punch" - FrontPortTypeLabelN8P2C FrontPortTypeLabel = "8P2C" - FrontPortTypeLabelN8P4C FrontPortTypeLabel = "8P4C" - FrontPortTypeLabelN8P6C FrontPortTypeLabel = "8P6C" - FrontPortTypeLabelN8P8C FrontPortTypeLabel = "8P8C" - FrontPortTypeLabelSC FrontPortTypeLabel = "SC" - FrontPortTypeLabelSCAPC FrontPortTypeLabel = "SC/APC" - FrontPortTypeLabelSN FrontPortTypeLabel = "SN" - FrontPortTypeLabelST FrontPortTypeLabel = "ST" - FrontPortTypeLabelSplice FrontPortTypeLabel = "Splice" - FrontPortTypeLabelTERA1P FrontPortTypeLabel = "TERA 1P" - FrontPortTypeLabelTERA2P FrontPortTypeLabel = "TERA 2P" - FrontPortTypeLabelTERA4P FrontPortTypeLabel = "TERA 4P" - FrontPortTypeLabelURMP2 FrontPortTypeLabel = "URM-P2" - FrontPortTypeLabelURMP4 FrontPortTypeLabel = "URM-P4" - FrontPortTypeLabelURMP8 FrontPortTypeLabel = "URM-P8" -) - -// Defines values for FrontPortTypeValue. -const ( - FrontPortTypeValueBnc FrontPortTypeValue = "bnc" - FrontPortTypeValueCs FrontPortTypeValue = "cs" - FrontPortTypeValueFc FrontPortTypeValue = "fc" - FrontPortTypeValueGg45 FrontPortTypeValue = "gg45" - FrontPortTypeValueLc FrontPortTypeValue = "lc" - FrontPortTypeValueLcApc FrontPortTypeValue = "lc-apc" - FrontPortTypeValueLsh FrontPortTypeValue = "lsh" - FrontPortTypeValueLshApc FrontPortTypeValue = "lsh-apc" - FrontPortTypeValueMpo FrontPortTypeValue = "mpo" - FrontPortTypeValueMrj21 FrontPortTypeValue = "mrj21" - FrontPortTypeValueMtrj FrontPortTypeValue = "mtrj" - FrontPortTypeValueN110Punch FrontPortTypeValue = "110-punch" - FrontPortTypeValueN8p2c FrontPortTypeValue = "8p2c" - FrontPortTypeValueN8p4c FrontPortTypeValue = "8p4c" - FrontPortTypeValueN8p6c FrontPortTypeValue = "8p6c" - FrontPortTypeValueN8p8c FrontPortTypeValue = "8p8c" - FrontPortTypeValueSc FrontPortTypeValue = "sc" - FrontPortTypeValueScApc FrontPortTypeValue = "sc-apc" - FrontPortTypeValueSn FrontPortTypeValue = "sn" - FrontPortTypeValueSplice FrontPortTypeValue = "splice" - FrontPortTypeValueSt FrontPortTypeValue = "st" - FrontPortTypeValueTera1p FrontPortTypeValue = "tera-1p" - FrontPortTypeValueTera2p FrontPortTypeValue = "tera-2p" - FrontPortTypeValueTera4p FrontPortTypeValue = "tera-4p" - FrontPortTypeValueUrmP2 FrontPortTypeValue = "urm-p2" - FrontPortTypeValueUrmP4 FrontPortTypeValue = "urm-p4" - FrontPortTypeValueUrmP8 FrontPortTypeValue = "urm-p8" -) - -// Defines values for FrontPortTemplateTypeLabel. -const ( - FrontPortTemplateTypeLabelBNC FrontPortTemplateTypeLabel = "BNC" - FrontPortTemplateTypeLabelCS FrontPortTemplateTypeLabel = "CS" - FrontPortTemplateTypeLabelFC FrontPortTemplateTypeLabel = "FC" - FrontPortTemplateTypeLabelGG45 FrontPortTemplateTypeLabel = "GG45" - FrontPortTemplateTypeLabelLC FrontPortTemplateTypeLabel = "LC" - FrontPortTemplateTypeLabelLCAPC FrontPortTemplateTypeLabel = "LC/APC" - FrontPortTemplateTypeLabelLSH FrontPortTemplateTypeLabel = "LSH" - FrontPortTemplateTypeLabelLSHAPC FrontPortTemplateTypeLabel = "LSH/APC" - FrontPortTemplateTypeLabelMPO FrontPortTemplateTypeLabel = "MPO" - FrontPortTemplateTypeLabelMRJ21 FrontPortTemplateTypeLabel = "MRJ21" - FrontPortTemplateTypeLabelMTRJ FrontPortTemplateTypeLabel = "MTRJ" - FrontPortTemplateTypeLabelN110Punch FrontPortTemplateTypeLabel = "110 Punch" - FrontPortTemplateTypeLabelN8P2C FrontPortTemplateTypeLabel = "8P2C" - FrontPortTemplateTypeLabelN8P4C FrontPortTemplateTypeLabel = "8P4C" - FrontPortTemplateTypeLabelN8P6C FrontPortTemplateTypeLabel = "8P6C" - FrontPortTemplateTypeLabelN8P8C FrontPortTemplateTypeLabel = "8P8C" - FrontPortTemplateTypeLabelSC FrontPortTemplateTypeLabel = "SC" - FrontPortTemplateTypeLabelSCAPC FrontPortTemplateTypeLabel = "SC/APC" - FrontPortTemplateTypeLabelSN FrontPortTemplateTypeLabel = "SN" - FrontPortTemplateTypeLabelST FrontPortTemplateTypeLabel = "ST" - FrontPortTemplateTypeLabelSplice FrontPortTemplateTypeLabel = "Splice" - FrontPortTemplateTypeLabelTERA1P FrontPortTemplateTypeLabel = "TERA 1P" - FrontPortTemplateTypeLabelTERA2P FrontPortTemplateTypeLabel = "TERA 2P" - FrontPortTemplateTypeLabelTERA4P FrontPortTemplateTypeLabel = "TERA 4P" - FrontPortTemplateTypeLabelURMP2 FrontPortTemplateTypeLabel = "URM-P2" - FrontPortTemplateTypeLabelURMP4 FrontPortTemplateTypeLabel = "URM-P4" - FrontPortTemplateTypeLabelURMP8 FrontPortTemplateTypeLabel = "URM-P8" -) - -// Defines values for FrontPortTemplateTypeValue. -const ( - FrontPortTemplateTypeValueBnc FrontPortTemplateTypeValue = "bnc" - FrontPortTemplateTypeValueCs FrontPortTemplateTypeValue = "cs" - FrontPortTemplateTypeValueFc FrontPortTemplateTypeValue = "fc" - FrontPortTemplateTypeValueGg45 FrontPortTemplateTypeValue = "gg45" - FrontPortTemplateTypeValueLc FrontPortTemplateTypeValue = "lc" - FrontPortTemplateTypeValueLcApc FrontPortTemplateTypeValue = "lc-apc" - FrontPortTemplateTypeValueLsh FrontPortTemplateTypeValue = "lsh" - FrontPortTemplateTypeValueLshApc FrontPortTemplateTypeValue = "lsh-apc" - FrontPortTemplateTypeValueMpo FrontPortTemplateTypeValue = "mpo" - FrontPortTemplateTypeValueMrj21 FrontPortTemplateTypeValue = "mrj21" - FrontPortTemplateTypeValueMtrj FrontPortTemplateTypeValue = "mtrj" - FrontPortTemplateTypeValueN110Punch FrontPortTemplateTypeValue = "110-punch" - FrontPortTemplateTypeValueN8p2c FrontPortTemplateTypeValue = "8p2c" - FrontPortTemplateTypeValueN8p4c FrontPortTemplateTypeValue = "8p4c" - FrontPortTemplateTypeValueN8p6c FrontPortTemplateTypeValue = "8p6c" - FrontPortTemplateTypeValueN8p8c FrontPortTemplateTypeValue = "8p8c" - FrontPortTemplateTypeValueSc FrontPortTemplateTypeValue = "sc" - FrontPortTemplateTypeValueScApc FrontPortTemplateTypeValue = "sc-apc" - FrontPortTemplateTypeValueSn FrontPortTemplateTypeValue = "sn" - FrontPortTemplateTypeValueSplice FrontPortTemplateTypeValue = "splice" - FrontPortTemplateTypeValueSt FrontPortTemplateTypeValue = "st" - FrontPortTemplateTypeValueTera1p FrontPortTemplateTypeValue = "tera-1p" - FrontPortTemplateTypeValueTera2p FrontPortTemplateTypeValue = "tera-2p" - FrontPortTemplateTypeValueTera4p FrontPortTemplateTypeValue = "tera-4p" - FrontPortTemplateTypeValueUrmP2 FrontPortTemplateTypeValue = "urm-p2" - FrontPortTemplateTypeValueUrmP4 FrontPortTemplateTypeValue = "urm-p4" - FrontPortTemplateTypeValueUrmP8 FrontPortTemplateTypeValue = "urm-p8" -) - -// Defines values for GrantTypeEnum. -const ( - GrantTypeEnumChannel GrantTypeEnum = "channel" - GrantTypeEnumOrganization GrantTypeEnum = "organization" - GrantTypeEnumUser GrantTypeEnum = "user" -) - -// Defines values for HttpMethodEnum. -const ( - DELETE HttpMethodEnum = "DELETE" - GET HttpMethodEnum = "GET" - PATCH HttpMethodEnum = "PATCH" - POST HttpMethodEnum = "POST" - PUT HttpMethodEnum = "PUT" -) - -// Defines values for IPAddressFamilyLabel. -const ( - IPAddressFamilyLabelIPv4 IPAddressFamilyLabel = "IPv4" - IPAddressFamilyLabelIPv6 IPAddressFamilyLabel = "IPv6" -) - -// Defines values for IPAddressFamilyValue. -const ( - IPAddressFamilyValueN4 IPAddressFamilyValue = 4 - IPAddressFamilyValueN6 IPAddressFamilyValue = 6 -) - -// Defines values for IPAddressRoleLabel. -const ( - IPAddressRoleLabelAnycast IPAddressRoleLabel = "Anycast" - IPAddressRoleLabelCARP IPAddressRoleLabel = "CARP" - IPAddressRoleLabelGLBP IPAddressRoleLabel = "GLBP" - IPAddressRoleLabelHSRP IPAddressRoleLabel = "HSRP" - IPAddressRoleLabelLoopback IPAddressRoleLabel = "Loopback" - IPAddressRoleLabelSecondary IPAddressRoleLabel = "Secondary" - IPAddressRoleLabelVIP IPAddressRoleLabel = "VIP" - IPAddressRoleLabelVRRP IPAddressRoleLabel = "VRRP" -) - -// Defines values for IPAddressRoleValue. -const ( - IPAddressRoleValueAnycast IPAddressRoleValue = "anycast" - IPAddressRoleValueCarp IPAddressRoleValue = "carp" - IPAddressRoleValueGlbp IPAddressRoleValue = "glbp" - IPAddressRoleValueHsrp IPAddressRoleValue = "hsrp" - IPAddressRoleValueLoopback IPAddressRoleValue = "loopback" - IPAddressRoleValueSecondary IPAddressRoleValue = "secondary" - IPAddressRoleValueVip IPAddressRoleValue = "vip" - IPAddressRoleValueVrrp IPAddressRoleValue = "vrrp" -) - -// Defines values for IPAddressStatusLabel. -const ( - IPAddressStatusLabelActive IPAddressStatusLabel = "Active" - IPAddressStatusLabelDHCP IPAddressStatusLabel = "DHCP" - IPAddressStatusLabelDeprecated IPAddressStatusLabel = "Deprecated" - IPAddressStatusLabelReserved IPAddressStatusLabel = "Reserved" - IPAddressStatusLabelSLAAC IPAddressStatusLabel = "SLAAC" -) - -// Defines values for IPAddressStatusValue. -const ( - IPAddressStatusValueActive IPAddressStatusValue = "active" - IPAddressStatusValueDeprecated IPAddressStatusValue = "deprecated" - IPAddressStatusValueDhcp IPAddressStatusValue = "dhcp" - IPAddressStatusValueReserved IPAddressStatusValue = "reserved" - IPAddressStatusValueSlaac IPAddressStatusValue = "slaac" -) - -// Defines values for IPAddressStatusChoices. -const ( - IPAddressStatusChoicesActive IPAddressStatusChoices = "active" - IPAddressStatusChoicesDeprecated IPAddressStatusChoices = "deprecated" - IPAddressStatusChoicesDhcp IPAddressStatusChoices = "dhcp" - IPAddressStatusChoicesReserved IPAddressStatusChoices = "reserved" - IPAddressStatusChoicesSlaac IPAddressStatusChoices = "slaac" -) - -// Defines values for IPRangeStatusLabel. -const ( - IPRangeStatusLabelActive IPRangeStatusLabel = "Active" - IPRangeStatusLabelDecommissioned IPRangeStatusLabel = "Decommissioned" - IPRangeStatusLabelStaged IPRangeStatusLabel = "Staged" -) - -// Defines values for IPRangeStatusValue. -const ( - IPRangeStatusValueActive IPRangeStatusValue = "active" - IPRangeStatusValueDecommissioned IPRangeStatusValue = "decommissioned" - IPRangeStatusValueStaged IPRangeStatusValue = "staged" -) - -// Defines values for ImpactEnum. -const ( - DEGRADED ImpactEnum = "DEGRADED" - NOIMPACT ImpactEnum = "NO-IMPACT" - OUTAGE ImpactEnum = "OUTAGE" - REDUCEDREDUNDANCY ImpactEnum = "REDUCED-REDUNDANCY" -) - -// Defines values for InterfaceModeLabel. -const ( - InterfaceModeLabelAccess InterfaceModeLabel = "Access" - InterfaceModeLabelTagged InterfaceModeLabel = "Tagged" - InterfaceModeLabelTaggedAll InterfaceModeLabel = "Tagged (All)" -) - -// Defines values for InterfaceModeValue. -const ( - InterfaceModeValueAccess InterfaceModeValue = "access" - InterfaceModeValueTagged InterfaceModeValue = "tagged" - InterfaceModeValueTaggedAll InterfaceModeValue = "tagged-all" -) - -// Defines values for InterfaceStatusLabel. -const ( - InterfaceStatusLabelActive InterfaceStatusLabel = "Active" - InterfaceStatusLabelDecommissioning InterfaceStatusLabel = "Decommissioning" - InterfaceStatusLabelFailed InterfaceStatusLabel = "Failed" - InterfaceStatusLabelMaintenance InterfaceStatusLabel = "Maintenance" - InterfaceStatusLabelPlanned InterfaceStatusLabel = "Planned" -) - -// Defines values for InterfaceStatusValue. -const ( - InterfaceStatusValueActive InterfaceStatusValue = "active" - InterfaceStatusValueDecommissioning InterfaceStatusValue = "decommissioning" - InterfaceStatusValueFailed InterfaceStatusValue = "failed" - InterfaceStatusValueMaintenance InterfaceStatusValue = "maintenance" - InterfaceStatusValuePlanned InterfaceStatusValue = "planned" -) - -// Defines values for InterfaceTypeLabel. -const ( - InterfaceTypeLabelBridge InterfaceTypeLabel = "Bridge" - InterfaceTypeLabelCDMA InterfaceTypeLabel = "CDMA" - InterfaceTypeLabelCFP100GE InterfaceTypeLabel = "CFP (100GE)" - InterfaceTypeLabelCFP2100GE InterfaceTypeLabel = "CFP2 (100GE)" - InterfaceTypeLabelCFP2200GE InterfaceTypeLabel = "CFP2 (200GE)" - InterfaceTypeLabelCFP4100GE InterfaceTypeLabel = "CFP4 (100GE)" - InterfaceTypeLabelCiscoCPAK100GE InterfaceTypeLabel = "Cisco CPAK (100GE)" - InterfaceTypeLabelCiscoFlexStack InterfaceTypeLabel = "Cisco FlexStack" - InterfaceTypeLabelCiscoFlexStackPlus InterfaceTypeLabel = "Cisco FlexStack Plus" - InterfaceTypeLabelCiscoStackWise InterfaceTypeLabel = "Cisco StackWise" - InterfaceTypeLabelCiscoStackWisePlus InterfaceTypeLabel = "Cisco StackWise Plus" - InterfaceTypeLabelDDR4Gbps InterfaceTypeLabel = "DDR (4 Gbps)" - InterfaceTypeLabelE12048Mbps InterfaceTypeLabel = "E1 (2.048 Mbps)" - InterfaceTypeLabelE334Mbps InterfaceTypeLabel = "E3 (34 Mbps)" - InterfaceTypeLabelEDR25Gbps InterfaceTypeLabel = "EDR (25 Gbps)" - InterfaceTypeLabelExtremeSummitStack InterfaceTypeLabel = "Extreme SummitStack" - InterfaceTypeLabelExtremeSummitStack128 InterfaceTypeLabel = "Extreme SummitStack-128" - InterfaceTypeLabelExtremeSummitStack256 InterfaceTypeLabel = "Extreme SummitStack-256" - InterfaceTypeLabelExtremeSummitStack512 InterfaceTypeLabel = "Extreme SummitStack-512" - InterfaceTypeLabelFDR1010Gbps InterfaceTypeLabel = "FDR10 (10 Gbps)" - InterfaceTypeLabelFDR135Gbps InterfaceTypeLabel = "FDR (13.5 Gbps)" - InterfaceTypeLabelGBIC1GE InterfaceTypeLabel = "GBIC (1GE)" - InterfaceTypeLabelGSM InterfaceTypeLabel = "GSM" - InterfaceTypeLabelHDR50Gbps InterfaceTypeLabel = "HDR (50 Gbps)" - InterfaceTypeLabelIEEE80211a InterfaceTypeLabel = "IEEE 802.11a" - InterfaceTypeLabelIEEE80211ac InterfaceTypeLabel = "IEEE 802.11ac" - InterfaceTypeLabelIEEE80211ad InterfaceTypeLabel = "IEEE 802.11ad" - InterfaceTypeLabelIEEE80211ax InterfaceTypeLabel = "IEEE 802.11ax" - InterfaceTypeLabelIEEE80211bg InterfaceTypeLabel = "IEEE 802.11b/g" - InterfaceTypeLabelIEEE80211n InterfaceTypeLabel = "IEEE 802.11n" - InterfaceTypeLabelJuniperVCP InterfaceTypeLabel = "Juniper VCP" - InterfaceTypeLabelLTE InterfaceTypeLabel = "LTE" - InterfaceTypeLabelLinkAggregationGroupLAG InterfaceTypeLabel = "Link Aggregation Group (LAG)" - InterfaceTypeLabelN1000BASET1GE InterfaceTypeLabel = "1000BASE-T (1GE)" - InterfaceTypeLabelN100BASETX10100ME InterfaceTypeLabel = "100BASE-TX (10/100ME)" - InterfaceTypeLabelN10GBASECX410GE InterfaceTypeLabel = "10GBASE-CX4 (10GE)" - InterfaceTypeLabelN10GBASET10GE InterfaceTypeLabel = "10GBASE-T (10GE)" - InterfaceTypeLabelN25GBASET25GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)" - InterfaceTypeLabelN5GBASET5GE InterfaceTypeLabel = "5GBASE-T (5GE)" - InterfaceTypeLabelNDR100Gbps InterfaceTypeLabel = "NDR (100 Gbps)" - InterfaceTypeLabelOC12STM4 InterfaceTypeLabel = "OC-12/STM-4" - InterfaceTypeLabelOC1920STM640 InterfaceTypeLabel = "OC-1920/STM-640" - InterfaceTypeLabelOC192STM64 InterfaceTypeLabel = "OC-192/STM-64" - InterfaceTypeLabelOC3840STM1234 InterfaceTypeLabel = "OC-3840/STM-1234" - InterfaceTypeLabelOC3STM1 InterfaceTypeLabel = "OC-3/STM-1" - InterfaceTypeLabelOC48STM16 InterfaceTypeLabel = "OC-48/STM-16" - InterfaceTypeLabelOC768STM256 InterfaceTypeLabel = "OC-768/STM-256" - InterfaceTypeLabelOSFP400GE InterfaceTypeLabel = "OSFP (400GE)" - InterfaceTypeLabelOther InterfaceTypeLabel = "Other" - InterfaceTypeLabelQDR8Gbps InterfaceTypeLabel = "QDR (8 Gbps)" - InterfaceTypeLabelQSFP28100GE InterfaceTypeLabel = "QSFP28 (100GE)" - InterfaceTypeLabelQSFP28128GFC InterfaceTypeLabel = "QSFP28 (128GFC)" - InterfaceTypeLabelQSFP2850GE InterfaceTypeLabel = "QSFP28 (50GE)" - InterfaceTypeLabelQSFP40GE InterfaceTypeLabel = "QSFP+ (40GE)" - InterfaceTypeLabelQSFP56200GE InterfaceTypeLabel = "QSFP56 (200GE)" - InterfaceTypeLabelQSFP64GFC InterfaceTypeLabel = "QSFP+ (64GFC)" - InterfaceTypeLabelQSFPDD400GE InterfaceTypeLabel = "QSFP-DD (400GE)" - InterfaceTypeLabelSDR2Gbps InterfaceTypeLabel = "SDR (2 Gbps)" - InterfaceTypeLabelSFP10GE InterfaceTypeLabel = "SFP+ (10GE)" - InterfaceTypeLabelSFP16GFC InterfaceTypeLabel = "SFP+ (16GFC)" - InterfaceTypeLabelSFP1GE InterfaceTypeLabel = "SFP (1GE)" - InterfaceTypeLabelSFP1GFC InterfaceTypeLabel = "SFP (1GFC)" - InterfaceTypeLabelSFP2825GE InterfaceTypeLabel = "SFP28 (25GE)" - InterfaceTypeLabelSFP2832GFC InterfaceTypeLabel = "SFP28 (32GFC)" - InterfaceTypeLabelSFP2GFC InterfaceTypeLabel = "SFP (2GFC)" - InterfaceTypeLabelSFP4GFC InterfaceTypeLabel = "SFP (4GFC)" - InterfaceTypeLabelSFP8GFC InterfaceTypeLabel = "SFP+ (8GFC)" - InterfaceTypeLabelT11544Mbps InterfaceTypeLabel = "T1 (1.544 Mbps)" - InterfaceTypeLabelT345Mbps InterfaceTypeLabel = "T3 (45 Mbps)" - InterfaceTypeLabelVirtual InterfaceTypeLabel = "Virtual" - InterfaceTypeLabelX210GE InterfaceTypeLabel = "X2 (10GE)" - InterfaceTypeLabelXDR250Gbps InterfaceTypeLabel = "XDR (250 Gbps)" - InterfaceTypeLabelXENPAK10GE InterfaceTypeLabel = "XENPAK (10GE)" - InterfaceTypeLabelXFP10GE InterfaceTypeLabel = "XFP (10GE)" -) - -// Defines values for InterfaceTypeValue. -const ( - InterfaceTypeValueBridge InterfaceTypeValue = "bridge" - InterfaceTypeValueCdma InterfaceTypeValue = "cdma" - InterfaceTypeValueCiscoFlexstack InterfaceTypeValue = "cisco-flexstack" - InterfaceTypeValueCiscoFlexstackPlus InterfaceTypeValue = "cisco-flexstack-plus" - InterfaceTypeValueCiscoStackwise InterfaceTypeValue = "cisco-stackwise" - InterfaceTypeValueCiscoStackwisePlus InterfaceTypeValue = "cisco-stackwise-plus" - InterfaceTypeValueE1 InterfaceTypeValue = "e1" - InterfaceTypeValueE3 InterfaceTypeValue = "e3" - InterfaceTypeValueExtremeSummitstack InterfaceTypeValue = "extreme-summitstack" - InterfaceTypeValueExtremeSummitstack128 InterfaceTypeValue = "extreme-summitstack-128" - InterfaceTypeValueExtremeSummitstack256 InterfaceTypeValue = "extreme-summitstack-256" - InterfaceTypeValueExtremeSummitstack512 InterfaceTypeValue = "extreme-summitstack-512" - InterfaceTypeValueGsm InterfaceTypeValue = "gsm" - InterfaceTypeValueIeee80211a InterfaceTypeValue = "ieee802.11a" - InterfaceTypeValueIeee80211ac InterfaceTypeValue = "ieee802.11ac" - InterfaceTypeValueIeee80211ad InterfaceTypeValue = "ieee802.11ad" - InterfaceTypeValueIeee80211ax InterfaceTypeValue = "ieee802.11ax" - InterfaceTypeValueIeee80211g InterfaceTypeValue = "ieee802.11g" - InterfaceTypeValueIeee80211n InterfaceTypeValue = "ieee802.11n" - InterfaceTypeValueInfinibandDdr InterfaceTypeValue = "infiniband-ddr" - InterfaceTypeValueInfinibandEdr InterfaceTypeValue = "infiniband-edr" - InterfaceTypeValueInfinibandFdr InterfaceTypeValue = "infiniband-fdr" - InterfaceTypeValueInfinibandFdr10 InterfaceTypeValue = "infiniband-fdr10" - InterfaceTypeValueInfinibandHdr InterfaceTypeValue = "infiniband-hdr" - InterfaceTypeValueInfinibandNdr InterfaceTypeValue = "infiniband-ndr" - InterfaceTypeValueInfinibandQdr InterfaceTypeValue = "infiniband-qdr" - InterfaceTypeValueInfinibandSdr InterfaceTypeValue = "infiniband-sdr" - InterfaceTypeValueInfinibandXdr InterfaceTypeValue = "infiniband-xdr" - InterfaceTypeValueJuniperVcp InterfaceTypeValue = "juniper-vcp" - InterfaceTypeValueLag InterfaceTypeValue = "lag" - InterfaceTypeValueLte InterfaceTypeValue = "lte" - InterfaceTypeValueN1000baseT InterfaceTypeValue = "1000base-t" - InterfaceTypeValueN1000baseXGbic InterfaceTypeValue = "1000base-x-gbic" - InterfaceTypeValueN1000baseXSfp InterfaceTypeValue = "1000base-x-sfp" - InterfaceTypeValueN100baseTx InterfaceTypeValue = "100base-tx" - InterfaceTypeValueN100gbaseXCfp InterfaceTypeValue = "100gbase-x-cfp" - InterfaceTypeValueN100gbaseXCfp2 InterfaceTypeValue = "100gbase-x-cfp2" - InterfaceTypeValueN100gbaseXCfp4 InterfaceTypeValue = "100gbase-x-cfp4" - InterfaceTypeValueN100gbaseXCpak InterfaceTypeValue = "100gbase-x-cpak" - InterfaceTypeValueN100gbaseXQsfp28 InterfaceTypeValue = "100gbase-x-qsfp28" - InterfaceTypeValueN10gbaseCx4 InterfaceTypeValue = "10gbase-cx4" - InterfaceTypeValueN10gbaseT InterfaceTypeValue = "10gbase-t" - InterfaceTypeValueN10gbaseXSfpp InterfaceTypeValue = "10gbase-x-sfpp" - InterfaceTypeValueN10gbaseXX2 InterfaceTypeValue = "10gbase-x-x2" - InterfaceTypeValueN10gbaseXXenpak InterfaceTypeValue = "10gbase-x-xenpak" - InterfaceTypeValueN10gbaseXXfp InterfaceTypeValue = "10gbase-x-xfp" - InterfaceTypeValueN128gfcSfp28 InterfaceTypeValue = "128gfc-sfp28" - InterfaceTypeValueN16gfcSfpp InterfaceTypeValue = "16gfc-sfpp" - InterfaceTypeValueN1gfcSfp InterfaceTypeValue = "1gfc-sfp" - InterfaceTypeValueN200gbaseXCfp2 InterfaceTypeValue = "200gbase-x-cfp2" - InterfaceTypeValueN200gbaseXQsfp56 InterfaceTypeValue = "200gbase-x-qsfp56" - InterfaceTypeValueN25gbaseT InterfaceTypeValue = "2.5gbase-t" - InterfaceTypeValueN25gbaseXSfp28 InterfaceTypeValue = "25gbase-x-sfp28" - InterfaceTypeValueN2gfcSfp InterfaceTypeValue = "2gfc-sfp" - InterfaceTypeValueN32gfcSfp28 InterfaceTypeValue = "32gfc-sfp28" - InterfaceTypeValueN400gbaseXOsfp InterfaceTypeValue = "400gbase-x-osfp" - InterfaceTypeValueN400gbaseXQsfpdd InterfaceTypeValue = "400gbase-x-qsfpdd" - InterfaceTypeValueN40gbaseXQsfpp InterfaceTypeValue = "40gbase-x-qsfpp" - InterfaceTypeValueN4gfcSfp InterfaceTypeValue = "4gfc-sfp" - InterfaceTypeValueN50gbaseXSfp28 InterfaceTypeValue = "50gbase-x-sfp28" - InterfaceTypeValueN5gbaseT InterfaceTypeValue = "5gbase-t" - InterfaceTypeValueN64gfcQsfpp InterfaceTypeValue = "64gfc-qsfpp" - InterfaceTypeValueN8gfcSfpp InterfaceTypeValue = "8gfc-sfpp" - InterfaceTypeValueOther InterfaceTypeValue = "other" - InterfaceTypeValueSonetOc12 InterfaceTypeValue = "sonet-oc12" - InterfaceTypeValueSonetOc192 InterfaceTypeValue = "sonet-oc192" - InterfaceTypeValueSonetOc1920 InterfaceTypeValue = "sonet-oc1920" - InterfaceTypeValueSonetOc3 InterfaceTypeValue = "sonet-oc3" - InterfaceTypeValueSonetOc3840 InterfaceTypeValue = "sonet-oc3840" - InterfaceTypeValueSonetOc48 InterfaceTypeValue = "sonet-oc48" - InterfaceTypeValueSonetOc768 InterfaceTypeValue = "sonet-oc768" - InterfaceTypeValueT1 InterfaceTypeValue = "t1" - InterfaceTypeValueT3 InterfaceTypeValue = "t3" - InterfaceTypeValueVirtual InterfaceTypeValue = "virtual" -) - -// Defines values for InterfaceSerializerVersion12ModeLabel. -const ( - InterfaceSerializerVersion12ModeLabelAccess InterfaceSerializerVersion12ModeLabel = "Access" - InterfaceSerializerVersion12ModeLabelTagged InterfaceSerializerVersion12ModeLabel = "Tagged" - InterfaceSerializerVersion12ModeLabelTaggedAll InterfaceSerializerVersion12ModeLabel = "Tagged (All)" -) - -// Defines values for InterfaceSerializerVersion12ModeValue. -const ( - InterfaceSerializerVersion12ModeValueAccess InterfaceSerializerVersion12ModeValue = "access" - InterfaceSerializerVersion12ModeValueTagged InterfaceSerializerVersion12ModeValue = "tagged" - InterfaceSerializerVersion12ModeValueTaggedAll InterfaceSerializerVersion12ModeValue = "tagged-all" -) - -// Defines values for InterfaceSerializerVersion12TypeLabel. -const ( - InterfaceSerializerVersion12TypeLabelBridge InterfaceSerializerVersion12TypeLabel = "Bridge" - InterfaceSerializerVersion12TypeLabelCDMA InterfaceSerializerVersion12TypeLabel = "CDMA" - InterfaceSerializerVersion12TypeLabelCFP100GE InterfaceSerializerVersion12TypeLabel = "CFP (100GE)" - InterfaceSerializerVersion12TypeLabelCFP2100GE InterfaceSerializerVersion12TypeLabel = "CFP2 (100GE)" - InterfaceSerializerVersion12TypeLabelCFP2200GE InterfaceSerializerVersion12TypeLabel = "CFP2 (200GE)" - InterfaceSerializerVersion12TypeLabelCFP4100GE InterfaceSerializerVersion12TypeLabel = "CFP4 (100GE)" - InterfaceSerializerVersion12TypeLabelCiscoCPAK100GE InterfaceSerializerVersion12TypeLabel = "Cisco CPAK (100GE)" - InterfaceSerializerVersion12TypeLabelCiscoFlexStack InterfaceSerializerVersion12TypeLabel = "Cisco FlexStack" - InterfaceSerializerVersion12TypeLabelCiscoFlexStackPlus InterfaceSerializerVersion12TypeLabel = "Cisco FlexStack Plus" - InterfaceSerializerVersion12TypeLabelCiscoStackWise InterfaceSerializerVersion12TypeLabel = "Cisco StackWise" - InterfaceSerializerVersion12TypeLabelCiscoStackWisePlus InterfaceSerializerVersion12TypeLabel = "Cisco StackWise Plus" - InterfaceSerializerVersion12TypeLabelDDR4Gbps InterfaceSerializerVersion12TypeLabel = "DDR (4 Gbps)" - InterfaceSerializerVersion12TypeLabelE12048Mbps InterfaceSerializerVersion12TypeLabel = "E1 (2.048 Mbps)" - InterfaceSerializerVersion12TypeLabelE334Mbps InterfaceSerializerVersion12TypeLabel = "E3 (34 Mbps)" - InterfaceSerializerVersion12TypeLabelEDR25Gbps InterfaceSerializerVersion12TypeLabel = "EDR (25 Gbps)" - InterfaceSerializerVersion12TypeLabelExtremeSummitStack InterfaceSerializerVersion12TypeLabel = "Extreme SummitStack" - InterfaceSerializerVersion12TypeLabelExtremeSummitStack128 InterfaceSerializerVersion12TypeLabel = "Extreme SummitStack-128" - InterfaceSerializerVersion12TypeLabelExtremeSummitStack256 InterfaceSerializerVersion12TypeLabel = "Extreme SummitStack-256" - InterfaceSerializerVersion12TypeLabelExtremeSummitStack512 InterfaceSerializerVersion12TypeLabel = "Extreme SummitStack-512" - InterfaceSerializerVersion12TypeLabelFDR1010Gbps InterfaceSerializerVersion12TypeLabel = "FDR10 (10 Gbps)" - InterfaceSerializerVersion12TypeLabelFDR135Gbps InterfaceSerializerVersion12TypeLabel = "FDR (13.5 Gbps)" - InterfaceSerializerVersion12TypeLabelGBIC1GE InterfaceSerializerVersion12TypeLabel = "GBIC (1GE)" - InterfaceSerializerVersion12TypeLabelGSM InterfaceSerializerVersion12TypeLabel = "GSM" - InterfaceSerializerVersion12TypeLabelHDR50Gbps InterfaceSerializerVersion12TypeLabel = "HDR (50 Gbps)" - InterfaceSerializerVersion12TypeLabelIEEE80211a InterfaceSerializerVersion12TypeLabel = "IEEE 802.11a" - InterfaceSerializerVersion12TypeLabelIEEE80211ac InterfaceSerializerVersion12TypeLabel = "IEEE 802.11ac" - InterfaceSerializerVersion12TypeLabelIEEE80211ad InterfaceSerializerVersion12TypeLabel = "IEEE 802.11ad" - InterfaceSerializerVersion12TypeLabelIEEE80211ax InterfaceSerializerVersion12TypeLabel = "IEEE 802.11ax" - InterfaceSerializerVersion12TypeLabelIEEE80211bg InterfaceSerializerVersion12TypeLabel = "IEEE 802.11b/g" - InterfaceSerializerVersion12TypeLabelIEEE80211n InterfaceSerializerVersion12TypeLabel = "IEEE 802.11n" - InterfaceSerializerVersion12TypeLabelJuniperVCP InterfaceSerializerVersion12TypeLabel = "Juniper VCP" - InterfaceSerializerVersion12TypeLabelLTE InterfaceSerializerVersion12TypeLabel = "LTE" - InterfaceSerializerVersion12TypeLabelLinkAggregationGroupLAG InterfaceSerializerVersion12TypeLabel = "Link Aggregation Group (LAG)" - InterfaceSerializerVersion12TypeLabelN1000BASET1GE InterfaceSerializerVersion12TypeLabel = "1000BASE-T (1GE)" - InterfaceSerializerVersion12TypeLabelN100BASETX10100ME InterfaceSerializerVersion12TypeLabel = "100BASE-TX (10/100ME)" - InterfaceSerializerVersion12TypeLabelN10GBASECX410GE InterfaceSerializerVersion12TypeLabel = "10GBASE-CX4 (10GE)" - InterfaceSerializerVersion12TypeLabelN10GBASET10GE InterfaceSerializerVersion12TypeLabel = "10GBASE-T (10GE)" - InterfaceSerializerVersion12TypeLabelN25GBASET25GE InterfaceSerializerVersion12TypeLabel = "2.5GBASE-T (2.5GE)" - InterfaceSerializerVersion12TypeLabelN5GBASET5GE InterfaceSerializerVersion12TypeLabel = "5GBASE-T (5GE)" - InterfaceSerializerVersion12TypeLabelNDR100Gbps InterfaceSerializerVersion12TypeLabel = "NDR (100 Gbps)" - InterfaceSerializerVersion12TypeLabelOC12STM4 InterfaceSerializerVersion12TypeLabel = "OC-12/STM-4" - InterfaceSerializerVersion12TypeLabelOC1920STM640 InterfaceSerializerVersion12TypeLabel = "OC-1920/STM-640" - InterfaceSerializerVersion12TypeLabelOC192STM64 InterfaceSerializerVersion12TypeLabel = "OC-192/STM-64" - InterfaceSerializerVersion12TypeLabelOC3840STM1234 InterfaceSerializerVersion12TypeLabel = "OC-3840/STM-1234" - InterfaceSerializerVersion12TypeLabelOC3STM1 InterfaceSerializerVersion12TypeLabel = "OC-3/STM-1" - InterfaceSerializerVersion12TypeLabelOC48STM16 InterfaceSerializerVersion12TypeLabel = "OC-48/STM-16" - InterfaceSerializerVersion12TypeLabelOC768STM256 InterfaceSerializerVersion12TypeLabel = "OC-768/STM-256" - InterfaceSerializerVersion12TypeLabelOSFP400GE InterfaceSerializerVersion12TypeLabel = "OSFP (400GE)" - InterfaceSerializerVersion12TypeLabelOther InterfaceSerializerVersion12TypeLabel = "Other" - InterfaceSerializerVersion12TypeLabelQDR8Gbps InterfaceSerializerVersion12TypeLabel = "QDR (8 Gbps)" - InterfaceSerializerVersion12TypeLabelQSFP28100GE InterfaceSerializerVersion12TypeLabel = "QSFP28 (100GE)" - InterfaceSerializerVersion12TypeLabelQSFP28128GFC InterfaceSerializerVersion12TypeLabel = "QSFP28 (128GFC)" - InterfaceSerializerVersion12TypeLabelQSFP2850GE InterfaceSerializerVersion12TypeLabel = "QSFP28 (50GE)" - InterfaceSerializerVersion12TypeLabelQSFP40GE InterfaceSerializerVersion12TypeLabel = "QSFP+ (40GE)" - InterfaceSerializerVersion12TypeLabelQSFP56200GE InterfaceSerializerVersion12TypeLabel = "QSFP56 (200GE)" - InterfaceSerializerVersion12TypeLabelQSFP64GFC InterfaceSerializerVersion12TypeLabel = "QSFP+ (64GFC)" - InterfaceSerializerVersion12TypeLabelQSFPDD400GE InterfaceSerializerVersion12TypeLabel = "QSFP-DD (400GE)" - InterfaceSerializerVersion12TypeLabelSDR2Gbps InterfaceSerializerVersion12TypeLabel = "SDR (2 Gbps)" - InterfaceSerializerVersion12TypeLabelSFP10GE InterfaceSerializerVersion12TypeLabel = "SFP+ (10GE)" - InterfaceSerializerVersion12TypeLabelSFP16GFC InterfaceSerializerVersion12TypeLabel = "SFP+ (16GFC)" - InterfaceSerializerVersion12TypeLabelSFP1GE InterfaceSerializerVersion12TypeLabel = "SFP (1GE)" - InterfaceSerializerVersion12TypeLabelSFP1GFC InterfaceSerializerVersion12TypeLabel = "SFP (1GFC)" - InterfaceSerializerVersion12TypeLabelSFP2825GE InterfaceSerializerVersion12TypeLabel = "SFP28 (25GE)" - InterfaceSerializerVersion12TypeLabelSFP2832GFC InterfaceSerializerVersion12TypeLabel = "SFP28 (32GFC)" - InterfaceSerializerVersion12TypeLabelSFP2GFC InterfaceSerializerVersion12TypeLabel = "SFP (2GFC)" - InterfaceSerializerVersion12TypeLabelSFP4GFC InterfaceSerializerVersion12TypeLabel = "SFP (4GFC)" - InterfaceSerializerVersion12TypeLabelSFP8GFC InterfaceSerializerVersion12TypeLabel = "SFP+ (8GFC)" - InterfaceSerializerVersion12TypeLabelT11544Mbps InterfaceSerializerVersion12TypeLabel = "T1 (1.544 Mbps)" - InterfaceSerializerVersion12TypeLabelT345Mbps InterfaceSerializerVersion12TypeLabel = "T3 (45 Mbps)" - InterfaceSerializerVersion12TypeLabelVirtual InterfaceSerializerVersion12TypeLabel = "Virtual" - InterfaceSerializerVersion12TypeLabelX210GE InterfaceSerializerVersion12TypeLabel = "X2 (10GE)" - InterfaceSerializerVersion12TypeLabelXDR250Gbps InterfaceSerializerVersion12TypeLabel = "XDR (250 Gbps)" - InterfaceSerializerVersion12TypeLabelXENPAK10GE InterfaceSerializerVersion12TypeLabel = "XENPAK (10GE)" - InterfaceSerializerVersion12TypeLabelXFP10GE InterfaceSerializerVersion12TypeLabel = "XFP (10GE)" -) - -// Defines values for InterfaceSerializerVersion12TypeValue. -const ( - InterfaceSerializerVersion12TypeValueBridge InterfaceSerializerVersion12TypeValue = "bridge" - InterfaceSerializerVersion12TypeValueCdma InterfaceSerializerVersion12TypeValue = "cdma" - InterfaceSerializerVersion12TypeValueCiscoFlexstack InterfaceSerializerVersion12TypeValue = "cisco-flexstack" - InterfaceSerializerVersion12TypeValueCiscoFlexstackPlus InterfaceSerializerVersion12TypeValue = "cisco-flexstack-plus" - InterfaceSerializerVersion12TypeValueCiscoStackwise InterfaceSerializerVersion12TypeValue = "cisco-stackwise" - InterfaceSerializerVersion12TypeValueCiscoStackwisePlus InterfaceSerializerVersion12TypeValue = "cisco-stackwise-plus" - InterfaceSerializerVersion12TypeValueE1 InterfaceSerializerVersion12TypeValue = "e1" - InterfaceSerializerVersion12TypeValueE3 InterfaceSerializerVersion12TypeValue = "e3" - InterfaceSerializerVersion12TypeValueExtremeSummitstack InterfaceSerializerVersion12TypeValue = "extreme-summitstack" - InterfaceSerializerVersion12TypeValueExtremeSummitstack128 InterfaceSerializerVersion12TypeValue = "extreme-summitstack-128" - InterfaceSerializerVersion12TypeValueExtremeSummitstack256 InterfaceSerializerVersion12TypeValue = "extreme-summitstack-256" - InterfaceSerializerVersion12TypeValueExtremeSummitstack512 InterfaceSerializerVersion12TypeValue = "extreme-summitstack-512" - InterfaceSerializerVersion12TypeValueGsm InterfaceSerializerVersion12TypeValue = "gsm" - InterfaceSerializerVersion12TypeValueIeee80211a InterfaceSerializerVersion12TypeValue = "ieee802.11a" - InterfaceSerializerVersion12TypeValueIeee80211ac InterfaceSerializerVersion12TypeValue = "ieee802.11ac" - InterfaceSerializerVersion12TypeValueIeee80211ad InterfaceSerializerVersion12TypeValue = "ieee802.11ad" - InterfaceSerializerVersion12TypeValueIeee80211ax InterfaceSerializerVersion12TypeValue = "ieee802.11ax" - InterfaceSerializerVersion12TypeValueIeee80211g InterfaceSerializerVersion12TypeValue = "ieee802.11g" - InterfaceSerializerVersion12TypeValueIeee80211n InterfaceSerializerVersion12TypeValue = "ieee802.11n" - InterfaceSerializerVersion12TypeValueInfinibandDdr InterfaceSerializerVersion12TypeValue = "infiniband-ddr" - InterfaceSerializerVersion12TypeValueInfinibandEdr InterfaceSerializerVersion12TypeValue = "infiniband-edr" - InterfaceSerializerVersion12TypeValueInfinibandFdr InterfaceSerializerVersion12TypeValue = "infiniband-fdr" - InterfaceSerializerVersion12TypeValueInfinibandFdr10 InterfaceSerializerVersion12TypeValue = "infiniband-fdr10" - InterfaceSerializerVersion12TypeValueInfinibandHdr InterfaceSerializerVersion12TypeValue = "infiniband-hdr" - InterfaceSerializerVersion12TypeValueInfinibandNdr InterfaceSerializerVersion12TypeValue = "infiniband-ndr" - InterfaceSerializerVersion12TypeValueInfinibandQdr InterfaceSerializerVersion12TypeValue = "infiniband-qdr" - InterfaceSerializerVersion12TypeValueInfinibandSdr InterfaceSerializerVersion12TypeValue = "infiniband-sdr" - InterfaceSerializerVersion12TypeValueInfinibandXdr InterfaceSerializerVersion12TypeValue = "infiniband-xdr" - InterfaceSerializerVersion12TypeValueJuniperVcp InterfaceSerializerVersion12TypeValue = "juniper-vcp" - InterfaceSerializerVersion12TypeValueLag InterfaceSerializerVersion12TypeValue = "lag" - InterfaceSerializerVersion12TypeValueLte InterfaceSerializerVersion12TypeValue = "lte" - InterfaceSerializerVersion12TypeValueN1000baseT InterfaceSerializerVersion12TypeValue = "1000base-t" - InterfaceSerializerVersion12TypeValueN1000baseXGbic InterfaceSerializerVersion12TypeValue = "1000base-x-gbic" - InterfaceSerializerVersion12TypeValueN1000baseXSfp InterfaceSerializerVersion12TypeValue = "1000base-x-sfp" - InterfaceSerializerVersion12TypeValueN100baseTx InterfaceSerializerVersion12TypeValue = "100base-tx" - InterfaceSerializerVersion12TypeValueN100gbaseXCfp InterfaceSerializerVersion12TypeValue = "100gbase-x-cfp" - InterfaceSerializerVersion12TypeValueN100gbaseXCfp2 InterfaceSerializerVersion12TypeValue = "100gbase-x-cfp2" - InterfaceSerializerVersion12TypeValueN100gbaseXCfp4 InterfaceSerializerVersion12TypeValue = "100gbase-x-cfp4" - InterfaceSerializerVersion12TypeValueN100gbaseXCpak InterfaceSerializerVersion12TypeValue = "100gbase-x-cpak" - InterfaceSerializerVersion12TypeValueN100gbaseXQsfp28 InterfaceSerializerVersion12TypeValue = "100gbase-x-qsfp28" - InterfaceSerializerVersion12TypeValueN10gbaseCx4 InterfaceSerializerVersion12TypeValue = "10gbase-cx4" - InterfaceSerializerVersion12TypeValueN10gbaseT InterfaceSerializerVersion12TypeValue = "10gbase-t" - InterfaceSerializerVersion12TypeValueN10gbaseXSfpp InterfaceSerializerVersion12TypeValue = "10gbase-x-sfpp" - InterfaceSerializerVersion12TypeValueN10gbaseXX2 InterfaceSerializerVersion12TypeValue = "10gbase-x-x2" - InterfaceSerializerVersion12TypeValueN10gbaseXXenpak InterfaceSerializerVersion12TypeValue = "10gbase-x-xenpak" - InterfaceSerializerVersion12TypeValueN10gbaseXXfp InterfaceSerializerVersion12TypeValue = "10gbase-x-xfp" - InterfaceSerializerVersion12TypeValueN128gfcSfp28 InterfaceSerializerVersion12TypeValue = "128gfc-sfp28" - InterfaceSerializerVersion12TypeValueN16gfcSfpp InterfaceSerializerVersion12TypeValue = "16gfc-sfpp" - InterfaceSerializerVersion12TypeValueN1gfcSfp InterfaceSerializerVersion12TypeValue = "1gfc-sfp" - InterfaceSerializerVersion12TypeValueN200gbaseXCfp2 InterfaceSerializerVersion12TypeValue = "200gbase-x-cfp2" - InterfaceSerializerVersion12TypeValueN200gbaseXQsfp56 InterfaceSerializerVersion12TypeValue = "200gbase-x-qsfp56" - InterfaceSerializerVersion12TypeValueN25gbaseT InterfaceSerializerVersion12TypeValue = "2.5gbase-t" - InterfaceSerializerVersion12TypeValueN25gbaseXSfp28 InterfaceSerializerVersion12TypeValue = "25gbase-x-sfp28" - InterfaceSerializerVersion12TypeValueN2gfcSfp InterfaceSerializerVersion12TypeValue = "2gfc-sfp" - InterfaceSerializerVersion12TypeValueN32gfcSfp28 InterfaceSerializerVersion12TypeValue = "32gfc-sfp28" - InterfaceSerializerVersion12TypeValueN400gbaseXOsfp InterfaceSerializerVersion12TypeValue = "400gbase-x-osfp" - InterfaceSerializerVersion12TypeValueN400gbaseXQsfpdd InterfaceSerializerVersion12TypeValue = "400gbase-x-qsfpdd" - InterfaceSerializerVersion12TypeValueN40gbaseXQsfpp InterfaceSerializerVersion12TypeValue = "40gbase-x-qsfpp" - InterfaceSerializerVersion12TypeValueN4gfcSfp InterfaceSerializerVersion12TypeValue = "4gfc-sfp" - InterfaceSerializerVersion12TypeValueN50gbaseXSfp28 InterfaceSerializerVersion12TypeValue = "50gbase-x-sfp28" - InterfaceSerializerVersion12TypeValueN5gbaseT InterfaceSerializerVersion12TypeValue = "5gbase-t" - InterfaceSerializerVersion12TypeValueN64gfcQsfpp InterfaceSerializerVersion12TypeValue = "64gfc-qsfpp" - InterfaceSerializerVersion12TypeValueN8gfcSfpp InterfaceSerializerVersion12TypeValue = "8gfc-sfpp" - InterfaceSerializerVersion12TypeValueOther InterfaceSerializerVersion12TypeValue = "other" - InterfaceSerializerVersion12TypeValueSonetOc12 InterfaceSerializerVersion12TypeValue = "sonet-oc12" - InterfaceSerializerVersion12TypeValueSonetOc192 InterfaceSerializerVersion12TypeValue = "sonet-oc192" - InterfaceSerializerVersion12TypeValueSonetOc1920 InterfaceSerializerVersion12TypeValue = "sonet-oc1920" - InterfaceSerializerVersion12TypeValueSonetOc3 InterfaceSerializerVersion12TypeValue = "sonet-oc3" - InterfaceSerializerVersion12TypeValueSonetOc3840 InterfaceSerializerVersion12TypeValue = "sonet-oc3840" - InterfaceSerializerVersion12TypeValueSonetOc48 InterfaceSerializerVersion12TypeValue = "sonet-oc48" - InterfaceSerializerVersion12TypeValueSonetOc768 InterfaceSerializerVersion12TypeValue = "sonet-oc768" - InterfaceSerializerVersion12TypeValueT1 InterfaceSerializerVersion12TypeValue = "t1" - InterfaceSerializerVersion12TypeValueT3 InterfaceSerializerVersion12TypeValue = "t3" - InterfaceSerializerVersion12TypeValueVirtual InterfaceSerializerVersion12TypeValue = "virtual" -) - -// Defines values for InterfaceStatusChoices. -const ( - InterfaceStatusChoicesActive InterfaceStatusChoices = "active" - InterfaceStatusChoicesDecommissioning InterfaceStatusChoices = "decommissioning" - InterfaceStatusChoicesFailed InterfaceStatusChoices = "failed" - InterfaceStatusChoicesMaintenance InterfaceStatusChoices = "maintenance" - InterfaceStatusChoicesPlanned InterfaceStatusChoices = "planned" -) - -// Defines values for InterfaceTemplateTypeLabel. -const ( - InterfaceTemplateTypeLabelBridge InterfaceTemplateTypeLabel = "Bridge" - InterfaceTemplateTypeLabelCDMA InterfaceTemplateTypeLabel = "CDMA" - InterfaceTemplateTypeLabelCFP100GE InterfaceTemplateTypeLabel = "CFP (100GE)" - InterfaceTemplateTypeLabelCFP2100GE InterfaceTemplateTypeLabel = "CFP2 (100GE)" - InterfaceTemplateTypeLabelCFP2200GE InterfaceTemplateTypeLabel = "CFP2 (200GE)" - InterfaceTemplateTypeLabelCFP4100GE InterfaceTemplateTypeLabel = "CFP4 (100GE)" - InterfaceTemplateTypeLabelCiscoCPAK100GE InterfaceTemplateTypeLabel = "Cisco CPAK (100GE)" - InterfaceTemplateTypeLabelCiscoFlexStack InterfaceTemplateTypeLabel = "Cisco FlexStack" - InterfaceTemplateTypeLabelCiscoFlexStackPlus InterfaceTemplateTypeLabel = "Cisco FlexStack Plus" - InterfaceTemplateTypeLabelCiscoStackWise InterfaceTemplateTypeLabel = "Cisco StackWise" - InterfaceTemplateTypeLabelCiscoStackWisePlus InterfaceTemplateTypeLabel = "Cisco StackWise Plus" - InterfaceTemplateTypeLabelDDR4Gbps InterfaceTemplateTypeLabel = "DDR (4 Gbps)" - InterfaceTemplateTypeLabelE12048Mbps InterfaceTemplateTypeLabel = "E1 (2.048 Mbps)" - InterfaceTemplateTypeLabelE334Mbps InterfaceTemplateTypeLabel = "E3 (34 Mbps)" - InterfaceTemplateTypeLabelEDR25Gbps InterfaceTemplateTypeLabel = "EDR (25 Gbps)" - InterfaceTemplateTypeLabelExtremeSummitStack InterfaceTemplateTypeLabel = "Extreme SummitStack" - InterfaceTemplateTypeLabelExtremeSummitStack128 InterfaceTemplateTypeLabel = "Extreme SummitStack-128" - InterfaceTemplateTypeLabelExtremeSummitStack256 InterfaceTemplateTypeLabel = "Extreme SummitStack-256" - InterfaceTemplateTypeLabelExtremeSummitStack512 InterfaceTemplateTypeLabel = "Extreme SummitStack-512" - InterfaceTemplateTypeLabelFDR1010Gbps InterfaceTemplateTypeLabel = "FDR10 (10 Gbps)" - InterfaceTemplateTypeLabelFDR135Gbps InterfaceTemplateTypeLabel = "FDR (13.5 Gbps)" - InterfaceTemplateTypeLabelGBIC1GE InterfaceTemplateTypeLabel = "GBIC (1GE)" - InterfaceTemplateTypeLabelGSM InterfaceTemplateTypeLabel = "GSM" - InterfaceTemplateTypeLabelHDR50Gbps InterfaceTemplateTypeLabel = "HDR (50 Gbps)" - InterfaceTemplateTypeLabelIEEE80211a InterfaceTemplateTypeLabel = "IEEE 802.11a" - InterfaceTemplateTypeLabelIEEE80211ac InterfaceTemplateTypeLabel = "IEEE 802.11ac" - InterfaceTemplateTypeLabelIEEE80211ad InterfaceTemplateTypeLabel = "IEEE 802.11ad" - InterfaceTemplateTypeLabelIEEE80211ax InterfaceTemplateTypeLabel = "IEEE 802.11ax" - InterfaceTemplateTypeLabelIEEE80211bg InterfaceTemplateTypeLabel = "IEEE 802.11b/g" - InterfaceTemplateTypeLabelIEEE80211n InterfaceTemplateTypeLabel = "IEEE 802.11n" - InterfaceTemplateTypeLabelJuniperVCP InterfaceTemplateTypeLabel = "Juniper VCP" - InterfaceTemplateTypeLabelLTE InterfaceTemplateTypeLabel = "LTE" - InterfaceTemplateTypeLabelLinkAggregationGroupLAG InterfaceTemplateTypeLabel = "Link Aggregation Group (LAG)" - InterfaceTemplateTypeLabelN1000BASET1GE InterfaceTemplateTypeLabel = "1000BASE-T (1GE)" - InterfaceTemplateTypeLabelN100BASETX10100ME InterfaceTemplateTypeLabel = "100BASE-TX (10/100ME)" - InterfaceTemplateTypeLabelN10GBASECX410GE InterfaceTemplateTypeLabel = "10GBASE-CX4 (10GE)" - InterfaceTemplateTypeLabelN10GBASET10GE InterfaceTemplateTypeLabel = "10GBASE-T (10GE)" - InterfaceTemplateTypeLabelN25GBASET25GE InterfaceTemplateTypeLabel = "2.5GBASE-T (2.5GE)" - InterfaceTemplateTypeLabelN5GBASET5GE InterfaceTemplateTypeLabel = "5GBASE-T (5GE)" - InterfaceTemplateTypeLabelNDR100Gbps InterfaceTemplateTypeLabel = "NDR (100 Gbps)" - InterfaceTemplateTypeLabelOC12STM4 InterfaceTemplateTypeLabel = "OC-12/STM-4" - InterfaceTemplateTypeLabelOC1920STM640 InterfaceTemplateTypeLabel = "OC-1920/STM-640" - InterfaceTemplateTypeLabelOC192STM64 InterfaceTemplateTypeLabel = "OC-192/STM-64" - InterfaceTemplateTypeLabelOC3840STM1234 InterfaceTemplateTypeLabel = "OC-3840/STM-1234" - InterfaceTemplateTypeLabelOC3STM1 InterfaceTemplateTypeLabel = "OC-3/STM-1" - InterfaceTemplateTypeLabelOC48STM16 InterfaceTemplateTypeLabel = "OC-48/STM-16" - InterfaceTemplateTypeLabelOC768STM256 InterfaceTemplateTypeLabel = "OC-768/STM-256" - InterfaceTemplateTypeLabelOSFP400GE InterfaceTemplateTypeLabel = "OSFP (400GE)" - InterfaceTemplateTypeLabelOther InterfaceTemplateTypeLabel = "Other" - InterfaceTemplateTypeLabelQDR8Gbps InterfaceTemplateTypeLabel = "QDR (8 Gbps)" - InterfaceTemplateTypeLabelQSFP28100GE InterfaceTemplateTypeLabel = "QSFP28 (100GE)" - InterfaceTemplateTypeLabelQSFP28128GFC InterfaceTemplateTypeLabel = "QSFP28 (128GFC)" - InterfaceTemplateTypeLabelQSFP2850GE InterfaceTemplateTypeLabel = "QSFP28 (50GE)" - InterfaceTemplateTypeLabelQSFP40GE InterfaceTemplateTypeLabel = "QSFP+ (40GE)" - InterfaceTemplateTypeLabelQSFP56200GE InterfaceTemplateTypeLabel = "QSFP56 (200GE)" - InterfaceTemplateTypeLabelQSFP64GFC InterfaceTemplateTypeLabel = "QSFP+ (64GFC)" - InterfaceTemplateTypeLabelQSFPDD400GE InterfaceTemplateTypeLabel = "QSFP-DD (400GE)" - InterfaceTemplateTypeLabelSDR2Gbps InterfaceTemplateTypeLabel = "SDR (2 Gbps)" - InterfaceTemplateTypeLabelSFP10GE InterfaceTemplateTypeLabel = "SFP+ (10GE)" - InterfaceTemplateTypeLabelSFP16GFC InterfaceTemplateTypeLabel = "SFP+ (16GFC)" - InterfaceTemplateTypeLabelSFP1GE InterfaceTemplateTypeLabel = "SFP (1GE)" - InterfaceTemplateTypeLabelSFP1GFC InterfaceTemplateTypeLabel = "SFP (1GFC)" - InterfaceTemplateTypeLabelSFP2825GE InterfaceTemplateTypeLabel = "SFP28 (25GE)" - InterfaceTemplateTypeLabelSFP2832GFC InterfaceTemplateTypeLabel = "SFP28 (32GFC)" - InterfaceTemplateTypeLabelSFP2GFC InterfaceTemplateTypeLabel = "SFP (2GFC)" - InterfaceTemplateTypeLabelSFP4GFC InterfaceTemplateTypeLabel = "SFP (4GFC)" - InterfaceTemplateTypeLabelSFP8GFC InterfaceTemplateTypeLabel = "SFP+ (8GFC)" - InterfaceTemplateTypeLabelT11544Mbps InterfaceTemplateTypeLabel = "T1 (1.544 Mbps)" - InterfaceTemplateTypeLabelT345Mbps InterfaceTemplateTypeLabel = "T3 (45 Mbps)" - InterfaceTemplateTypeLabelVirtual InterfaceTemplateTypeLabel = "Virtual" - InterfaceTemplateTypeLabelX210GE InterfaceTemplateTypeLabel = "X2 (10GE)" - InterfaceTemplateTypeLabelXDR250Gbps InterfaceTemplateTypeLabel = "XDR (250 Gbps)" - InterfaceTemplateTypeLabelXENPAK10GE InterfaceTemplateTypeLabel = "XENPAK (10GE)" - InterfaceTemplateTypeLabelXFP10GE InterfaceTemplateTypeLabel = "XFP (10GE)" -) - -// Defines values for InterfaceTemplateTypeValue. -const ( - InterfaceTemplateTypeValueBridge InterfaceTemplateTypeValue = "bridge" - InterfaceTemplateTypeValueCdma InterfaceTemplateTypeValue = "cdma" - InterfaceTemplateTypeValueCiscoFlexstack InterfaceTemplateTypeValue = "cisco-flexstack" - InterfaceTemplateTypeValueCiscoFlexstackPlus InterfaceTemplateTypeValue = "cisco-flexstack-plus" - InterfaceTemplateTypeValueCiscoStackwise InterfaceTemplateTypeValue = "cisco-stackwise" - InterfaceTemplateTypeValueCiscoStackwisePlus InterfaceTemplateTypeValue = "cisco-stackwise-plus" - InterfaceTemplateTypeValueE1 InterfaceTemplateTypeValue = "e1" - InterfaceTemplateTypeValueE3 InterfaceTemplateTypeValue = "e3" - InterfaceTemplateTypeValueExtremeSummitstack InterfaceTemplateTypeValue = "extreme-summitstack" - InterfaceTemplateTypeValueExtremeSummitstack128 InterfaceTemplateTypeValue = "extreme-summitstack-128" - InterfaceTemplateTypeValueExtremeSummitstack256 InterfaceTemplateTypeValue = "extreme-summitstack-256" - InterfaceTemplateTypeValueExtremeSummitstack512 InterfaceTemplateTypeValue = "extreme-summitstack-512" - InterfaceTemplateTypeValueGsm InterfaceTemplateTypeValue = "gsm" - InterfaceTemplateTypeValueIeee80211a InterfaceTemplateTypeValue = "ieee802.11a" - InterfaceTemplateTypeValueIeee80211ac InterfaceTemplateTypeValue = "ieee802.11ac" - InterfaceTemplateTypeValueIeee80211ad InterfaceTemplateTypeValue = "ieee802.11ad" - InterfaceTemplateTypeValueIeee80211ax InterfaceTemplateTypeValue = "ieee802.11ax" - InterfaceTemplateTypeValueIeee80211g InterfaceTemplateTypeValue = "ieee802.11g" - InterfaceTemplateTypeValueIeee80211n InterfaceTemplateTypeValue = "ieee802.11n" - InterfaceTemplateTypeValueInfinibandDdr InterfaceTemplateTypeValue = "infiniband-ddr" - InterfaceTemplateTypeValueInfinibandEdr InterfaceTemplateTypeValue = "infiniband-edr" - InterfaceTemplateTypeValueInfinibandFdr InterfaceTemplateTypeValue = "infiniband-fdr" - InterfaceTemplateTypeValueInfinibandFdr10 InterfaceTemplateTypeValue = "infiniband-fdr10" - InterfaceTemplateTypeValueInfinibandHdr InterfaceTemplateTypeValue = "infiniband-hdr" - InterfaceTemplateTypeValueInfinibandNdr InterfaceTemplateTypeValue = "infiniband-ndr" - InterfaceTemplateTypeValueInfinibandQdr InterfaceTemplateTypeValue = "infiniband-qdr" - InterfaceTemplateTypeValueInfinibandSdr InterfaceTemplateTypeValue = "infiniband-sdr" - InterfaceTemplateTypeValueInfinibandXdr InterfaceTemplateTypeValue = "infiniband-xdr" - InterfaceTemplateTypeValueJuniperVcp InterfaceTemplateTypeValue = "juniper-vcp" - InterfaceTemplateTypeValueLag InterfaceTemplateTypeValue = "lag" - InterfaceTemplateTypeValueLte InterfaceTemplateTypeValue = "lte" - InterfaceTemplateTypeValueN1000baseT InterfaceTemplateTypeValue = "1000base-t" - InterfaceTemplateTypeValueN1000baseXGbic InterfaceTemplateTypeValue = "1000base-x-gbic" - InterfaceTemplateTypeValueN1000baseXSfp InterfaceTemplateTypeValue = "1000base-x-sfp" - InterfaceTemplateTypeValueN100baseTx InterfaceTemplateTypeValue = "100base-tx" - InterfaceTemplateTypeValueN100gbaseXCfp InterfaceTemplateTypeValue = "100gbase-x-cfp" - InterfaceTemplateTypeValueN100gbaseXCfp2 InterfaceTemplateTypeValue = "100gbase-x-cfp2" - InterfaceTemplateTypeValueN100gbaseXCfp4 InterfaceTemplateTypeValue = "100gbase-x-cfp4" - InterfaceTemplateTypeValueN100gbaseXCpak InterfaceTemplateTypeValue = "100gbase-x-cpak" - InterfaceTemplateTypeValueN100gbaseXQsfp28 InterfaceTemplateTypeValue = "100gbase-x-qsfp28" - InterfaceTemplateTypeValueN10gbaseCx4 InterfaceTemplateTypeValue = "10gbase-cx4" - InterfaceTemplateTypeValueN10gbaseT InterfaceTemplateTypeValue = "10gbase-t" - InterfaceTemplateTypeValueN10gbaseXSfpp InterfaceTemplateTypeValue = "10gbase-x-sfpp" - InterfaceTemplateTypeValueN10gbaseXX2 InterfaceTemplateTypeValue = "10gbase-x-x2" - InterfaceTemplateTypeValueN10gbaseXXenpak InterfaceTemplateTypeValue = "10gbase-x-xenpak" - InterfaceTemplateTypeValueN10gbaseXXfp InterfaceTemplateTypeValue = "10gbase-x-xfp" - InterfaceTemplateTypeValueN128gfcSfp28 InterfaceTemplateTypeValue = "128gfc-sfp28" - InterfaceTemplateTypeValueN16gfcSfpp InterfaceTemplateTypeValue = "16gfc-sfpp" - InterfaceTemplateTypeValueN1gfcSfp InterfaceTemplateTypeValue = "1gfc-sfp" - InterfaceTemplateTypeValueN200gbaseXCfp2 InterfaceTemplateTypeValue = "200gbase-x-cfp2" - InterfaceTemplateTypeValueN200gbaseXQsfp56 InterfaceTemplateTypeValue = "200gbase-x-qsfp56" - InterfaceTemplateTypeValueN25gbaseT InterfaceTemplateTypeValue = "2.5gbase-t" - InterfaceTemplateTypeValueN25gbaseXSfp28 InterfaceTemplateTypeValue = "25gbase-x-sfp28" - InterfaceTemplateTypeValueN2gfcSfp InterfaceTemplateTypeValue = "2gfc-sfp" - InterfaceTemplateTypeValueN32gfcSfp28 InterfaceTemplateTypeValue = "32gfc-sfp28" - InterfaceTemplateTypeValueN400gbaseXOsfp InterfaceTemplateTypeValue = "400gbase-x-osfp" - InterfaceTemplateTypeValueN400gbaseXQsfpdd InterfaceTemplateTypeValue = "400gbase-x-qsfpdd" - InterfaceTemplateTypeValueN40gbaseXQsfpp InterfaceTemplateTypeValue = "40gbase-x-qsfpp" - InterfaceTemplateTypeValueN4gfcSfp InterfaceTemplateTypeValue = "4gfc-sfp" - InterfaceTemplateTypeValueN50gbaseXSfp28 InterfaceTemplateTypeValue = "50gbase-x-sfp28" - InterfaceTemplateTypeValueN5gbaseT InterfaceTemplateTypeValue = "5gbase-t" - InterfaceTemplateTypeValueN64gfcQsfpp InterfaceTemplateTypeValue = "64gfc-qsfpp" - InterfaceTemplateTypeValueN8gfcSfpp InterfaceTemplateTypeValue = "8gfc-sfpp" - InterfaceTemplateTypeValueOther InterfaceTemplateTypeValue = "other" - InterfaceTemplateTypeValueSonetOc12 InterfaceTemplateTypeValue = "sonet-oc12" - InterfaceTemplateTypeValueSonetOc192 InterfaceTemplateTypeValue = "sonet-oc192" - InterfaceTemplateTypeValueSonetOc1920 InterfaceTemplateTypeValue = "sonet-oc1920" - InterfaceTemplateTypeValueSonetOc3 InterfaceTemplateTypeValue = "sonet-oc3" - InterfaceTemplateTypeValueSonetOc3840 InterfaceTemplateTypeValue = "sonet-oc3840" - InterfaceTemplateTypeValueSonetOc48 InterfaceTemplateTypeValue = "sonet-oc48" - InterfaceTemplateTypeValueSonetOc768 InterfaceTemplateTypeValue = "sonet-oc768" - InterfaceTemplateTypeValueT1 InterfaceTemplateTypeValue = "t1" - InterfaceTemplateTypeValueT3 InterfaceTemplateTypeValue = "t3" - InterfaceTemplateTypeValueVirtual InterfaceTemplateTypeValue = "virtual" -) - -// Defines values for InterfaceTypeChoices. -const ( - InterfaceTypeChoicesBridge InterfaceTypeChoices = "bridge" - InterfaceTypeChoicesCdma InterfaceTypeChoices = "cdma" - InterfaceTypeChoicesCiscoFlexstack InterfaceTypeChoices = "cisco-flexstack" - InterfaceTypeChoicesCiscoFlexstackPlus InterfaceTypeChoices = "cisco-flexstack-plus" - InterfaceTypeChoicesCiscoStackwise InterfaceTypeChoices = "cisco-stackwise" - InterfaceTypeChoicesCiscoStackwisePlus InterfaceTypeChoices = "cisco-stackwise-plus" - InterfaceTypeChoicesE1 InterfaceTypeChoices = "e1" - InterfaceTypeChoicesE3 InterfaceTypeChoices = "e3" - InterfaceTypeChoicesExtremeSummitstack InterfaceTypeChoices = "extreme-summitstack" - InterfaceTypeChoicesExtremeSummitstack128 InterfaceTypeChoices = "extreme-summitstack-128" - InterfaceTypeChoicesExtremeSummitstack256 InterfaceTypeChoices = "extreme-summitstack-256" - InterfaceTypeChoicesExtremeSummitstack512 InterfaceTypeChoices = "extreme-summitstack-512" - InterfaceTypeChoicesGsm InterfaceTypeChoices = "gsm" - InterfaceTypeChoicesIeee80211a InterfaceTypeChoices = "ieee802.11a" - InterfaceTypeChoicesIeee80211ac InterfaceTypeChoices = "ieee802.11ac" - InterfaceTypeChoicesIeee80211ad InterfaceTypeChoices = "ieee802.11ad" - InterfaceTypeChoicesIeee80211ax InterfaceTypeChoices = "ieee802.11ax" - InterfaceTypeChoicesIeee80211g InterfaceTypeChoices = "ieee802.11g" - InterfaceTypeChoicesIeee80211n InterfaceTypeChoices = "ieee802.11n" - InterfaceTypeChoicesInfinibandDdr InterfaceTypeChoices = "infiniband-ddr" - InterfaceTypeChoicesInfinibandEdr InterfaceTypeChoices = "infiniband-edr" - InterfaceTypeChoicesInfinibandFdr InterfaceTypeChoices = "infiniband-fdr" - InterfaceTypeChoicesInfinibandFdr10 InterfaceTypeChoices = "infiniband-fdr10" - InterfaceTypeChoicesInfinibandHdr InterfaceTypeChoices = "infiniband-hdr" - InterfaceTypeChoicesInfinibandNdr InterfaceTypeChoices = "infiniband-ndr" - InterfaceTypeChoicesInfinibandQdr InterfaceTypeChoices = "infiniband-qdr" - InterfaceTypeChoicesInfinibandSdr InterfaceTypeChoices = "infiniband-sdr" - InterfaceTypeChoicesInfinibandXdr InterfaceTypeChoices = "infiniband-xdr" - InterfaceTypeChoicesJuniperVcp InterfaceTypeChoices = "juniper-vcp" - InterfaceTypeChoicesLag InterfaceTypeChoices = "lag" - InterfaceTypeChoicesLte InterfaceTypeChoices = "lte" - InterfaceTypeChoicesN1000baseT InterfaceTypeChoices = "1000base-t" - InterfaceTypeChoicesN1000baseXGbic InterfaceTypeChoices = "1000base-x-gbic" - InterfaceTypeChoicesN1000baseXSfp InterfaceTypeChoices = "1000base-x-sfp" - InterfaceTypeChoicesN100baseTx InterfaceTypeChoices = "100base-tx" - InterfaceTypeChoicesN100gbaseXCfp InterfaceTypeChoices = "100gbase-x-cfp" - InterfaceTypeChoicesN100gbaseXCfp2 InterfaceTypeChoices = "100gbase-x-cfp2" - InterfaceTypeChoicesN100gbaseXCfp4 InterfaceTypeChoices = "100gbase-x-cfp4" - InterfaceTypeChoicesN100gbaseXCpak InterfaceTypeChoices = "100gbase-x-cpak" - InterfaceTypeChoicesN100gbaseXQsfp28 InterfaceTypeChoices = "100gbase-x-qsfp28" - InterfaceTypeChoicesN10gbaseCx4 InterfaceTypeChoices = "10gbase-cx4" - InterfaceTypeChoicesN10gbaseT InterfaceTypeChoices = "10gbase-t" - InterfaceTypeChoicesN10gbaseXSfpp InterfaceTypeChoices = "10gbase-x-sfpp" - InterfaceTypeChoicesN10gbaseXX2 InterfaceTypeChoices = "10gbase-x-x2" - InterfaceTypeChoicesN10gbaseXXenpak InterfaceTypeChoices = "10gbase-x-xenpak" - InterfaceTypeChoicesN10gbaseXXfp InterfaceTypeChoices = "10gbase-x-xfp" - InterfaceTypeChoicesN128gfcSfp28 InterfaceTypeChoices = "128gfc-sfp28" - InterfaceTypeChoicesN16gfcSfpp InterfaceTypeChoices = "16gfc-sfpp" - InterfaceTypeChoicesN1gfcSfp InterfaceTypeChoices = "1gfc-sfp" - InterfaceTypeChoicesN200gbaseXCfp2 InterfaceTypeChoices = "200gbase-x-cfp2" - InterfaceTypeChoicesN200gbaseXQsfp56 InterfaceTypeChoices = "200gbase-x-qsfp56" - InterfaceTypeChoicesN25gbaseT InterfaceTypeChoices = "2.5gbase-t" - InterfaceTypeChoicesN25gbaseXSfp28 InterfaceTypeChoices = "25gbase-x-sfp28" - InterfaceTypeChoicesN2gfcSfp InterfaceTypeChoices = "2gfc-sfp" - InterfaceTypeChoicesN32gfcSfp28 InterfaceTypeChoices = "32gfc-sfp28" - InterfaceTypeChoicesN400gbaseXOsfp InterfaceTypeChoices = "400gbase-x-osfp" - InterfaceTypeChoicesN400gbaseXQsfpdd InterfaceTypeChoices = "400gbase-x-qsfpdd" - InterfaceTypeChoicesN40gbaseXQsfpp InterfaceTypeChoices = "40gbase-x-qsfpp" - InterfaceTypeChoicesN4gfcSfp InterfaceTypeChoices = "4gfc-sfp" - InterfaceTypeChoicesN50gbaseXSfp28 InterfaceTypeChoices = "50gbase-x-sfp28" - InterfaceTypeChoicesN5gbaseT InterfaceTypeChoices = "5gbase-t" - InterfaceTypeChoicesN64gfcQsfpp InterfaceTypeChoices = "64gfc-qsfpp" - InterfaceTypeChoicesN8gfcSfpp InterfaceTypeChoices = "8gfc-sfpp" - InterfaceTypeChoicesOther InterfaceTypeChoices = "other" - InterfaceTypeChoicesSonetOc12 InterfaceTypeChoices = "sonet-oc12" - InterfaceTypeChoicesSonetOc192 InterfaceTypeChoices = "sonet-oc192" - InterfaceTypeChoicesSonetOc1920 InterfaceTypeChoices = "sonet-oc1920" - InterfaceTypeChoicesSonetOc3 InterfaceTypeChoices = "sonet-oc3" - InterfaceTypeChoicesSonetOc3840 InterfaceTypeChoices = "sonet-oc3840" - InterfaceTypeChoicesSonetOc48 InterfaceTypeChoices = "sonet-oc48" - InterfaceTypeChoicesSonetOc768 InterfaceTypeChoices = "sonet-oc768" - InterfaceTypeChoicesT1 InterfaceTypeChoices = "t1" - InterfaceTypeChoicesT3 InterfaceTypeChoices = "t3" - InterfaceTypeChoicesVirtual InterfaceTypeChoices = "virtual" -) - -// Defines values for IpProtocolEnum. -const ( - IpProtocolEnumAH IpProtocolEnum = "AH" - IpProtocolEnumAN IpProtocolEnum = "A/N" - IpProtocolEnumARIS IpProtocolEnum = "ARIS" - IpProtocolEnumAX25 IpProtocolEnum = "AX.25" - IpProtocolEnumBBNRCCMON IpProtocolEnum = "BBN-RCC-MON" - IpProtocolEnumBNA IpProtocolEnum = "BNA" - IpProtocolEnumBRSATMON IpProtocolEnum = "BR-SAT-MON" - IpProtocolEnumCBT IpProtocolEnum = "CBT" - IpProtocolEnumCFTP IpProtocolEnum = "CFTP" - IpProtocolEnumCHAOS IpProtocolEnum = "CHAOS" - IpProtocolEnumCPHB IpProtocolEnum = "CPHB" - IpProtocolEnumCPNX IpProtocolEnum = "CPNX" - IpProtocolEnumCRTP IpProtocolEnum = "CRTP" - IpProtocolEnumCRUDP IpProtocolEnum = "CRUDP" - IpProtocolEnumCompaqPeer IpProtocolEnum = "Compaq-Peer" - IpProtocolEnumDCCP IpProtocolEnum = "DCCP" - IpProtocolEnumDCNMEAS IpProtocolEnum = "DCN-MEAS" - IpProtocolEnumDDP IpProtocolEnum = "DDP" - IpProtocolEnumDDX IpProtocolEnum = "DDX" - IpProtocolEnumDGP IpProtocolEnum = "DGP" - IpProtocolEnumDSR IpProtocolEnum = "DSR" - IpProtocolEnumEGP IpProtocolEnum = "EGP" - IpProtocolEnumEIGRP IpProtocolEnum = "EIGRP" - IpProtocolEnumEMCON IpProtocolEnum = "EMCON" - IpProtocolEnumENCAP IpProtocolEnum = "ENCAP" - IpProtocolEnumESP IpProtocolEnum = "ESP" - IpProtocolEnumETHERIP IpProtocolEnum = "ETHERIP" - IpProtocolEnumEthernet IpProtocolEnum = "Ethernet" - IpProtocolEnumFC IpProtocolEnum = "FC" - IpProtocolEnumFIRE IpProtocolEnum = "FIRE" - IpProtocolEnumGGP IpProtocolEnum = "GGP" - IpProtocolEnumGMTP IpProtocolEnum = "GMTP" - IpProtocolEnumGRE IpProtocolEnum = "GRE" - IpProtocolEnumHIP IpProtocolEnum = "HIP" - IpProtocolEnumHMP IpProtocolEnum = "HMP" - IpProtocolEnumIATP IpProtocolEnum = "IATP" - IpProtocolEnumICMP IpProtocolEnum = "ICMP" - IpProtocolEnumIDPR IpProtocolEnum = "IDPR" - IpProtocolEnumIDPRCMTP IpProtocolEnum = "IDPR-CMTP" - IpProtocolEnumIDRP IpProtocolEnum = "IDRP" - IpProtocolEnumIFMP IpProtocolEnum = "IFMP" - IpProtocolEnumIGMP IpProtocolEnum = "IGMP" - IpProtocolEnumIGP IpProtocolEnum = "IGP" - IpProtocolEnumIL IpProtocolEnum = "IL" - IpProtocolEnumINLSP IpProtocolEnum = "I-NLSP" - IpProtocolEnumIPCV IpProtocolEnum = "IPCV" - IpProtocolEnumIPComp IpProtocolEnum = "IPComp" - IpProtocolEnumIPIP IpProtocolEnum = "IPIP" - IpProtocolEnumIPLT IpProtocolEnum = "IPLT" - IpProtocolEnumIPPC IpProtocolEnum = "IPPC" - IpProtocolEnumIPXInIP IpProtocolEnum = "IPX-in-IP" - IpProtocolEnumIRTP IpProtocolEnum = "IRTP" - IpProtocolEnumISOIP IpProtocolEnum = "ISO-IP" - IpProtocolEnumISOTP4 IpProtocolEnum = "ISO-TP4" - IpProtocolEnumKRYPTOLAN IpProtocolEnum = "KRYPTOLAN" - IpProtocolEnumL2TP IpProtocolEnum = "L2TP" - IpProtocolEnumLARP IpProtocolEnum = "LARP" - IpProtocolEnumLEAF1 IpProtocolEnum = "LEAF-1" - IpProtocolEnumLEAF2 IpProtocolEnum = "LEAF-2" - IpProtocolEnumMERITINP IpProtocolEnum = "MERIT-INP" - IpProtocolEnumMFENSP IpProtocolEnum = "MFE-NSP" - IpProtocolEnumMOBILE IpProtocolEnum = "MOBILE" - IpProtocolEnumMTP IpProtocolEnum = "MTP" - IpProtocolEnumMUX IpProtocolEnum = "MUX" - IpProtocolEnumManet IpProtocolEnum = "manet" - IpProtocolEnumN3PC IpProtocolEnum = "3PC" - IpProtocolEnumNARP IpProtocolEnum = "NARP" - IpProtocolEnumNETBLT IpProtocolEnum = "NETBLT" - IpProtocolEnumNSFNETIGP IpProtocolEnum = "NSFNET-IGP" - IpProtocolEnumNVPII IpProtocolEnum = "NVP-II" - IpProtocolEnumOSPFIGP IpProtocolEnum = "OSPFIGP" - IpProtocolEnumPGM IpProtocolEnum = "PGM" - IpProtocolEnumPIM IpProtocolEnum = "PIM" - IpProtocolEnumPIPE IpProtocolEnum = "PIPE" - IpProtocolEnumPNNI IpProtocolEnum = "PNNI" - IpProtocolEnumPRM IpProtocolEnum = "PRM" - IpProtocolEnumPTP IpProtocolEnum = "PTP" - IpProtocolEnumPUP IpProtocolEnum = "PUP" - IpProtocolEnumPVP IpProtocolEnum = "PVP" - IpProtocolEnumQNX IpProtocolEnum = "QNX" - IpProtocolEnumRDP IpProtocolEnum = "RDP" - IpProtocolEnumROHC IpProtocolEnum = "ROHC" - IpProtocolEnumRSVP IpProtocolEnum = "RSVP" - IpProtocolEnumRSVPE2EIGNORE IpProtocolEnum = "RSVP-E2E-IGNORE" - IpProtocolEnumRVD IpProtocolEnum = "RVD" - IpProtocolEnumSATEXPAK IpProtocolEnum = "SAT-EXPAK" - IpProtocolEnumSATMON IpProtocolEnum = "SAT-MON" - IpProtocolEnumSCCSP IpProtocolEnum = "SCC-SP" - IpProtocolEnumSCPS IpProtocolEnum = "SCPS" - IpProtocolEnumSCTP IpProtocolEnum = "SCTP" - IpProtocolEnumSDRP IpProtocolEnum = "SDRP" - IpProtocolEnumSECUREVMTP IpProtocolEnum = "SECURE-VMTP" - IpProtocolEnumSKIP IpProtocolEnum = "SKIP" - IpProtocolEnumSM IpProtocolEnum = "SM" - IpProtocolEnumSMP IpProtocolEnum = "SMP" - IpProtocolEnumSNP IpProtocolEnum = "SNP" - IpProtocolEnumSPS IpProtocolEnum = "SPS" - IpProtocolEnumSRP IpProtocolEnum = "SRP" - IpProtocolEnumSSCOPMCE IpProtocolEnum = "SSCOPMCE" - IpProtocolEnumSTP IpProtocolEnum = "STP" - IpProtocolEnumSUNND IpProtocolEnum = "SUN-ND" - IpProtocolEnumSpriteRPC IpProtocolEnum = "Sprite-RPC" - IpProtocolEnumTCF IpProtocolEnum = "TCF" - IpProtocolEnumTCP IpProtocolEnum = "TCP" - IpProtocolEnumTLSP IpProtocolEnum = "TLSP" - IpProtocolEnumTP IpProtocolEnum = "TP++" - IpProtocolEnumTRUNK1 IpProtocolEnum = "TRUNK-1" - IpProtocolEnumTRUNK2 IpProtocolEnum = "TRUNK-2" - IpProtocolEnumTTP IpProtocolEnum = "TTP" - IpProtocolEnumUDP IpProtocolEnum = "UDP" - IpProtocolEnumUDPLite IpProtocolEnum = "UDPLite" - IpProtocolEnumUTI IpProtocolEnum = "UTI" - IpProtocolEnumVINES IpProtocolEnum = "VINES" - IpProtocolEnumVISA IpProtocolEnum = "VISA" - IpProtocolEnumVMTP IpProtocolEnum = "VMTP" - IpProtocolEnumWBEXPAK IpProtocolEnum = "WB-EXPAK" - IpProtocolEnumWBMON IpProtocolEnum = "WB-MON" - IpProtocolEnumWESP IpProtocolEnum = "WESP" - IpProtocolEnumWSN IpProtocolEnum = "WSN" - IpProtocolEnumXNET IpProtocolEnum = "XNET" - IpProtocolEnumXNSIDP IpProtocolEnum = "XNS-IDP" - IpProtocolEnumXTP IpProtocolEnum = "XTP" -) - -// Defines values for JobExecutionTypeIntervalChoices. -const ( - Custom JobExecutionTypeIntervalChoices = "custom" - Daily JobExecutionTypeIntervalChoices = "daily" - Future JobExecutionTypeIntervalChoices = "future" - Hourly JobExecutionTypeIntervalChoices = "hourly" - Immediately JobExecutionTypeIntervalChoices = "immediately" - Weekly JobExecutionTypeIntervalChoices = "weekly" -) - -// Defines values for JobResultStatusLabel. -const ( - JobResultStatusLabelCompleted JobResultStatusLabel = "Completed" - JobResultStatusLabelErrored JobResultStatusLabel = "Errored" - JobResultStatusLabelFailed JobResultStatusLabel = "Failed" - JobResultStatusLabelPending JobResultStatusLabel = "Pending" - JobResultStatusLabelRunning JobResultStatusLabel = "Running" -) - -// Defines values for JobResultStatusValue. -const ( - JobResultStatusValueCompleted JobResultStatusValue = "completed" - JobResultStatusValueErrored JobResultStatusValue = "errored" - JobResultStatusValueFailed JobResultStatusValue = "failed" - JobResultStatusValuePending JobResultStatusValue = "pending" - JobResultStatusValueRunning JobResultStatusValue = "running" -) - -// Defines values for LengthUnitEnum. -const ( - LengthUnitEnumCm LengthUnitEnum = "cm" - LengthUnitEnumFt LengthUnitEnum = "ft" - LengthUnitEnumIn LengthUnitEnum = "in" - LengthUnitEnumM LengthUnitEnum = "m" -) - -// Defines values for LocationStatusLabel. -const ( - LocationStatusLabelActive LocationStatusLabel = "Active" - LocationStatusLabelDecommissioning LocationStatusLabel = "Decommissioning" - LocationStatusLabelPlanned LocationStatusLabel = "Planned" - LocationStatusLabelRetired LocationStatusLabel = "Retired" - LocationStatusLabelStaging LocationStatusLabel = "Staging" -) - -// Defines values for LocationStatusValue. -const ( - LocationStatusValueActive LocationStatusValue = "active" - LocationStatusValueDecommissioning LocationStatusValue = "decommissioning" - LocationStatusValuePlanned LocationStatusValue = "planned" - LocationStatusValueRetired LocationStatusValue = "retired" - LocationStatusValueStaging LocationStatusValue = "staging" -) - -// Defines values for LocationStatusChoices. -const ( - LocationStatusChoicesActive LocationStatusChoices = "active" - LocationStatusChoicesDecommissioning LocationStatusChoices = "decommissioning" - LocationStatusChoicesPlanned LocationStatusChoices = "planned" - LocationStatusChoicesRetired LocationStatusChoices = "retired" - LocationStatusChoicesStaging LocationStatusChoices = "staging" -) - -// Defines values for LogLevelEnum. -const ( - LogLevelEnumDefault LogLevelEnum = "default" - LogLevelEnumFailure LogLevelEnum = "failure" - LogLevelEnumInfo LogLevelEnum = "info" - LogLevelEnumSuccess LogLevelEnum = "success" - LogLevelEnumWarning LogLevelEnum = "warning" -) - -// Defines values for ModeEnum. -const ( - ModeEnumAccess ModeEnum = "access" - ModeEnumTagged ModeEnum = "tagged" - ModeEnumTaggedAll ModeEnum = "tagged-all" -) - -// Defines values for NATPolicyStatusLabel. -const ( - NATPolicyStatusLabelActive NATPolicyStatusLabel = "Active" - NATPolicyStatusLabelDecommissioned NATPolicyStatusLabel = "Decommissioned" - NATPolicyStatusLabelStaged NATPolicyStatusLabel = "Staged" -) - -// Defines values for NATPolicyStatusValue. -const ( - NATPolicyStatusValueActive NATPolicyStatusValue = "active" - NATPolicyStatusValueDecommissioned NATPolicyStatusValue = "decommissioned" - NATPolicyStatusValueStaged NATPolicyStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabel. -const ( - NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabelActive NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabel = "Active" - NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabelDecommissioned NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabelStaged NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValue. -const ( - NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValueActive NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValue = "active" - NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValueDecommissioned NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValue = "decommissioned" - NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValueStaged NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationAddressGroupsStatusLabel. -const ( - NATPolicyRuleOriginalDestinationAddressGroupsStatusLabelActive NATPolicyRuleOriginalDestinationAddressGroupsStatusLabel = "Active" - NATPolicyRuleOriginalDestinationAddressGroupsStatusLabelDecommissioned NATPolicyRuleOriginalDestinationAddressGroupsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalDestinationAddressGroupsStatusLabelStaged NATPolicyRuleOriginalDestinationAddressGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationAddressGroupsStatusValue. -const ( - NATPolicyRuleOriginalDestinationAddressGroupsStatusValueActive NATPolicyRuleOriginalDestinationAddressGroupsStatusValue = "active" - NATPolicyRuleOriginalDestinationAddressGroupsStatusValueDecommissioned NATPolicyRuleOriginalDestinationAddressGroupsStatusValue = "decommissioned" - NATPolicyRuleOriginalDestinationAddressGroupsStatusValueStaged NATPolicyRuleOriginalDestinationAddressGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationAddressesStatusLabel. -const ( - NATPolicyRuleOriginalDestinationAddressesStatusLabelActive NATPolicyRuleOriginalDestinationAddressesStatusLabel = "Active" - NATPolicyRuleOriginalDestinationAddressesStatusLabelDecommissioned NATPolicyRuleOriginalDestinationAddressesStatusLabel = "Decommissioned" - NATPolicyRuleOriginalDestinationAddressesStatusLabelStaged NATPolicyRuleOriginalDestinationAddressesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationAddressesStatusValue. -const ( - NATPolicyRuleOriginalDestinationAddressesStatusValueActive NATPolicyRuleOriginalDestinationAddressesStatusValue = "active" - NATPolicyRuleOriginalDestinationAddressesStatusValueDecommissioned NATPolicyRuleOriginalDestinationAddressesStatusValue = "decommissioned" - NATPolicyRuleOriginalDestinationAddressesStatusValueStaged NATPolicyRuleOriginalDestinationAddressesStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolAH NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolAN NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolARIS NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolAX25 NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolBNA NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCBT NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCFTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCHAOS NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCPHB NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCPNX NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCRTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCRUDP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolDCCP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolDDP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolDDX NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolDGP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolDSR NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolEGP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolEIGRP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolEMCON NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolENCAP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolESP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolETHERIP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolEthernet NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolFC NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolFIRE NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolGGP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolGMTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolGRE NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolHIP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolHMP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIATP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolICMP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDPR NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDRP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIFMP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIGMP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIGP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIL NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolINLSP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPCV NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPComp NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPIP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPLT NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPPC NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolIRTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolISOIP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolL2TP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolLARP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolMERITINP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolMFENSP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolMOBILE NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolMTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolMUX NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolManet NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolN3PC NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolNARP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolNETBLT NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolNVPII NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPGM NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPIM NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPIPE NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPNNI NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPRM NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPUP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolPVP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolQNX NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolRDP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolROHC NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolRSVP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolRVD NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSATMON NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCCSP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCPS NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSDRP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSKIP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSM NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSMP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSNP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSPS NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSRP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSUNND NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolTCF NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolTCP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolTLSP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolTTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolUDP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolUDPLite NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolUTI NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolVINES NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolVISA NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolVMTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolWBMON NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolWESP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolWSN NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolXNET NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocolXTP NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabel. -const ( - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabelActive NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabel = "Active" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabelDecommissioned NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabelStaged NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValue. -const ( - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValueActive NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValue = "active" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValueDecommissioned NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValue = "decommissioned" - NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValueStaged NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationServiceGroupsStatusLabel. -const ( - NATPolicyRuleOriginalDestinationServiceGroupsStatusLabelActive NATPolicyRuleOriginalDestinationServiceGroupsStatusLabel = "Active" - NATPolicyRuleOriginalDestinationServiceGroupsStatusLabelDecommissioned NATPolicyRuleOriginalDestinationServiceGroupsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalDestinationServiceGroupsStatusLabelStaged NATPolicyRuleOriginalDestinationServiceGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationServiceGroupsStatusValue. -const ( - NATPolicyRuleOriginalDestinationServiceGroupsStatusValueActive NATPolicyRuleOriginalDestinationServiceGroupsStatusValue = "active" - NATPolicyRuleOriginalDestinationServiceGroupsStatusValueDecommissioned NATPolicyRuleOriginalDestinationServiceGroupsStatusValue = "decommissioned" - NATPolicyRuleOriginalDestinationServiceGroupsStatusValueStaged NATPolicyRuleOriginalDestinationServiceGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationServicesIpProtocol. -const ( - NATPolicyRuleOriginalDestinationServicesIpProtocolAH NATPolicyRuleOriginalDestinationServicesIpProtocol = "AH" - NATPolicyRuleOriginalDestinationServicesIpProtocolAN NATPolicyRuleOriginalDestinationServicesIpProtocol = "A/N" - NATPolicyRuleOriginalDestinationServicesIpProtocolARIS NATPolicyRuleOriginalDestinationServicesIpProtocol = "ARIS" - NATPolicyRuleOriginalDestinationServicesIpProtocolAX25 NATPolicyRuleOriginalDestinationServicesIpProtocol = "AX.25" - NATPolicyRuleOriginalDestinationServicesIpProtocolBBNRCCMON NATPolicyRuleOriginalDestinationServicesIpProtocol = "BBN-RCC-MON" - NATPolicyRuleOriginalDestinationServicesIpProtocolBNA NATPolicyRuleOriginalDestinationServicesIpProtocol = "BNA" - NATPolicyRuleOriginalDestinationServicesIpProtocolBRSATMON NATPolicyRuleOriginalDestinationServicesIpProtocol = "BR-SAT-MON" - NATPolicyRuleOriginalDestinationServicesIpProtocolCBT NATPolicyRuleOriginalDestinationServicesIpProtocol = "CBT" - NATPolicyRuleOriginalDestinationServicesIpProtocolCFTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "CFTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolCHAOS NATPolicyRuleOriginalDestinationServicesIpProtocol = "CHAOS" - NATPolicyRuleOriginalDestinationServicesIpProtocolCPHB NATPolicyRuleOriginalDestinationServicesIpProtocol = "CPHB" - NATPolicyRuleOriginalDestinationServicesIpProtocolCPNX NATPolicyRuleOriginalDestinationServicesIpProtocol = "CPNX" - NATPolicyRuleOriginalDestinationServicesIpProtocolCRTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "CRTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolCRUDP NATPolicyRuleOriginalDestinationServicesIpProtocol = "CRUDP" - NATPolicyRuleOriginalDestinationServicesIpProtocolCompaqPeer NATPolicyRuleOriginalDestinationServicesIpProtocol = "Compaq-Peer" - NATPolicyRuleOriginalDestinationServicesIpProtocolDCCP NATPolicyRuleOriginalDestinationServicesIpProtocol = "DCCP" - NATPolicyRuleOriginalDestinationServicesIpProtocolDCNMEAS NATPolicyRuleOriginalDestinationServicesIpProtocol = "DCN-MEAS" - NATPolicyRuleOriginalDestinationServicesIpProtocolDDP NATPolicyRuleOriginalDestinationServicesIpProtocol = "DDP" - NATPolicyRuleOriginalDestinationServicesIpProtocolDDX NATPolicyRuleOriginalDestinationServicesIpProtocol = "DDX" - NATPolicyRuleOriginalDestinationServicesIpProtocolDGP NATPolicyRuleOriginalDestinationServicesIpProtocol = "DGP" - NATPolicyRuleOriginalDestinationServicesIpProtocolDSR NATPolicyRuleOriginalDestinationServicesIpProtocol = "DSR" - NATPolicyRuleOriginalDestinationServicesIpProtocolEGP NATPolicyRuleOriginalDestinationServicesIpProtocol = "EGP" - NATPolicyRuleOriginalDestinationServicesIpProtocolEIGRP NATPolicyRuleOriginalDestinationServicesIpProtocol = "EIGRP" - NATPolicyRuleOriginalDestinationServicesIpProtocolEMCON NATPolicyRuleOriginalDestinationServicesIpProtocol = "EMCON" - NATPolicyRuleOriginalDestinationServicesIpProtocolENCAP NATPolicyRuleOriginalDestinationServicesIpProtocol = "ENCAP" - NATPolicyRuleOriginalDestinationServicesIpProtocolESP NATPolicyRuleOriginalDestinationServicesIpProtocol = "ESP" - NATPolicyRuleOriginalDestinationServicesIpProtocolETHERIP NATPolicyRuleOriginalDestinationServicesIpProtocol = "ETHERIP" - NATPolicyRuleOriginalDestinationServicesIpProtocolEthernet NATPolicyRuleOriginalDestinationServicesIpProtocol = "Ethernet" - NATPolicyRuleOriginalDestinationServicesIpProtocolFC NATPolicyRuleOriginalDestinationServicesIpProtocol = "FC" - NATPolicyRuleOriginalDestinationServicesIpProtocolFIRE NATPolicyRuleOriginalDestinationServicesIpProtocol = "FIRE" - NATPolicyRuleOriginalDestinationServicesIpProtocolGGP NATPolicyRuleOriginalDestinationServicesIpProtocol = "GGP" - NATPolicyRuleOriginalDestinationServicesIpProtocolGMTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "GMTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolGRE NATPolicyRuleOriginalDestinationServicesIpProtocol = "GRE" - NATPolicyRuleOriginalDestinationServicesIpProtocolHIP NATPolicyRuleOriginalDestinationServicesIpProtocol = "HIP" - NATPolicyRuleOriginalDestinationServicesIpProtocolHMP NATPolicyRuleOriginalDestinationServicesIpProtocol = "HMP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIATP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IATP" - NATPolicyRuleOriginalDestinationServicesIpProtocolICMP NATPolicyRuleOriginalDestinationServicesIpProtocol = "ICMP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIDPR NATPolicyRuleOriginalDestinationServicesIpProtocol = "IDPR" - NATPolicyRuleOriginalDestinationServicesIpProtocolIDPRCMTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IDPR-CMTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIDRP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IDRP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIFMP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IFMP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIGMP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IGMP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIGP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IGP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIL NATPolicyRuleOriginalDestinationServicesIpProtocol = "IL" - NATPolicyRuleOriginalDestinationServicesIpProtocolINLSP NATPolicyRuleOriginalDestinationServicesIpProtocol = "I-NLSP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIPCV NATPolicyRuleOriginalDestinationServicesIpProtocol = "IPCV" - NATPolicyRuleOriginalDestinationServicesIpProtocolIPComp NATPolicyRuleOriginalDestinationServicesIpProtocol = "IPComp" - NATPolicyRuleOriginalDestinationServicesIpProtocolIPIP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IPIP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIPLT NATPolicyRuleOriginalDestinationServicesIpProtocol = "IPLT" - NATPolicyRuleOriginalDestinationServicesIpProtocolIPPC NATPolicyRuleOriginalDestinationServicesIpProtocol = "IPPC" - NATPolicyRuleOriginalDestinationServicesIpProtocolIPXInIP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IPX-in-IP" - NATPolicyRuleOriginalDestinationServicesIpProtocolIRTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "IRTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolISOIP NATPolicyRuleOriginalDestinationServicesIpProtocol = "ISO-IP" - NATPolicyRuleOriginalDestinationServicesIpProtocolISOTP4 NATPolicyRuleOriginalDestinationServicesIpProtocol = "ISO-TP4" - NATPolicyRuleOriginalDestinationServicesIpProtocolKRYPTOLAN NATPolicyRuleOriginalDestinationServicesIpProtocol = "KRYPTOLAN" - NATPolicyRuleOriginalDestinationServicesIpProtocolL2TP NATPolicyRuleOriginalDestinationServicesIpProtocol = "L2TP" - NATPolicyRuleOriginalDestinationServicesIpProtocolLARP NATPolicyRuleOriginalDestinationServicesIpProtocol = "LARP" - NATPolicyRuleOriginalDestinationServicesIpProtocolLEAF1 NATPolicyRuleOriginalDestinationServicesIpProtocol = "LEAF-1" - NATPolicyRuleOriginalDestinationServicesIpProtocolLEAF2 NATPolicyRuleOriginalDestinationServicesIpProtocol = "LEAF-2" - NATPolicyRuleOriginalDestinationServicesIpProtocolMERITINP NATPolicyRuleOriginalDestinationServicesIpProtocol = "MERIT-INP" - NATPolicyRuleOriginalDestinationServicesIpProtocolMFENSP NATPolicyRuleOriginalDestinationServicesIpProtocol = "MFE-NSP" - NATPolicyRuleOriginalDestinationServicesIpProtocolMOBILE NATPolicyRuleOriginalDestinationServicesIpProtocol = "MOBILE" - NATPolicyRuleOriginalDestinationServicesIpProtocolMTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "MTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolMUX NATPolicyRuleOriginalDestinationServicesIpProtocol = "MUX" - NATPolicyRuleOriginalDestinationServicesIpProtocolManet NATPolicyRuleOriginalDestinationServicesIpProtocol = "manet" - NATPolicyRuleOriginalDestinationServicesIpProtocolN3PC NATPolicyRuleOriginalDestinationServicesIpProtocol = "3PC" - NATPolicyRuleOriginalDestinationServicesIpProtocolNARP NATPolicyRuleOriginalDestinationServicesIpProtocol = "NARP" - NATPolicyRuleOriginalDestinationServicesIpProtocolNETBLT NATPolicyRuleOriginalDestinationServicesIpProtocol = "NETBLT" - NATPolicyRuleOriginalDestinationServicesIpProtocolNSFNETIGP NATPolicyRuleOriginalDestinationServicesIpProtocol = "NSFNET-IGP" - NATPolicyRuleOriginalDestinationServicesIpProtocolNVPII NATPolicyRuleOriginalDestinationServicesIpProtocol = "NVP-II" - NATPolicyRuleOriginalDestinationServicesIpProtocolOSPFIGP NATPolicyRuleOriginalDestinationServicesIpProtocol = "OSPFIGP" - NATPolicyRuleOriginalDestinationServicesIpProtocolPGM NATPolicyRuleOriginalDestinationServicesIpProtocol = "PGM" - NATPolicyRuleOriginalDestinationServicesIpProtocolPIM NATPolicyRuleOriginalDestinationServicesIpProtocol = "PIM" - NATPolicyRuleOriginalDestinationServicesIpProtocolPIPE NATPolicyRuleOriginalDestinationServicesIpProtocol = "PIPE" - NATPolicyRuleOriginalDestinationServicesIpProtocolPNNI NATPolicyRuleOriginalDestinationServicesIpProtocol = "PNNI" - NATPolicyRuleOriginalDestinationServicesIpProtocolPRM NATPolicyRuleOriginalDestinationServicesIpProtocol = "PRM" - NATPolicyRuleOriginalDestinationServicesIpProtocolPTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "PTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolPUP NATPolicyRuleOriginalDestinationServicesIpProtocol = "PUP" - NATPolicyRuleOriginalDestinationServicesIpProtocolPVP NATPolicyRuleOriginalDestinationServicesIpProtocol = "PVP" - NATPolicyRuleOriginalDestinationServicesIpProtocolQNX NATPolicyRuleOriginalDestinationServicesIpProtocol = "QNX" - NATPolicyRuleOriginalDestinationServicesIpProtocolRDP NATPolicyRuleOriginalDestinationServicesIpProtocol = "RDP" - NATPolicyRuleOriginalDestinationServicesIpProtocolROHC NATPolicyRuleOriginalDestinationServicesIpProtocol = "ROHC" - NATPolicyRuleOriginalDestinationServicesIpProtocolRSVP NATPolicyRuleOriginalDestinationServicesIpProtocol = "RSVP" - NATPolicyRuleOriginalDestinationServicesIpProtocolRSVPE2EIGNORE NATPolicyRuleOriginalDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleOriginalDestinationServicesIpProtocolRVD NATPolicyRuleOriginalDestinationServicesIpProtocol = "RVD" - NATPolicyRuleOriginalDestinationServicesIpProtocolSATEXPAK NATPolicyRuleOriginalDestinationServicesIpProtocol = "SAT-EXPAK" - NATPolicyRuleOriginalDestinationServicesIpProtocolSATMON NATPolicyRuleOriginalDestinationServicesIpProtocol = "SAT-MON" - NATPolicyRuleOriginalDestinationServicesIpProtocolSCCSP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SCC-SP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSCPS NATPolicyRuleOriginalDestinationServicesIpProtocol = "SCPS" - NATPolicyRuleOriginalDestinationServicesIpProtocolSCTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SCTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSDRP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SDRP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSECUREVMTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SECURE-VMTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSKIP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SKIP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSM NATPolicyRuleOriginalDestinationServicesIpProtocol = "SM" - NATPolicyRuleOriginalDestinationServicesIpProtocolSMP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SMP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSNP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SNP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSPS NATPolicyRuleOriginalDestinationServicesIpProtocol = "SPS" - NATPolicyRuleOriginalDestinationServicesIpProtocolSRP NATPolicyRuleOriginalDestinationServicesIpProtocol = "SRP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSSCOPMCE NATPolicyRuleOriginalDestinationServicesIpProtocol = "SSCOPMCE" - NATPolicyRuleOriginalDestinationServicesIpProtocolSTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "STP" - NATPolicyRuleOriginalDestinationServicesIpProtocolSUNND NATPolicyRuleOriginalDestinationServicesIpProtocol = "SUN-ND" - NATPolicyRuleOriginalDestinationServicesIpProtocolSpriteRPC NATPolicyRuleOriginalDestinationServicesIpProtocol = "Sprite-RPC" - NATPolicyRuleOriginalDestinationServicesIpProtocolTCF NATPolicyRuleOriginalDestinationServicesIpProtocol = "TCF" - NATPolicyRuleOriginalDestinationServicesIpProtocolTCP NATPolicyRuleOriginalDestinationServicesIpProtocol = "TCP" - NATPolicyRuleOriginalDestinationServicesIpProtocolTLSP NATPolicyRuleOriginalDestinationServicesIpProtocol = "TLSP" - NATPolicyRuleOriginalDestinationServicesIpProtocolTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "TP++" - NATPolicyRuleOriginalDestinationServicesIpProtocolTRUNK1 NATPolicyRuleOriginalDestinationServicesIpProtocol = "TRUNK-1" - NATPolicyRuleOriginalDestinationServicesIpProtocolTRUNK2 NATPolicyRuleOriginalDestinationServicesIpProtocol = "TRUNK-2" - NATPolicyRuleOriginalDestinationServicesIpProtocolTTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "TTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolUDP NATPolicyRuleOriginalDestinationServicesIpProtocol = "UDP" - NATPolicyRuleOriginalDestinationServicesIpProtocolUDPLite NATPolicyRuleOriginalDestinationServicesIpProtocol = "UDPLite" - NATPolicyRuleOriginalDestinationServicesIpProtocolUTI NATPolicyRuleOriginalDestinationServicesIpProtocol = "UTI" - NATPolicyRuleOriginalDestinationServicesIpProtocolVINES NATPolicyRuleOriginalDestinationServicesIpProtocol = "VINES" - NATPolicyRuleOriginalDestinationServicesIpProtocolVISA NATPolicyRuleOriginalDestinationServicesIpProtocol = "VISA" - NATPolicyRuleOriginalDestinationServicesIpProtocolVMTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "VMTP" - NATPolicyRuleOriginalDestinationServicesIpProtocolWBEXPAK NATPolicyRuleOriginalDestinationServicesIpProtocol = "WB-EXPAK" - NATPolicyRuleOriginalDestinationServicesIpProtocolWBMON NATPolicyRuleOriginalDestinationServicesIpProtocol = "WB-MON" - NATPolicyRuleOriginalDestinationServicesIpProtocolWESP NATPolicyRuleOriginalDestinationServicesIpProtocol = "WESP" - NATPolicyRuleOriginalDestinationServicesIpProtocolWSN NATPolicyRuleOriginalDestinationServicesIpProtocol = "WSN" - NATPolicyRuleOriginalDestinationServicesIpProtocolXNET NATPolicyRuleOriginalDestinationServicesIpProtocol = "XNET" - NATPolicyRuleOriginalDestinationServicesIpProtocolXNSIDP NATPolicyRuleOriginalDestinationServicesIpProtocol = "XNS-IDP" - NATPolicyRuleOriginalDestinationServicesIpProtocolXTP NATPolicyRuleOriginalDestinationServicesIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleOriginalDestinationServicesStatusLabel. -const ( - NATPolicyRuleOriginalDestinationServicesStatusLabelActive NATPolicyRuleOriginalDestinationServicesStatusLabel = "Active" - NATPolicyRuleOriginalDestinationServicesStatusLabelDecommissioned NATPolicyRuleOriginalDestinationServicesStatusLabel = "Decommissioned" - NATPolicyRuleOriginalDestinationServicesStatusLabelStaged NATPolicyRuleOriginalDestinationServicesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalDestinationServicesStatusValue. -const ( - NATPolicyRuleOriginalDestinationServicesStatusValueActive NATPolicyRuleOriginalDestinationServicesStatusValue = "active" - NATPolicyRuleOriginalDestinationServicesStatusValueDecommissioned NATPolicyRuleOriginalDestinationServicesStatusValue = "decommissioned" - NATPolicyRuleOriginalDestinationServicesStatusValueStaged NATPolicyRuleOriginalDestinationServicesStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabel. -const ( - NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabelActive NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabel = "Active" - NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabelDecommissioned NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabelStaged NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValue. -const ( - NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValueActive NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValue = "active" - NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValueDecommissioned NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValue = "decommissioned" - NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValueStaged NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalSourceAddressGroupsStatusLabel. -const ( - NATPolicyRuleOriginalSourceAddressGroupsStatusLabelActive NATPolicyRuleOriginalSourceAddressGroupsStatusLabel = "Active" - NATPolicyRuleOriginalSourceAddressGroupsStatusLabelDecommissioned NATPolicyRuleOriginalSourceAddressGroupsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalSourceAddressGroupsStatusLabelStaged NATPolicyRuleOriginalSourceAddressGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalSourceAddressGroupsStatusValue. -const ( - NATPolicyRuleOriginalSourceAddressGroupsStatusValueActive NATPolicyRuleOriginalSourceAddressGroupsStatusValue = "active" - NATPolicyRuleOriginalSourceAddressGroupsStatusValueDecommissioned NATPolicyRuleOriginalSourceAddressGroupsStatusValue = "decommissioned" - NATPolicyRuleOriginalSourceAddressGroupsStatusValueStaged NATPolicyRuleOriginalSourceAddressGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalSourceAddressesStatusLabel. -const ( - NATPolicyRuleOriginalSourceAddressesStatusLabelActive NATPolicyRuleOriginalSourceAddressesStatusLabel = "Active" - NATPolicyRuleOriginalSourceAddressesStatusLabelDecommissioned NATPolicyRuleOriginalSourceAddressesStatusLabel = "Decommissioned" - NATPolicyRuleOriginalSourceAddressesStatusLabelStaged NATPolicyRuleOriginalSourceAddressesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalSourceAddressesStatusValue. -const ( - NATPolicyRuleOriginalSourceAddressesStatusValueActive NATPolicyRuleOriginalSourceAddressesStatusValue = "active" - NATPolicyRuleOriginalSourceAddressesStatusValueDecommissioned NATPolicyRuleOriginalSourceAddressesStatusValue = "decommissioned" - NATPolicyRuleOriginalSourceAddressesStatusValueStaged NATPolicyRuleOriginalSourceAddressesStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol. -const ( - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolAH NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "AH" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolAN NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "A/N" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolARIS NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ARIS" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolAX25 NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "AX.25" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolBBNRCCMON NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolBNA NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BNA" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolBRSATMON NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCBT NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CBT" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCFTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CFTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCHAOS NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CHAOS" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCPHB NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CPHB" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCPNX NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CPNX" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCRTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CRTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCRUDP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CRUDP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolCompaqPeer NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolDCCP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DCCP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolDCNMEAS NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolDDP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DDP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolDDX NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DDX" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolDGP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DGP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolDSR NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DSR" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolEGP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EGP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolEIGRP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EIGRP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolEMCON NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EMCON" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolENCAP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ENCAP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolESP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ESP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolETHERIP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolEthernet NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Ethernet" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolFC NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "FC" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolFIRE NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "FIRE" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolGGP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GGP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolGMTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GMTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolGRE NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GRE" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolHIP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "HIP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolHMP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "HMP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIATP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IATP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolICMP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ICMP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIDPR NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDPR" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIDPRCMTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIDRP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDRP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIFMP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IFMP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIGMP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IGMP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIGP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IGP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIL NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IL" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolINLSP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIPCV NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPCV" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIPComp NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPComp" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIPIP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPIP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIPLT NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPLT" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIPPC NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPPC" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIPXInIP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolIRTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IRTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolISOIP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolISOTP4 NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolKRYPTOLAN NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolL2TP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "L2TP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolLARP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LARP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolLEAF1 NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolLEAF2 NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolMERITINP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolMFENSP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolMOBILE NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MOBILE" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolMTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolMUX NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MUX" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolManet NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "manet" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolN3PC NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "3PC" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolNARP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NARP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolNETBLT NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NETBLT" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolNSFNETIGP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolNVPII NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NVP-II" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolOSPFIGP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPGM NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PGM" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPIM NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PIM" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPIPE NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PIPE" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPNNI NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PNNI" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPRM NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PRM" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPUP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PUP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolPVP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PVP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolQNX NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "QNX" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolRDP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RDP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolROHC NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ROHC" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolRSVP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RSVP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolRVD NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RVD" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSATEXPAK NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSATMON NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSCCSP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSCPS NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCPS" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSCTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSDRP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SDRP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSECUREVMTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSKIP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SKIP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSM NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SM" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSMP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SMP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSNP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SNP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSPS NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SPS" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSRP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SRP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSSCOPMCE NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "STP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSUNND NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolSpriteRPC NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolTCF NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TCF" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolTCP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TCP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolTLSP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TLSP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TP++" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolTRUNK1 NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolTRUNK2 NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolTTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolUDP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UDP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolUDPLite NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UDPLite" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolUTI NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UTI" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolVINES NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VINES" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolVISA NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VISA" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolVMTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VMTP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolWBEXPAK NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolWBMON NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WB-MON" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolWESP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WESP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolWSN NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WSN" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolXNET NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XNET" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolXNSIDP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocolXTP NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabel. -const ( - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabelActive NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabel = "Active" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabelDecommissioned NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabelStaged NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValue. -const ( - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValueActive NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValue = "active" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValueDecommissioned NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValue = "decommissioned" - NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValueStaged NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalSourceServiceGroupsStatusLabel. -const ( - NATPolicyRuleOriginalSourceServiceGroupsStatusLabelActive NATPolicyRuleOriginalSourceServiceGroupsStatusLabel = "Active" - NATPolicyRuleOriginalSourceServiceGroupsStatusLabelDecommissioned NATPolicyRuleOriginalSourceServiceGroupsStatusLabel = "Decommissioned" - NATPolicyRuleOriginalSourceServiceGroupsStatusLabelStaged NATPolicyRuleOriginalSourceServiceGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalSourceServiceGroupsStatusValue. -const ( - NATPolicyRuleOriginalSourceServiceGroupsStatusValueActive NATPolicyRuleOriginalSourceServiceGroupsStatusValue = "active" - NATPolicyRuleOriginalSourceServiceGroupsStatusValueDecommissioned NATPolicyRuleOriginalSourceServiceGroupsStatusValue = "decommissioned" - NATPolicyRuleOriginalSourceServiceGroupsStatusValueStaged NATPolicyRuleOriginalSourceServiceGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleOriginalSourceServicesIpProtocol. -const ( - NATPolicyRuleOriginalSourceServicesIpProtocolAH NATPolicyRuleOriginalSourceServicesIpProtocol = "AH" - NATPolicyRuleOriginalSourceServicesIpProtocolAN NATPolicyRuleOriginalSourceServicesIpProtocol = "A/N" - NATPolicyRuleOriginalSourceServicesIpProtocolARIS NATPolicyRuleOriginalSourceServicesIpProtocol = "ARIS" - NATPolicyRuleOriginalSourceServicesIpProtocolAX25 NATPolicyRuleOriginalSourceServicesIpProtocol = "AX.25" - NATPolicyRuleOriginalSourceServicesIpProtocolBBNRCCMON NATPolicyRuleOriginalSourceServicesIpProtocol = "BBN-RCC-MON" - NATPolicyRuleOriginalSourceServicesIpProtocolBNA NATPolicyRuleOriginalSourceServicesIpProtocol = "BNA" - NATPolicyRuleOriginalSourceServicesIpProtocolBRSATMON NATPolicyRuleOriginalSourceServicesIpProtocol = "BR-SAT-MON" - NATPolicyRuleOriginalSourceServicesIpProtocolCBT NATPolicyRuleOriginalSourceServicesIpProtocol = "CBT" - NATPolicyRuleOriginalSourceServicesIpProtocolCFTP NATPolicyRuleOriginalSourceServicesIpProtocol = "CFTP" - NATPolicyRuleOriginalSourceServicesIpProtocolCHAOS NATPolicyRuleOriginalSourceServicesIpProtocol = "CHAOS" - NATPolicyRuleOriginalSourceServicesIpProtocolCPHB NATPolicyRuleOriginalSourceServicesIpProtocol = "CPHB" - NATPolicyRuleOriginalSourceServicesIpProtocolCPNX NATPolicyRuleOriginalSourceServicesIpProtocol = "CPNX" - NATPolicyRuleOriginalSourceServicesIpProtocolCRTP NATPolicyRuleOriginalSourceServicesIpProtocol = "CRTP" - NATPolicyRuleOriginalSourceServicesIpProtocolCRUDP NATPolicyRuleOriginalSourceServicesIpProtocol = "CRUDP" - NATPolicyRuleOriginalSourceServicesIpProtocolCompaqPeer NATPolicyRuleOriginalSourceServicesIpProtocol = "Compaq-Peer" - NATPolicyRuleOriginalSourceServicesIpProtocolDCCP NATPolicyRuleOriginalSourceServicesIpProtocol = "DCCP" - NATPolicyRuleOriginalSourceServicesIpProtocolDCNMEAS NATPolicyRuleOriginalSourceServicesIpProtocol = "DCN-MEAS" - NATPolicyRuleOriginalSourceServicesIpProtocolDDP NATPolicyRuleOriginalSourceServicesIpProtocol = "DDP" - NATPolicyRuleOriginalSourceServicesIpProtocolDDX NATPolicyRuleOriginalSourceServicesIpProtocol = "DDX" - NATPolicyRuleOriginalSourceServicesIpProtocolDGP NATPolicyRuleOriginalSourceServicesIpProtocol = "DGP" - NATPolicyRuleOriginalSourceServicesIpProtocolDSR NATPolicyRuleOriginalSourceServicesIpProtocol = "DSR" - NATPolicyRuleOriginalSourceServicesIpProtocolEGP NATPolicyRuleOriginalSourceServicesIpProtocol = "EGP" - NATPolicyRuleOriginalSourceServicesIpProtocolEIGRP NATPolicyRuleOriginalSourceServicesIpProtocol = "EIGRP" - NATPolicyRuleOriginalSourceServicesIpProtocolEMCON NATPolicyRuleOriginalSourceServicesIpProtocol = "EMCON" - NATPolicyRuleOriginalSourceServicesIpProtocolENCAP NATPolicyRuleOriginalSourceServicesIpProtocol = "ENCAP" - NATPolicyRuleOriginalSourceServicesIpProtocolESP NATPolicyRuleOriginalSourceServicesIpProtocol = "ESP" - NATPolicyRuleOriginalSourceServicesIpProtocolETHERIP NATPolicyRuleOriginalSourceServicesIpProtocol = "ETHERIP" - NATPolicyRuleOriginalSourceServicesIpProtocolEthernet NATPolicyRuleOriginalSourceServicesIpProtocol = "Ethernet" - NATPolicyRuleOriginalSourceServicesIpProtocolFC NATPolicyRuleOriginalSourceServicesIpProtocol = "FC" - NATPolicyRuleOriginalSourceServicesIpProtocolFIRE NATPolicyRuleOriginalSourceServicesIpProtocol = "FIRE" - NATPolicyRuleOriginalSourceServicesIpProtocolGGP NATPolicyRuleOriginalSourceServicesIpProtocol = "GGP" - NATPolicyRuleOriginalSourceServicesIpProtocolGMTP NATPolicyRuleOriginalSourceServicesIpProtocol = "GMTP" - NATPolicyRuleOriginalSourceServicesIpProtocolGRE NATPolicyRuleOriginalSourceServicesIpProtocol = "GRE" - NATPolicyRuleOriginalSourceServicesIpProtocolHIP NATPolicyRuleOriginalSourceServicesIpProtocol = "HIP" - NATPolicyRuleOriginalSourceServicesIpProtocolHMP NATPolicyRuleOriginalSourceServicesIpProtocol = "HMP" - NATPolicyRuleOriginalSourceServicesIpProtocolIATP NATPolicyRuleOriginalSourceServicesIpProtocol = "IATP" - NATPolicyRuleOriginalSourceServicesIpProtocolICMP NATPolicyRuleOriginalSourceServicesIpProtocol = "ICMP" - NATPolicyRuleOriginalSourceServicesIpProtocolIDPR NATPolicyRuleOriginalSourceServicesIpProtocol = "IDPR" - NATPolicyRuleOriginalSourceServicesIpProtocolIDPRCMTP NATPolicyRuleOriginalSourceServicesIpProtocol = "IDPR-CMTP" - NATPolicyRuleOriginalSourceServicesIpProtocolIDRP NATPolicyRuleOriginalSourceServicesIpProtocol = "IDRP" - NATPolicyRuleOriginalSourceServicesIpProtocolIFMP NATPolicyRuleOriginalSourceServicesIpProtocol = "IFMP" - NATPolicyRuleOriginalSourceServicesIpProtocolIGMP NATPolicyRuleOriginalSourceServicesIpProtocol = "IGMP" - NATPolicyRuleOriginalSourceServicesIpProtocolIGP NATPolicyRuleOriginalSourceServicesIpProtocol = "IGP" - NATPolicyRuleOriginalSourceServicesIpProtocolIL NATPolicyRuleOriginalSourceServicesIpProtocol = "IL" - NATPolicyRuleOriginalSourceServicesIpProtocolINLSP NATPolicyRuleOriginalSourceServicesIpProtocol = "I-NLSP" - NATPolicyRuleOriginalSourceServicesIpProtocolIPCV NATPolicyRuleOriginalSourceServicesIpProtocol = "IPCV" - NATPolicyRuleOriginalSourceServicesIpProtocolIPComp NATPolicyRuleOriginalSourceServicesIpProtocol = "IPComp" - NATPolicyRuleOriginalSourceServicesIpProtocolIPIP NATPolicyRuleOriginalSourceServicesIpProtocol = "IPIP" - NATPolicyRuleOriginalSourceServicesIpProtocolIPLT NATPolicyRuleOriginalSourceServicesIpProtocol = "IPLT" - NATPolicyRuleOriginalSourceServicesIpProtocolIPPC NATPolicyRuleOriginalSourceServicesIpProtocol = "IPPC" - NATPolicyRuleOriginalSourceServicesIpProtocolIPXInIP NATPolicyRuleOriginalSourceServicesIpProtocol = "IPX-in-IP" - NATPolicyRuleOriginalSourceServicesIpProtocolIRTP NATPolicyRuleOriginalSourceServicesIpProtocol = "IRTP" - NATPolicyRuleOriginalSourceServicesIpProtocolISOIP NATPolicyRuleOriginalSourceServicesIpProtocol = "ISO-IP" - NATPolicyRuleOriginalSourceServicesIpProtocolISOTP4 NATPolicyRuleOriginalSourceServicesIpProtocol = "ISO-TP4" - NATPolicyRuleOriginalSourceServicesIpProtocolKRYPTOLAN NATPolicyRuleOriginalSourceServicesIpProtocol = "KRYPTOLAN" - NATPolicyRuleOriginalSourceServicesIpProtocolL2TP NATPolicyRuleOriginalSourceServicesIpProtocol = "L2TP" - NATPolicyRuleOriginalSourceServicesIpProtocolLARP NATPolicyRuleOriginalSourceServicesIpProtocol = "LARP" - NATPolicyRuleOriginalSourceServicesIpProtocolLEAF1 NATPolicyRuleOriginalSourceServicesIpProtocol = "LEAF-1" - NATPolicyRuleOriginalSourceServicesIpProtocolLEAF2 NATPolicyRuleOriginalSourceServicesIpProtocol = "LEAF-2" - NATPolicyRuleOriginalSourceServicesIpProtocolMERITINP NATPolicyRuleOriginalSourceServicesIpProtocol = "MERIT-INP" - NATPolicyRuleOriginalSourceServicesIpProtocolMFENSP NATPolicyRuleOriginalSourceServicesIpProtocol = "MFE-NSP" - NATPolicyRuleOriginalSourceServicesIpProtocolMOBILE NATPolicyRuleOriginalSourceServicesIpProtocol = "MOBILE" - NATPolicyRuleOriginalSourceServicesIpProtocolMTP NATPolicyRuleOriginalSourceServicesIpProtocol = "MTP" - NATPolicyRuleOriginalSourceServicesIpProtocolMUX NATPolicyRuleOriginalSourceServicesIpProtocol = "MUX" - NATPolicyRuleOriginalSourceServicesIpProtocolManet NATPolicyRuleOriginalSourceServicesIpProtocol = "manet" - NATPolicyRuleOriginalSourceServicesIpProtocolN3PC NATPolicyRuleOriginalSourceServicesIpProtocol = "3PC" - NATPolicyRuleOriginalSourceServicesIpProtocolNARP NATPolicyRuleOriginalSourceServicesIpProtocol = "NARP" - NATPolicyRuleOriginalSourceServicesIpProtocolNETBLT NATPolicyRuleOriginalSourceServicesIpProtocol = "NETBLT" - NATPolicyRuleOriginalSourceServicesIpProtocolNSFNETIGP NATPolicyRuleOriginalSourceServicesIpProtocol = "NSFNET-IGP" - NATPolicyRuleOriginalSourceServicesIpProtocolNVPII NATPolicyRuleOriginalSourceServicesIpProtocol = "NVP-II" - NATPolicyRuleOriginalSourceServicesIpProtocolOSPFIGP NATPolicyRuleOriginalSourceServicesIpProtocol = "OSPFIGP" - NATPolicyRuleOriginalSourceServicesIpProtocolPGM NATPolicyRuleOriginalSourceServicesIpProtocol = "PGM" - NATPolicyRuleOriginalSourceServicesIpProtocolPIM NATPolicyRuleOriginalSourceServicesIpProtocol = "PIM" - NATPolicyRuleOriginalSourceServicesIpProtocolPIPE NATPolicyRuleOriginalSourceServicesIpProtocol = "PIPE" - NATPolicyRuleOriginalSourceServicesIpProtocolPNNI NATPolicyRuleOriginalSourceServicesIpProtocol = "PNNI" - NATPolicyRuleOriginalSourceServicesIpProtocolPRM NATPolicyRuleOriginalSourceServicesIpProtocol = "PRM" - NATPolicyRuleOriginalSourceServicesIpProtocolPTP NATPolicyRuleOriginalSourceServicesIpProtocol = "PTP" - NATPolicyRuleOriginalSourceServicesIpProtocolPUP NATPolicyRuleOriginalSourceServicesIpProtocol = "PUP" - NATPolicyRuleOriginalSourceServicesIpProtocolPVP NATPolicyRuleOriginalSourceServicesIpProtocol = "PVP" - NATPolicyRuleOriginalSourceServicesIpProtocolQNX NATPolicyRuleOriginalSourceServicesIpProtocol = "QNX" - NATPolicyRuleOriginalSourceServicesIpProtocolRDP NATPolicyRuleOriginalSourceServicesIpProtocol = "RDP" - NATPolicyRuleOriginalSourceServicesIpProtocolROHC NATPolicyRuleOriginalSourceServicesIpProtocol = "ROHC" - NATPolicyRuleOriginalSourceServicesIpProtocolRSVP NATPolicyRuleOriginalSourceServicesIpProtocol = "RSVP" - NATPolicyRuleOriginalSourceServicesIpProtocolRSVPE2EIGNORE NATPolicyRuleOriginalSourceServicesIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleOriginalSourceServicesIpProtocolRVD NATPolicyRuleOriginalSourceServicesIpProtocol = "RVD" - NATPolicyRuleOriginalSourceServicesIpProtocolSATEXPAK NATPolicyRuleOriginalSourceServicesIpProtocol = "SAT-EXPAK" - NATPolicyRuleOriginalSourceServicesIpProtocolSATMON NATPolicyRuleOriginalSourceServicesIpProtocol = "SAT-MON" - NATPolicyRuleOriginalSourceServicesIpProtocolSCCSP NATPolicyRuleOriginalSourceServicesIpProtocol = "SCC-SP" - NATPolicyRuleOriginalSourceServicesIpProtocolSCPS NATPolicyRuleOriginalSourceServicesIpProtocol = "SCPS" - NATPolicyRuleOriginalSourceServicesIpProtocolSCTP NATPolicyRuleOriginalSourceServicesIpProtocol = "SCTP" - NATPolicyRuleOriginalSourceServicesIpProtocolSDRP NATPolicyRuleOriginalSourceServicesIpProtocol = "SDRP" - NATPolicyRuleOriginalSourceServicesIpProtocolSECUREVMTP NATPolicyRuleOriginalSourceServicesIpProtocol = "SECURE-VMTP" - NATPolicyRuleOriginalSourceServicesIpProtocolSKIP NATPolicyRuleOriginalSourceServicesIpProtocol = "SKIP" - NATPolicyRuleOriginalSourceServicesIpProtocolSM NATPolicyRuleOriginalSourceServicesIpProtocol = "SM" - NATPolicyRuleOriginalSourceServicesIpProtocolSMP NATPolicyRuleOriginalSourceServicesIpProtocol = "SMP" - NATPolicyRuleOriginalSourceServicesIpProtocolSNP NATPolicyRuleOriginalSourceServicesIpProtocol = "SNP" - NATPolicyRuleOriginalSourceServicesIpProtocolSPS NATPolicyRuleOriginalSourceServicesIpProtocol = "SPS" - NATPolicyRuleOriginalSourceServicesIpProtocolSRP NATPolicyRuleOriginalSourceServicesIpProtocol = "SRP" - NATPolicyRuleOriginalSourceServicesIpProtocolSSCOPMCE NATPolicyRuleOriginalSourceServicesIpProtocol = "SSCOPMCE" - NATPolicyRuleOriginalSourceServicesIpProtocolSTP NATPolicyRuleOriginalSourceServicesIpProtocol = "STP" - NATPolicyRuleOriginalSourceServicesIpProtocolSUNND NATPolicyRuleOriginalSourceServicesIpProtocol = "SUN-ND" - NATPolicyRuleOriginalSourceServicesIpProtocolSpriteRPC NATPolicyRuleOriginalSourceServicesIpProtocol = "Sprite-RPC" - NATPolicyRuleOriginalSourceServicesIpProtocolTCF NATPolicyRuleOriginalSourceServicesIpProtocol = "TCF" - NATPolicyRuleOriginalSourceServicesIpProtocolTCP NATPolicyRuleOriginalSourceServicesIpProtocol = "TCP" - NATPolicyRuleOriginalSourceServicesIpProtocolTLSP NATPolicyRuleOriginalSourceServicesIpProtocol = "TLSP" - NATPolicyRuleOriginalSourceServicesIpProtocolTP NATPolicyRuleOriginalSourceServicesIpProtocol = "TP++" - NATPolicyRuleOriginalSourceServicesIpProtocolTRUNK1 NATPolicyRuleOriginalSourceServicesIpProtocol = "TRUNK-1" - NATPolicyRuleOriginalSourceServicesIpProtocolTRUNK2 NATPolicyRuleOriginalSourceServicesIpProtocol = "TRUNK-2" - NATPolicyRuleOriginalSourceServicesIpProtocolTTP NATPolicyRuleOriginalSourceServicesIpProtocol = "TTP" - NATPolicyRuleOriginalSourceServicesIpProtocolUDP NATPolicyRuleOriginalSourceServicesIpProtocol = "UDP" - NATPolicyRuleOriginalSourceServicesIpProtocolUDPLite NATPolicyRuleOriginalSourceServicesIpProtocol = "UDPLite" - NATPolicyRuleOriginalSourceServicesIpProtocolUTI NATPolicyRuleOriginalSourceServicesIpProtocol = "UTI" - NATPolicyRuleOriginalSourceServicesIpProtocolVINES NATPolicyRuleOriginalSourceServicesIpProtocol = "VINES" - NATPolicyRuleOriginalSourceServicesIpProtocolVISA NATPolicyRuleOriginalSourceServicesIpProtocol = "VISA" - NATPolicyRuleOriginalSourceServicesIpProtocolVMTP NATPolicyRuleOriginalSourceServicesIpProtocol = "VMTP" - NATPolicyRuleOriginalSourceServicesIpProtocolWBEXPAK NATPolicyRuleOriginalSourceServicesIpProtocol = "WB-EXPAK" - NATPolicyRuleOriginalSourceServicesIpProtocolWBMON NATPolicyRuleOriginalSourceServicesIpProtocol = "WB-MON" - NATPolicyRuleOriginalSourceServicesIpProtocolWESP NATPolicyRuleOriginalSourceServicesIpProtocol = "WESP" - NATPolicyRuleOriginalSourceServicesIpProtocolWSN NATPolicyRuleOriginalSourceServicesIpProtocol = "WSN" - NATPolicyRuleOriginalSourceServicesIpProtocolXNET NATPolicyRuleOriginalSourceServicesIpProtocol = "XNET" - NATPolicyRuleOriginalSourceServicesIpProtocolXNSIDP NATPolicyRuleOriginalSourceServicesIpProtocol = "XNS-IDP" - NATPolicyRuleOriginalSourceServicesIpProtocolXTP NATPolicyRuleOriginalSourceServicesIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleOriginalSourceServicesStatusLabel. -const ( - NATPolicyRuleOriginalSourceServicesStatusLabelActive NATPolicyRuleOriginalSourceServicesStatusLabel = "Active" - NATPolicyRuleOriginalSourceServicesStatusLabelDecommissioned NATPolicyRuleOriginalSourceServicesStatusLabel = "Decommissioned" - NATPolicyRuleOriginalSourceServicesStatusLabelStaged NATPolicyRuleOriginalSourceServicesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleOriginalSourceServicesStatusValue. -const ( - NATPolicyRuleOriginalSourceServicesStatusValueActive NATPolicyRuleOriginalSourceServicesStatusValue = "active" - NATPolicyRuleOriginalSourceServicesStatusValueDecommissioned NATPolicyRuleOriginalSourceServicesStatusValue = "decommissioned" - NATPolicyRuleOriginalSourceServicesStatusValueStaged NATPolicyRuleOriginalSourceServicesStatusValue = "staged" -) - -// Defines values for NATPolicyRuleStatusLabel. -const ( - NATPolicyRuleStatusLabelActive NATPolicyRuleStatusLabel = "Active" - NATPolicyRuleStatusLabelDecommissioned NATPolicyRuleStatusLabel = "Decommissioned" - NATPolicyRuleStatusLabelStaged NATPolicyRuleStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleStatusValue. -const ( - NATPolicyRuleStatusValueActive NATPolicyRuleStatusValue = "active" - NATPolicyRuleStatusValueDecommissioned NATPolicyRuleStatusValue = "decommissioned" - NATPolicyRuleStatusValueStaged NATPolicyRuleStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabel. -const ( - NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabelActive NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabel = "Active" - NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabelDecommissioned NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabelStaged NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValue. -const ( - NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValueActive NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValue = "active" - NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValueDecommissioned NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValue = "decommissioned" - NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValueStaged NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabel. -const ( - NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabelActive NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabel = "Active" - NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabelDecommissioned NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabelStaged NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationAddressGroupsStatusValue. -const ( - NATPolicyRuleTranslatedDestinationAddressGroupsStatusValueActive NATPolicyRuleTranslatedDestinationAddressGroupsStatusValue = "active" - NATPolicyRuleTranslatedDestinationAddressGroupsStatusValueDecommissioned NATPolicyRuleTranslatedDestinationAddressGroupsStatusValue = "decommissioned" - NATPolicyRuleTranslatedDestinationAddressGroupsStatusValueStaged NATPolicyRuleTranslatedDestinationAddressGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationAddressesStatusLabel. -const ( - NATPolicyRuleTranslatedDestinationAddressesStatusLabelActive NATPolicyRuleTranslatedDestinationAddressesStatusLabel = "Active" - NATPolicyRuleTranslatedDestinationAddressesStatusLabelDecommissioned NATPolicyRuleTranslatedDestinationAddressesStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedDestinationAddressesStatusLabelStaged NATPolicyRuleTranslatedDestinationAddressesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationAddressesStatusValue. -const ( - NATPolicyRuleTranslatedDestinationAddressesStatusValueActive NATPolicyRuleTranslatedDestinationAddressesStatusValue = "active" - NATPolicyRuleTranslatedDestinationAddressesStatusValueDecommissioned NATPolicyRuleTranslatedDestinationAddressesStatusValue = "decommissioned" - NATPolicyRuleTranslatedDestinationAddressesStatusValueStaged NATPolicyRuleTranslatedDestinationAddressesStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAH NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAN NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolARIS NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAX25 NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBNA NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCBT NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCFTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCHAOS NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCPHB NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCPNX NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCRTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCRUDP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDCCP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDDP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDDX NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDGP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDSR NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEGP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEIGRP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEMCON NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolENCAP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolESP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolETHERIP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEthernet NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolFC NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolFIRE NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGGP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGMTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGRE NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolHIP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolHMP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIATP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolICMP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDPR NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDRP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIFMP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIGMP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIGP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIL NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolINLSP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPCV NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPComp NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPIP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPLT NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPPC NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIRTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolISOIP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolL2TP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLARP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMERITINP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMFENSP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMOBILE NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMUX NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolManet NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolN3PC NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNARP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNETBLT NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNVPII NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPGM NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPIM NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPIPE NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPNNI NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPRM NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPUP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPVP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolQNX NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRDP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolROHC NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRSVP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRVD NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSATMON NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCCSP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCPS NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSDRP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSKIP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSM NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSMP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSNP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSPS NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSRP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSUNND NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTCF NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTCP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTLSP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUDP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUDPLite NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUTI NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVINES NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVISA NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVMTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWBMON NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWESP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWSN NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXNET NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXTP NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabel. -const ( - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabelActive NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabel = "Active" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabelDecommissioned NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabelStaged NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValue. -const ( - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValueActive NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValue = "active" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValueDecommissioned NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValue = "decommissioned" - NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValueStaged NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabel. -const ( - NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabelActive NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabel = "Active" - NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabelDecommissioned NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabelStaged NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServiceGroupsStatusValue. -const ( - NATPolicyRuleTranslatedDestinationServiceGroupsStatusValueActive NATPolicyRuleTranslatedDestinationServiceGroupsStatusValue = "active" - NATPolicyRuleTranslatedDestinationServiceGroupsStatusValueDecommissioned NATPolicyRuleTranslatedDestinationServiceGroupsStatusValue = "decommissioned" - NATPolicyRuleTranslatedDestinationServiceGroupsStatusValueStaged NATPolicyRuleTranslatedDestinationServiceGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServicesIpProtocol. -const ( - NATPolicyRuleTranslatedDestinationServicesIpProtocolAH NATPolicyRuleTranslatedDestinationServicesIpProtocol = "AH" - NATPolicyRuleTranslatedDestinationServicesIpProtocolAN NATPolicyRuleTranslatedDestinationServicesIpProtocol = "A/N" - NATPolicyRuleTranslatedDestinationServicesIpProtocolARIS NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ARIS" - NATPolicyRuleTranslatedDestinationServicesIpProtocolAX25 NATPolicyRuleTranslatedDestinationServicesIpProtocol = "AX.25" - NATPolicyRuleTranslatedDestinationServicesIpProtocolBBNRCCMON NATPolicyRuleTranslatedDestinationServicesIpProtocol = "BBN-RCC-MON" - NATPolicyRuleTranslatedDestinationServicesIpProtocolBNA NATPolicyRuleTranslatedDestinationServicesIpProtocol = "BNA" - NATPolicyRuleTranslatedDestinationServicesIpProtocolBRSATMON NATPolicyRuleTranslatedDestinationServicesIpProtocol = "BR-SAT-MON" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCBT NATPolicyRuleTranslatedDestinationServicesIpProtocol = "CBT" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCFTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "CFTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCHAOS NATPolicyRuleTranslatedDestinationServicesIpProtocol = "CHAOS" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCPHB NATPolicyRuleTranslatedDestinationServicesIpProtocol = "CPHB" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCPNX NATPolicyRuleTranslatedDestinationServicesIpProtocol = "CPNX" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCRTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "CRTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCRUDP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "CRUDP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolCompaqPeer NATPolicyRuleTranslatedDestinationServicesIpProtocol = "Compaq-Peer" - NATPolicyRuleTranslatedDestinationServicesIpProtocolDCCP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "DCCP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolDCNMEAS NATPolicyRuleTranslatedDestinationServicesIpProtocol = "DCN-MEAS" - NATPolicyRuleTranslatedDestinationServicesIpProtocolDDP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "DDP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolDDX NATPolicyRuleTranslatedDestinationServicesIpProtocol = "DDX" - NATPolicyRuleTranslatedDestinationServicesIpProtocolDGP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "DGP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolDSR NATPolicyRuleTranslatedDestinationServicesIpProtocol = "DSR" - NATPolicyRuleTranslatedDestinationServicesIpProtocolEGP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "EGP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolEIGRP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "EIGRP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolEMCON NATPolicyRuleTranslatedDestinationServicesIpProtocol = "EMCON" - NATPolicyRuleTranslatedDestinationServicesIpProtocolENCAP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ENCAP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolESP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ESP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolETHERIP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ETHERIP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolEthernet NATPolicyRuleTranslatedDestinationServicesIpProtocol = "Ethernet" - NATPolicyRuleTranslatedDestinationServicesIpProtocolFC NATPolicyRuleTranslatedDestinationServicesIpProtocol = "FC" - NATPolicyRuleTranslatedDestinationServicesIpProtocolFIRE NATPolicyRuleTranslatedDestinationServicesIpProtocol = "FIRE" - NATPolicyRuleTranslatedDestinationServicesIpProtocolGGP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "GGP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolGMTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "GMTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolGRE NATPolicyRuleTranslatedDestinationServicesIpProtocol = "GRE" - NATPolicyRuleTranslatedDestinationServicesIpProtocolHIP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "HIP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolHMP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "HMP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIATP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IATP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolICMP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ICMP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIDPR NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IDPR" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIDPRCMTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IDPR-CMTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIDRP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IDRP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIFMP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IFMP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIGMP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IGMP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIGP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IGP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIL NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IL" - NATPolicyRuleTranslatedDestinationServicesIpProtocolINLSP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "I-NLSP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIPCV NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IPCV" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIPComp NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IPComp" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIPIP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IPIP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIPLT NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IPLT" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIPPC NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IPPC" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIPXInIP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IPX-in-IP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolIRTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "IRTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolISOIP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ISO-IP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolISOTP4 NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ISO-TP4" - NATPolicyRuleTranslatedDestinationServicesIpProtocolKRYPTOLAN NATPolicyRuleTranslatedDestinationServicesIpProtocol = "KRYPTOLAN" - NATPolicyRuleTranslatedDestinationServicesIpProtocolL2TP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "L2TP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolLARP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "LARP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolLEAF1 NATPolicyRuleTranslatedDestinationServicesIpProtocol = "LEAF-1" - NATPolicyRuleTranslatedDestinationServicesIpProtocolLEAF2 NATPolicyRuleTranslatedDestinationServicesIpProtocol = "LEAF-2" - NATPolicyRuleTranslatedDestinationServicesIpProtocolMERITINP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "MERIT-INP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolMFENSP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "MFE-NSP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolMOBILE NATPolicyRuleTranslatedDestinationServicesIpProtocol = "MOBILE" - NATPolicyRuleTranslatedDestinationServicesIpProtocolMTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "MTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolMUX NATPolicyRuleTranslatedDestinationServicesIpProtocol = "MUX" - NATPolicyRuleTranslatedDestinationServicesIpProtocolManet NATPolicyRuleTranslatedDestinationServicesIpProtocol = "manet" - NATPolicyRuleTranslatedDestinationServicesIpProtocolN3PC NATPolicyRuleTranslatedDestinationServicesIpProtocol = "3PC" - NATPolicyRuleTranslatedDestinationServicesIpProtocolNARP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "NARP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolNETBLT NATPolicyRuleTranslatedDestinationServicesIpProtocol = "NETBLT" - NATPolicyRuleTranslatedDestinationServicesIpProtocolNSFNETIGP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "NSFNET-IGP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolNVPII NATPolicyRuleTranslatedDestinationServicesIpProtocol = "NVP-II" - NATPolicyRuleTranslatedDestinationServicesIpProtocolOSPFIGP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "OSPFIGP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPGM NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PGM" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPIM NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PIM" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPIPE NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PIPE" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPNNI NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PNNI" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPRM NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PRM" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPUP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PUP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolPVP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "PVP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolQNX NATPolicyRuleTranslatedDestinationServicesIpProtocol = "QNX" - NATPolicyRuleTranslatedDestinationServicesIpProtocolRDP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "RDP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolROHC NATPolicyRuleTranslatedDestinationServicesIpProtocol = "ROHC" - NATPolicyRuleTranslatedDestinationServicesIpProtocolRSVP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "RSVP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolRSVPE2EIGNORE NATPolicyRuleTranslatedDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleTranslatedDestinationServicesIpProtocolRVD NATPolicyRuleTranslatedDestinationServicesIpProtocol = "RVD" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSATEXPAK NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SAT-EXPAK" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSATMON NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SAT-MON" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSCCSP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SCC-SP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSCPS NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SCPS" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSCTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SCTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSDRP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SDRP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSECUREVMTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SECURE-VMTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSKIP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SKIP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSM NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SM" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSMP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SMP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSNP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SNP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSPS NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SPS" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSRP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SRP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSSCOPMCE NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SSCOPMCE" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "STP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSUNND NATPolicyRuleTranslatedDestinationServicesIpProtocol = "SUN-ND" - NATPolicyRuleTranslatedDestinationServicesIpProtocolSpriteRPC NATPolicyRuleTranslatedDestinationServicesIpProtocol = "Sprite-RPC" - NATPolicyRuleTranslatedDestinationServicesIpProtocolTCF NATPolicyRuleTranslatedDestinationServicesIpProtocol = "TCF" - NATPolicyRuleTranslatedDestinationServicesIpProtocolTCP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "TCP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolTLSP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "TLSP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "TP++" - NATPolicyRuleTranslatedDestinationServicesIpProtocolTRUNK1 NATPolicyRuleTranslatedDestinationServicesIpProtocol = "TRUNK-1" - NATPolicyRuleTranslatedDestinationServicesIpProtocolTRUNK2 NATPolicyRuleTranslatedDestinationServicesIpProtocol = "TRUNK-2" - NATPolicyRuleTranslatedDestinationServicesIpProtocolTTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "TTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolUDP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "UDP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolUDPLite NATPolicyRuleTranslatedDestinationServicesIpProtocol = "UDPLite" - NATPolicyRuleTranslatedDestinationServicesIpProtocolUTI NATPolicyRuleTranslatedDestinationServicesIpProtocol = "UTI" - NATPolicyRuleTranslatedDestinationServicesIpProtocolVINES NATPolicyRuleTranslatedDestinationServicesIpProtocol = "VINES" - NATPolicyRuleTranslatedDestinationServicesIpProtocolVISA NATPolicyRuleTranslatedDestinationServicesIpProtocol = "VISA" - NATPolicyRuleTranslatedDestinationServicesIpProtocolVMTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "VMTP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolWBEXPAK NATPolicyRuleTranslatedDestinationServicesIpProtocol = "WB-EXPAK" - NATPolicyRuleTranslatedDestinationServicesIpProtocolWBMON NATPolicyRuleTranslatedDestinationServicesIpProtocol = "WB-MON" - NATPolicyRuleTranslatedDestinationServicesIpProtocolWESP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "WESP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolWSN NATPolicyRuleTranslatedDestinationServicesIpProtocol = "WSN" - NATPolicyRuleTranslatedDestinationServicesIpProtocolXNET NATPolicyRuleTranslatedDestinationServicesIpProtocol = "XNET" - NATPolicyRuleTranslatedDestinationServicesIpProtocolXNSIDP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "XNS-IDP" - NATPolicyRuleTranslatedDestinationServicesIpProtocolXTP NATPolicyRuleTranslatedDestinationServicesIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServicesStatusLabel. -const ( - NATPolicyRuleTranslatedDestinationServicesStatusLabelActive NATPolicyRuleTranslatedDestinationServicesStatusLabel = "Active" - NATPolicyRuleTranslatedDestinationServicesStatusLabelDecommissioned NATPolicyRuleTranslatedDestinationServicesStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedDestinationServicesStatusLabelStaged NATPolicyRuleTranslatedDestinationServicesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedDestinationServicesStatusValue. -const ( - NATPolicyRuleTranslatedDestinationServicesStatusValueActive NATPolicyRuleTranslatedDestinationServicesStatusValue = "active" - NATPolicyRuleTranslatedDestinationServicesStatusValueDecommissioned NATPolicyRuleTranslatedDestinationServicesStatusValue = "decommissioned" - NATPolicyRuleTranslatedDestinationServicesStatusValueStaged NATPolicyRuleTranslatedDestinationServicesStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabel. -const ( - NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabelActive NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabel = "Active" - NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabelDecommissioned NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabelStaged NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValue. -const ( - NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValueActive NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValue = "active" - NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValueDecommissioned NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValue = "decommissioned" - NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValueStaged NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceAddressGroupsStatusLabel. -const ( - NATPolicyRuleTranslatedSourceAddressGroupsStatusLabelActive NATPolicyRuleTranslatedSourceAddressGroupsStatusLabel = "Active" - NATPolicyRuleTranslatedSourceAddressGroupsStatusLabelDecommissioned NATPolicyRuleTranslatedSourceAddressGroupsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedSourceAddressGroupsStatusLabelStaged NATPolicyRuleTranslatedSourceAddressGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceAddressGroupsStatusValue. -const ( - NATPolicyRuleTranslatedSourceAddressGroupsStatusValueActive NATPolicyRuleTranslatedSourceAddressGroupsStatusValue = "active" - NATPolicyRuleTranslatedSourceAddressGroupsStatusValueDecommissioned NATPolicyRuleTranslatedSourceAddressGroupsStatusValue = "decommissioned" - NATPolicyRuleTranslatedSourceAddressGroupsStatusValueStaged NATPolicyRuleTranslatedSourceAddressGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceAddressesStatusLabel. -const ( - NATPolicyRuleTranslatedSourceAddressesStatusLabelActive NATPolicyRuleTranslatedSourceAddressesStatusLabel = "Active" - NATPolicyRuleTranslatedSourceAddressesStatusLabelDecommissioned NATPolicyRuleTranslatedSourceAddressesStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedSourceAddressesStatusLabelStaged NATPolicyRuleTranslatedSourceAddressesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceAddressesStatusValue. -const ( - NATPolicyRuleTranslatedSourceAddressesStatusValueActive NATPolicyRuleTranslatedSourceAddressesStatusValue = "active" - NATPolicyRuleTranslatedSourceAddressesStatusValueDecommissioned NATPolicyRuleTranslatedSourceAddressesStatusValue = "decommissioned" - NATPolicyRuleTranslatedSourceAddressesStatusValueStaged NATPolicyRuleTranslatedSourceAddressesStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol. -const ( - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolAH NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "AH" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolAN NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "A/N" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolARIS NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ARIS" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolAX25 NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "AX.25" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolBBNRCCMON NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolBNA NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BNA" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolBRSATMON NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCBT NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CBT" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCFTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CFTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCHAOS NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CHAOS" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCPHB NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CPHB" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCPNX NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CPNX" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCRTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CRTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCRUDP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CRUDP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolCompaqPeer NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolDCCP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DCCP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolDCNMEAS NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolDDP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DDP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolDDX NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DDX" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolDGP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DGP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolDSR NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DSR" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolEGP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EGP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolEIGRP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EIGRP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolEMCON NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EMCON" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolENCAP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ENCAP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolESP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ESP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolETHERIP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolEthernet NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Ethernet" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolFC NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "FC" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolFIRE NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "FIRE" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolGGP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GGP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolGMTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GMTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolGRE NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GRE" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolHIP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "HIP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolHMP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "HMP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIATP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IATP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolICMP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ICMP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDPR NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDPR" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDPRCMTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDRP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDRP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIFMP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IFMP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIGMP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IGMP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIGP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IGP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIL NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IL" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolINLSP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPCV NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPCV" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPComp NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPComp" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPIP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPIP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPLT NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPLT" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPPC NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPPC" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPXInIP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolIRTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IRTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolISOIP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolISOTP4 NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolKRYPTOLAN NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolL2TP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "L2TP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolLARP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LARP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolLEAF1 NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolLEAF2 NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolMERITINP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolMFENSP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolMOBILE NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MOBILE" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolMTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolMUX NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MUX" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolManet NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "manet" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolN3PC NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "3PC" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolNARP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NARP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolNETBLT NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NETBLT" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolNSFNETIGP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolNVPII NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NVP-II" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolOSPFIGP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPGM NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PGM" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPIM NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PIM" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPIPE NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PIPE" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPNNI NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PNNI" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPRM NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PRM" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPUP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PUP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolPVP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PVP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolQNX NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "QNX" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolRDP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RDP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolROHC NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ROHC" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolRSVP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RSVP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolRVD NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RVD" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSATEXPAK NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSATMON NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCCSP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCPS NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCPS" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSDRP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SDRP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSECUREVMTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSKIP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SKIP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSM NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SM" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSMP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SMP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSNP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SNP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSPS NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SPS" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSRP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SRP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSSCOPMCE NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "STP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSUNND NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolSpriteRPC NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolTCF NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TCF" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolTCP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TCP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolTLSP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TLSP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TP++" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolTRUNK1 NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolTRUNK2 NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolTTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolUDP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UDP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolUDPLite NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UDPLite" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolUTI NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UTI" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolVINES NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VINES" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolVISA NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VISA" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolVMTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VMTP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolWBEXPAK NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolWBMON NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WB-MON" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolWESP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WESP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolWSN NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WSN" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolXNET NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XNET" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolXNSIDP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocolXTP NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabel. -const ( - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabelActive NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabel = "Active" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabelDecommissioned NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabelStaged NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValue. -const ( - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValueActive NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValue = "active" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValueDecommissioned NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValue = "decommissioned" - NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValueStaged NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceServiceGroupsStatusLabel. -const ( - NATPolicyRuleTranslatedSourceServiceGroupsStatusLabelActive NATPolicyRuleTranslatedSourceServiceGroupsStatusLabel = "Active" - NATPolicyRuleTranslatedSourceServiceGroupsStatusLabelDecommissioned NATPolicyRuleTranslatedSourceServiceGroupsStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedSourceServiceGroupsStatusLabelStaged NATPolicyRuleTranslatedSourceServiceGroupsStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceServiceGroupsStatusValue. -const ( - NATPolicyRuleTranslatedSourceServiceGroupsStatusValueActive NATPolicyRuleTranslatedSourceServiceGroupsStatusValue = "active" - NATPolicyRuleTranslatedSourceServiceGroupsStatusValueDecommissioned NATPolicyRuleTranslatedSourceServiceGroupsStatusValue = "decommissioned" - NATPolicyRuleTranslatedSourceServiceGroupsStatusValueStaged NATPolicyRuleTranslatedSourceServiceGroupsStatusValue = "staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceServicesIpProtocol. -const ( - NATPolicyRuleTranslatedSourceServicesIpProtocolAH NATPolicyRuleTranslatedSourceServicesIpProtocol = "AH" - NATPolicyRuleTranslatedSourceServicesIpProtocolAN NATPolicyRuleTranslatedSourceServicesIpProtocol = "A/N" - NATPolicyRuleTranslatedSourceServicesIpProtocolARIS NATPolicyRuleTranslatedSourceServicesIpProtocol = "ARIS" - NATPolicyRuleTranslatedSourceServicesIpProtocolAX25 NATPolicyRuleTranslatedSourceServicesIpProtocol = "AX.25" - NATPolicyRuleTranslatedSourceServicesIpProtocolBBNRCCMON NATPolicyRuleTranslatedSourceServicesIpProtocol = "BBN-RCC-MON" - NATPolicyRuleTranslatedSourceServicesIpProtocolBNA NATPolicyRuleTranslatedSourceServicesIpProtocol = "BNA" - NATPolicyRuleTranslatedSourceServicesIpProtocolBRSATMON NATPolicyRuleTranslatedSourceServicesIpProtocol = "BR-SAT-MON" - NATPolicyRuleTranslatedSourceServicesIpProtocolCBT NATPolicyRuleTranslatedSourceServicesIpProtocol = "CBT" - NATPolicyRuleTranslatedSourceServicesIpProtocolCFTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "CFTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolCHAOS NATPolicyRuleTranslatedSourceServicesIpProtocol = "CHAOS" - NATPolicyRuleTranslatedSourceServicesIpProtocolCPHB NATPolicyRuleTranslatedSourceServicesIpProtocol = "CPHB" - NATPolicyRuleTranslatedSourceServicesIpProtocolCPNX NATPolicyRuleTranslatedSourceServicesIpProtocol = "CPNX" - NATPolicyRuleTranslatedSourceServicesIpProtocolCRTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "CRTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolCRUDP NATPolicyRuleTranslatedSourceServicesIpProtocol = "CRUDP" - NATPolicyRuleTranslatedSourceServicesIpProtocolCompaqPeer NATPolicyRuleTranslatedSourceServicesIpProtocol = "Compaq-Peer" - NATPolicyRuleTranslatedSourceServicesIpProtocolDCCP NATPolicyRuleTranslatedSourceServicesIpProtocol = "DCCP" - NATPolicyRuleTranslatedSourceServicesIpProtocolDCNMEAS NATPolicyRuleTranslatedSourceServicesIpProtocol = "DCN-MEAS" - NATPolicyRuleTranslatedSourceServicesIpProtocolDDP NATPolicyRuleTranslatedSourceServicesIpProtocol = "DDP" - NATPolicyRuleTranslatedSourceServicesIpProtocolDDX NATPolicyRuleTranslatedSourceServicesIpProtocol = "DDX" - NATPolicyRuleTranslatedSourceServicesIpProtocolDGP NATPolicyRuleTranslatedSourceServicesIpProtocol = "DGP" - NATPolicyRuleTranslatedSourceServicesIpProtocolDSR NATPolicyRuleTranslatedSourceServicesIpProtocol = "DSR" - NATPolicyRuleTranslatedSourceServicesIpProtocolEGP NATPolicyRuleTranslatedSourceServicesIpProtocol = "EGP" - NATPolicyRuleTranslatedSourceServicesIpProtocolEIGRP NATPolicyRuleTranslatedSourceServicesIpProtocol = "EIGRP" - NATPolicyRuleTranslatedSourceServicesIpProtocolEMCON NATPolicyRuleTranslatedSourceServicesIpProtocol = "EMCON" - NATPolicyRuleTranslatedSourceServicesIpProtocolENCAP NATPolicyRuleTranslatedSourceServicesIpProtocol = "ENCAP" - NATPolicyRuleTranslatedSourceServicesIpProtocolESP NATPolicyRuleTranslatedSourceServicesIpProtocol = "ESP" - NATPolicyRuleTranslatedSourceServicesIpProtocolETHERIP NATPolicyRuleTranslatedSourceServicesIpProtocol = "ETHERIP" - NATPolicyRuleTranslatedSourceServicesIpProtocolEthernet NATPolicyRuleTranslatedSourceServicesIpProtocol = "Ethernet" - NATPolicyRuleTranslatedSourceServicesIpProtocolFC NATPolicyRuleTranslatedSourceServicesIpProtocol = "FC" - NATPolicyRuleTranslatedSourceServicesIpProtocolFIRE NATPolicyRuleTranslatedSourceServicesIpProtocol = "FIRE" - NATPolicyRuleTranslatedSourceServicesIpProtocolGGP NATPolicyRuleTranslatedSourceServicesIpProtocol = "GGP" - NATPolicyRuleTranslatedSourceServicesIpProtocolGMTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "GMTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolGRE NATPolicyRuleTranslatedSourceServicesIpProtocol = "GRE" - NATPolicyRuleTranslatedSourceServicesIpProtocolHIP NATPolicyRuleTranslatedSourceServicesIpProtocol = "HIP" - NATPolicyRuleTranslatedSourceServicesIpProtocolHMP NATPolicyRuleTranslatedSourceServicesIpProtocol = "HMP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIATP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IATP" - NATPolicyRuleTranslatedSourceServicesIpProtocolICMP NATPolicyRuleTranslatedSourceServicesIpProtocol = "ICMP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIDPR NATPolicyRuleTranslatedSourceServicesIpProtocol = "IDPR" - NATPolicyRuleTranslatedSourceServicesIpProtocolIDPRCMTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IDPR-CMTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIDRP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IDRP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIFMP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IFMP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIGMP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IGMP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIGP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IGP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIL NATPolicyRuleTranslatedSourceServicesIpProtocol = "IL" - NATPolicyRuleTranslatedSourceServicesIpProtocolINLSP NATPolicyRuleTranslatedSourceServicesIpProtocol = "I-NLSP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIPCV NATPolicyRuleTranslatedSourceServicesIpProtocol = "IPCV" - NATPolicyRuleTranslatedSourceServicesIpProtocolIPComp NATPolicyRuleTranslatedSourceServicesIpProtocol = "IPComp" - NATPolicyRuleTranslatedSourceServicesIpProtocolIPIP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IPIP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIPLT NATPolicyRuleTranslatedSourceServicesIpProtocol = "IPLT" - NATPolicyRuleTranslatedSourceServicesIpProtocolIPPC NATPolicyRuleTranslatedSourceServicesIpProtocol = "IPPC" - NATPolicyRuleTranslatedSourceServicesIpProtocolIPXInIP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IPX-in-IP" - NATPolicyRuleTranslatedSourceServicesIpProtocolIRTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "IRTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolISOIP NATPolicyRuleTranslatedSourceServicesIpProtocol = "ISO-IP" - NATPolicyRuleTranslatedSourceServicesIpProtocolISOTP4 NATPolicyRuleTranslatedSourceServicesIpProtocol = "ISO-TP4" - NATPolicyRuleTranslatedSourceServicesIpProtocolKRYPTOLAN NATPolicyRuleTranslatedSourceServicesIpProtocol = "KRYPTOLAN" - NATPolicyRuleTranslatedSourceServicesIpProtocolL2TP NATPolicyRuleTranslatedSourceServicesIpProtocol = "L2TP" - NATPolicyRuleTranslatedSourceServicesIpProtocolLARP NATPolicyRuleTranslatedSourceServicesIpProtocol = "LARP" - NATPolicyRuleTranslatedSourceServicesIpProtocolLEAF1 NATPolicyRuleTranslatedSourceServicesIpProtocol = "LEAF-1" - NATPolicyRuleTranslatedSourceServicesIpProtocolLEAF2 NATPolicyRuleTranslatedSourceServicesIpProtocol = "LEAF-2" - NATPolicyRuleTranslatedSourceServicesIpProtocolMERITINP NATPolicyRuleTranslatedSourceServicesIpProtocol = "MERIT-INP" - NATPolicyRuleTranslatedSourceServicesIpProtocolMFENSP NATPolicyRuleTranslatedSourceServicesIpProtocol = "MFE-NSP" - NATPolicyRuleTranslatedSourceServicesIpProtocolMOBILE NATPolicyRuleTranslatedSourceServicesIpProtocol = "MOBILE" - NATPolicyRuleTranslatedSourceServicesIpProtocolMTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "MTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolMUX NATPolicyRuleTranslatedSourceServicesIpProtocol = "MUX" - NATPolicyRuleTranslatedSourceServicesIpProtocolManet NATPolicyRuleTranslatedSourceServicesIpProtocol = "manet" - NATPolicyRuleTranslatedSourceServicesIpProtocolN3PC NATPolicyRuleTranslatedSourceServicesIpProtocol = "3PC" - NATPolicyRuleTranslatedSourceServicesIpProtocolNARP NATPolicyRuleTranslatedSourceServicesIpProtocol = "NARP" - NATPolicyRuleTranslatedSourceServicesIpProtocolNETBLT NATPolicyRuleTranslatedSourceServicesIpProtocol = "NETBLT" - NATPolicyRuleTranslatedSourceServicesIpProtocolNSFNETIGP NATPolicyRuleTranslatedSourceServicesIpProtocol = "NSFNET-IGP" - NATPolicyRuleTranslatedSourceServicesIpProtocolNVPII NATPolicyRuleTranslatedSourceServicesIpProtocol = "NVP-II" - NATPolicyRuleTranslatedSourceServicesIpProtocolOSPFIGP NATPolicyRuleTranslatedSourceServicesIpProtocol = "OSPFIGP" - NATPolicyRuleTranslatedSourceServicesIpProtocolPGM NATPolicyRuleTranslatedSourceServicesIpProtocol = "PGM" - NATPolicyRuleTranslatedSourceServicesIpProtocolPIM NATPolicyRuleTranslatedSourceServicesIpProtocol = "PIM" - NATPolicyRuleTranslatedSourceServicesIpProtocolPIPE NATPolicyRuleTranslatedSourceServicesIpProtocol = "PIPE" - NATPolicyRuleTranslatedSourceServicesIpProtocolPNNI NATPolicyRuleTranslatedSourceServicesIpProtocol = "PNNI" - NATPolicyRuleTranslatedSourceServicesIpProtocolPRM NATPolicyRuleTranslatedSourceServicesIpProtocol = "PRM" - NATPolicyRuleTranslatedSourceServicesIpProtocolPTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "PTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolPUP NATPolicyRuleTranslatedSourceServicesIpProtocol = "PUP" - NATPolicyRuleTranslatedSourceServicesIpProtocolPVP NATPolicyRuleTranslatedSourceServicesIpProtocol = "PVP" - NATPolicyRuleTranslatedSourceServicesIpProtocolQNX NATPolicyRuleTranslatedSourceServicesIpProtocol = "QNX" - NATPolicyRuleTranslatedSourceServicesIpProtocolRDP NATPolicyRuleTranslatedSourceServicesIpProtocol = "RDP" - NATPolicyRuleTranslatedSourceServicesIpProtocolROHC NATPolicyRuleTranslatedSourceServicesIpProtocol = "ROHC" - NATPolicyRuleTranslatedSourceServicesIpProtocolRSVP NATPolicyRuleTranslatedSourceServicesIpProtocol = "RSVP" - NATPolicyRuleTranslatedSourceServicesIpProtocolRSVPE2EIGNORE NATPolicyRuleTranslatedSourceServicesIpProtocol = "RSVP-E2E-IGNORE" - NATPolicyRuleTranslatedSourceServicesIpProtocolRVD NATPolicyRuleTranslatedSourceServicesIpProtocol = "RVD" - NATPolicyRuleTranslatedSourceServicesIpProtocolSATEXPAK NATPolicyRuleTranslatedSourceServicesIpProtocol = "SAT-EXPAK" - NATPolicyRuleTranslatedSourceServicesIpProtocolSATMON NATPolicyRuleTranslatedSourceServicesIpProtocol = "SAT-MON" - NATPolicyRuleTranslatedSourceServicesIpProtocolSCCSP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SCC-SP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSCPS NATPolicyRuleTranslatedSourceServicesIpProtocol = "SCPS" - NATPolicyRuleTranslatedSourceServicesIpProtocolSCTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SCTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSDRP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SDRP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSECUREVMTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SECURE-VMTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSKIP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SKIP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSM NATPolicyRuleTranslatedSourceServicesIpProtocol = "SM" - NATPolicyRuleTranslatedSourceServicesIpProtocolSMP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SMP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSNP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SNP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSPS NATPolicyRuleTranslatedSourceServicesIpProtocol = "SPS" - NATPolicyRuleTranslatedSourceServicesIpProtocolSRP NATPolicyRuleTranslatedSourceServicesIpProtocol = "SRP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSSCOPMCE NATPolicyRuleTranslatedSourceServicesIpProtocol = "SSCOPMCE" - NATPolicyRuleTranslatedSourceServicesIpProtocolSTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "STP" - NATPolicyRuleTranslatedSourceServicesIpProtocolSUNND NATPolicyRuleTranslatedSourceServicesIpProtocol = "SUN-ND" - NATPolicyRuleTranslatedSourceServicesIpProtocolSpriteRPC NATPolicyRuleTranslatedSourceServicesIpProtocol = "Sprite-RPC" - NATPolicyRuleTranslatedSourceServicesIpProtocolTCF NATPolicyRuleTranslatedSourceServicesIpProtocol = "TCF" - NATPolicyRuleTranslatedSourceServicesIpProtocolTCP NATPolicyRuleTranslatedSourceServicesIpProtocol = "TCP" - NATPolicyRuleTranslatedSourceServicesIpProtocolTLSP NATPolicyRuleTranslatedSourceServicesIpProtocol = "TLSP" - NATPolicyRuleTranslatedSourceServicesIpProtocolTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "TP++" - NATPolicyRuleTranslatedSourceServicesIpProtocolTRUNK1 NATPolicyRuleTranslatedSourceServicesIpProtocol = "TRUNK-1" - NATPolicyRuleTranslatedSourceServicesIpProtocolTRUNK2 NATPolicyRuleTranslatedSourceServicesIpProtocol = "TRUNK-2" - NATPolicyRuleTranslatedSourceServicesIpProtocolTTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "TTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolUDP NATPolicyRuleTranslatedSourceServicesIpProtocol = "UDP" - NATPolicyRuleTranslatedSourceServicesIpProtocolUDPLite NATPolicyRuleTranslatedSourceServicesIpProtocol = "UDPLite" - NATPolicyRuleTranslatedSourceServicesIpProtocolUTI NATPolicyRuleTranslatedSourceServicesIpProtocol = "UTI" - NATPolicyRuleTranslatedSourceServicesIpProtocolVINES NATPolicyRuleTranslatedSourceServicesIpProtocol = "VINES" - NATPolicyRuleTranslatedSourceServicesIpProtocolVISA NATPolicyRuleTranslatedSourceServicesIpProtocol = "VISA" - NATPolicyRuleTranslatedSourceServicesIpProtocolVMTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "VMTP" - NATPolicyRuleTranslatedSourceServicesIpProtocolWBEXPAK NATPolicyRuleTranslatedSourceServicesIpProtocol = "WB-EXPAK" - NATPolicyRuleTranslatedSourceServicesIpProtocolWBMON NATPolicyRuleTranslatedSourceServicesIpProtocol = "WB-MON" - NATPolicyRuleTranslatedSourceServicesIpProtocolWESP NATPolicyRuleTranslatedSourceServicesIpProtocol = "WESP" - NATPolicyRuleTranslatedSourceServicesIpProtocolWSN NATPolicyRuleTranslatedSourceServicesIpProtocol = "WSN" - NATPolicyRuleTranslatedSourceServicesIpProtocolXNET NATPolicyRuleTranslatedSourceServicesIpProtocol = "XNET" - NATPolicyRuleTranslatedSourceServicesIpProtocolXNSIDP NATPolicyRuleTranslatedSourceServicesIpProtocol = "XNS-IDP" - NATPolicyRuleTranslatedSourceServicesIpProtocolXTP NATPolicyRuleTranslatedSourceServicesIpProtocol = "XTP" -) - -// Defines values for NATPolicyRuleTranslatedSourceServicesStatusLabel. -const ( - NATPolicyRuleTranslatedSourceServicesStatusLabelActive NATPolicyRuleTranslatedSourceServicesStatusLabel = "Active" - NATPolicyRuleTranslatedSourceServicesStatusLabelDecommissioned NATPolicyRuleTranslatedSourceServicesStatusLabel = "Decommissioned" - NATPolicyRuleTranslatedSourceServicesStatusLabelStaged NATPolicyRuleTranslatedSourceServicesStatusLabel = "Staged" -) - -// Defines values for NATPolicyRuleTranslatedSourceServicesStatusValue. -const ( - NATPolicyRuleTranslatedSourceServicesStatusValueActive NATPolicyRuleTranslatedSourceServicesStatusValue = "active" - NATPolicyRuleTranslatedSourceServicesStatusValueDecommissioned NATPolicyRuleTranslatedSourceServicesStatusValue = "decommissioned" - NATPolicyRuleTranslatedSourceServicesStatusValueStaged NATPolicyRuleTranslatedSourceServicesStatusValue = "staged" -) - -// Defines values for NestedJobResultStatusLabel. -const ( - NestedJobResultStatusLabelCompleted NestedJobResultStatusLabel = "Completed" - NestedJobResultStatusLabelErrored NestedJobResultStatusLabel = "Errored" - NestedJobResultStatusLabelFailed NestedJobResultStatusLabel = "Failed" - NestedJobResultStatusLabelPending NestedJobResultStatusLabel = "Pending" - NestedJobResultStatusLabelRunning NestedJobResultStatusLabel = "Running" -) - -// Defines values for NestedJobResultStatusValue. -const ( - NestedJobResultStatusValueCompleted NestedJobResultStatusValue = "completed" - NestedJobResultStatusValueErrored NestedJobResultStatusValue = "errored" - NestedJobResultStatusValueFailed NestedJobResultStatusValue = "failed" - NestedJobResultStatusValuePending NestedJobResultStatusValue = "pending" - NestedJobResultStatusValueRunning NestedJobResultStatusValue = "running" -) - -// Defines values for ObjectChangeActionLabel. -const ( - Created ObjectChangeActionLabel = "Created" - Deleted ObjectChangeActionLabel = "Deleted" - Updated ObjectChangeActionLabel = "Updated" -) - -// Defines values for ObjectChangeActionValue. -const ( - Create ObjectChangeActionValue = "create" - Delete ObjectChangeActionValue = "delete" - Update ObjectChangeActionValue = "update" -) - -// Defines values for OperatorEnum. -const ( - OperatorEnumDifference OperatorEnum = "difference" - OperatorEnumIntersection OperatorEnum = "intersection" - OperatorEnumUnion OperatorEnum = "union" -) - -// Defines values for OuterUnitEnum. -const ( - OuterUnitEnumIn OuterUnitEnum = "in" - OuterUnitEnumMm OuterUnitEnum = "mm" -) - -// Defines values for PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatus. -const ( - PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatusActive PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatus = "active" - PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatusDecommissioned PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatus = "decommissioned" - PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatusStaged PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatusActive PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatusStaged PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolAH PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "AH" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolAN PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "A/N" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolARIS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ARIS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolAX25 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "AX.25" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolBBNRCCMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolBNA PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "BNA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolBRSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "BR-SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCBT PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CBT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCFTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CFTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCHAOS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CHAOS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCPHB PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CPHB" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCPNX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CPNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCRUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "CRUDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolCompaqPeer PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "Compaq-Peer" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDCCP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DCCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDCNMEAS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DCN-MEAS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDDX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DDX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolDSR PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "DSR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "EGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEIGRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "EIGRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEMCON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "EMCON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolENCAP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ENCAP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolESP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolETHERIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ETHERIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolEthernet PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "Ethernet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolFC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "FC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolFIRE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "FIRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolGGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "GGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolGMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "GMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolGRE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "GRE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolHIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "HIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolHMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "HMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIATP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IATP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolICMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ICMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIDPR PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IDPR" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIDPRCMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IDPR-CMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIFMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IFMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIGMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IGMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIL PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IL" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolINLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "I-NLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPCV PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPCV" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPComp PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPComp" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPLT PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPPC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIPXInIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IPX-in-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolIRTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "IRTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolISOIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ISO-IP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolISOTP4 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ISO-TP4" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolKRYPTOLAN PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "KRYPTOLAN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolL2TP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "L2TP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolLARP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "LARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolLEAF1 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "LEAF-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolLEAF2 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "LEAF-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMERITINP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MERIT-INP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMFENSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MFE-NSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMOBILE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MOBILE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolMUX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "MUX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolManet PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "manet" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolN3PC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "3PC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNARP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NARP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNETBLT PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NETBLT" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNSFNETIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NSFNET-IGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolNVPII PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "NVP-II" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolOSPFIGP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "OSPFIGP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPGM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PGM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPIM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PIM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPIPE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PIPE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPNNI PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PNNI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPRM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PRM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPUP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PUP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolPVP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "PVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolQNX PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "QNX" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolROHC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "ROHC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRSVP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RSVP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRSVPE2EIGNORE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolRVD PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "RVD" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSATEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SAT-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSATMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SAT-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSCCSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SCC-SP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSCPS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SCPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSCTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SCTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSDRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SDRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSECUREVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SECURE-VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSKIP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SKIP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSM PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SM" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSMP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SMP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSNP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SNP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSPS PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SPS" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSRP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SRP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSSCOPMCE PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SSCOPMCE" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "STP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSUNND PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "SUN-ND" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolSpriteRPC PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "Sprite-RPC" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTCF PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TCF" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTCP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TCP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTLSP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TLSP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TP++" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTRUNK1 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TRUNK-1" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTRUNK2 PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TRUNK-2" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolTTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "TTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolUDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "UDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolUDPLite PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "UDPLite" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolUTI PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "UTI" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolVINES PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "VINES" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolVISA PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "VISA" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolVMTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "VMTP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWBEXPAK PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WB-EXPAK" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWBMON PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WB-MON" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWESP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WESP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolWSN PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "WSN" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolXNET PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "XNET" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolXNSIDP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "XNS-IDP" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocolXTP PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus. -const ( - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatusActive PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus = "active" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatusDecommissioned PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus = "decommissioned" - PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatusStaged PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatusActive PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus = "active" - PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatusStaged PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatusActive PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatus = "active" - PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatusStaged PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatus. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatusActive PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatus = "active" - PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatusDecommissioned PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatusStaged PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolAH PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolAN PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolARIS PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolAX25 PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolBNA PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCBT PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCFTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCHAOS PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCPHB PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCPNX PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCRTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCRUDP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDCCP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDDP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDDX PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDGP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolDSR PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEGP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEIGRP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEMCON PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolENCAP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolESP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolETHERIP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolEthernet PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolFC PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolFIRE PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolGGP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolGMTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolGRE PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolHIP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolHMP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIATP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolICMP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIDPR PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIDRP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIFMP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIGMP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIGP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIL PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolINLSP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPCV PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPComp PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPIP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPLT PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPPC PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolIRTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolISOIP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolL2TP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolLARP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMERITINP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMFENSP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMOBILE PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolMUX PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolManet PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolN3PC PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNARP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNETBLT PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolNVPII PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPGM PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPIM PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPIPE PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPNNI PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPRM PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPUP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolPVP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolQNX PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRDP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolROHC PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRSVP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolRVD PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSATMON PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSCCSP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSCPS PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSCTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSDRP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSKIP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSM PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSMP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSNP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSPS PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSRP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSUNND PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTCF PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTCP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTLSP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolTTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolUDP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolUDPLite PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolUTI PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolVINES PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolVISA PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolVMTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWBMON PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWESP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolWSN PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolXNET PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocolXTP PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatusActive PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus = "active" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatusStaged PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatusActive PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatus = "active" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatusStaged PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolAH PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "AH" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolAN PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "A/N" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolARIS PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ARIS" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolAX25 PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "AX.25" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolBBNRCCMON PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "BBN-RCC-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolBNA PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "BNA" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolBRSATMON PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "BR-SAT-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCBT PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CBT" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCFTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CFTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCHAOS PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CHAOS" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCPHB PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CPHB" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCPNX PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CPNX" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCRTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CRTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCRUDP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "CRUDP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolCompaqPeer PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "Compaq-Peer" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolDCCP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DCCP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolDCNMEAS PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DCN-MEAS" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolDDP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DDP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolDDX PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DDX" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolDGP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DGP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolDSR PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "DSR" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolEGP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "EGP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolEIGRP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "EIGRP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolEMCON PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "EMCON" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolENCAP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ENCAP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolESP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ESP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolETHERIP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ETHERIP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolEthernet PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "Ethernet" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolFC PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "FC" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolFIRE PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "FIRE" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolGGP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "GGP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolGMTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "GMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolGRE PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "GRE" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolHIP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "HIP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolHMP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "HMP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIATP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IATP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolICMP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ICMP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIDPR PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IDPR" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIDPRCMTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IDPR-CMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIDRP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IDRP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIFMP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IFMP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIGMP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IGMP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIGP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IGP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIL PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IL" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolINLSP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "I-NLSP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPCV PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPCV" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPComp PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPComp" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPIP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPIP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPLT PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPLT" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPPC PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPPC" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIPXInIP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IPX-in-IP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolIRTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "IRTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolISOIP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ISO-IP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolISOTP4 PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ISO-TP4" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolKRYPTOLAN PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "KRYPTOLAN" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolL2TP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "L2TP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolLARP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "LARP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolLEAF1 PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "LEAF-1" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolLEAF2 PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "LEAF-2" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolMERITINP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MERIT-INP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolMFENSP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MFE-NSP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolMOBILE PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MOBILE" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolMTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolMUX PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "MUX" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolManet PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "manet" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolN3PC PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "3PC" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolNARP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NARP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolNETBLT PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NETBLT" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolNSFNETIGP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NSFNET-IGP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolNVPII PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "NVP-II" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolOSPFIGP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "OSPFIGP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPGM PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PGM" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPIM PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PIM" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPIPE PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PIPE" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPNNI PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PNNI" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPRM PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PRM" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPUP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PUP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolPVP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "PVP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolQNX PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "QNX" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolRDP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RDP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolROHC PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "ROHC" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolRSVP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RSVP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolRSVPE2EIGNORE PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolRVD PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "RVD" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSATEXPAK PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SAT-EXPAK" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSATMON PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SAT-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSCCSP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SCC-SP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSCPS PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SCPS" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSCTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SCTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSDRP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SDRP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSECUREVMTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SECURE-VMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSKIP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SKIP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSM PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SM" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSMP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SMP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSNP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SNP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSPS PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SPS" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSRP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SRP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSSCOPMCE PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SSCOPMCE" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "STP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSUNND PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "SUN-ND" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolSpriteRPC PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "Sprite-RPC" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolTCF PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TCF" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolTCP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TCP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolTLSP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TLSP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TP++" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolTRUNK1 PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TRUNK-1" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolTRUNK2 PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TRUNK-2" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolTTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "TTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolUDP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "UDP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolUDPLite PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "UDPLite" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolUTI PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "UTI" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolVINES PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "VINES" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolVISA PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "VISA" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolVMTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "VMTP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolWBEXPAK PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WB-EXPAK" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolWBMON PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WB-MON" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolWESP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WESP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolWSN PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "WSN" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolXNET PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "XNET" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolXNSIDP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "XNS-IDP" - PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocolXTP PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestDestinationServicesStatus. -const ( - PatchedBulkWritablePolicyRuleRequestDestinationServicesStatusActive PatchedBulkWritablePolicyRuleRequestDestinationServicesStatus = "active" - PatchedBulkWritablePolicyRuleRequestDestinationServicesStatusDecommissioned PatchedBulkWritablePolicyRuleRequestDestinationServicesStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestDestinationServicesStatusStaged PatchedBulkWritablePolicyRuleRequestDestinationServicesStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatusActive PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus = "active" - PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatusStaged PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatusActive PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatus = "active" - PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatusStaged PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestSourceAddressesStatus. -const ( - PatchedBulkWritablePolicyRuleRequestSourceAddressesStatusActive PatchedBulkWritablePolicyRuleRequestSourceAddressesStatus = "active" - PatchedBulkWritablePolicyRuleRequestSourceAddressesStatusDecommissioned PatchedBulkWritablePolicyRuleRequestSourceAddressesStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestSourceAddressesStatusStaged PatchedBulkWritablePolicyRuleRequestSourceAddressesStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatusActive PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatus = "active" - PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatusStaged PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus. -const ( - PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatusActive PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus = "active" - PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatusDecommissioned PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatusStaged PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritablePolicyRuleRequestSourceUsersStatus. -const ( - PatchedBulkWritablePolicyRuleRequestSourceUsersStatusActive PatchedBulkWritablePolicyRuleRequestSourceUsersStatus = "active" - PatchedBulkWritablePolicyRuleRequestSourceUsersStatusDecommissioned PatchedBulkWritablePolicyRuleRequestSourceUsersStatus = "decommissioned" - PatchedBulkWritablePolicyRuleRequestSourceUsersStatusStaged PatchedBulkWritablePolicyRuleRequestSourceUsersStatus = "staged" -) - -// Defines values for PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol. -const ( - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolAH PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "AH" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolAN PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "A/N" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolARIS PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ARIS" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolAX25 PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "AX.25" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolBBNRCCMON PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "BBN-RCC-MON" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolBNA PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "BNA" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolBRSATMON PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "BR-SAT-MON" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCBT PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CBT" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCFTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CFTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCHAOS PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CHAOS" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCPHB PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CPHB" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCPNX PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CPNX" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCRTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CRTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCRUDP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "CRUDP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolCompaqPeer PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "Compaq-Peer" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDCCP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DCCP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDCNMEAS PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DCN-MEAS" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDDP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DDP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDDX PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DDX" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDGP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DGP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolDSR PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "DSR" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEGP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "EGP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEIGRP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "EIGRP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEMCON PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "EMCON" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolENCAP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ENCAP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolESP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ESP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolETHERIP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ETHERIP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolEthernet PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "Ethernet" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolFC PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "FC" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolFIRE PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "FIRE" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolGGP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "GGP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolGMTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "GMTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolGRE PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "GRE" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolHIP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "HIP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolHMP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "HMP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIATP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IATP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolICMP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ICMP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIDPR PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IDPR" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIDPRCMTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IDPR-CMTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIDRP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IDRP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIFMP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IFMP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIGMP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IGMP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIGP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IGP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIL PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IL" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolINLSP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "I-NLSP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPCV PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPCV" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPComp PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPComp" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPIP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPIP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPLT PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPLT" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPPC PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPPC" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIPXInIP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IPX-in-IP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolIRTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "IRTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolISOIP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ISO-IP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolISOTP4 PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ISO-TP4" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolKRYPTOLAN PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "KRYPTOLAN" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolL2TP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "L2TP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolLARP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "LARP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolLEAF1 PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "LEAF-1" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolLEAF2 PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "LEAF-2" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMERITINP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MERIT-INP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMFENSP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MFE-NSP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMOBILE PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MOBILE" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolMUX PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "MUX" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolManet PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "manet" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolN3PC PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "3PC" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNARP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NARP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNETBLT PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NETBLT" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNSFNETIGP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NSFNET-IGP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolNVPII PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "NVP-II" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolOSPFIGP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "OSPFIGP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPGM PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PGM" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPIM PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PIM" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPIPE PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PIPE" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPNNI PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PNNI" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPRM PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PRM" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPUP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PUP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolPVP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "PVP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolQNX PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "QNX" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRDP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RDP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolROHC PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "ROHC" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRSVP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RSVP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRSVPE2EIGNORE PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolRVD PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "RVD" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSATEXPAK PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SAT-EXPAK" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSATMON PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SAT-MON" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSCCSP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SCC-SP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSCPS PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SCPS" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSCTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SCTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSDRP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SDRP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSECUREVMTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SECURE-VMTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSKIP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SKIP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSM PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SM" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSMP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SMP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSNP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SNP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSPS PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SPS" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSRP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SRP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSSCOPMCE PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SSCOPMCE" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "STP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSUNND PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "SUN-ND" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolSpriteRPC PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "Sprite-RPC" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTCF PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TCF" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTCP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TCP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTLSP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TLSP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TP++" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTRUNK1 PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TRUNK-1" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTRUNK2 PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TRUNK-2" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolTTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "TTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolUDP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "UDP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolUDPLite PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "UDPLite" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolUTI PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "UTI" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolVINES PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "VINES" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolVISA PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "VISA" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolVMTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "VMTP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWBEXPAK PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WB-EXPAK" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWBMON PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WB-MON" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWESP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WESP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolWSN PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "WSN" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolXNET PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "XNET" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolXNSIDP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "XNS-IDP" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocolXTP PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol = "XTP" -) - -// Defines values for PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatus. -const ( - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatusActive PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatus = "active" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatusDecommissioned PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatus = "decommissioned" - PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatusStaged PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatus = "staged" -) - -// Defines values for PatchedBulkWritableUserObjectGroupRequestUserObjectsStatus. -const ( - PatchedBulkWritableUserObjectGroupRequestUserObjectsStatusActive PatchedBulkWritableUserObjectGroupRequestUserObjectsStatus = "active" - PatchedBulkWritableUserObjectGroupRequestUserObjectsStatusDecommissioned PatchedBulkWritableUserObjectGroupRequestUserObjectsStatus = "decommissioned" - PatchedBulkWritableUserObjectGroupRequestUserObjectsStatusStaged PatchedBulkWritableUserObjectGroupRequestUserObjectsStatus = "staged" -) - -// Defines values for PeeringStatusLabel. -const ( - PeeringStatusLabelActive PeeringStatusLabel = "Active" - PeeringStatusLabelDecommissioned PeeringStatusLabel = "Decommissioned" - PeeringStatusLabelDeprovisioning PeeringStatusLabel = "Deprovisioning" - PeeringStatusLabelOffline PeeringStatusLabel = "Offline" - PeeringStatusLabelPlanned PeeringStatusLabel = "Planned" - PeeringStatusLabelProvisioning PeeringStatusLabel = "Provisioning" -) - -// Defines values for PeeringStatusValue. -const ( - PeeringStatusValueActive PeeringStatusValue = "active" - PeeringStatusValueDecommissioned PeeringStatusValue = "decommissioned" - PeeringStatusValueDeprovisioning PeeringStatusValue = "deprovisioning" - PeeringStatusValueOffline PeeringStatusValue = "offline" - PeeringStatusValuePlanned PeeringStatusValue = "planned" - PeeringStatusValueProvisioning PeeringStatusValue = "provisioning" -) - -// Defines values for PhaseEnum. -const ( - PhaseEnumSinglePhase PhaseEnum = "single-phase" - PhaseEnumThreePhase PhaseEnum = "three-phase" -) - -// Defines values for PlatformEnum. -const ( - Mattermost PlatformEnum = "mattermost" -) - -// Defines values for PolicyStatusLabel. -const ( - PolicyStatusLabelActive PolicyStatusLabel = "Active" - PolicyStatusLabelDecommissioned PolicyStatusLabel = "Decommissioned" - PolicyStatusLabelStaged PolicyStatusLabel = "Staged" -) - -// Defines values for PolicyStatusValue. -const ( - PolicyStatusValueActive PolicyStatusValue = "active" - PolicyStatusValueDecommissioned PolicyStatusValue = "decommissioned" - PolicyStatusValueStaged PolicyStatusValue = "staged" -) - -// Defines values for PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabel. -const ( - PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabelActive PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabel = "Active" - PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabelDecommissioned PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabel = "Decommissioned" - PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabelStaged PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleDestinationAddressGroupsAddressObjectsStatusValue. -const ( - PolicyRuleDestinationAddressGroupsAddressObjectsStatusValueActive PolicyRuleDestinationAddressGroupsAddressObjectsStatusValue = "active" - PolicyRuleDestinationAddressGroupsAddressObjectsStatusValueDecommissioned PolicyRuleDestinationAddressGroupsAddressObjectsStatusValue = "decommissioned" - PolicyRuleDestinationAddressGroupsAddressObjectsStatusValueStaged PolicyRuleDestinationAddressGroupsAddressObjectsStatusValue = "staged" -) - -// Defines values for PolicyRuleDestinationAddressGroupsStatusLabel. -const ( - PolicyRuleDestinationAddressGroupsStatusLabelActive PolicyRuleDestinationAddressGroupsStatusLabel = "Active" - PolicyRuleDestinationAddressGroupsStatusLabelDecommissioned PolicyRuleDestinationAddressGroupsStatusLabel = "Decommissioned" - PolicyRuleDestinationAddressGroupsStatusLabelStaged PolicyRuleDestinationAddressGroupsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleDestinationAddressGroupsStatusValue. -const ( - PolicyRuleDestinationAddressGroupsStatusValueActive PolicyRuleDestinationAddressGroupsStatusValue = "active" - PolicyRuleDestinationAddressGroupsStatusValueDecommissioned PolicyRuleDestinationAddressGroupsStatusValue = "decommissioned" - PolicyRuleDestinationAddressGroupsStatusValueStaged PolicyRuleDestinationAddressGroupsStatusValue = "staged" -) - -// Defines values for PolicyRuleDestinationAddressesStatusLabel. -const ( - PolicyRuleDestinationAddressesStatusLabelActive PolicyRuleDestinationAddressesStatusLabel = "Active" - PolicyRuleDestinationAddressesStatusLabelDecommissioned PolicyRuleDestinationAddressesStatusLabel = "Decommissioned" - PolicyRuleDestinationAddressesStatusLabelStaged PolicyRuleDestinationAddressesStatusLabel = "Staged" -) - -// Defines values for PolicyRuleDestinationAddressesStatusValue. -const ( - PolicyRuleDestinationAddressesStatusValueActive PolicyRuleDestinationAddressesStatusValue = "active" - PolicyRuleDestinationAddressesStatusValueDecommissioned PolicyRuleDestinationAddressesStatusValue = "decommissioned" - PolicyRuleDestinationAddressesStatusValueStaged PolicyRuleDestinationAddressesStatusValue = "staged" -) - -// Defines values for PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol. -const ( - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolAH PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "AH" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolAN PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "A/N" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolARIS PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ARIS" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolAX25 PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "AX.25" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolBBNRCCMON PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "BBN-RCC-MON" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolBNA PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "BNA" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolBRSATMON PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "BR-SAT-MON" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCBT PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "CBT" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCFTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "CFTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCHAOS PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "CHAOS" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCPHB PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "CPHB" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCPNX PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "CPNX" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCRTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "CRTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCRUDP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "CRUDP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolCompaqPeer PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "Compaq-Peer" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolDCCP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "DCCP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolDCNMEAS PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "DCN-MEAS" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolDDP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "DDP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolDDX PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "DDX" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolDGP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "DGP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolDSR PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "DSR" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolEGP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "EGP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolEIGRP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "EIGRP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolEMCON PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "EMCON" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolENCAP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ENCAP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolESP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ESP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolETHERIP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ETHERIP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolEthernet PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "Ethernet" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolFC PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "FC" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolFIRE PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "FIRE" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolGGP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "GGP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolGMTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "GMTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolGRE PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "GRE" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolHIP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "HIP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolHMP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "HMP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIATP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IATP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolICMP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ICMP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIDPR PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIDPRCMTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IDPR-CMTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIDRP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IDRP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIFMP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IFMP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIGMP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IGMP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIGP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IGP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIL PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IL" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolINLSP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "I-NLSP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIPCV PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IPCV" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIPComp PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IPComp" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIPIP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IPIP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIPLT PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IPLT" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIPPC PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IPPC" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIPXInIP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IPX-in-IP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolIRTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "IRTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolISOIP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-IP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolISOTP4 PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ISO-TP4" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolKRYPTOLAN PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "KRYPTOLAN" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolL2TP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "L2TP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolLARP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "LARP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolLEAF1 PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-1" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolLEAF2 PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "LEAF-2" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolMERITINP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "MERIT-INP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolMFENSP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "MFE-NSP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolMOBILE PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "MOBILE" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolMTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "MTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolMUX PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "MUX" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolManet PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "manet" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolN3PC PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "3PC" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolNARP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "NARP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolNETBLT PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "NETBLT" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolNSFNETIGP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "NSFNET-IGP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolNVPII PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "NVP-II" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolOSPFIGP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "OSPFIGP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPGM PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PGM" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPIM PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PIM" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPIPE PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PIPE" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPNNI PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PNNI" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPRM PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PRM" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPUP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PUP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolPVP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "PVP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolQNX PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "QNX" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolRDP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "RDP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolROHC PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "ROHC" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolRSVP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolRSVPE2EIGNORE PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolRVD PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "RVD" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSATEXPAK PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-EXPAK" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSATMON PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SAT-MON" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSCCSP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SCC-SP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSCPS PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SCPS" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSCTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SCTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSDRP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SDRP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSECUREVMTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SECURE-VMTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSKIP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SKIP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSM PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SM" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSMP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SMP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSNP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SNP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSPS PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SPS" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSRP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SRP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSSCOPMCE PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SSCOPMCE" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "STP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSUNND PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "SUN-ND" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolSpriteRPC PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "Sprite-RPC" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolTCF PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "TCF" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolTCP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "TCP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolTLSP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "TLSP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "TP++" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolTRUNK1 PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-1" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolTRUNK2 PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "TRUNK-2" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolTTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "TTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolUDP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "UDP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolUDPLite PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "UDPLite" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolUTI PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "UTI" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolVINES PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "VINES" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolVISA PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "VISA" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolVMTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "VMTP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolWBEXPAK PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "WB-EXPAK" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolWBMON PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "WB-MON" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolWESP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "WESP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolWSN PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "WSN" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolXNET PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "XNET" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolXNSIDP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "XNS-IDP" - PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocolXTP PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol = "XTP" -) - -// Defines values for PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabel. -const ( - PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabelActive PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabel = "Active" - PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabelDecommissioned PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabel = "Decommissioned" - PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabelStaged PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleDestinationServiceGroupsServiceObjectsStatusValue. -const ( - PolicyRuleDestinationServiceGroupsServiceObjectsStatusValueActive PolicyRuleDestinationServiceGroupsServiceObjectsStatusValue = "active" - PolicyRuleDestinationServiceGroupsServiceObjectsStatusValueDecommissioned PolicyRuleDestinationServiceGroupsServiceObjectsStatusValue = "decommissioned" - PolicyRuleDestinationServiceGroupsServiceObjectsStatusValueStaged PolicyRuleDestinationServiceGroupsServiceObjectsStatusValue = "staged" -) - -// Defines values for PolicyRuleDestinationServiceGroupsStatusLabel. -const ( - PolicyRuleDestinationServiceGroupsStatusLabelActive PolicyRuleDestinationServiceGroupsStatusLabel = "Active" - PolicyRuleDestinationServiceGroupsStatusLabelDecommissioned PolicyRuleDestinationServiceGroupsStatusLabel = "Decommissioned" - PolicyRuleDestinationServiceGroupsStatusLabelStaged PolicyRuleDestinationServiceGroupsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleDestinationServiceGroupsStatusValue. -const ( - PolicyRuleDestinationServiceGroupsStatusValueActive PolicyRuleDestinationServiceGroupsStatusValue = "active" - PolicyRuleDestinationServiceGroupsStatusValueDecommissioned PolicyRuleDestinationServiceGroupsStatusValue = "decommissioned" - PolicyRuleDestinationServiceGroupsStatusValueStaged PolicyRuleDestinationServiceGroupsStatusValue = "staged" -) - -// Defines values for PolicyRuleDestinationServicesIpProtocol. -const ( - PolicyRuleDestinationServicesIpProtocolAH PolicyRuleDestinationServicesIpProtocol = "AH" - PolicyRuleDestinationServicesIpProtocolAN PolicyRuleDestinationServicesIpProtocol = "A/N" - PolicyRuleDestinationServicesIpProtocolARIS PolicyRuleDestinationServicesIpProtocol = "ARIS" - PolicyRuleDestinationServicesIpProtocolAX25 PolicyRuleDestinationServicesIpProtocol = "AX.25" - PolicyRuleDestinationServicesIpProtocolBBNRCCMON PolicyRuleDestinationServicesIpProtocol = "BBN-RCC-MON" - PolicyRuleDestinationServicesIpProtocolBNA PolicyRuleDestinationServicesIpProtocol = "BNA" - PolicyRuleDestinationServicesIpProtocolBRSATMON PolicyRuleDestinationServicesIpProtocol = "BR-SAT-MON" - PolicyRuleDestinationServicesIpProtocolCBT PolicyRuleDestinationServicesIpProtocol = "CBT" - PolicyRuleDestinationServicesIpProtocolCFTP PolicyRuleDestinationServicesIpProtocol = "CFTP" - PolicyRuleDestinationServicesIpProtocolCHAOS PolicyRuleDestinationServicesIpProtocol = "CHAOS" - PolicyRuleDestinationServicesIpProtocolCPHB PolicyRuleDestinationServicesIpProtocol = "CPHB" - PolicyRuleDestinationServicesIpProtocolCPNX PolicyRuleDestinationServicesIpProtocol = "CPNX" - PolicyRuleDestinationServicesIpProtocolCRTP PolicyRuleDestinationServicesIpProtocol = "CRTP" - PolicyRuleDestinationServicesIpProtocolCRUDP PolicyRuleDestinationServicesIpProtocol = "CRUDP" - PolicyRuleDestinationServicesIpProtocolCompaqPeer PolicyRuleDestinationServicesIpProtocol = "Compaq-Peer" - PolicyRuleDestinationServicesIpProtocolDCCP PolicyRuleDestinationServicesIpProtocol = "DCCP" - PolicyRuleDestinationServicesIpProtocolDCNMEAS PolicyRuleDestinationServicesIpProtocol = "DCN-MEAS" - PolicyRuleDestinationServicesIpProtocolDDP PolicyRuleDestinationServicesIpProtocol = "DDP" - PolicyRuleDestinationServicesIpProtocolDDX PolicyRuleDestinationServicesIpProtocol = "DDX" - PolicyRuleDestinationServicesIpProtocolDGP PolicyRuleDestinationServicesIpProtocol = "DGP" - PolicyRuleDestinationServicesIpProtocolDSR PolicyRuleDestinationServicesIpProtocol = "DSR" - PolicyRuleDestinationServicesIpProtocolEGP PolicyRuleDestinationServicesIpProtocol = "EGP" - PolicyRuleDestinationServicesIpProtocolEIGRP PolicyRuleDestinationServicesIpProtocol = "EIGRP" - PolicyRuleDestinationServicesIpProtocolEMCON PolicyRuleDestinationServicesIpProtocol = "EMCON" - PolicyRuleDestinationServicesIpProtocolENCAP PolicyRuleDestinationServicesIpProtocol = "ENCAP" - PolicyRuleDestinationServicesIpProtocolESP PolicyRuleDestinationServicesIpProtocol = "ESP" - PolicyRuleDestinationServicesIpProtocolETHERIP PolicyRuleDestinationServicesIpProtocol = "ETHERIP" - PolicyRuleDestinationServicesIpProtocolEthernet PolicyRuleDestinationServicesIpProtocol = "Ethernet" - PolicyRuleDestinationServicesIpProtocolFC PolicyRuleDestinationServicesIpProtocol = "FC" - PolicyRuleDestinationServicesIpProtocolFIRE PolicyRuleDestinationServicesIpProtocol = "FIRE" - PolicyRuleDestinationServicesIpProtocolGGP PolicyRuleDestinationServicesIpProtocol = "GGP" - PolicyRuleDestinationServicesIpProtocolGMTP PolicyRuleDestinationServicesIpProtocol = "GMTP" - PolicyRuleDestinationServicesIpProtocolGRE PolicyRuleDestinationServicesIpProtocol = "GRE" - PolicyRuleDestinationServicesIpProtocolHIP PolicyRuleDestinationServicesIpProtocol = "HIP" - PolicyRuleDestinationServicesIpProtocolHMP PolicyRuleDestinationServicesIpProtocol = "HMP" - PolicyRuleDestinationServicesIpProtocolIATP PolicyRuleDestinationServicesIpProtocol = "IATP" - PolicyRuleDestinationServicesIpProtocolICMP PolicyRuleDestinationServicesIpProtocol = "ICMP" - PolicyRuleDestinationServicesIpProtocolIDPR PolicyRuleDestinationServicesIpProtocol = "IDPR" - PolicyRuleDestinationServicesIpProtocolIDPRCMTP PolicyRuleDestinationServicesIpProtocol = "IDPR-CMTP" - PolicyRuleDestinationServicesIpProtocolIDRP PolicyRuleDestinationServicesIpProtocol = "IDRP" - PolicyRuleDestinationServicesIpProtocolIFMP PolicyRuleDestinationServicesIpProtocol = "IFMP" - PolicyRuleDestinationServicesIpProtocolIGMP PolicyRuleDestinationServicesIpProtocol = "IGMP" - PolicyRuleDestinationServicesIpProtocolIGP PolicyRuleDestinationServicesIpProtocol = "IGP" - PolicyRuleDestinationServicesIpProtocolIL PolicyRuleDestinationServicesIpProtocol = "IL" - PolicyRuleDestinationServicesIpProtocolINLSP PolicyRuleDestinationServicesIpProtocol = "I-NLSP" - PolicyRuleDestinationServicesIpProtocolIPCV PolicyRuleDestinationServicesIpProtocol = "IPCV" - PolicyRuleDestinationServicesIpProtocolIPComp PolicyRuleDestinationServicesIpProtocol = "IPComp" - PolicyRuleDestinationServicesIpProtocolIPIP PolicyRuleDestinationServicesIpProtocol = "IPIP" - PolicyRuleDestinationServicesIpProtocolIPLT PolicyRuleDestinationServicesIpProtocol = "IPLT" - PolicyRuleDestinationServicesIpProtocolIPPC PolicyRuleDestinationServicesIpProtocol = "IPPC" - PolicyRuleDestinationServicesIpProtocolIPXInIP PolicyRuleDestinationServicesIpProtocol = "IPX-in-IP" - PolicyRuleDestinationServicesIpProtocolIRTP PolicyRuleDestinationServicesIpProtocol = "IRTP" - PolicyRuleDestinationServicesIpProtocolISOIP PolicyRuleDestinationServicesIpProtocol = "ISO-IP" - PolicyRuleDestinationServicesIpProtocolISOTP4 PolicyRuleDestinationServicesIpProtocol = "ISO-TP4" - PolicyRuleDestinationServicesIpProtocolKRYPTOLAN PolicyRuleDestinationServicesIpProtocol = "KRYPTOLAN" - PolicyRuleDestinationServicesIpProtocolL2TP PolicyRuleDestinationServicesIpProtocol = "L2TP" - PolicyRuleDestinationServicesIpProtocolLARP PolicyRuleDestinationServicesIpProtocol = "LARP" - PolicyRuleDestinationServicesIpProtocolLEAF1 PolicyRuleDestinationServicesIpProtocol = "LEAF-1" - PolicyRuleDestinationServicesIpProtocolLEAF2 PolicyRuleDestinationServicesIpProtocol = "LEAF-2" - PolicyRuleDestinationServicesIpProtocolMERITINP PolicyRuleDestinationServicesIpProtocol = "MERIT-INP" - PolicyRuleDestinationServicesIpProtocolMFENSP PolicyRuleDestinationServicesIpProtocol = "MFE-NSP" - PolicyRuleDestinationServicesIpProtocolMOBILE PolicyRuleDestinationServicesIpProtocol = "MOBILE" - PolicyRuleDestinationServicesIpProtocolMTP PolicyRuleDestinationServicesIpProtocol = "MTP" - PolicyRuleDestinationServicesIpProtocolMUX PolicyRuleDestinationServicesIpProtocol = "MUX" - PolicyRuleDestinationServicesIpProtocolManet PolicyRuleDestinationServicesIpProtocol = "manet" - PolicyRuleDestinationServicesIpProtocolN3PC PolicyRuleDestinationServicesIpProtocol = "3PC" - PolicyRuleDestinationServicesIpProtocolNARP PolicyRuleDestinationServicesIpProtocol = "NARP" - PolicyRuleDestinationServicesIpProtocolNETBLT PolicyRuleDestinationServicesIpProtocol = "NETBLT" - PolicyRuleDestinationServicesIpProtocolNSFNETIGP PolicyRuleDestinationServicesIpProtocol = "NSFNET-IGP" - PolicyRuleDestinationServicesIpProtocolNVPII PolicyRuleDestinationServicesIpProtocol = "NVP-II" - PolicyRuleDestinationServicesIpProtocolOSPFIGP PolicyRuleDestinationServicesIpProtocol = "OSPFIGP" - PolicyRuleDestinationServicesIpProtocolPGM PolicyRuleDestinationServicesIpProtocol = "PGM" - PolicyRuleDestinationServicesIpProtocolPIM PolicyRuleDestinationServicesIpProtocol = "PIM" - PolicyRuleDestinationServicesIpProtocolPIPE PolicyRuleDestinationServicesIpProtocol = "PIPE" - PolicyRuleDestinationServicesIpProtocolPNNI PolicyRuleDestinationServicesIpProtocol = "PNNI" - PolicyRuleDestinationServicesIpProtocolPRM PolicyRuleDestinationServicesIpProtocol = "PRM" - PolicyRuleDestinationServicesIpProtocolPTP PolicyRuleDestinationServicesIpProtocol = "PTP" - PolicyRuleDestinationServicesIpProtocolPUP PolicyRuleDestinationServicesIpProtocol = "PUP" - PolicyRuleDestinationServicesIpProtocolPVP PolicyRuleDestinationServicesIpProtocol = "PVP" - PolicyRuleDestinationServicesIpProtocolQNX PolicyRuleDestinationServicesIpProtocol = "QNX" - PolicyRuleDestinationServicesIpProtocolRDP PolicyRuleDestinationServicesIpProtocol = "RDP" - PolicyRuleDestinationServicesIpProtocolROHC PolicyRuleDestinationServicesIpProtocol = "ROHC" - PolicyRuleDestinationServicesIpProtocolRSVP PolicyRuleDestinationServicesIpProtocol = "RSVP" - PolicyRuleDestinationServicesIpProtocolRSVPE2EIGNORE PolicyRuleDestinationServicesIpProtocol = "RSVP-E2E-IGNORE" - PolicyRuleDestinationServicesIpProtocolRVD PolicyRuleDestinationServicesIpProtocol = "RVD" - PolicyRuleDestinationServicesIpProtocolSATEXPAK PolicyRuleDestinationServicesIpProtocol = "SAT-EXPAK" - PolicyRuleDestinationServicesIpProtocolSATMON PolicyRuleDestinationServicesIpProtocol = "SAT-MON" - PolicyRuleDestinationServicesIpProtocolSCCSP PolicyRuleDestinationServicesIpProtocol = "SCC-SP" - PolicyRuleDestinationServicesIpProtocolSCPS PolicyRuleDestinationServicesIpProtocol = "SCPS" - PolicyRuleDestinationServicesIpProtocolSCTP PolicyRuleDestinationServicesIpProtocol = "SCTP" - PolicyRuleDestinationServicesIpProtocolSDRP PolicyRuleDestinationServicesIpProtocol = "SDRP" - PolicyRuleDestinationServicesIpProtocolSECUREVMTP PolicyRuleDestinationServicesIpProtocol = "SECURE-VMTP" - PolicyRuleDestinationServicesIpProtocolSKIP PolicyRuleDestinationServicesIpProtocol = "SKIP" - PolicyRuleDestinationServicesIpProtocolSM PolicyRuleDestinationServicesIpProtocol = "SM" - PolicyRuleDestinationServicesIpProtocolSMP PolicyRuleDestinationServicesIpProtocol = "SMP" - PolicyRuleDestinationServicesIpProtocolSNP PolicyRuleDestinationServicesIpProtocol = "SNP" - PolicyRuleDestinationServicesIpProtocolSPS PolicyRuleDestinationServicesIpProtocol = "SPS" - PolicyRuleDestinationServicesIpProtocolSRP PolicyRuleDestinationServicesIpProtocol = "SRP" - PolicyRuleDestinationServicesIpProtocolSSCOPMCE PolicyRuleDestinationServicesIpProtocol = "SSCOPMCE" - PolicyRuleDestinationServicesIpProtocolSTP PolicyRuleDestinationServicesIpProtocol = "STP" - PolicyRuleDestinationServicesIpProtocolSUNND PolicyRuleDestinationServicesIpProtocol = "SUN-ND" - PolicyRuleDestinationServicesIpProtocolSpriteRPC PolicyRuleDestinationServicesIpProtocol = "Sprite-RPC" - PolicyRuleDestinationServicesIpProtocolTCF PolicyRuleDestinationServicesIpProtocol = "TCF" - PolicyRuleDestinationServicesIpProtocolTCP PolicyRuleDestinationServicesIpProtocol = "TCP" - PolicyRuleDestinationServicesIpProtocolTLSP PolicyRuleDestinationServicesIpProtocol = "TLSP" - PolicyRuleDestinationServicesIpProtocolTP PolicyRuleDestinationServicesIpProtocol = "TP++" - PolicyRuleDestinationServicesIpProtocolTRUNK1 PolicyRuleDestinationServicesIpProtocol = "TRUNK-1" - PolicyRuleDestinationServicesIpProtocolTRUNK2 PolicyRuleDestinationServicesIpProtocol = "TRUNK-2" - PolicyRuleDestinationServicesIpProtocolTTP PolicyRuleDestinationServicesIpProtocol = "TTP" - PolicyRuleDestinationServicesIpProtocolUDP PolicyRuleDestinationServicesIpProtocol = "UDP" - PolicyRuleDestinationServicesIpProtocolUDPLite PolicyRuleDestinationServicesIpProtocol = "UDPLite" - PolicyRuleDestinationServicesIpProtocolUTI PolicyRuleDestinationServicesIpProtocol = "UTI" - PolicyRuleDestinationServicesIpProtocolVINES PolicyRuleDestinationServicesIpProtocol = "VINES" - PolicyRuleDestinationServicesIpProtocolVISA PolicyRuleDestinationServicesIpProtocol = "VISA" - PolicyRuleDestinationServicesIpProtocolVMTP PolicyRuleDestinationServicesIpProtocol = "VMTP" - PolicyRuleDestinationServicesIpProtocolWBEXPAK PolicyRuleDestinationServicesIpProtocol = "WB-EXPAK" - PolicyRuleDestinationServicesIpProtocolWBMON PolicyRuleDestinationServicesIpProtocol = "WB-MON" - PolicyRuleDestinationServicesIpProtocolWESP PolicyRuleDestinationServicesIpProtocol = "WESP" - PolicyRuleDestinationServicesIpProtocolWSN PolicyRuleDestinationServicesIpProtocol = "WSN" - PolicyRuleDestinationServicesIpProtocolXNET PolicyRuleDestinationServicesIpProtocol = "XNET" - PolicyRuleDestinationServicesIpProtocolXNSIDP PolicyRuleDestinationServicesIpProtocol = "XNS-IDP" - PolicyRuleDestinationServicesIpProtocolXTP PolicyRuleDestinationServicesIpProtocol = "XTP" -) - -// Defines values for PolicyRuleDestinationServicesStatusLabel. -const ( - PolicyRuleDestinationServicesStatusLabelActive PolicyRuleDestinationServicesStatusLabel = "Active" - PolicyRuleDestinationServicesStatusLabelDecommissioned PolicyRuleDestinationServicesStatusLabel = "Decommissioned" - PolicyRuleDestinationServicesStatusLabelStaged PolicyRuleDestinationServicesStatusLabel = "Staged" -) - -// Defines values for PolicyRuleDestinationServicesStatusValue. -const ( - PolicyRuleDestinationServicesStatusValueActive PolicyRuleDestinationServicesStatusValue = "active" - PolicyRuleDestinationServicesStatusValueDecommissioned PolicyRuleDestinationServicesStatusValue = "decommissioned" - PolicyRuleDestinationServicesStatusValueStaged PolicyRuleDestinationServicesStatusValue = "staged" -) - -// Defines values for PolicyRuleSourceAddressGroupsAddressObjectsStatusLabel. -const ( - PolicyRuleSourceAddressGroupsAddressObjectsStatusLabelActive PolicyRuleSourceAddressGroupsAddressObjectsStatusLabel = "Active" - PolicyRuleSourceAddressGroupsAddressObjectsStatusLabelDecommissioned PolicyRuleSourceAddressGroupsAddressObjectsStatusLabel = "Decommissioned" - PolicyRuleSourceAddressGroupsAddressObjectsStatusLabelStaged PolicyRuleSourceAddressGroupsAddressObjectsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleSourceAddressGroupsAddressObjectsStatusValue. -const ( - PolicyRuleSourceAddressGroupsAddressObjectsStatusValueActive PolicyRuleSourceAddressGroupsAddressObjectsStatusValue = "active" - PolicyRuleSourceAddressGroupsAddressObjectsStatusValueDecommissioned PolicyRuleSourceAddressGroupsAddressObjectsStatusValue = "decommissioned" - PolicyRuleSourceAddressGroupsAddressObjectsStatusValueStaged PolicyRuleSourceAddressGroupsAddressObjectsStatusValue = "staged" -) - -// Defines values for PolicyRuleSourceAddressGroupsStatusLabel. -const ( - PolicyRuleSourceAddressGroupsStatusLabelActive PolicyRuleSourceAddressGroupsStatusLabel = "Active" - PolicyRuleSourceAddressGroupsStatusLabelDecommissioned PolicyRuleSourceAddressGroupsStatusLabel = "Decommissioned" - PolicyRuleSourceAddressGroupsStatusLabelStaged PolicyRuleSourceAddressGroupsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleSourceAddressGroupsStatusValue. -const ( - PolicyRuleSourceAddressGroupsStatusValueActive PolicyRuleSourceAddressGroupsStatusValue = "active" - PolicyRuleSourceAddressGroupsStatusValueDecommissioned PolicyRuleSourceAddressGroupsStatusValue = "decommissioned" - PolicyRuleSourceAddressGroupsStatusValueStaged PolicyRuleSourceAddressGroupsStatusValue = "staged" -) - -// Defines values for PolicyRuleSourceAddressesStatusLabel. -const ( - PolicyRuleSourceAddressesStatusLabelActive PolicyRuleSourceAddressesStatusLabel = "Active" - PolicyRuleSourceAddressesStatusLabelDecommissioned PolicyRuleSourceAddressesStatusLabel = "Decommissioned" - PolicyRuleSourceAddressesStatusLabelStaged PolicyRuleSourceAddressesStatusLabel = "Staged" -) - -// Defines values for PolicyRuleSourceAddressesStatusValue. -const ( - PolicyRuleSourceAddressesStatusValueActive PolicyRuleSourceAddressesStatusValue = "active" - PolicyRuleSourceAddressesStatusValueDecommissioned PolicyRuleSourceAddressesStatusValue = "decommissioned" - PolicyRuleSourceAddressesStatusValueStaged PolicyRuleSourceAddressesStatusValue = "staged" -) - -// Defines values for PolicyRuleSourceUserGroupsStatusLabel. -const ( - PolicyRuleSourceUserGroupsStatusLabelActive PolicyRuleSourceUserGroupsStatusLabel = "Active" - PolicyRuleSourceUserGroupsStatusLabelDecommissioned PolicyRuleSourceUserGroupsStatusLabel = "Decommissioned" - PolicyRuleSourceUserGroupsStatusLabelStaged PolicyRuleSourceUserGroupsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleSourceUserGroupsStatusValue. -const ( - PolicyRuleSourceUserGroupsStatusValueActive PolicyRuleSourceUserGroupsStatusValue = "active" - PolicyRuleSourceUserGroupsStatusValueDecommissioned PolicyRuleSourceUserGroupsStatusValue = "decommissioned" - PolicyRuleSourceUserGroupsStatusValueStaged PolicyRuleSourceUserGroupsStatusValue = "staged" -) - -// Defines values for PolicyRuleSourceUserGroupsUserObjectsStatusLabel. -const ( - PolicyRuleSourceUserGroupsUserObjectsStatusLabelActive PolicyRuleSourceUserGroupsUserObjectsStatusLabel = "Active" - PolicyRuleSourceUserGroupsUserObjectsStatusLabelDecommissioned PolicyRuleSourceUserGroupsUserObjectsStatusLabel = "Decommissioned" - PolicyRuleSourceUserGroupsUserObjectsStatusLabelStaged PolicyRuleSourceUserGroupsUserObjectsStatusLabel = "Staged" -) - -// Defines values for PolicyRuleSourceUserGroupsUserObjectsStatusValue. -const ( - PolicyRuleSourceUserGroupsUserObjectsStatusValueActive PolicyRuleSourceUserGroupsUserObjectsStatusValue = "active" - PolicyRuleSourceUserGroupsUserObjectsStatusValueDecommissioned PolicyRuleSourceUserGroupsUserObjectsStatusValue = "decommissioned" - PolicyRuleSourceUserGroupsUserObjectsStatusValueStaged PolicyRuleSourceUserGroupsUserObjectsStatusValue = "staged" -) - -// Defines values for PolicyRuleSourceUsersStatusLabel. -const ( - PolicyRuleSourceUsersStatusLabelActive PolicyRuleSourceUsersStatusLabel = "Active" - PolicyRuleSourceUsersStatusLabelDecommissioned PolicyRuleSourceUsersStatusLabel = "Decommissioned" - PolicyRuleSourceUsersStatusLabelStaged PolicyRuleSourceUsersStatusLabel = "Staged" -) - -// Defines values for PolicyRuleSourceUsersStatusValue. -const ( - PolicyRuleSourceUsersStatusValueActive PolicyRuleSourceUsersStatusValue = "active" - PolicyRuleSourceUsersStatusValueDecommissioned PolicyRuleSourceUsersStatusValue = "decommissioned" - PolicyRuleSourceUsersStatusValueStaged PolicyRuleSourceUsersStatusValue = "staged" -) - -// Defines values for PolicyRuleStatusLabel. -const ( - PolicyRuleStatusLabelActive PolicyRuleStatusLabel = "Active" - PolicyRuleStatusLabelDecommissioned PolicyRuleStatusLabel = "Decommissioned" - PolicyRuleStatusLabelStaged PolicyRuleStatusLabel = "Staged" -) - -// Defines values for PolicyRuleStatusValue. -const ( - PolicyRuleStatusValueActive PolicyRuleStatusValue = "active" - PolicyRuleStatusValueDecommissioned PolicyRuleStatusValue = "decommissioned" - PolicyRuleStatusValueStaged PolicyRuleStatusValue = "staged" -) - -// Defines values for PortTypeChoices. -const ( - PortTypeChoicesBnc PortTypeChoices = "bnc" - PortTypeChoicesCs PortTypeChoices = "cs" - PortTypeChoicesFc PortTypeChoices = "fc" - PortTypeChoicesGg45 PortTypeChoices = "gg45" - PortTypeChoicesLc PortTypeChoices = "lc" - PortTypeChoicesLcApc PortTypeChoices = "lc-apc" - PortTypeChoicesLsh PortTypeChoices = "lsh" - PortTypeChoicesLshApc PortTypeChoices = "lsh-apc" - PortTypeChoicesMpo PortTypeChoices = "mpo" - PortTypeChoicesMrj21 PortTypeChoices = "mrj21" - PortTypeChoicesMtrj PortTypeChoices = "mtrj" - PortTypeChoicesN110Punch PortTypeChoices = "110-punch" - PortTypeChoicesN8p2c PortTypeChoices = "8p2c" - PortTypeChoicesN8p4c PortTypeChoices = "8p4c" - PortTypeChoicesN8p6c PortTypeChoices = "8p6c" - PortTypeChoicesN8p8c PortTypeChoices = "8p8c" - PortTypeChoicesSc PortTypeChoices = "sc" - PortTypeChoicesScApc PortTypeChoices = "sc-apc" - PortTypeChoicesSn PortTypeChoices = "sn" - PortTypeChoicesSplice PortTypeChoices = "splice" - PortTypeChoicesSt PortTypeChoices = "st" - PortTypeChoicesTera1p PortTypeChoices = "tera-1p" - PortTypeChoicesTera2p PortTypeChoices = "tera-2p" - PortTypeChoicesTera4p PortTypeChoices = "tera-4p" - PortTypeChoicesUrmP2 PortTypeChoices = "urm-p2" - PortTypeChoicesUrmP4 PortTypeChoices = "urm-p4" - PortTypeChoicesUrmP8 PortTypeChoices = "urm-p8" -) - -// Defines values for PowerFeedPhaseLabel. -const ( - PowerFeedPhaseLabelSinglePhase PowerFeedPhaseLabel = "Single phase" - PowerFeedPhaseLabelThreePhase PowerFeedPhaseLabel = "Three-phase" -) - -// Defines values for PowerFeedPhaseValue. -const ( - SinglePhase PowerFeedPhaseValue = "single-phase" - ThreePhase PowerFeedPhaseValue = "three-phase" -) - -// Defines values for PowerFeedStatusLabel. -const ( - PowerFeedStatusLabelActive PowerFeedStatusLabel = "Active" - PowerFeedStatusLabelFailed PowerFeedStatusLabel = "Failed" - PowerFeedStatusLabelOffline PowerFeedStatusLabel = "Offline" - PowerFeedStatusLabelPlanned PowerFeedStatusLabel = "Planned" -) - -// Defines values for PowerFeedStatusValue. -const ( - PowerFeedStatusValueActive PowerFeedStatusValue = "active" - PowerFeedStatusValueFailed PowerFeedStatusValue = "failed" - PowerFeedStatusValueOffline PowerFeedStatusValue = "offline" - PowerFeedStatusValuePlanned PowerFeedStatusValue = "planned" -) - -// Defines values for PowerFeedSupplyLabel. -const ( - AC PowerFeedSupplyLabel = "AC" - DC PowerFeedSupplyLabel = "DC" -) - -// Defines values for PowerFeedSupplyValue. -const ( - PowerFeedSupplyValueAc PowerFeedSupplyValue = "ac" - PowerFeedSupplyValueDc PowerFeedSupplyValue = "dc" -) - -// Defines values for PowerFeedTypeLabel. -const ( - PowerFeedTypeLabelPrimary PowerFeedTypeLabel = "Primary" - PowerFeedTypeLabelRedundant PowerFeedTypeLabel = "Redundant" -) - -// Defines values for PowerFeedTypeValue. -const ( - PowerFeedTypeValuePrimary PowerFeedTypeValue = "primary" - PowerFeedTypeValueRedundant PowerFeedTypeValue = "redundant" -) - -// Defines values for PowerFeedStatusChoices. -const ( - PowerFeedStatusChoicesActive PowerFeedStatusChoices = "active" - PowerFeedStatusChoicesFailed PowerFeedStatusChoices = "failed" - PowerFeedStatusChoicesOffline PowerFeedStatusChoices = "offline" - PowerFeedStatusChoicesPlanned PowerFeedStatusChoices = "planned" -) - -// Defines values for PowerFeedTypeChoices. -const ( - Primary PowerFeedTypeChoices = "primary" - Redundant PowerFeedTypeChoices = "redundant" -) - -// Defines values for PowerOutletFeedLegLabel. -const ( - PowerOutletFeedLegLabelA PowerOutletFeedLegLabel = "A" - PowerOutletFeedLegLabelB PowerOutletFeedLegLabel = "B" - PowerOutletFeedLegLabelC PowerOutletFeedLegLabel = "C" -) - -// Defines values for PowerOutletFeedLegValue. -const ( - PowerOutletFeedLegValueA PowerOutletFeedLegValue = "A" - PowerOutletFeedLegValueB PowerOutletFeedLegValue = "B" - PowerOutletFeedLegValueC PowerOutletFeedLegValue = "C" -) - -// Defines values for PowerOutletTypeLabel. -const ( - PowerOutletTypeLabelC13 PowerOutletTypeLabel = "C13" - PowerOutletTypeLabelC15 PowerOutletTypeLabel = "C15" - PowerOutletTypeLabelC19 PowerOutletTypeLabel = "C19" - PowerOutletTypeLabelC5 PowerOutletTypeLabel = "C5" - PowerOutletTypeLabelC7 PowerOutletTypeLabel = "C7" - PowerOutletTypeLabelCS6360C PowerOutletTypeLabel = "CS6360C" - PowerOutletTypeLabelCS6364C PowerOutletTypeLabel = "CS6364C" - PowerOutletTypeLabelCS8164C PowerOutletTypeLabel = "CS8164C" - PowerOutletTypeLabelCS8264C PowerOutletTypeLabel = "CS8264C" - PowerOutletTypeLabelCS8364C PowerOutletTypeLabel = "CS8364C" - PowerOutletTypeLabelCS8464C PowerOutletTypeLabel = "CS8464C" - PowerOutletTypeLabelHDOTCx PowerOutletTypeLabel = "HDOT Cx" - PowerOutletTypeLabelITATypeECEE75 PowerOutletTypeLabel = "ITA Type E (CEE7/5)" - PowerOutletTypeLabelITATypeFCEE73 PowerOutletTypeLabel = "ITA Type F (CEE7/3)" - PowerOutletTypeLabelITATypeGBS1363 PowerOutletTypeLabel = "ITA Type G (BS 1363)" - PowerOutletTypeLabelITATypeH PowerOutletTypeLabel = "ITA Type H" - PowerOutletTypeLabelITATypeI PowerOutletTypeLabel = "ITA Type I" - PowerOutletTypeLabelITATypeJ PowerOutletTypeLabel = "ITA Type J" - PowerOutletTypeLabelITATypeK PowerOutletTypeLabel = "ITA Type K" - PowerOutletTypeLabelITATypeLCEI2350 PowerOutletTypeLabel = "ITA Type L (CEI 23-50)" - PowerOutletTypeLabelITATypeMBS546 PowerOutletTypeLabel = "ITA Type M (BS 546)" - PowerOutletTypeLabelITATypeN PowerOutletTypeLabel = "ITA Type N" - PowerOutletTypeLabelITATypeO PowerOutletTypeLabel = "ITA Type O" - PowerOutletTypeLabelN2PE4H PowerOutletTypeLabel = "2P+E 4H" - PowerOutletTypeLabelN2PE6H PowerOutletTypeLabel = "2P+E 6H" - PowerOutletTypeLabelN2PE9H PowerOutletTypeLabel = "2P+E 9H" - PowerOutletTypeLabelN3PE4H PowerOutletTypeLabel = "3P+E 4H" - PowerOutletTypeLabelN3PE6H PowerOutletTypeLabel = "3P+E 6H" - PowerOutletTypeLabelN3PE9H PowerOutletTypeLabel = "3P+E 9H" - PowerOutletTypeLabelN3PNE4H PowerOutletTypeLabel = "3P+N+E 4H" - PowerOutletTypeLabelN3PNE6H PowerOutletTypeLabel = "3P+N+E 6H" - PowerOutletTypeLabelN3PNE9H PowerOutletTypeLabel = "3P+N+E 9H" - PowerOutletTypeLabelNEMA1030R PowerOutletTypeLabel = "NEMA 10-30R" - PowerOutletTypeLabelNEMA1050R PowerOutletTypeLabel = "NEMA 10-50R" - PowerOutletTypeLabelNEMA115R PowerOutletTypeLabel = "NEMA 1-15R" - PowerOutletTypeLabelNEMA1420R PowerOutletTypeLabel = "NEMA 14-20R" - PowerOutletTypeLabelNEMA1430R PowerOutletTypeLabel = "NEMA 14-30R" - PowerOutletTypeLabelNEMA1450R PowerOutletTypeLabel = "NEMA 14-50R" - PowerOutletTypeLabelNEMA1460R PowerOutletTypeLabel = "NEMA 14-60R" - PowerOutletTypeLabelNEMA1515R PowerOutletTypeLabel = "NEMA 15-15R" - PowerOutletTypeLabelNEMA1520R PowerOutletTypeLabel = "NEMA 15-20R" - PowerOutletTypeLabelNEMA1530R PowerOutletTypeLabel = "NEMA 15-30R" - PowerOutletTypeLabelNEMA1550R PowerOutletTypeLabel = "NEMA 15-50R" - PowerOutletTypeLabelNEMA1560R PowerOutletTypeLabel = "NEMA 15-60R" - PowerOutletTypeLabelNEMA515R PowerOutletTypeLabel = "NEMA 5-15R" - PowerOutletTypeLabelNEMA520R PowerOutletTypeLabel = "NEMA 5-20R" - PowerOutletTypeLabelNEMA530R PowerOutletTypeLabel = "NEMA 5-30R" - PowerOutletTypeLabelNEMA550R PowerOutletTypeLabel = "NEMA 5-50R" - PowerOutletTypeLabelNEMA615R PowerOutletTypeLabel = "NEMA 6-15R" - PowerOutletTypeLabelNEMA620R PowerOutletTypeLabel = "NEMA 6-20R" - PowerOutletTypeLabelNEMA630R PowerOutletTypeLabel = "NEMA 6-30R" - PowerOutletTypeLabelNEMA650R PowerOutletTypeLabel = "NEMA 6-50R" - PowerOutletTypeLabelNEMAL1030R PowerOutletTypeLabel = "NEMA L10-30R" - PowerOutletTypeLabelNEMAL115R PowerOutletTypeLabel = "NEMA L1-15R" - PowerOutletTypeLabelNEMAL1420R PowerOutletTypeLabel = "NEMA L14-20R" - PowerOutletTypeLabelNEMAL1430R PowerOutletTypeLabel = "NEMA L14-30R" - PowerOutletTypeLabelNEMAL1450R PowerOutletTypeLabel = "NEMA L14-50R" - PowerOutletTypeLabelNEMAL1460R PowerOutletTypeLabel = "NEMA L14-60R" - PowerOutletTypeLabelNEMAL1520R PowerOutletTypeLabel = "NEMA L15-20R" - PowerOutletTypeLabelNEMAL1530R PowerOutletTypeLabel = "NEMA L15-30R" - PowerOutletTypeLabelNEMAL1550R PowerOutletTypeLabel = "NEMA L15-50R" - PowerOutletTypeLabelNEMAL1560R PowerOutletTypeLabel = "NEMA L15-60R" - PowerOutletTypeLabelNEMAL2120R PowerOutletTypeLabel = "NEMA L21-20R" - PowerOutletTypeLabelNEMAL2130R PowerOutletTypeLabel = "NEMA L21-30R" - PowerOutletTypeLabelNEMAL515R PowerOutletTypeLabel = "NEMA L5-15R" - PowerOutletTypeLabelNEMAL520R PowerOutletTypeLabel = "NEMA L5-20R" - PowerOutletTypeLabelNEMAL530R PowerOutletTypeLabel = "NEMA L5-30R" - PowerOutletTypeLabelNEMAL550R PowerOutletTypeLabel = "NEMA L5-50R" - PowerOutletTypeLabelNEMAL615R PowerOutletTypeLabel = "NEMA L6-15R" - PowerOutletTypeLabelNEMAL620R PowerOutletTypeLabel = "NEMA L6-20R" - PowerOutletTypeLabelNEMAL630R PowerOutletTypeLabel = "NEMA L6-30R" - PowerOutletTypeLabelNEMAL650R PowerOutletTypeLabel = "NEMA L6-50R" - PowerOutletTypeLabelPNE4H PowerOutletTypeLabel = "P+N+E 4H" - PowerOutletTypeLabelPNE6H PowerOutletTypeLabel = "P+N+E 6H" - PowerOutletTypeLabelPNE9H PowerOutletTypeLabel = "P+N+E 9H" - PowerOutletTypeLabelUSBMicroB PowerOutletTypeLabel = "USB Micro B" - PowerOutletTypeLabelUSBTypeA PowerOutletTypeLabel = "USB Type A" - PowerOutletTypeLabelUSBTypeC PowerOutletTypeLabel = "USB Type C" -) - -// Defines values for PowerOutletTypeValue. -const ( - PowerOutletTypeValueCS6360C PowerOutletTypeValue = "CS6360C" - PowerOutletTypeValueCS6364C PowerOutletTypeValue = "CS6364C" - PowerOutletTypeValueCS8164C PowerOutletTypeValue = "CS8164C" - PowerOutletTypeValueCS8264C PowerOutletTypeValue = "CS8264C" - PowerOutletTypeValueCS8364C PowerOutletTypeValue = "CS8364C" - PowerOutletTypeValueCS8464C PowerOutletTypeValue = "CS8464C" - PowerOutletTypeValueHdotCx PowerOutletTypeValue = "hdot-cx" - PowerOutletTypeValueIec603092pE4h PowerOutletTypeValue = "iec-60309-2p-e-4h" - PowerOutletTypeValueIec603092pE6h PowerOutletTypeValue = "iec-60309-2p-e-6h" - PowerOutletTypeValueIec603092pE9h PowerOutletTypeValue = "iec-60309-2p-e-9h" - PowerOutletTypeValueIec603093pE4h PowerOutletTypeValue = "iec-60309-3p-e-4h" - PowerOutletTypeValueIec603093pE6h PowerOutletTypeValue = "iec-60309-3p-e-6h" - PowerOutletTypeValueIec603093pE9h PowerOutletTypeValue = "iec-60309-3p-e-9h" - PowerOutletTypeValueIec603093pNE4h PowerOutletTypeValue = "iec-60309-3p-n-e-4h" - PowerOutletTypeValueIec603093pNE6h PowerOutletTypeValue = "iec-60309-3p-n-e-6h" - PowerOutletTypeValueIec603093pNE9h PowerOutletTypeValue = "iec-60309-3p-n-e-9h" - PowerOutletTypeValueIec60309PNE4h PowerOutletTypeValue = "iec-60309-p-n-e-4h" - PowerOutletTypeValueIec60309PNE6h PowerOutletTypeValue = "iec-60309-p-n-e-6h" - PowerOutletTypeValueIec60309PNE9h PowerOutletTypeValue = "iec-60309-p-n-e-9h" - PowerOutletTypeValueIec60320C13 PowerOutletTypeValue = "iec-60320-c13" - PowerOutletTypeValueIec60320C15 PowerOutletTypeValue = "iec-60320-c15" - PowerOutletTypeValueIec60320C19 PowerOutletTypeValue = "iec-60320-c19" - PowerOutletTypeValueIec60320C5 PowerOutletTypeValue = "iec-60320-c5" - PowerOutletTypeValueIec60320C7 PowerOutletTypeValue = "iec-60320-c7" - PowerOutletTypeValueItaE PowerOutletTypeValue = "ita-e" - PowerOutletTypeValueItaF PowerOutletTypeValue = "ita-f" - PowerOutletTypeValueItaG PowerOutletTypeValue = "ita-g" - PowerOutletTypeValueItaH PowerOutletTypeValue = "ita-h" - PowerOutletTypeValueItaI PowerOutletTypeValue = "ita-i" - PowerOutletTypeValueItaJ PowerOutletTypeValue = "ita-j" - PowerOutletTypeValueItaK PowerOutletTypeValue = "ita-k" - PowerOutletTypeValueItaL PowerOutletTypeValue = "ita-l" - PowerOutletTypeValueItaM PowerOutletTypeValue = "ita-m" - PowerOutletTypeValueItaN PowerOutletTypeValue = "ita-n" - PowerOutletTypeValueItaO PowerOutletTypeValue = "ita-o" - PowerOutletTypeValueNema1030r PowerOutletTypeValue = "nema-10-30r" - PowerOutletTypeValueNema1050r PowerOutletTypeValue = "nema-10-50r" - PowerOutletTypeValueNema115r PowerOutletTypeValue = "nema-1-15r" - PowerOutletTypeValueNema1420r PowerOutletTypeValue = "nema-14-20r" - PowerOutletTypeValueNema1430r PowerOutletTypeValue = "nema-14-30r" - PowerOutletTypeValueNema1450r PowerOutletTypeValue = "nema-14-50r" - PowerOutletTypeValueNema1460r PowerOutletTypeValue = "nema-14-60r" - PowerOutletTypeValueNema1515r PowerOutletTypeValue = "nema-15-15r" - PowerOutletTypeValueNema1520r PowerOutletTypeValue = "nema-15-20r" - PowerOutletTypeValueNema1530r PowerOutletTypeValue = "nema-15-30r" - PowerOutletTypeValueNema1550r PowerOutletTypeValue = "nema-15-50r" - PowerOutletTypeValueNema1560r PowerOutletTypeValue = "nema-15-60r" - PowerOutletTypeValueNema515r PowerOutletTypeValue = "nema-5-15r" - PowerOutletTypeValueNema520r PowerOutletTypeValue = "nema-5-20r" - PowerOutletTypeValueNema530r PowerOutletTypeValue = "nema-5-30r" - PowerOutletTypeValueNema550r PowerOutletTypeValue = "nema-5-50r" - PowerOutletTypeValueNema615r PowerOutletTypeValue = "nema-6-15r" - PowerOutletTypeValueNema620r PowerOutletTypeValue = "nema-6-20r" - PowerOutletTypeValueNema630r PowerOutletTypeValue = "nema-6-30r" - PowerOutletTypeValueNema650r PowerOutletTypeValue = "nema-6-50r" - PowerOutletTypeValueNemaL1030r PowerOutletTypeValue = "nema-l10-30r" - PowerOutletTypeValueNemaL115r PowerOutletTypeValue = "nema-l1-15r" - PowerOutletTypeValueNemaL1420r PowerOutletTypeValue = "nema-l14-20r" - PowerOutletTypeValueNemaL1430r PowerOutletTypeValue = "nema-l14-30r" - PowerOutletTypeValueNemaL1450r PowerOutletTypeValue = "nema-l14-50r" - PowerOutletTypeValueNemaL1460r PowerOutletTypeValue = "nema-l14-60r" - PowerOutletTypeValueNemaL1520r PowerOutletTypeValue = "nema-l15-20r" - PowerOutletTypeValueNemaL1530r PowerOutletTypeValue = "nema-l15-30r" - PowerOutletTypeValueNemaL1550r PowerOutletTypeValue = "nema-l15-50r" - PowerOutletTypeValueNemaL1560r PowerOutletTypeValue = "nema-l15-60r" - PowerOutletTypeValueNemaL2120r PowerOutletTypeValue = "nema-l21-20r" - PowerOutletTypeValueNemaL2130r PowerOutletTypeValue = "nema-l21-30r" - PowerOutletTypeValueNemaL515r PowerOutletTypeValue = "nema-l5-15r" - PowerOutletTypeValueNemaL520r PowerOutletTypeValue = "nema-l5-20r" - PowerOutletTypeValueNemaL530r PowerOutletTypeValue = "nema-l5-30r" - PowerOutletTypeValueNemaL550r PowerOutletTypeValue = "nema-l5-50r" - PowerOutletTypeValueNemaL615r PowerOutletTypeValue = "nema-l6-15r" - PowerOutletTypeValueNemaL620r PowerOutletTypeValue = "nema-l6-20r" - PowerOutletTypeValueNemaL630r PowerOutletTypeValue = "nema-l6-30r" - PowerOutletTypeValueNemaL650r PowerOutletTypeValue = "nema-l6-50r" - PowerOutletTypeValueUsbA PowerOutletTypeValue = "usb-a" - PowerOutletTypeValueUsbC PowerOutletTypeValue = "usb-c" - PowerOutletTypeValueUsbMicroB PowerOutletTypeValue = "usb-micro-b" -) - -// Defines values for PowerOutletTemplateFeedLegLabel. -const ( - PowerOutletTemplateFeedLegLabelA PowerOutletTemplateFeedLegLabel = "A" - PowerOutletTemplateFeedLegLabelB PowerOutletTemplateFeedLegLabel = "B" - PowerOutletTemplateFeedLegLabelC PowerOutletTemplateFeedLegLabel = "C" -) - -// Defines values for PowerOutletTemplateFeedLegValue. -const ( - PowerOutletTemplateFeedLegValueA PowerOutletTemplateFeedLegValue = "A" - PowerOutletTemplateFeedLegValueB PowerOutletTemplateFeedLegValue = "B" - PowerOutletTemplateFeedLegValueC PowerOutletTemplateFeedLegValue = "C" -) - -// Defines values for PowerOutletTemplateTypeLabel. -const ( - PowerOutletTemplateTypeLabelC13 PowerOutletTemplateTypeLabel = "C13" - PowerOutletTemplateTypeLabelC15 PowerOutletTemplateTypeLabel = "C15" - PowerOutletTemplateTypeLabelC19 PowerOutletTemplateTypeLabel = "C19" - PowerOutletTemplateTypeLabelC5 PowerOutletTemplateTypeLabel = "C5" - PowerOutletTemplateTypeLabelC7 PowerOutletTemplateTypeLabel = "C7" - PowerOutletTemplateTypeLabelCS6360C PowerOutletTemplateTypeLabel = "CS6360C" - PowerOutletTemplateTypeLabelCS6364C PowerOutletTemplateTypeLabel = "CS6364C" - PowerOutletTemplateTypeLabelCS8164C PowerOutletTemplateTypeLabel = "CS8164C" - PowerOutletTemplateTypeLabelCS8264C PowerOutletTemplateTypeLabel = "CS8264C" - PowerOutletTemplateTypeLabelCS8364C PowerOutletTemplateTypeLabel = "CS8364C" - PowerOutletTemplateTypeLabelCS8464C PowerOutletTemplateTypeLabel = "CS8464C" - PowerOutletTemplateTypeLabelHDOTCx PowerOutletTemplateTypeLabel = "HDOT Cx" - PowerOutletTemplateTypeLabelITATypeECEE75 PowerOutletTemplateTypeLabel = "ITA Type E (CEE7/5)" - PowerOutletTemplateTypeLabelITATypeFCEE73 PowerOutletTemplateTypeLabel = "ITA Type F (CEE7/3)" - PowerOutletTemplateTypeLabelITATypeGBS1363 PowerOutletTemplateTypeLabel = "ITA Type G (BS 1363)" - PowerOutletTemplateTypeLabelITATypeH PowerOutletTemplateTypeLabel = "ITA Type H" - PowerOutletTemplateTypeLabelITATypeI PowerOutletTemplateTypeLabel = "ITA Type I" - PowerOutletTemplateTypeLabelITATypeJ PowerOutletTemplateTypeLabel = "ITA Type J" - PowerOutletTemplateTypeLabelITATypeK PowerOutletTemplateTypeLabel = "ITA Type K" - PowerOutletTemplateTypeLabelITATypeLCEI2350 PowerOutletTemplateTypeLabel = "ITA Type L (CEI 23-50)" - PowerOutletTemplateTypeLabelITATypeMBS546 PowerOutletTemplateTypeLabel = "ITA Type M (BS 546)" - PowerOutletTemplateTypeLabelITATypeN PowerOutletTemplateTypeLabel = "ITA Type N" - PowerOutletTemplateTypeLabelITATypeO PowerOutletTemplateTypeLabel = "ITA Type O" - PowerOutletTemplateTypeLabelN2PE4H PowerOutletTemplateTypeLabel = "2P+E 4H" - PowerOutletTemplateTypeLabelN2PE6H PowerOutletTemplateTypeLabel = "2P+E 6H" - PowerOutletTemplateTypeLabelN2PE9H PowerOutletTemplateTypeLabel = "2P+E 9H" - PowerOutletTemplateTypeLabelN3PE4H PowerOutletTemplateTypeLabel = "3P+E 4H" - PowerOutletTemplateTypeLabelN3PE6H PowerOutletTemplateTypeLabel = "3P+E 6H" - PowerOutletTemplateTypeLabelN3PE9H PowerOutletTemplateTypeLabel = "3P+E 9H" - PowerOutletTemplateTypeLabelN3PNE4H PowerOutletTemplateTypeLabel = "3P+N+E 4H" - PowerOutletTemplateTypeLabelN3PNE6H PowerOutletTemplateTypeLabel = "3P+N+E 6H" - PowerOutletTemplateTypeLabelN3PNE9H PowerOutletTemplateTypeLabel = "3P+N+E 9H" - PowerOutletTemplateTypeLabelNEMA1030R PowerOutletTemplateTypeLabel = "NEMA 10-30R" - PowerOutletTemplateTypeLabelNEMA1050R PowerOutletTemplateTypeLabel = "NEMA 10-50R" - PowerOutletTemplateTypeLabelNEMA115R PowerOutletTemplateTypeLabel = "NEMA 1-15R" - PowerOutletTemplateTypeLabelNEMA1420R PowerOutletTemplateTypeLabel = "NEMA 14-20R" - PowerOutletTemplateTypeLabelNEMA1430R PowerOutletTemplateTypeLabel = "NEMA 14-30R" - PowerOutletTemplateTypeLabelNEMA1450R PowerOutletTemplateTypeLabel = "NEMA 14-50R" - PowerOutletTemplateTypeLabelNEMA1460R PowerOutletTemplateTypeLabel = "NEMA 14-60R" - PowerOutletTemplateTypeLabelNEMA1515R PowerOutletTemplateTypeLabel = "NEMA 15-15R" - PowerOutletTemplateTypeLabelNEMA1520R PowerOutletTemplateTypeLabel = "NEMA 15-20R" - PowerOutletTemplateTypeLabelNEMA1530R PowerOutletTemplateTypeLabel = "NEMA 15-30R" - PowerOutletTemplateTypeLabelNEMA1550R PowerOutletTemplateTypeLabel = "NEMA 15-50R" - PowerOutletTemplateTypeLabelNEMA1560R PowerOutletTemplateTypeLabel = "NEMA 15-60R" - PowerOutletTemplateTypeLabelNEMA515R PowerOutletTemplateTypeLabel = "NEMA 5-15R" - PowerOutletTemplateTypeLabelNEMA520R PowerOutletTemplateTypeLabel = "NEMA 5-20R" - PowerOutletTemplateTypeLabelNEMA530R PowerOutletTemplateTypeLabel = "NEMA 5-30R" - PowerOutletTemplateTypeLabelNEMA550R PowerOutletTemplateTypeLabel = "NEMA 5-50R" - PowerOutletTemplateTypeLabelNEMA615R PowerOutletTemplateTypeLabel = "NEMA 6-15R" - PowerOutletTemplateTypeLabelNEMA620R PowerOutletTemplateTypeLabel = "NEMA 6-20R" - PowerOutletTemplateTypeLabelNEMA630R PowerOutletTemplateTypeLabel = "NEMA 6-30R" - PowerOutletTemplateTypeLabelNEMA650R PowerOutletTemplateTypeLabel = "NEMA 6-50R" - PowerOutletTemplateTypeLabelNEMAL1030R PowerOutletTemplateTypeLabel = "NEMA L10-30R" - PowerOutletTemplateTypeLabelNEMAL115R PowerOutletTemplateTypeLabel = "NEMA L1-15R" - PowerOutletTemplateTypeLabelNEMAL1420R PowerOutletTemplateTypeLabel = "NEMA L14-20R" - PowerOutletTemplateTypeLabelNEMAL1430R PowerOutletTemplateTypeLabel = "NEMA L14-30R" - PowerOutletTemplateTypeLabelNEMAL1450R PowerOutletTemplateTypeLabel = "NEMA L14-50R" - PowerOutletTemplateTypeLabelNEMAL1460R PowerOutletTemplateTypeLabel = "NEMA L14-60R" - PowerOutletTemplateTypeLabelNEMAL1520R PowerOutletTemplateTypeLabel = "NEMA L15-20R" - PowerOutletTemplateTypeLabelNEMAL1530R PowerOutletTemplateTypeLabel = "NEMA L15-30R" - PowerOutletTemplateTypeLabelNEMAL1550R PowerOutletTemplateTypeLabel = "NEMA L15-50R" - PowerOutletTemplateTypeLabelNEMAL1560R PowerOutletTemplateTypeLabel = "NEMA L15-60R" - PowerOutletTemplateTypeLabelNEMAL2120R PowerOutletTemplateTypeLabel = "NEMA L21-20R" - PowerOutletTemplateTypeLabelNEMAL2130R PowerOutletTemplateTypeLabel = "NEMA L21-30R" - PowerOutletTemplateTypeLabelNEMAL515R PowerOutletTemplateTypeLabel = "NEMA L5-15R" - PowerOutletTemplateTypeLabelNEMAL520R PowerOutletTemplateTypeLabel = "NEMA L5-20R" - PowerOutletTemplateTypeLabelNEMAL530R PowerOutletTemplateTypeLabel = "NEMA L5-30R" - PowerOutletTemplateTypeLabelNEMAL550R PowerOutletTemplateTypeLabel = "NEMA L5-50R" - PowerOutletTemplateTypeLabelNEMAL615R PowerOutletTemplateTypeLabel = "NEMA L6-15R" - PowerOutletTemplateTypeLabelNEMAL620R PowerOutletTemplateTypeLabel = "NEMA L6-20R" - PowerOutletTemplateTypeLabelNEMAL630R PowerOutletTemplateTypeLabel = "NEMA L6-30R" - PowerOutletTemplateTypeLabelNEMAL650R PowerOutletTemplateTypeLabel = "NEMA L6-50R" - PowerOutletTemplateTypeLabelPNE4H PowerOutletTemplateTypeLabel = "P+N+E 4H" - PowerOutletTemplateTypeLabelPNE6H PowerOutletTemplateTypeLabel = "P+N+E 6H" - PowerOutletTemplateTypeLabelPNE9H PowerOutletTemplateTypeLabel = "P+N+E 9H" - PowerOutletTemplateTypeLabelUSBMicroB PowerOutletTemplateTypeLabel = "USB Micro B" - PowerOutletTemplateTypeLabelUSBTypeA PowerOutletTemplateTypeLabel = "USB Type A" - PowerOutletTemplateTypeLabelUSBTypeC PowerOutletTemplateTypeLabel = "USB Type C" -) - -// Defines values for PowerOutletTemplateTypeValue. -const ( - PowerOutletTemplateTypeValueCS6360C PowerOutletTemplateTypeValue = "CS6360C" - PowerOutletTemplateTypeValueCS6364C PowerOutletTemplateTypeValue = "CS6364C" - PowerOutletTemplateTypeValueCS8164C PowerOutletTemplateTypeValue = "CS8164C" - PowerOutletTemplateTypeValueCS8264C PowerOutletTemplateTypeValue = "CS8264C" - PowerOutletTemplateTypeValueCS8364C PowerOutletTemplateTypeValue = "CS8364C" - PowerOutletTemplateTypeValueCS8464C PowerOutletTemplateTypeValue = "CS8464C" - PowerOutletTemplateTypeValueHdotCx PowerOutletTemplateTypeValue = "hdot-cx" - PowerOutletTemplateTypeValueIec603092pE4h PowerOutletTemplateTypeValue = "iec-60309-2p-e-4h" - PowerOutletTemplateTypeValueIec603092pE6h PowerOutletTemplateTypeValue = "iec-60309-2p-e-6h" - PowerOutletTemplateTypeValueIec603092pE9h PowerOutletTemplateTypeValue = "iec-60309-2p-e-9h" - PowerOutletTemplateTypeValueIec603093pE4h PowerOutletTemplateTypeValue = "iec-60309-3p-e-4h" - PowerOutletTemplateTypeValueIec603093pE6h PowerOutletTemplateTypeValue = "iec-60309-3p-e-6h" - PowerOutletTemplateTypeValueIec603093pE9h PowerOutletTemplateTypeValue = "iec-60309-3p-e-9h" - PowerOutletTemplateTypeValueIec603093pNE4h PowerOutletTemplateTypeValue = "iec-60309-3p-n-e-4h" - PowerOutletTemplateTypeValueIec603093pNE6h PowerOutletTemplateTypeValue = "iec-60309-3p-n-e-6h" - PowerOutletTemplateTypeValueIec603093pNE9h PowerOutletTemplateTypeValue = "iec-60309-3p-n-e-9h" - PowerOutletTemplateTypeValueIec60309PNE4h PowerOutletTemplateTypeValue = "iec-60309-p-n-e-4h" - PowerOutletTemplateTypeValueIec60309PNE6h PowerOutletTemplateTypeValue = "iec-60309-p-n-e-6h" - PowerOutletTemplateTypeValueIec60309PNE9h PowerOutletTemplateTypeValue = "iec-60309-p-n-e-9h" - PowerOutletTemplateTypeValueIec60320C13 PowerOutletTemplateTypeValue = "iec-60320-c13" - PowerOutletTemplateTypeValueIec60320C15 PowerOutletTemplateTypeValue = "iec-60320-c15" - PowerOutletTemplateTypeValueIec60320C19 PowerOutletTemplateTypeValue = "iec-60320-c19" - PowerOutletTemplateTypeValueIec60320C5 PowerOutletTemplateTypeValue = "iec-60320-c5" - PowerOutletTemplateTypeValueIec60320C7 PowerOutletTemplateTypeValue = "iec-60320-c7" - PowerOutletTemplateTypeValueItaE PowerOutletTemplateTypeValue = "ita-e" - PowerOutletTemplateTypeValueItaF PowerOutletTemplateTypeValue = "ita-f" - PowerOutletTemplateTypeValueItaG PowerOutletTemplateTypeValue = "ita-g" - PowerOutletTemplateTypeValueItaH PowerOutletTemplateTypeValue = "ita-h" - PowerOutletTemplateTypeValueItaI PowerOutletTemplateTypeValue = "ita-i" - PowerOutletTemplateTypeValueItaJ PowerOutletTemplateTypeValue = "ita-j" - PowerOutletTemplateTypeValueItaK PowerOutletTemplateTypeValue = "ita-k" - PowerOutletTemplateTypeValueItaL PowerOutletTemplateTypeValue = "ita-l" - PowerOutletTemplateTypeValueItaM PowerOutletTemplateTypeValue = "ita-m" - PowerOutletTemplateTypeValueItaN PowerOutletTemplateTypeValue = "ita-n" - PowerOutletTemplateTypeValueItaO PowerOutletTemplateTypeValue = "ita-o" - PowerOutletTemplateTypeValueNema1030r PowerOutletTemplateTypeValue = "nema-10-30r" - PowerOutletTemplateTypeValueNema1050r PowerOutletTemplateTypeValue = "nema-10-50r" - PowerOutletTemplateTypeValueNema115r PowerOutletTemplateTypeValue = "nema-1-15r" - PowerOutletTemplateTypeValueNema1420r PowerOutletTemplateTypeValue = "nema-14-20r" - PowerOutletTemplateTypeValueNema1430r PowerOutletTemplateTypeValue = "nema-14-30r" - PowerOutletTemplateTypeValueNema1450r PowerOutletTemplateTypeValue = "nema-14-50r" - PowerOutletTemplateTypeValueNema1460r PowerOutletTemplateTypeValue = "nema-14-60r" - PowerOutletTemplateTypeValueNema1515r PowerOutletTemplateTypeValue = "nema-15-15r" - PowerOutletTemplateTypeValueNema1520r PowerOutletTemplateTypeValue = "nema-15-20r" - PowerOutletTemplateTypeValueNema1530r PowerOutletTemplateTypeValue = "nema-15-30r" - PowerOutletTemplateTypeValueNema1550r PowerOutletTemplateTypeValue = "nema-15-50r" - PowerOutletTemplateTypeValueNema1560r PowerOutletTemplateTypeValue = "nema-15-60r" - PowerOutletTemplateTypeValueNema515r PowerOutletTemplateTypeValue = "nema-5-15r" - PowerOutletTemplateTypeValueNema520r PowerOutletTemplateTypeValue = "nema-5-20r" - PowerOutletTemplateTypeValueNema530r PowerOutletTemplateTypeValue = "nema-5-30r" - PowerOutletTemplateTypeValueNema550r PowerOutletTemplateTypeValue = "nema-5-50r" - PowerOutletTemplateTypeValueNema615r PowerOutletTemplateTypeValue = "nema-6-15r" - PowerOutletTemplateTypeValueNema620r PowerOutletTemplateTypeValue = "nema-6-20r" - PowerOutletTemplateTypeValueNema630r PowerOutletTemplateTypeValue = "nema-6-30r" - PowerOutletTemplateTypeValueNema650r PowerOutletTemplateTypeValue = "nema-6-50r" - PowerOutletTemplateTypeValueNemaL1030r PowerOutletTemplateTypeValue = "nema-l10-30r" - PowerOutletTemplateTypeValueNemaL115r PowerOutletTemplateTypeValue = "nema-l1-15r" - PowerOutletTemplateTypeValueNemaL1420r PowerOutletTemplateTypeValue = "nema-l14-20r" - PowerOutletTemplateTypeValueNemaL1430r PowerOutletTemplateTypeValue = "nema-l14-30r" - PowerOutletTemplateTypeValueNemaL1450r PowerOutletTemplateTypeValue = "nema-l14-50r" - PowerOutletTemplateTypeValueNemaL1460r PowerOutletTemplateTypeValue = "nema-l14-60r" - PowerOutletTemplateTypeValueNemaL1520r PowerOutletTemplateTypeValue = "nema-l15-20r" - PowerOutletTemplateTypeValueNemaL1530r PowerOutletTemplateTypeValue = "nema-l15-30r" - PowerOutletTemplateTypeValueNemaL1550r PowerOutletTemplateTypeValue = "nema-l15-50r" - PowerOutletTemplateTypeValueNemaL1560r PowerOutletTemplateTypeValue = "nema-l15-60r" - PowerOutletTemplateTypeValueNemaL2120r PowerOutletTemplateTypeValue = "nema-l21-20r" - PowerOutletTemplateTypeValueNemaL2130r PowerOutletTemplateTypeValue = "nema-l21-30r" - PowerOutletTemplateTypeValueNemaL515r PowerOutletTemplateTypeValue = "nema-l5-15r" - PowerOutletTemplateTypeValueNemaL520r PowerOutletTemplateTypeValue = "nema-l5-20r" - PowerOutletTemplateTypeValueNemaL530r PowerOutletTemplateTypeValue = "nema-l5-30r" - PowerOutletTemplateTypeValueNemaL550r PowerOutletTemplateTypeValue = "nema-l5-50r" - PowerOutletTemplateTypeValueNemaL615r PowerOutletTemplateTypeValue = "nema-l6-15r" - PowerOutletTemplateTypeValueNemaL620r PowerOutletTemplateTypeValue = "nema-l6-20r" - PowerOutletTemplateTypeValueNemaL630r PowerOutletTemplateTypeValue = "nema-l6-30r" - PowerOutletTemplateTypeValueNemaL650r PowerOutletTemplateTypeValue = "nema-l6-50r" - PowerOutletTemplateTypeValueUsbA PowerOutletTemplateTypeValue = "usb-a" - PowerOutletTemplateTypeValueUsbC PowerOutletTemplateTypeValue = "usb-c" - PowerOutletTemplateTypeValueUsbMicroB PowerOutletTemplateTypeValue = "usb-micro-b" -) - -// Defines values for PowerOutletTypeChoices. -const ( - PowerOutletTypeChoicesCS6360C PowerOutletTypeChoices = "CS6360C" - PowerOutletTypeChoicesCS6364C PowerOutletTypeChoices = "CS6364C" - PowerOutletTypeChoicesCS8164C PowerOutletTypeChoices = "CS8164C" - PowerOutletTypeChoicesCS8264C PowerOutletTypeChoices = "CS8264C" - PowerOutletTypeChoicesCS8364C PowerOutletTypeChoices = "CS8364C" - PowerOutletTypeChoicesCS8464C PowerOutletTypeChoices = "CS8464C" - PowerOutletTypeChoicesHdotCx PowerOutletTypeChoices = "hdot-cx" - PowerOutletTypeChoicesIec603092pE4h PowerOutletTypeChoices = "iec-60309-2p-e-4h" - PowerOutletTypeChoicesIec603092pE6h PowerOutletTypeChoices = "iec-60309-2p-e-6h" - PowerOutletTypeChoicesIec603092pE9h PowerOutletTypeChoices = "iec-60309-2p-e-9h" - PowerOutletTypeChoicesIec603093pE4h PowerOutletTypeChoices = "iec-60309-3p-e-4h" - PowerOutletTypeChoicesIec603093pE6h PowerOutletTypeChoices = "iec-60309-3p-e-6h" - PowerOutletTypeChoicesIec603093pE9h PowerOutletTypeChoices = "iec-60309-3p-e-9h" - PowerOutletTypeChoicesIec603093pNE4h PowerOutletTypeChoices = "iec-60309-3p-n-e-4h" - PowerOutletTypeChoicesIec603093pNE6h PowerOutletTypeChoices = "iec-60309-3p-n-e-6h" - PowerOutletTypeChoicesIec603093pNE9h PowerOutletTypeChoices = "iec-60309-3p-n-e-9h" - PowerOutletTypeChoicesIec60309PNE4h PowerOutletTypeChoices = "iec-60309-p-n-e-4h" - PowerOutletTypeChoicesIec60309PNE6h PowerOutletTypeChoices = "iec-60309-p-n-e-6h" - PowerOutletTypeChoicesIec60309PNE9h PowerOutletTypeChoices = "iec-60309-p-n-e-9h" - PowerOutletTypeChoicesIec60320C13 PowerOutletTypeChoices = "iec-60320-c13" - PowerOutletTypeChoicesIec60320C15 PowerOutletTypeChoices = "iec-60320-c15" - PowerOutletTypeChoicesIec60320C19 PowerOutletTypeChoices = "iec-60320-c19" - PowerOutletTypeChoicesIec60320C5 PowerOutletTypeChoices = "iec-60320-c5" - PowerOutletTypeChoicesIec60320C7 PowerOutletTypeChoices = "iec-60320-c7" - PowerOutletTypeChoicesItaE PowerOutletTypeChoices = "ita-e" - PowerOutletTypeChoicesItaF PowerOutletTypeChoices = "ita-f" - PowerOutletTypeChoicesItaG PowerOutletTypeChoices = "ita-g" - PowerOutletTypeChoicesItaH PowerOutletTypeChoices = "ita-h" - PowerOutletTypeChoicesItaI PowerOutletTypeChoices = "ita-i" - PowerOutletTypeChoicesItaJ PowerOutletTypeChoices = "ita-j" - PowerOutletTypeChoicesItaK PowerOutletTypeChoices = "ita-k" - PowerOutletTypeChoicesItaL PowerOutletTypeChoices = "ita-l" - PowerOutletTypeChoicesItaM PowerOutletTypeChoices = "ita-m" - PowerOutletTypeChoicesItaN PowerOutletTypeChoices = "ita-n" - PowerOutletTypeChoicesItaO PowerOutletTypeChoices = "ita-o" - PowerOutletTypeChoicesNema1030r PowerOutletTypeChoices = "nema-10-30r" - PowerOutletTypeChoicesNema1050r PowerOutletTypeChoices = "nema-10-50r" - PowerOutletTypeChoicesNema115r PowerOutletTypeChoices = "nema-1-15r" - PowerOutletTypeChoicesNema1420r PowerOutletTypeChoices = "nema-14-20r" - PowerOutletTypeChoicesNema1430r PowerOutletTypeChoices = "nema-14-30r" - PowerOutletTypeChoicesNema1450r PowerOutletTypeChoices = "nema-14-50r" - PowerOutletTypeChoicesNema1460r PowerOutletTypeChoices = "nema-14-60r" - PowerOutletTypeChoicesNema1515r PowerOutletTypeChoices = "nema-15-15r" - PowerOutletTypeChoicesNema1520r PowerOutletTypeChoices = "nema-15-20r" - PowerOutletTypeChoicesNema1530r PowerOutletTypeChoices = "nema-15-30r" - PowerOutletTypeChoicesNema1550r PowerOutletTypeChoices = "nema-15-50r" - PowerOutletTypeChoicesNema1560r PowerOutletTypeChoices = "nema-15-60r" - PowerOutletTypeChoicesNema515r PowerOutletTypeChoices = "nema-5-15r" - PowerOutletTypeChoicesNema520r PowerOutletTypeChoices = "nema-5-20r" - PowerOutletTypeChoicesNema530r PowerOutletTypeChoices = "nema-5-30r" - PowerOutletTypeChoicesNema550r PowerOutletTypeChoices = "nema-5-50r" - PowerOutletTypeChoicesNema615r PowerOutletTypeChoices = "nema-6-15r" - PowerOutletTypeChoicesNema620r PowerOutletTypeChoices = "nema-6-20r" - PowerOutletTypeChoicesNema630r PowerOutletTypeChoices = "nema-6-30r" - PowerOutletTypeChoicesNema650r PowerOutletTypeChoices = "nema-6-50r" - PowerOutletTypeChoicesNemaL1030r PowerOutletTypeChoices = "nema-l10-30r" - PowerOutletTypeChoicesNemaL115r PowerOutletTypeChoices = "nema-l1-15r" - PowerOutletTypeChoicesNemaL1420r PowerOutletTypeChoices = "nema-l14-20r" - PowerOutletTypeChoicesNemaL1430r PowerOutletTypeChoices = "nema-l14-30r" - PowerOutletTypeChoicesNemaL1450r PowerOutletTypeChoices = "nema-l14-50r" - PowerOutletTypeChoicesNemaL1460r PowerOutletTypeChoices = "nema-l14-60r" - PowerOutletTypeChoicesNemaL1520r PowerOutletTypeChoices = "nema-l15-20r" - PowerOutletTypeChoicesNemaL1530r PowerOutletTypeChoices = "nema-l15-30r" - PowerOutletTypeChoicesNemaL1550r PowerOutletTypeChoices = "nema-l15-50r" - PowerOutletTypeChoicesNemaL1560r PowerOutletTypeChoices = "nema-l15-60r" - PowerOutletTypeChoicesNemaL2120r PowerOutletTypeChoices = "nema-l21-20r" - PowerOutletTypeChoicesNemaL2130r PowerOutletTypeChoices = "nema-l21-30r" - PowerOutletTypeChoicesNemaL515r PowerOutletTypeChoices = "nema-l5-15r" - PowerOutletTypeChoicesNemaL520r PowerOutletTypeChoices = "nema-l5-20r" - PowerOutletTypeChoicesNemaL530r PowerOutletTypeChoices = "nema-l5-30r" - PowerOutletTypeChoicesNemaL550r PowerOutletTypeChoices = "nema-l5-50r" - PowerOutletTypeChoicesNemaL615r PowerOutletTypeChoices = "nema-l6-15r" - PowerOutletTypeChoicesNemaL620r PowerOutletTypeChoices = "nema-l6-20r" - PowerOutletTypeChoicesNemaL630r PowerOutletTypeChoices = "nema-l6-30r" - PowerOutletTypeChoicesNemaL650r PowerOutletTypeChoices = "nema-l6-50r" - PowerOutletTypeChoicesUsbA PowerOutletTypeChoices = "usb-a" - PowerOutletTypeChoicesUsbC PowerOutletTypeChoices = "usb-c" - PowerOutletTypeChoicesUsbMicroB PowerOutletTypeChoices = "usb-micro-b" -) - -// Defines values for PowerPortTypeLabel. -const ( - PowerPortTypeLabelC14 PowerPortTypeLabel = "C14" - PowerPortTypeLabelC16 PowerPortTypeLabel = "C16" - PowerPortTypeLabelC20 PowerPortTypeLabel = "C20" - PowerPortTypeLabelC6 PowerPortTypeLabel = "C6" - PowerPortTypeLabelC8 PowerPortTypeLabel = "C8" - PowerPortTypeLabelCS6361C PowerPortTypeLabel = "CS6361C" - PowerPortTypeLabelCS6365C PowerPortTypeLabel = "CS6365C" - PowerPortTypeLabelCS8165C PowerPortTypeLabel = "CS8165C" - PowerPortTypeLabelCS8265C PowerPortTypeLabel = "CS8265C" - PowerPortTypeLabelCS8365C PowerPortTypeLabel = "CS8365C" - PowerPortTypeLabelCS8465C PowerPortTypeLabel = "CS8465C" - PowerPortTypeLabelITATypeECEE75 PowerPortTypeLabel = "ITA Type E (CEE 7/5)" - PowerPortTypeLabelITATypeEFCEE77 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)" - PowerPortTypeLabelITATypeFCEE74 PowerPortTypeLabel = "ITA Type F (CEE 7/4)" - PowerPortTypeLabelITATypeGBS1363 PowerPortTypeLabel = "ITA Type G (BS 1363)" - PowerPortTypeLabelITATypeH PowerPortTypeLabel = "ITA Type H" - PowerPortTypeLabelITATypeI PowerPortTypeLabel = "ITA Type I" - PowerPortTypeLabelITATypeJ PowerPortTypeLabel = "ITA Type J" - PowerPortTypeLabelITATypeK PowerPortTypeLabel = "ITA Type K" - PowerPortTypeLabelITATypeLCEI2350 PowerPortTypeLabel = "ITA Type L (CEI 23-50)" - PowerPortTypeLabelITATypeMBS546 PowerPortTypeLabel = "ITA Type M (BS 546)" - PowerPortTypeLabelITATypeN PowerPortTypeLabel = "ITA Type N" - PowerPortTypeLabelITATypeO PowerPortTypeLabel = "ITA Type O" - PowerPortTypeLabelN2PE4H PowerPortTypeLabel = "2P+E 4H" - PowerPortTypeLabelN2PE6H PowerPortTypeLabel = "2P+E 6H" - PowerPortTypeLabelN2PE9H PowerPortTypeLabel = "2P+E 9H" - PowerPortTypeLabelN3PE4H PowerPortTypeLabel = "3P+E 4H" - PowerPortTypeLabelN3PE6H PowerPortTypeLabel = "3P+E 6H" - PowerPortTypeLabelN3PE9H PowerPortTypeLabel = "3P+E 9H" - PowerPortTypeLabelN3PNE4H PowerPortTypeLabel = "3P+N+E 4H" - PowerPortTypeLabelN3PNE6H PowerPortTypeLabel = "3P+N+E 6H" - PowerPortTypeLabelN3PNE9H PowerPortTypeLabel = "3P+N+E 9H" - PowerPortTypeLabelNEMA1030P PowerPortTypeLabel = "NEMA 10-30P" - PowerPortTypeLabelNEMA1050P PowerPortTypeLabel = "NEMA 10-50P" - PowerPortTypeLabelNEMA115P PowerPortTypeLabel = "NEMA 1-15P" - PowerPortTypeLabelNEMA1420P PowerPortTypeLabel = "NEMA 14-20P" - PowerPortTypeLabelNEMA1430P PowerPortTypeLabel = "NEMA 14-30P" - PowerPortTypeLabelNEMA1450P PowerPortTypeLabel = "NEMA 14-50P" - PowerPortTypeLabelNEMA1460P PowerPortTypeLabel = "NEMA 14-60P" - PowerPortTypeLabelNEMA1515P PowerPortTypeLabel = "NEMA 15-15P" - PowerPortTypeLabelNEMA1520P PowerPortTypeLabel = "NEMA 15-20P" - PowerPortTypeLabelNEMA1530P PowerPortTypeLabel = "NEMA 15-30P" - PowerPortTypeLabelNEMA1550P PowerPortTypeLabel = "NEMA 15-50P" - PowerPortTypeLabelNEMA1560P PowerPortTypeLabel = "NEMA 15-60P" - PowerPortTypeLabelNEMA515P PowerPortTypeLabel = "NEMA 5-15P" - PowerPortTypeLabelNEMA520P PowerPortTypeLabel = "NEMA 5-20P" - PowerPortTypeLabelNEMA530P PowerPortTypeLabel = "NEMA 5-30P" - PowerPortTypeLabelNEMA550P PowerPortTypeLabel = "NEMA 5-50P" - PowerPortTypeLabelNEMA615P PowerPortTypeLabel = "NEMA 6-15P" - PowerPortTypeLabelNEMA620P PowerPortTypeLabel = "NEMA 6-20P" - PowerPortTypeLabelNEMA630P PowerPortTypeLabel = "NEMA 6-30P" - PowerPortTypeLabelNEMA650P PowerPortTypeLabel = "NEMA 6-50P" - PowerPortTypeLabelNEMAL1030P PowerPortTypeLabel = "NEMA L10-30P" - PowerPortTypeLabelNEMAL115P PowerPortTypeLabel = "NEMA L1-15P" - PowerPortTypeLabelNEMAL1420P PowerPortTypeLabel = "NEMA L14-20P" - PowerPortTypeLabelNEMAL1430P PowerPortTypeLabel = "NEMA L14-30P" - PowerPortTypeLabelNEMAL1450P PowerPortTypeLabel = "NEMA L14-50P" - PowerPortTypeLabelNEMAL1460P PowerPortTypeLabel = "NEMA L14-60P" - PowerPortTypeLabelNEMAL1520P PowerPortTypeLabel = "NEMA L15-20P" - PowerPortTypeLabelNEMAL1530P PowerPortTypeLabel = "NEMA L15-30P" - PowerPortTypeLabelNEMAL1550P PowerPortTypeLabel = "NEMA L15-50P" - PowerPortTypeLabelNEMAL1560P PowerPortTypeLabel = "NEMA L15-60P" - PowerPortTypeLabelNEMAL2120P PowerPortTypeLabel = "NEMA L21-20P" - PowerPortTypeLabelNEMAL2130P PowerPortTypeLabel = "NEMA L21-30P" - PowerPortTypeLabelNEMAL515P PowerPortTypeLabel = "NEMA L5-15P" - PowerPortTypeLabelNEMAL520P PowerPortTypeLabel = "NEMA L5-20P" - PowerPortTypeLabelNEMAL530P PowerPortTypeLabel = "NEMA L5-30P" - PowerPortTypeLabelNEMAL550P PowerPortTypeLabel = "NEMA L5-50P" - PowerPortTypeLabelNEMAL615P PowerPortTypeLabel = "NEMA L6-15P" - PowerPortTypeLabelNEMAL620P PowerPortTypeLabel = "NEMA L6-20P" - PowerPortTypeLabelNEMAL630P PowerPortTypeLabel = "NEMA L6-30P" - PowerPortTypeLabelNEMAL650P PowerPortTypeLabel = "NEMA L6-50P" - PowerPortTypeLabelPNE4H PowerPortTypeLabel = "P+N+E 4H" - PowerPortTypeLabelPNE6H PowerPortTypeLabel = "P+N+E 6H" - PowerPortTypeLabelPNE9H PowerPortTypeLabel = "P+N+E 9H" - PowerPortTypeLabelUSB30MicroB PowerPortTypeLabel = "USB 3.0 Micro B" - PowerPortTypeLabelUSB30TypeB PowerPortTypeLabel = "USB 3.0 Type B" - PowerPortTypeLabelUSBMicroA PowerPortTypeLabel = "USB Micro A" - PowerPortTypeLabelUSBMicroB PowerPortTypeLabel = "USB Micro B" - PowerPortTypeLabelUSBMiniA PowerPortTypeLabel = "USB Mini A" - PowerPortTypeLabelUSBMiniB PowerPortTypeLabel = "USB Mini B" - PowerPortTypeLabelUSBTypeA PowerPortTypeLabel = "USB Type A" - PowerPortTypeLabelUSBTypeB PowerPortTypeLabel = "USB Type B" - PowerPortTypeLabelUSBTypeC PowerPortTypeLabel = "USB Type C" -) - -// Defines values for PowerPortTypeValue. -const ( - PowerPortTypeValueCs6361c PowerPortTypeValue = "cs6361c" - PowerPortTypeValueCs6365c PowerPortTypeValue = "cs6365c" - PowerPortTypeValueCs8165c PowerPortTypeValue = "cs8165c" - PowerPortTypeValueCs8265c PowerPortTypeValue = "cs8265c" - PowerPortTypeValueCs8365c PowerPortTypeValue = "cs8365c" - PowerPortTypeValueCs8465c PowerPortTypeValue = "cs8465c" - PowerPortTypeValueIec603092pE4h PowerPortTypeValue = "iec-60309-2p-e-4h" - PowerPortTypeValueIec603092pE6h PowerPortTypeValue = "iec-60309-2p-e-6h" - PowerPortTypeValueIec603092pE9h PowerPortTypeValue = "iec-60309-2p-e-9h" - PowerPortTypeValueIec603093pE4h PowerPortTypeValue = "iec-60309-3p-e-4h" - PowerPortTypeValueIec603093pE6h PowerPortTypeValue = "iec-60309-3p-e-6h" - PowerPortTypeValueIec603093pE9h PowerPortTypeValue = "iec-60309-3p-e-9h" - PowerPortTypeValueIec603093pNE4h PowerPortTypeValue = "iec-60309-3p-n-e-4h" - PowerPortTypeValueIec603093pNE6h PowerPortTypeValue = "iec-60309-3p-n-e-6h" - PowerPortTypeValueIec603093pNE9h PowerPortTypeValue = "iec-60309-3p-n-e-9h" - PowerPortTypeValueIec60309PNE4h PowerPortTypeValue = "iec-60309-p-n-e-4h" - PowerPortTypeValueIec60309PNE6h PowerPortTypeValue = "iec-60309-p-n-e-6h" - PowerPortTypeValueIec60309PNE9h PowerPortTypeValue = "iec-60309-p-n-e-9h" - PowerPortTypeValueIec60320C14 PowerPortTypeValue = "iec-60320-c14" - PowerPortTypeValueIec60320C16 PowerPortTypeValue = "iec-60320-c16" - PowerPortTypeValueIec60320C20 PowerPortTypeValue = "iec-60320-c20" - PowerPortTypeValueIec60320C6 PowerPortTypeValue = "iec-60320-c6" - PowerPortTypeValueIec60320C8 PowerPortTypeValue = "iec-60320-c8" - PowerPortTypeValueItaE PowerPortTypeValue = "ita-e" - PowerPortTypeValueItaEf PowerPortTypeValue = "ita-ef" - PowerPortTypeValueItaF PowerPortTypeValue = "ita-f" - PowerPortTypeValueItaG PowerPortTypeValue = "ita-g" - PowerPortTypeValueItaH PowerPortTypeValue = "ita-h" - PowerPortTypeValueItaI PowerPortTypeValue = "ita-i" - PowerPortTypeValueItaJ PowerPortTypeValue = "ita-j" - PowerPortTypeValueItaK PowerPortTypeValue = "ita-k" - PowerPortTypeValueItaL PowerPortTypeValue = "ita-l" - PowerPortTypeValueItaM PowerPortTypeValue = "ita-m" - PowerPortTypeValueItaN PowerPortTypeValue = "ita-n" - PowerPortTypeValueItaO PowerPortTypeValue = "ita-o" - PowerPortTypeValueNema1030p PowerPortTypeValue = "nema-10-30p" - PowerPortTypeValueNema1050p PowerPortTypeValue = "nema-10-50p" - PowerPortTypeValueNema115p PowerPortTypeValue = "nema-1-15p" - PowerPortTypeValueNema1420p PowerPortTypeValue = "nema-14-20p" - PowerPortTypeValueNema1430p PowerPortTypeValue = "nema-14-30p" - PowerPortTypeValueNema1450p PowerPortTypeValue = "nema-14-50p" - PowerPortTypeValueNema1460p PowerPortTypeValue = "nema-14-60p" - PowerPortTypeValueNema1515p PowerPortTypeValue = "nema-15-15p" - PowerPortTypeValueNema1520p PowerPortTypeValue = "nema-15-20p" - PowerPortTypeValueNema1530p PowerPortTypeValue = "nema-15-30p" - PowerPortTypeValueNema1550p PowerPortTypeValue = "nema-15-50p" - PowerPortTypeValueNema1560p PowerPortTypeValue = "nema-15-60p" - PowerPortTypeValueNema515p PowerPortTypeValue = "nema-5-15p" - PowerPortTypeValueNema520p PowerPortTypeValue = "nema-5-20p" - PowerPortTypeValueNema530p PowerPortTypeValue = "nema-5-30p" - PowerPortTypeValueNema550p PowerPortTypeValue = "nema-5-50p" - PowerPortTypeValueNema615p PowerPortTypeValue = "nema-6-15p" - PowerPortTypeValueNema620p PowerPortTypeValue = "nema-6-20p" - PowerPortTypeValueNema630p PowerPortTypeValue = "nema-6-30p" - PowerPortTypeValueNema650p PowerPortTypeValue = "nema-6-50p" - PowerPortTypeValueNemaL1030p PowerPortTypeValue = "nema-l10-30p" - PowerPortTypeValueNemaL115p PowerPortTypeValue = "nema-l1-15p" - PowerPortTypeValueNemaL1420p PowerPortTypeValue = "nema-l14-20p" - PowerPortTypeValueNemaL1430p PowerPortTypeValue = "nema-l14-30p" - PowerPortTypeValueNemaL1450p PowerPortTypeValue = "nema-l14-50p" - PowerPortTypeValueNemaL1460p PowerPortTypeValue = "nema-l14-60p" - PowerPortTypeValueNemaL1520p PowerPortTypeValue = "nema-l15-20p" - PowerPortTypeValueNemaL1530p PowerPortTypeValue = "nema-l15-30p" - PowerPortTypeValueNemaL1550p PowerPortTypeValue = "nema-l15-50p" - PowerPortTypeValueNemaL1560p PowerPortTypeValue = "nema-l15-60p" - PowerPortTypeValueNemaL2120p PowerPortTypeValue = "nema-l21-20p" - PowerPortTypeValueNemaL2130p PowerPortTypeValue = "nema-l21-30p" - PowerPortTypeValueNemaL515p PowerPortTypeValue = "nema-l5-15p" - PowerPortTypeValueNemaL520p PowerPortTypeValue = "nema-l5-20p" - PowerPortTypeValueNemaL530p PowerPortTypeValue = "nema-l5-30p" - PowerPortTypeValueNemaL550p PowerPortTypeValue = "nema-l5-50p" - PowerPortTypeValueNemaL615p PowerPortTypeValue = "nema-l6-15p" - PowerPortTypeValueNemaL620p PowerPortTypeValue = "nema-l6-20p" - PowerPortTypeValueNemaL630p PowerPortTypeValue = "nema-l6-30p" - PowerPortTypeValueNemaL650p PowerPortTypeValue = "nema-l6-50p" - PowerPortTypeValueUsb3B PowerPortTypeValue = "usb-3-b" - PowerPortTypeValueUsb3MicroB PowerPortTypeValue = "usb-3-micro-b" - PowerPortTypeValueUsbA PowerPortTypeValue = "usb-a" - PowerPortTypeValueUsbB PowerPortTypeValue = "usb-b" - PowerPortTypeValueUsbC PowerPortTypeValue = "usb-c" - PowerPortTypeValueUsbMicroA PowerPortTypeValue = "usb-micro-a" - PowerPortTypeValueUsbMicroB PowerPortTypeValue = "usb-micro-b" - PowerPortTypeValueUsbMiniA PowerPortTypeValue = "usb-mini-a" - PowerPortTypeValueUsbMiniB PowerPortTypeValue = "usb-mini-b" -) - -// Defines values for PowerPortTemplateTypeLabel. -const ( - PowerPortTemplateTypeLabelC14 PowerPortTemplateTypeLabel = "C14" - PowerPortTemplateTypeLabelC16 PowerPortTemplateTypeLabel = "C16" - PowerPortTemplateTypeLabelC20 PowerPortTemplateTypeLabel = "C20" - PowerPortTemplateTypeLabelC6 PowerPortTemplateTypeLabel = "C6" - PowerPortTemplateTypeLabelC8 PowerPortTemplateTypeLabel = "C8" - PowerPortTemplateTypeLabelCS6361C PowerPortTemplateTypeLabel = "CS6361C" - PowerPortTemplateTypeLabelCS6365C PowerPortTemplateTypeLabel = "CS6365C" - PowerPortTemplateTypeLabelCS8165C PowerPortTemplateTypeLabel = "CS8165C" - PowerPortTemplateTypeLabelCS8265C PowerPortTemplateTypeLabel = "CS8265C" - PowerPortTemplateTypeLabelCS8365C PowerPortTemplateTypeLabel = "CS8365C" - PowerPortTemplateTypeLabelCS8465C PowerPortTemplateTypeLabel = "CS8465C" - PowerPortTemplateTypeLabelITATypeECEE75 PowerPortTemplateTypeLabel = "ITA Type E (CEE 7/5)" - PowerPortTemplateTypeLabelITATypeEFCEE77 PowerPortTemplateTypeLabel = "ITA Type E/F (CEE 7/7)" - PowerPortTemplateTypeLabelITATypeFCEE74 PowerPortTemplateTypeLabel = "ITA Type F (CEE 7/4)" - PowerPortTemplateTypeLabelITATypeGBS1363 PowerPortTemplateTypeLabel = "ITA Type G (BS 1363)" - PowerPortTemplateTypeLabelITATypeH PowerPortTemplateTypeLabel = "ITA Type H" - PowerPortTemplateTypeLabelITATypeI PowerPortTemplateTypeLabel = "ITA Type I" - PowerPortTemplateTypeLabelITATypeJ PowerPortTemplateTypeLabel = "ITA Type J" - PowerPortTemplateTypeLabelITATypeK PowerPortTemplateTypeLabel = "ITA Type K" - PowerPortTemplateTypeLabelITATypeLCEI2350 PowerPortTemplateTypeLabel = "ITA Type L (CEI 23-50)" - PowerPortTemplateTypeLabelITATypeMBS546 PowerPortTemplateTypeLabel = "ITA Type M (BS 546)" - PowerPortTemplateTypeLabelITATypeN PowerPortTemplateTypeLabel = "ITA Type N" - PowerPortTemplateTypeLabelITATypeO PowerPortTemplateTypeLabel = "ITA Type O" - PowerPortTemplateTypeLabelN2PE4H PowerPortTemplateTypeLabel = "2P+E 4H" - PowerPortTemplateTypeLabelN2PE6H PowerPortTemplateTypeLabel = "2P+E 6H" - PowerPortTemplateTypeLabelN2PE9H PowerPortTemplateTypeLabel = "2P+E 9H" - PowerPortTemplateTypeLabelN3PE4H PowerPortTemplateTypeLabel = "3P+E 4H" - PowerPortTemplateTypeLabelN3PE6H PowerPortTemplateTypeLabel = "3P+E 6H" - PowerPortTemplateTypeLabelN3PE9H PowerPortTemplateTypeLabel = "3P+E 9H" - PowerPortTemplateTypeLabelN3PNE4H PowerPortTemplateTypeLabel = "3P+N+E 4H" - PowerPortTemplateTypeLabelN3PNE6H PowerPortTemplateTypeLabel = "3P+N+E 6H" - PowerPortTemplateTypeLabelN3PNE9H PowerPortTemplateTypeLabel = "3P+N+E 9H" - PowerPortTemplateTypeLabelNEMA1030P PowerPortTemplateTypeLabel = "NEMA 10-30P" - PowerPortTemplateTypeLabelNEMA1050P PowerPortTemplateTypeLabel = "NEMA 10-50P" - PowerPortTemplateTypeLabelNEMA115P PowerPortTemplateTypeLabel = "NEMA 1-15P" - PowerPortTemplateTypeLabelNEMA1420P PowerPortTemplateTypeLabel = "NEMA 14-20P" - PowerPortTemplateTypeLabelNEMA1430P PowerPortTemplateTypeLabel = "NEMA 14-30P" - PowerPortTemplateTypeLabelNEMA1450P PowerPortTemplateTypeLabel = "NEMA 14-50P" - PowerPortTemplateTypeLabelNEMA1460P PowerPortTemplateTypeLabel = "NEMA 14-60P" - PowerPortTemplateTypeLabelNEMA1515P PowerPortTemplateTypeLabel = "NEMA 15-15P" - PowerPortTemplateTypeLabelNEMA1520P PowerPortTemplateTypeLabel = "NEMA 15-20P" - PowerPortTemplateTypeLabelNEMA1530P PowerPortTemplateTypeLabel = "NEMA 15-30P" - PowerPortTemplateTypeLabelNEMA1550P PowerPortTemplateTypeLabel = "NEMA 15-50P" - PowerPortTemplateTypeLabelNEMA1560P PowerPortTemplateTypeLabel = "NEMA 15-60P" - PowerPortTemplateTypeLabelNEMA515P PowerPortTemplateTypeLabel = "NEMA 5-15P" - PowerPortTemplateTypeLabelNEMA520P PowerPortTemplateTypeLabel = "NEMA 5-20P" - PowerPortTemplateTypeLabelNEMA530P PowerPortTemplateTypeLabel = "NEMA 5-30P" - PowerPortTemplateTypeLabelNEMA550P PowerPortTemplateTypeLabel = "NEMA 5-50P" - PowerPortTemplateTypeLabelNEMA615P PowerPortTemplateTypeLabel = "NEMA 6-15P" - PowerPortTemplateTypeLabelNEMA620P PowerPortTemplateTypeLabel = "NEMA 6-20P" - PowerPortTemplateTypeLabelNEMA630P PowerPortTemplateTypeLabel = "NEMA 6-30P" - PowerPortTemplateTypeLabelNEMA650P PowerPortTemplateTypeLabel = "NEMA 6-50P" - PowerPortTemplateTypeLabelNEMAL1030P PowerPortTemplateTypeLabel = "NEMA L10-30P" - PowerPortTemplateTypeLabelNEMAL115P PowerPortTemplateTypeLabel = "NEMA L1-15P" - PowerPortTemplateTypeLabelNEMAL1420P PowerPortTemplateTypeLabel = "NEMA L14-20P" - PowerPortTemplateTypeLabelNEMAL1430P PowerPortTemplateTypeLabel = "NEMA L14-30P" - PowerPortTemplateTypeLabelNEMAL1450P PowerPortTemplateTypeLabel = "NEMA L14-50P" - PowerPortTemplateTypeLabelNEMAL1460P PowerPortTemplateTypeLabel = "NEMA L14-60P" - PowerPortTemplateTypeLabelNEMAL1520P PowerPortTemplateTypeLabel = "NEMA L15-20P" - PowerPortTemplateTypeLabelNEMAL1530P PowerPortTemplateTypeLabel = "NEMA L15-30P" - PowerPortTemplateTypeLabelNEMAL1550P PowerPortTemplateTypeLabel = "NEMA L15-50P" - PowerPortTemplateTypeLabelNEMAL1560P PowerPortTemplateTypeLabel = "NEMA L15-60P" - PowerPortTemplateTypeLabelNEMAL2120P PowerPortTemplateTypeLabel = "NEMA L21-20P" - PowerPortTemplateTypeLabelNEMAL2130P PowerPortTemplateTypeLabel = "NEMA L21-30P" - PowerPortTemplateTypeLabelNEMAL515P PowerPortTemplateTypeLabel = "NEMA L5-15P" - PowerPortTemplateTypeLabelNEMAL520P PowerPortTemplateTypeLabel = "NEMA L5-20P" - PowerPortTemplateTypeLabelNEMAL530P PowerPortTemplateTypeLabel = "NEMA L5-30P" - PowerPortTemplateTypeLabelNEMAL550P PowerPortTemplateTypeLabel = "NEMA L5-50P" - PowerPortTemplateTypeLabelNEMAL615P PowerPortTemplateTypeLabel = "NEMA L6-15P" - PowerPortTemplateTypeLabelNEMAL620P PowerPortTemplateTypeLabel = "NEMA L6-20P" - PowerPortTemplateTypeLabelNEMAL630P PowerPortTemplateTypeLabel = "NEMA L6-30P" - PowerPortTemplateTypeLabelNEMAL650P PowerPortTemplateTypeLabel = "NEMA L6-50P" - PowerPortTemplateTypeLabelPNE4H PowerPortTemplateTypeLabel = "P+N+E 4H" - PowerPortTemplateTypeLabelPNE6H PowerPortTemplateTypeLabel = "P+N+E 6H" - PowerPortTemplateTypeLabelPNE9H PowerPortTemplateTypeLabel = "P+N+E 9H" - PowerPortTemplateTypeLabelUSB30MicroB PowerPortTemplateTypeLabel = "USB 3.0 Micro B" - PowerPortTemplateTypeLabelUSB30TypeB PowerPortTemplateTypeLabel = "USB 3.0 Type B" - PowerPortTemplateTypeLabelUSBMicroA PowerPortTemplateTypeLabel = "USB Micro A" - PowerPortTemplateTypeLabelUSBMicroB PowerPortTemplateTypeLabel = "USB Micro B" - PowerPortTemplateTypeLabelUSBMiniA PowerPortTemplateTypeLabel = "USB Mini A" - PowerPortTemplateTypeLabelUSBMiniB PowerPortTemplateTypeLabel = "USB Mini B" - PowerPortTemplateTypeLabelUSBTypeA PowerPortTemplateTypeLabel = "USB Type A" - PowerPortTemplateTypeLabelUSBTypeB PowerPortTemplateTypeLabel = "USB Type B" - PowerPortTemplateTypeLabelUSBTypeC PowerPortTemplateTypeLabel = "USB Type C" -) - -// Defines values for PowerPortTemplateTypeValue. -const ( - PowerPortTemplateTypeValueCs6361c PowerPortTemplateTypeValue = "cs6361c" - PowerPortTemplateTypeValueCs6365c PowerPortTemplateTypeValue = "cs6365c" - PowerPortTemplateTypeValueCs8165c PowerPortTemplateTypeValue = "cs8165c" - PowerPortTemplateTypeValueCs8265c PowerPortTemplateTypeValue = "cs8265c" - PowerPortTemplateTypeValueCs8365c PowerPortTemplateTypeValue = "cs8365c" - PowerPortTemplateTypeValueCs8465c PowerPortTemplateTypeValue = "cs8465c" - PowerPortTemplateTypeValueIec603092pE4h PowerPortTemplateTypeValue = "iec-60309-2p-e-4h" - PowerPortTemplateTypeValueIec603092pE6h PowerPortTemplateTypeValue = "iec-60309-2p-e-6h" - PowerPortTemplateTypeValueIec603092pE9h PowerPortTemplateTypeValue = "iec-60309-2p-e-9h" - PowerPortTemplateTypeValueIec603093pE4h PowerPortTemplateTypeValue = "iec-60309-3p-e-4h" - PowerPortTemplateTypeValueIec603093pE6h PowerPortTemplateTypeValue = "iec-60309-3p-e-6h" - PowerPortTemplateTypeValueIec603093pE9h PowerPortTemplateTypeValue = "iec-60309-3p-e-9h" - PowerPortTemplateTypeValueIec603093pNE4h PowerPortTemplateTypeValue = "iec-60309-3p-n-e-4h" - PowerPortTemplateTypeValueIec603093pNE6h PowerPortTemplateTypeValue = "iec-60309-3p-n-e-6h" - PowerPortTemplateTypeValueIec603093pNE9h PowerPortTemplateTypeValue = "iec-60309-3p-n-e-9h" - PowerPortTemplateTypeValueIec60309PNE4h PowerPortTemplateTypeValue = "iec-60309-p-n-e-4h" - PowerPortTemplateTypeValueIec60309PNE6h PowerPortTemplateTypeValue = "iec-60309-p-n-e-6h" - PowerPortTemplateTypeValueIec60309PNE9h PowerPortTemplateTypeValue = "iec-60309-p-n-e-9h" - PowerPortTemplateTypeValueIec60320C14 PowerPortTemplateTypeValue = "iec-60320-c14" - PowerPortTemplateTypeValueIec60320C16 PowerPortTemplateTypeValue = "iec-60320-c16" - PowerPortTemplateTypeValueIec60320C20 PowerPortTemplateTypeValue = "iec-60320-c20" - PowerPortTemplateTypeValueIec60320C6 PowerPortTemplateTypeValue = "iec-60320-c6" - PowerPortTemplateTypeValueIec60320C8 PowerPortTemplateTypeValue = "iec-60320-c8" - PowerPortTemplateTypeValueItaE PowerPortTemplateTypeValue = "ita-e" - PowerPortTemplateTypeValueItaEf PowerPortTemplateTypeValue = "ita-ef" - PowerPortTemplateTypeValueItaF PowerPortTemplateTypeValue = "ita-f" - PowerPortTemplateTypeValueItaG PowerPortTemplateTypeValue = "ita-g" - PowerPortTemplateTypeValueItaH PowerPortTemplateTypeValue = "ita-h" - PowerPortTemplateTypeValueItaI PowerPortTemplateTypeValue = "ita-i" - PowerPortTemplateTypeValueItaJ PowerPortTemplateTypeValue = "ita-j" - PowerPortTemplateTypeValueItaK PowerPortTemplateTypeValue = "ita-k" - PowerPortTemplateTypeValueItaL PowerPortTemplateTypeValue = "ita-l" - PowerPortTemplateTypeValueItaM PowerPortTemplateTypeValue = "ita-m" - PowerPortTemplateTypeValueItaN PowerPortTemplateTypeValue = "ita-n" - PowerPortTemplateTypeValueItaO PowerPortTemplateTypeValue = "ita-o" - PowerPortTemplateTypeValueNema1030p PowerPortTemplateTypeValue = "nema-10-30p" - PowerPortTemplateTypeValueNema1050p PowerPortTemplateTypeValue = "nema-10-50p" - PowerPortTemplateTypeValueNema115p PowerPortTemplateTypeValue = "nema-1-15p" - PowerPortTemplateTypeValueNema1420p PowerPortTemplateTypeValue = "nema-14-20p" - PowerPortTemplateTypeValueNema1430p PowerPortTemplateTypeValue = "nema-14-30p" - PowerPortTemplateTypeValueNema1450p PowerPortTemplateTypeValue = "nema-14-50p" - PowerPortTemplateTypeValueNema1460p PowerPortTemplateTypeValue = "nema-14-60p" - PowerPortTemplateTypeValueNema1515p PowerPortTemplateTypeValue = "nema-15-15p" - PowerPortTemplateTypeValueNema1520p PowerPortTemplateTypeValue = "nema-15-20p" - PowerPortTemplateTypeValueNema1530p PowerPortTemplateTypeValue = "nema-15-30p" - PowerPortTemplateTypeValueNema1550p PowerPortTemplateTypeValue = "nema-15-50p" - PowerPortTemplateTypeValueNema1560p PowerPortTemplateTypeValue = "nema-15-60p" - PowerPortTemplateTypeValueNema515p PowerPortTemplateTypeValue = "nema-5-15p" - PowerPortTemplateTypeValueNema520p PowerPortTemplateTypeValue = "nema-5-20p" - PowerPortTemplateTypeValueNema530p PowerPortTemplateTypeValue = "nema-5-30p" - PowerPortTemplateTypeValueNema550p PowerPortTemplateTypeValue = "nema-5-50p" - PowerPortTemplateTypeValueNema615p PowerPortTemplateTypeValue = "nema-6-15p" - PowerPortTemplateTypeValueNema620p PowerPortTemplateTypeValue = "nema-6-20p" - PowerPortTemplateTypeValueNema630p PowerPortTemplateTypeValue = "nema-6-30p" - PowerPortTemplateTypeValueNema650p PowerPortTemplateTypeValue = "nema-6-50p" - PowerPortTemplateTypeValueNemaL1030p PowerPortTemplateTypeValue = "nema-l10-30p" - PowerPortTemplateTypeValueNemaL115p PowerPortTemplateTypeValue = "nema-l1-15p" - PowerPortTemplateTypeValueNemaL1420p PowerPortTemplateTypeValue = "nema-l14-20p" - PowerPortTemplateTypeValueNemaL1430p PowerPortTemplateTypeValue = "nema-l14-30p" - PowerPortTemplateTypeValueNemaL1450p PowerPortTemplateTypeValue = "nema-l14-50p" - PowerPortTemplateTypeValueNemaL1460p PowerPortTemplateTypeValue = "nema-l14-60p" - PowerPortTemplateTypeValueNemaL1520p PowerPortTemplateTypeValue = "nema-l15-20p" - PowerPortTemplateTypeValueNemaL1530p PowerPortTemplateTypeValue = "nema-l15-30p" - PowerPortTemplateTypeValueNemaL1550p PowerPortTemplateTypeValue = "nema-l15-50p" - PowerPortTemplateTypeValueNemaL1560p PowerPortTemplateTypeValue = "nema-l15-60p" - PowerPortTemplateTypeValueNemaL2120p PowerPortTemplateTypeValue = "nema-l21-20p" - PowerPortTemplateTypeValueNemaL2130p PowerPortTemplateTypeValue = "nema-l21-30p" - PowerPortTemplateTypeValueNemaL515p PowerPortTemplateTypeValue = "nema-l5-15p" - PowerPortTemplateTypeValueNemaL520p PowerPortTemplateTypeValue = "nema-l5-20p" - PowerPortTemplateTypeValueNemaL530p PowerPortTemplateTypeValue = "nema-l5-30p" - PowerPortTemplateTypeValueNemaL550p PowerPortTemplateTypeValue = "nema-l5-50p" - PowerPortTemplateTypeValueNemaL615p PowerPortTemplateTypeValue = "nema-l6-15p" - PowerPortTemplateTypeValueNemaL620p PowerPortTemplateTypeValue = "nema-l6-20p" - PowerPortTemplateTypeValueNemaL630p PowerPortTemplateTypeValue = "nema-l6-30p" - PowerPortTemplateTypeValueNemaL650p PowerPortTemplateTypeValue = "nema-l6-50p" - PowerPortTemplateTypeValueUsb3B PowerPortTemplateTypeValue = "usb-3-b" - PowerPortTemplateTypeValueUsb3MicroB PowerPortTemplateTypeValue = "usb-3-micro-b" - PowerPortTemplateTypeValueUsbA PowerPortTemplateTypeValue = "usb-a" - PowerPortTemplateTypeValueUsbB PowerPortTemplateTypeValue = "usb-b" - PowerPortTemplateTypeValueUsbC PowerPortTemplateTypeValue = "usb-c" - PowerPortTemplateTypeValueUsbMicroA PowerPortTemplateTypeValue = "usb-micro-a" - PowerPortTemplateTypeValueUsbMicroB PowerPortTemplateTypeValue = "usb-micro-b" - PowerPortTemplateTypeValueUsbMiniA PowerPortTemplateTypeValue = "usb-mini-a" - PowerPortTemplateTypeValueUsbMiniB PowerPortTemplateTypeValue = "usb-mini-b" -) - -// Defines values for PowerPortTypeChoices. -const ( - PowerPortTypeChoicesCs6361c PowerPortTypeChoices = "cs6361c" - PowerPortTypeChoicesCs6365c PowerPortTypeChoices = "cs6365c" - PowerPortTypeChoicesCs8165c PowerPortTypeChoices = "cs8165c" - PowerPortTypeChoicesCs8265c PowerPortTypeChoices = "cs8265c" - PowerPortTypeChoicesCs8365c PowerPortTypeChoices = "cs8365c" - PowerPortTypeChoicesCs8465c PowerPortTypeChoices = "cs8465c" - PowerPortTypeChoicesIec603092pE4h PowerPortTypeChoices = "iec-60309-2p-e-4h" - PowerPortTypeChoicesIec603092pE6h PowerPortTypeChoices = "iec-60309-2p-e-6h" - PowerPortTypeChoicesIec603092pE9h PowerPortTypeChoices = "iec-60309-2p-e-9h" - PowerPortTypeChoicesIec603093pE4h PowerPortTypeChoices = "iec-60309-3p-e-4h" - PowerPortTypeChoicesIec603093pE6h PowerPortTypeChoices = "iec-60309-3p-e-6h" - PowerPortTypeChoicesIec603093pE9h PowerPortTypeChoices = "iec-60309-3p-e-9h" - PowerPortTypeChoicesIec603093pNE4h PowerPortTypeChoices = "iec-60309-3p-n-e-4h" - PowerPortTypeChoicesIec603093pNE6h PowerPortTypeChoices = "iec-60309-3p-n-e-6h" - PowerPortTypeChoicesIec603093pNE9h PowerPortTypeChoices = "iec-60309-3p-n-e-9h" - PowerPortTypeChoicesIec60309PNE4h PowerPortTypeChoices = "iec-60309-p-n-e-4h" - PowerPortTypeChoicesIec60309PNE6h PowerPortTypeChoices = "iec-60309-p-n-e-6h" - PowerPortTypeChoicesIec60309PNE9h PowerPortTypeChoices = "iec-60309-p-n-e-9h" - PowerPortTypeChoicesIec60320C14 PowerPortTypeChoices = "iec-60320-c14" - PowerPortTypeChoicesIec60320C16 PowerPortTypeChoices = "iec-60320-c16" - PowerPortTypeChoicesIec60320C20 PowerPortTypeChoices = "iec-60320-c20" - PowerPortTypeChoicesIec60320C6 PowerPortTypeChoices = "iec-60320-c6" - PowerPortTypeChoicesIec60320C8 PowerPortTypeChoices = "iec-60320-c8" - PowerPortTypeChoicesItaE PowerPortTypeChoices = "ita-e" - PowerPortTypeChoicesItaEf PowerPortTypeChoices = "ita-ef" - PowerPortTypeChoicesItaF PowerPortTypeChoices = "ita-f" - PowerPortTypeChoicesItaG PowerPortTypeChoices = "ita-g" - PowerPortTypeChoicesItaH PowerPortTypeChoices = "ita-h" - PowerPortTypeChoicesItaI PowerPortTypeChoices = "ita-i" - PowerPortTypeChoicesItaJ PowerPortTypeChoices = "ita-j" - PowerPortTypeChoicesItaK PowerPortTypeChoices = "ita-k" - PowerPortTypeChoicesItaL PowerPortTypeChoices = "ita-l" - PowerPortTypeChoicesItaM PowerPortTypeChoices = "ita-m" - PowerPortTypeChoicesItaN PowerPortTypeChoices = "ita-n" - PowerPortTypeChoicesItaO PowerPortTypeChoices = "ita-o" - PowerPortTypeChoicesNema1030p PowerPortTypeChoices = "nema-10-30p" - PowerPortTypeChoicesNema1050p PowerPortTypeChoices = "nema-10-50p" - PowerPortTypeChoicesNema115p PowerPortTypeChoices = "nema-1-15p" - PowerPortTypeChoicesNema1420p PowerPortTypeChoices = "nema-14-20p" - PowerPortTypeChoicesNema1430p PowerPortTypeChoices = "nema-14-30p" - PowerPortTypeChoicesNema1450p PowerPortTypeChoices = "nema-14-50p" - PowerPortTypeChoicesNema1460p PowerPortTypeChoices = "nema-14-60p" - PowerPortTypeChoicesNema1515p PowerPortTypeChoices = "nema-15-15p" - PowerPortTypeChoicesNema1520p PowerPortTypeChoices = "nema-15-20p" - PowerPortTypeChoicesNema1530p PowerPortTypeChoices = "nema-15-30p" - PowerPortTypeChoicesNema1550p PowerPortTypeChoices = "nema-15-50p" - PowerPortTypeChoicesNema1560p PowerPortTypeChoices = "nema-15-60p" - PowerPortTypeChoicesNema515p PowerPortTypeChoices = "nema-5-15p" - PowerPortTypeChoicesNema520p PowerPortTypeChoices = "nema-5-20p" - PowerPortTypeChoicesNema530p PowerPortTypeChoices = "nema-5-30p" - PowerPortTypeChoicesNema550p PowerPortTypeChoices = "nema-5-50p" - PowerPortTypeChoicesNema615p PowerPortTypeChoices = "nema-6-15p" - PowerPortTypeChoicesNema620p PowerPortTypeChoices = "nema-6-20p" - PowerPortTypeChoicesNema630p PowerPortTypeChoices = "nema-6-30p" - PowerPortTypeChoicesNema650p PowerPortTypeChoices = "nema-6-50p" - PowerPortTypeChoicesNemaL1030p PowerPortTypeChoices = "nema-l10-30p" - PowerPortTypeChoicesNemaL115p PowerPortTypeChoices = "nema-l1-15p" - PowerPortTypeChoicesNemaL1420p PowerPortTypeChoices = "nema-l14-20p" - PowerPortTypeChoicesNemaL1430p PowerPortTypeChoices = "nema-l14-30p" - PowerPortTypeChoicesNemaL1450p PowerPortTypeChoices = "nema-l14-50p" - PowerPortTypeChoicesNemaL1460p PowerPortTypeChoices = "nema-l14-60p" - PowerPortTypeChoicesNemaL1520p PowerPortTypeChoices = "nema-l15-20p" - PowerPortTypeChoicesNemaL1530p PowerPortTypeChoices = "nema-l15-30p" - PowerPortTypeChoicesNemaL1550p PowerPortTypeChoices = "nema-l15-50p" - PowerPortTypeChoicesNemaL1560p PowerPortTypeChoices = "nema-l15-60p" - PowerPortTypeChoicesNemaL2120p PowerPortTypeChoices = "nema-l21-20p" - PowerPortTypeChoicesNemaL2130p PowerPortTypeChoices = "nema-l21-30p" - PowerPortTypeChoicesNemaL515p PowerPortTypeChoices = "nema-l5-15p" - PowerPortTypeChoicesNemaL520p PowerPortTypeChoices = "nema-l5-20p" - PowerPortTypeChoicesNemaL530p PowerPortTypeChoices = "nema-l5-30p" - PowerPortTypeChoicesNemaL550p PowerPortTypeChoices = "nema-l5-50p" - PowerPortTypeChoicesNemaL615p PowerPortTypeChoices = "nema-l6-15p" - PowerPortTypeChoicesNemaL620p PowerPortTypeChoices = "nema-l6-20p" - PowerPortTypeChoicesNemaL630p PowerPortTypeChoices = "nema-l6-30p" - PowerPortTypeChoicesNemaL650p PowerPortTypeChoices = "nema-l6-50p" - PowerPortTypeChoicesUsb3B PowerPortTypeChoices = "usb-3-b" - PowerPortTypeChoicesUsb3MicroB PowerPortTypeChoices = "usb-3-micro-b" - PowerPortTypeChoicesUsbA PowerPortTypeChoices = "usb-a" - PowerPortTypeChoicesUsbB PowerPortTypeChoices = "usb-b" - PowerPortTypeChoicesUsbC PowerPortTypeChoices = "usb-c" - PowerPortTypeChoicesUsbMicroA PowerPortTypeChoices = "usb-micro-a" - PowerPortTypeChoicesUsbMicroB PowerPortTypeChoices = "usb-micro-b" - PowerPortTypeChoicesUsbMiniA PowerPortTypeChoices = "usb-mini-a" - PowerPortTypeChoicesUsbMiniB PowerPortTypeChoices = "usb-mini-b" -) - -// Defines values for PrefixFamilyLabel. -const ( - IPv4 PrefixFamilyLabel = "IPv4" - IPv6 PrefixFamilyLabel = "IPv6" -) - -// Defines values for PrefixFamilyValue. -const ( - N4 PrefixFamilyValue = 4 - N6 PrefixFamilyValue = 6 -) - -// Defines values for PrefixStatusLabel. -const ( - PrefixStatusLabelActive PrefixStatusLabel = "Active" - PrefixStatusLabelContainer PrefixStatusLabel = "Container" - PrefixStatusLabelDeprecated PrefixStatusLabel = "Deprecated" - PrefixStatusLabelPeerToPeer PrefixStatusLabel = "Peer-to-Peer" - PrefixStatusLabelReserved PrefixStatusLabel = "Reserved" -) - -// Defines values for PrefixStatusValue. -const ( - PrefixStatusValueActive PrefixStatusValue = "active" - PrefixStatusValueContainer PrefixStatusValue = "container" - PrefixStatusValueDeprecated PrefixStatusValue = "deprecated" - PrefixStatusValueP2p PrefixStatusValue = "p2p" - PrefixStatusValueReserved PrefixStatusValue = "reserved" -) - -// Defines values for PrefixStatusChoices. -const ( - PrefixStatusChoicesActive PrefixStatusChoices = "active" - PrefixStatusChoicesContainer PrefixStatusChoices = "container" - PrefixStatusChoicesDeprecated PrefixStatusChoices = "deprecated" - PrefixStatusChoicesP2p PrefixStatusChoices = "p2p" - PrefixStatusChoicesReserved PrefixStatusChoices = "reserved" -) - -// Defines values for ProtocolEnum. -const ( - ProtocolEnumTcp ProtocolEnum = "tcp" - ProtocolEnumUdp ProtocolEnum = "udp" -) - -// Defines values for ProvidedContentsEnum. -const ( - ExtrasConfigcontext ProvidedContentsEnum = "extras.configcontext" - ExtrasConfigcontextschema ProvidedContentsEnum = "extras.configcontextschema" - ExtrasExporttemplate ProvidedContentsEnum = "extras.exporttemplate" - ExtrasJob ProvidedContentsEnum = "extras.job" - NautobotGoldenConfigBackupconfigs ProvidedContentsEnum = "nautobot_golden_config.backupconfigs" - NautobotGoldenConfigIntendedconfigs ProvidedContentsEnum = "nautobot_golden_config.intendedconfigs" - NautobotGoldenConfigJinjatemplate ProvidedContentsEnum = "nautobot_golden_config.jinjatemplate" - NautobotGoldenConfigPluginproperties ProvidedContentsEnum = "nautobot_golden_config.pluginproperties" -) - -// Defines values for RackOuterUnitLabel. -const ( - RackOuterUnitLabelInches RackOuterUnitLabel = "Inches" - RackOuterUnitLabelMillimeters RackOuterUnitLabel = "Millimeters" -) - -// Defines values for RackOuterUnitValue. -const ( - RackOuterUnitValueIn RackOuterUnitValue = "in" - RackOuterUnitValueMm RackOuterUnitValue = "mm" -) - -// Defines values for RackStatusLabel. -const ( - RackStatusLabelActive RackStatusLabel = "Active" - RackStatusLabelAvailable RackStatusLabel = "Available" - RackStatusLabelDeprecated RackStatusLabel = "Deprecated" - RackStatusLabelPlanned RackStatusLabel = "Planned" - RackStatusLabelReserved RackStatusLabel = "Reserved" -) - -// Defines values for RackStatusValue. -const ( - RackStatusValueActive RackStatusValue = "active" - RackStatusValueAvailable RackStatusValue = "available" - RackStatusValueDeprecated RackStatusValue = "deprecated" - RackStatusValuePlanned RackStatusValue = "planned" - RackStatusValueReserved RackStatusValue = "reserved" -) - -// Defines values for RackTypeLabel. -const ( - RackTypeLabelN2PostFrame RackTypeLabel = "2-post frame" - RackTypeLabelN4PostCabinet RackTypeLabel = "4-post cabinet" - RackTypeLabelN4PostFrame RackTypeLabel = "4-post frame" - RackTypeLabelWallMountedCabinet RackTypeLabel = "Wall-mounted cabinet" - RackTypeLabelWallMountedFrame RackTypeLabel = "Wall-mounted frame" -) - -// Defines values for RackTypeValue. -const ( - RackTypeValueN2PostFrame RackTypeValue = "2-post-frame" - RackTypeValueN4PostCabinet RackTypeValue = "4-post-cabinet" - RackTypeValueN4PostFrame RackTypeValue = "4-post-frame" - RackTypeValueWallCabinet RackTypeValue = "wall-cabinet" - RackTypeValueWallFrame RackTypeValue = "wall-frame" -) - -// Defines values for RackWidthLabel. -const ( - N10Inches RackWidthLabel = "10 inches" - N19Inches RackWidthLabel = "19 inches" - N21Inches RackWidthLabel = "21 inches" - N23Inches RackWidthLabel = "23 inches" -) - -// Defines values for RackWidthValue. -const ( - RackWidthValueN10 RackWidthValue = 10 - RackWidthValueN19 RackWidthValue = 19 - RackWidthValueN21 RackWidthValue = 21 - RackWidthValueN23 RackWidthValue = 23 -) - -// Defines values for RackStatusChoices. -const ( - RackStatusChoicesActive RackStatusChoices = "active" - RackStatusChoicesAvailable RackStatusChoices = "available" - RackStatusChoicesDeprecated RackStatusChoices = "deprecated" - RackStatusChoicesPlanned RackStatusChoices = "planned" - RackStatusChoicesReserved RackStatusChoices = "reserved" -) - -// Defines values for RackTypeChoices. -const ( - N2PostFrame RackTypeChoices = "2-post-frame" - N4PostCabinet RackTypeChoices = "4-post-cabinet" - N4PostFrame RackTypeChoices = "4-post-frame" - WallCabinet RackTypeChoices = "wall-cabinet" - WallFrame RackTypeChoices = "wall-frame" -) - -// Defines values for RackUnitFaceLabel. -const ( - RackUnitFaceLabelFront RackUnitFaceLabel = "Front" - RackUnitFaceLabelRear RackUnitFaceLabel = "Rear" -) - -// Defines values for RackUnitFaceValue. -const ( - RackUnitFaceValueFront RackUnitFaceValue = "front" - RackUnitFaceValueRear RackUnitFaceValue = "rear" -) - -// Defines values for RearPortTypeLabel. -const ( - RearPortTypeLabelBNC RearPortTypeLabel = "BNC" - RearPortTypeLabelCS RearPortTypeLabel = "CS" - RearPortTypeLabelFC RearPortTypeLabel = "FC" - RearPortTypeLabelGG45 RearPortTypeLabel = "GG45" - RearPortTypeLabelLC RearPortTypeLabel = "LC" - RearPortTypeLabelLCAPC RearPortTypeLabel = "LC/APC" - RearPortTypeLabelLSH RearPortTypeLabel = "LSH" - RearPortTypeLabelLSHAPC RearPortTypeLabel = "LSH/APC" - RearPortTypeLabelMPO RearPortTypeLabel = "MPO" - RearPortTypeLabelMRJ21 RearPortTypeLabel = "MRJ21" - RearPortTypeLabelMTRJ RearPortTypeLabel = "MTRJ" - RearPortTypeLabelN110Punch RearPortTypeLabel = "110 Punch" - RearPortTypeLabelN8P2C RearPortTypeLabel = "8P2C" - RearPortTypeLabelN8P4C RearPortTypeLabel = "8P4C" - RearPortTypeLabelN8P6C RearPortTypeLabel = "8P6C" - RearPortTypeLabelN8P8C RearPortTypeLabel = "8P8C" - RearPortTypeLabelSC RearPortTypeLabel = "SC" - RearPortTypeLabelSCAPC RearPortTypeLabel = "SC/APC" - RearPortTypeLabelSN RearPortTypeLabel = "SN" - RearPortTypeLabelST RearPortTypeLabel = "ST" - RearPortTypeLabelSplice RearPortTypeLabel = "Splice" - RearPortTypeLabelTERA1P RearPortTypeLabel = "TERA 1P" - RearPortTypeLabelTERA2P RearPortTypeLabel = "TERA 2P" - RearPortTypeLabelTERA4P RearPortTypeLabel = "TERA 4P" - RearPortTypeLabelURMP2 RearPortTypeLabel = "URM-P2" - RearPortTypeLabelURMP4 RearPortTypeLabel = "URM-P4" - RearPortTypeLabelURMP8 RearPortTypeLabel = "URM-P8" -) - -// Defines values for RearPortTypeValue. -const ( - RearPortTypeValueBnc RearPortTypeValue = "bnc" - RearPortTypeValueCs RearPortTypeValue = "cs" - RearPortTypeValueFc RearPortTypeValue = "fc" - RearPortTypeValueGg45 RearPortTypeValue = "gg45" - RearPortTypeValueLc RearPortTypeValue = "lc" - RearPortTypeValueLcApc RearPortTypeValue = "lc-apc" - RearPortTypeValueLsh RearPortTypeValue = "lsh" - RearPortTypeValueLshApc RearPortTypeValue = "lsh-apc" - RearPortTypeValueMpo RearPortTypeValue = "mpo" - RearPortTypeValueMrj21 RearPortTypeValue = "mrj21" - RearPortTypeValueMtrj RearPortTypeValue = "mtrj" - RearPortTypeValueN110Punch RearPortTypeValue = "110-punch" - RearPortTypeValueN8p2c RearPortTypeValue = "8p2c" - RearPortTypeValueN8p4c RearPortTypeValue = "8p4c" - RearPortTypeValueN8p6c RearPortTypeValue = "8p6c" - RearPortTypeValueN8p8c RearPortTypeValue = "8p8c" - RearPortTypeValueSc RearPortTypeValue = "sc" - RearPortTypeValueScApc RearPortTypeValue = "sc-apc" - RearPortTypeValueSn RearPortTypeValue = "sn" - RearPortTypeValueSplice RearPortTypeValue = "splice" - RearPortTypeValueSt RearPortTypeValue = "st" - RearPortTypeValueTera1p RearPortTypeValue = "tera-1p" - RearPortTypeValueTera2p RearPortTypeValue = "tera-2p" - RearPortTypeValueTera4p RearPortTypeValue = "tera-4p" - RearPortTypeValueUrmP2 RearPortTypeValue = "urm-p2" - RearPortTypeValueUrmP4 RearPortTypeValue = "urm-p4" - RearPortTypeValueUrmP8 RearPortTypeValue = "urm-p8" -) - -// Defines values for RearPortTemplateTypeLabel. -const ( - RearPortTemplateTypeLabelBNC RearPortTemplateTypeLabel = "BNC" - RearPortTemplateTypeLabelCS RearPortTemplateTypeLabel = "CS" - RearPortTemplateTypeLabelFC RearPortTemplateTypeLabel = "FC" - RearPortTemplateTypeLabelGG45 RearPortTemplateTypeLabel = "GG45" - RearPortTemplateTypeLabelLC RearPortTemplateTypeLabel = "LC" - RearPortTemplateTypeLabelLCAPC RearPortTemplateTypeLabel = "LC/APC" - RearPortTemplateTypeLabelLSH RearPortTemplateTypeLabel = "LSH" - RearPortTemplateTypeLabelLSHAPC RearPortTemplateTypeLabel = "LSH/APC" - RearPortTemplateTypeLabelMPO RearPortTemplateTypeLabel = "MPO" - RearPortTemplateTypeLabelMRJ21 RearPortTemplateTypeLabel = "MRJ21" - RearPortTemplateTypeLabelMTRJ RearPortTemplateTypeLabel = "MTRJ" - RearPortTemplateTypeLabelN110Punch RearPortTemplateTypeLabel = "110 Punch" - RearPortTemplateTypeLabelN8P2C RearPortTemplateTypeLabel = "8P2C" - RearPortTemplateTypeLabelN8P4C RearPortTemplateTypeLabel = "8P4C" - RearPortTemplateTypeLabelN8P6C RearPortTemplateTypeLabel = "8P6C" - RearPortTemplateTypeLabelN8P8C RearPortTemplateTypeLabel = "8P8C" - RearPortTemplateTypeLabelSC RearPortTemplateTypeLabel = "SC" - RearPortTemplateTypeLabelSCAPC RearPortTemplateTypeLabel = "SC/APC" - RearPortTemplateTypeLabelSN RearPortTemplateTypeLabel = "SN" - RearPortTemplateTypeLabelST RearPortTemplateTypeLabel = "ST" - RearPortTemplateTypeLabelSplice RearPortTemplateTypeLabel = "Splice" - RearPortTemplateTypeLabelTERA1P RearPortTemplateTypeLabel = "TERA 1P" - RearPortTemplateTypeLabelTERA2P RearPortTemplateTypeLabel = "TERA 2P" - RearPortTemplateTypeLabelTERA4P RearPortTemplateTypeLabel = "TERA 4P" - RearPortTemplateTypeLabelURMP2 RearPortTemplateTypeLabel = "URM-P2" - RearPortTemplateTypeLabelURMP4 RearPortTemplateTypeLabel = "URM-P4" - RearPortTemplateTypeLabelURMP8 RearPortTemplateTypeLabel = "URM-P8" -) - -// Defines values for RearPortTemplateTypeValue. -const ( - RearPortTemplateTypeValueBnc RearPortTemplateTypeValue = "bnc" - RearPortTemplateTypeValueCs RearPortTemplateTypeValue = "cs" - RearPortTemplateTypeValueFc RearPortTemplateTypeValue = "fc" - RearPortTemplateTypeValueGg45 RearPortTemplateTypeValue = "gg45" - RearPortTemplateTypeValueLc RearPortTemplateTypeValue = "lc" - RearPortTemplateTypeValueLcApc RearPortTemplateTypeValue = "lc-apc" - RearPortTemplateTypeValueLsh RearPortTemplateTypeValue = "lsh" - RearPortTemplateTypeValueLshApc RearPortTemplateTypeValue = "lsh-apc" - RearPortTemplateTypeValueMpo RearPortTemplateTypeValue = "mpo" - RearPortTemplateTypeValueMrj21 RearPortTemplateTypeValue = "mrj21" - RearPortTemplateTypeValueMtrj RearPortTemplateTypeValue = "mtrj" - RearPortTemplateTypeValueN110Punch RearPortTemplateTypeValue = "110-punch" - RearPortTemplateTypeValueN8p2c RearPortTemplateTypeValue = "8p2c" - RearPortTemplateTypeValueN8p4c RearPortTemplateTypeValue = "8p4c" - RearPortTemplateTypeValueN8p6c RearPortTemplateTypeValue = "8p6c" - RearPortTemplateTypeValueN8p8c RearPortTemplateTypeValue = "8p8c" - RearPortTemplateTypeValueSc RearPortTemplateTypeValue = "sc" - RearPortTemplateTypeValueScApc RearPortTemplateTypeValue = "sc-apc" - RearPortTemplateTypeValueSn RearPortTemplateTypeValue = "sn" - RearPortTemplateTypeValueSplice RearPortTemplateTypeValue = "splice" - RearPortTemplateTypeValueSt RearPortTemplateTypeValue = "st" - RearPortTemplateTypeValueTera1p RearPortTemplateTypeValue = "tera-1p" - RearPortTemplateTypeValueTera2p RearPortTemplateTypeValue = "tera-2p" - RearPortTemplateTypeValueTera4p RearPortTemplateTypeValue = "tera-4p" - RearPortTemplateTypeValueUrmP2 RearPortTemplateTypeValue = "urm-p2" - RearPortTemplateTypeValueUrmP4 RearPortTemplateTypeValue = "urm-p4" - RearPortTemplateTypeValueUrmP8 RearPortTemplateTypeValue = "urm-p8" -) - -// Defines values for RelationshipTypeChoices. -const ( - ManyToMany RelationshipTypeChoices = "many-to-many" - OneToMany RelationshipTypeChoices = "one-to-many" - OneToOne RelationshipTypeChoices = "one-to-one" - SymmetricManyToMany RelationshipTypeChoices = "symmetric-many-to-many" - SymmetricOneToOne RelationshipTypeChoices = "symmetric-one-to-one" -) - -// Defines values for RequiredOnEnum. -const ( - Destination RequiredOnEnum = "destination" - Source RequiredOnEnum = "source" -) - -// Defines values for RoleEnum. -const ( - Anycast RoleEnum = "anycast" - Carp RoleEnum = "carp" - Glbp RoleEnum = "glbp" - Hsrp RoleEnum = "hsrp" - Loopback RoleEnum = "loopback" - Secondary RoleEnum = "secondary" - Vip RoleEnum = "vip" - Vrrp RoleEnum = "vrrp" -) - -// Defines values for SecretTypeEnum. -const ( - SecretTypeEnumKey SecretTypeEnum = "key" - SecretTypeEnumPassword SecretTypeEnum = "password" - SecretTypeEnumSecret SecretTypeEnum = "secret" - SecretTypeEnumToken SecretTypeEnum = "token" - SecretTypeEnumUsername SecretTypeEnum = "username" -) - -// Defines values for ServiceProtocolLabel. -const ( - ServiceProtocolLabelTCP ServiceProtocolLabel = "TCP" - ServiceProtocolLabelUDP ServiceProtocolLabel = "UDP" -) - -// Defines values for ServiceProtocolValue. -const ( - ServiceProtocolValueTcp ServiceProtocolValue = "tcp" - ServiceProtocolValueUdp ServiceProtocolValue = "udp" -) - -// Defines values for ServiceObjectStatusLabel. -const ( - ServiceObjectStatusLabelActive ServiceObjectStatusLabel = "Active" - ServiceObjectStatusLabelDecommissioned ServiceObjectStatusLabel = "Decommissioned" - ServiceObjectStatusLabelStaged ServiceObjectStatusLabel = "Staged" -) - -// Defines values for ServiceObjectStatusValue. -const ( - ServiceObjectStatusValueActive ServiceObjectStatusValue = "active" - ServiceObjectStatusValueDecommissioned ServiceObjectStatusValue = "decommissioned" - ServiceObjectStatusValueStaged ServiceObjectStatusValue = "staged" -) - -// Defines values for ServiceObjectGroupServiceObjectsIpProtocol. -const ( - ServiceObjectGroupServiceObjectsIpProtocolAH ServiceObjectGroupServiceObjectsIpProtocol = "AH" - ServiceObjectGroupServiceObjectsIpProtocolAN ServiceObjectGroupServiceObjectsIpProtocol = "A/N" - ServiceObjectGroupServiceObjectsIpProtocolARIS ServiceObjectGroupServiceObjectsIpProtocol = "ARIS" - ServiceObjectGroupServiceObjectsIpProtocolAX25 ServiceObjectGroupServiceObjectsIpProtocol = "AX.25" - ServiceObjectGroupServiceObjectsIpProtocolBBNRCCMON ServiceObjectGroupServiceObjectsIpProtocol = "BBN-RCC-MON" - ServiceObjectGroupServiceObjectsIpProtocolBNA ServiceObjectGroupServiceObjectsIpProtocol = "BNA" - ServiceObjectGroupServiceObjectsIpProtocolBRSATMON ServiceObjectGroupServiceObjectsIpProtocol = "BR-SAT-MON" - ServiceObjectGroupServiceObjectsIpProtocolCBT ServiceObjectGroupServiceObjectsIpProtocol = "CBT" - ServiceObjectGroupServiceObjectsIpProtocolCFTP ServiceObjectGroupServiceObjectsIpProtocol = "CFTP" - ServiceObjectGroupServiceObjectsIpProtocolCHAOS ServiceObjectGroupServiceObjectsIpProtocol = "CHAOS" - ServiceObjectGroupServiceObjectsIpProtocolCPHB ServiceObjectGroupServiceObjectsIpProtocol = "CPHB" - ServiceObjectGroupServiceObjectsIpProtocolCPNX ServiceObjectGroupServiceObjectsIpProtocol = "CPNX" - ServiceObjectGroupServiceObjectsIpProtocolCRTP ServiceObjectGroupServiceObjectsIpProtocol = "CRTP" - ServiceObjectGroupServiceObjectsIpProtocolCRUDP ServiceObjectGroupServiceObjectsIpProtocol = "CRUDP" - ServiceObjectGroupServiceObjectsIpProtocolCompaqPeer ServiceObjectGroupServiceObjectsIpProtocol = "Compaq-Peer" - ServiceObjectGroupServiceObjectsIpProtocolDCCP ServiceObjectGroupServiceObjectsIpProtocol = "DCCP" - ServiceObjectGroupServiceObjectsIpProtocolDCNMEAS ServiceObjectGroupServiceObjectsIpProtocol = "DCN-MEAS" - ServiceObjectGroupServiceObjectsIpProtocolDDP ServiceObjectGroupServiceObjectsIpProtocol = "DDP" - ServiceObjectGroupServiceObjectsIpProtocolDDX ServiceObjectGroupServiceObjectsIpProtocol = "DDX" - ServiceObjectGroupServiceObjectsIpProtocolDGP ServiceObjectGroupServiceObjectsIpProtocol = "DGP" - ServiceObjectGroupServiceObjectsIpProtocolDSR ServiceObjectGroupServiceObjectsIpProtocol = "DSR" - ServiceObjectGroupServiceObjectsIpProtocolEGP ServiceObjectGroupServiceObjectsIpProtocol = "EGP" - ServiceObjectGroupServiceObjectsIpProtocolEIGRP ServiceObjectGroupServiceObjectsIpProtocol = "EIGRP" - ServiceObjectGroupServiceObjectsIpProtocolEMCON ServiceObjectGroupServiceObjectsIpProtocol = "EMCON" - ServiceObjectGroupServiceObjectsIpProtocolENCAP ServiceObjectGroupServiceObjectsIpProtocol = "ENCAP" - ServiceObjectGroupServiceObjectsIpProtocolESP ServiceObjectGroupServiceObjectsIpProtocol = "ESP" - ServiceObjectGroupServiceObjectsIpProtocolETHERIP ServiceObjectGroupServiceObjectsIpProtocol = "ETHERIP" - ServiceObjectGroupServiceObjectsIpProtocolEthernet ServiceObjectGroupServiceObjectsIpProtocol = "Ethernet" - ServiceObjectGroupServiceObjectsIpProtocolFC ServiceObjectGroupServiceObjectsIpProtocol = "FC" - ServiceObjectGroupServiceObjectsIpProtocolFIRE ServiceObjectGroupServiceObjectsIpProtocol = "FIRE" - ServiceObjectGroupServiceObjectsIpProtocolGGP ServiceObjectGroupServiceObjectsIpProtocol = "GGP" - ServiceObjectGroupServiceObjectsIpProtocolGMTP ServiceObjectGroupServiceObjectsIpProtocol = "GMTP" - ServiceObjectGroupServiceObjectsIpProtocolGRE ServiceObjectGroupServiceObjectsIpProtocol = "GRE" - ServiceObjectGroupServiceObjectsIpProtocolHIP ServiceObjectGroupServiceObjectsIpProtocol = "HIP" - ServiceObjectGroupServiceObjectsIpProtocolHMP ServiceObjectGroupServiceObjectsIpProtocol = "HMP" - ServiceObjectGroupServiceObjectsIpProtocolIATP ServiceObjectGroupServiceObjectsIpProtocol = "IATP" - ServiceObjectGroupServiceObjectsIpProtocolICMP ServiceObjectGroupServiceObjectsIpProtocol = "ICMP" - ServiceObjectGroupServiceObjectsIpProtocolIDPR ServiceObjectGroupServiceObjectsIpProtocol = "IDPR" - ServiceObjectGroupServiceObjectsIpProtocolIDPRCMTP ServiceObjectGroupServiceObjectsIpProtocol = "IDPR-CMTP" - ServiceObjectGroupServiceObjectsIpProtocolIDRP ServiceObjectGroupServiceObjectsIpProtocol = "IDRP" - ServiceObjectGroupServiceObjectsIpProtocolIFMP ServiceObjectGroupServiceObjectsIpProtocol = "IFMP" - ServiceObjectGroupServiceObjectsIpProtocolIGMP ServiceObjectGroupServiceObjectsIpProtocol = "IGMP" - ServiceObjectGroupServiceObjectsIpProtocolIGP ServiceObjectGroupServiceObjectsIpProtocol = "IGP" - ServiceObjectGroupServiceObjectsIpProtocolIL ServiceObjectGroupServiceObjectsIpProtocol = "IL" - ServiceObjectGroupServiceObjectsIpProtocolINLSP ServiceObjectGroupServiceObjectsIpProtocol = "I-NLSP" - ServiceObjectGroupServiceObjectsIpProtocolIPCV ServiceObjectGroupServiceObjectsIpProtocol = "IPCV" - ServiceObjectGroupServiceObjectsIpProtocolIPComp ServiceObjectGroupServiceObjectsIpProtocol = "IPComp" - ServiceObjectGroupServiceObjectsIpProtocolIPIP ServiceObjectGroupServiceObjectsIpProtocol = "IPIP" - ServiceObjectGroupServiceObjectsIpProtocolIPLT ServiceObjectGroupServiceObjectsIpProtocol = "IPLT" - ServiceObjectGroupServiceObjectsIpProtocolIPPC ServiceObjectGroupServiceObjectsIpProtocol = "IPPC" - ServiceObjectGroupServiceObjectsIpProtocolIPXInIP ServiceObjectGroupServiceObjectsIpProtocol = "IPX-in-IP" - ServiceObjectGroupServiceObjectsIpProtocolIRTP ServiceObjectGroupServiceObjectsIpProtocol = "IRTP" - ServiceObjectGroupServiceObjectsIpProtocolISOIP ServiceObjectGroupServiceObjectsIpProtocol = "ISO-IP" - ServiceObjectGroupServiceObjectsIpProtocolISOTP4 ServiceObjectGroupServiceObjectsIpProtocol = "ISO-TP4" - ServiceObjectGroupServiceObjectsIpProtocolKRYPTOLAN ServiceObjectGroupServiceObjectsIpProtocol = "KRYPTOLAN" - ServiceObjectGroupServiceObjectsIpProtocolL2TP ServiceObjectGroupServiceObjectsIpProtocol = "L2TP" - ServiceObjectGroupServiceObjectsIpProtocolLARP ServiceObjectGroupServiceObjectsIpProtocol = "LARP" - ServiceObjectGroupServiceObjectsIpProtocolLEAF1 ServiceObjectGroupServiceObjectsIpProtocol = "LEAF-1" - ServiceObjectGroupServiceObjectsIpProtocolLEAF2 ServiceObjectGroupServiceObjectsIpProtocol = "LEAF-2" - ServiceObjectGroupServiceObjectsIpProtocolMERITINP ServiceObjectGroupServiceObjectsIpProtocol = "MERIT-INP" - ServiceObjectGroupServiceObjectsIpProtocolMFENSP ServiceObjectGroupServiceObjectsIpProtocol = "MFE-NSP" - ServiceObjectGroupServiceObjectsIpProtocolMOBILE ServiceObjectGroupServiceObjectsIpProtocol = "MOBILE" - ServiceObjectGroupServiceObjectsIpProtocolMTP ServiceObjectGroupServiceObjectsIpProtocol = "MTP" - ServiceObjectGroupServiceObjectsIpProtocolMUX ServiceObjectGroupServiceObjectsIpProtocol = "MUX" - ServiceObjectGroupServiceObjectsIpProtocolManet ServiceObjectGroupServiceObjectsIpProtocol = "manet" - ServiceObjectGroupServiceObjectsIpProtocolN3PC ServiceObjectGroupServiceObjectsIpProtocol = "3PC" - ServiceObjectGroupServiceObjectsIpProtocolNARP ServiceObjectGroupServiceObjectsIpProtocol = "NARP" - ServiceObjectGroupServiceObjectsIpProtocolNETBLT ServiceObjectGroupServiceObjectsIpProtocol = "NETBLT" - ServiceObjectGroupServiceObjectsIpProtocolNSFNETIGP ServiceObjectGroupServiceObjectsIpProtocol = "NSFNET-IGP" - ServiceObjectGroupServiceObjectsIpProtocolNVPII ServiceObjectGroupServiceObjectsIpProtocol = "NVP-II" - ServiceObjectGroupServiceObjectsIpProtocolOSPFIGP ServiceObjectGroupServiceObjectsIpProtocol = "OSPFIGP" - ServiceObjectGroupServiceObjectsIpProtocolPGM ServiceObjectGroupServiceObjectsIpProtocol = "PGM" - ServiceObjectGroupServiceObjectsIpProtocolPIM ServiceObjectGroupServiceObjectsIpProtocol = "PIM" - ServiceObjectGroupServiceObjectsIpProtocolPIPE ServiceObjectGroupServiceObjectsIpProtocol = "PIPE" - ServiceObjectGroupServiceObjectsIpProtocolPNNI ServiceObjectGroupServiceObjectsIpProtocol = "PNNI" - ServiceObjectGroupServiceObjectsIpProtocolPRM ServiceObjectGroupServiceObjectsIpProtocol = "PRM" - ServiceObjectGroupServiceObjectsIpProtocolPTP ServiceObjectGroupServiceObjectsIpProtocol = "PTP" - ServiceObjectGroupServiceObjectsIpProtocolPUP ServiceObjectGroupServiceObjectsIpProtocol = "PUP" - ServiceObjectGroupServiceObjectsIpProtocolPVP ServiceObjectGroupServiceObjectsIpProtocol = "PVP" - ServiceObjectGroupServiceObjectsIpProtocolQNX ServiceObjectGroupServiceObjectsIpProtocol = "QNX" - ServiceObjectGroupServiceObjectsIpProtocolRDP ServiceObjectGroupServiceObjectsIpProtocol = "RDP" - ServiceObjectGroupServiceObjectsIpProtocolROHC ServiceObjectGroupServiceObjectsIpProtocol = "ROHC" - ServiceObjectGroupServiceObjectsIpProtocolRSVP ServiceObjectGroupServiceObjectsIpProtocol = "RSVP" - ServiceObjectGroupServiceObjectsIpProtocolRSVPE2EIGNORE ServiceObjectGroupServiceObjectsIpProtocol = "RSVP-E2E-IGNORE" - ServiceObjectGroupServiceObjectsIpProtocolRVD ServiceObjectGroupServiceObjectsIpProtocol = "RVD" - ServiceObjectGroupServiceObjectsIpProtocolSATEXPAK ServiceObjectGroupServiceObjectsIpProtocol = "SAT-EXPAK" - ServiceObjectGroupServiceObjectsIpProtocolSATMON ServiceObjectGroupServiceObjectsIpProtocol = "SAT-MON" - ServiceObjectGroupServiceObjectsIpProtocolSCCSP ServiceObjectGroupServiceObjectsIpProtocol = "SCC-SP" - ServiceObjectGroupServiceObjectsIpProtocolSCPS ServiceObjectGroupServiceObjectsIpProtocol = "SCPS" - ServiceObjectGroupServiceObjectsIpProtocolSCTP ServiceObjectGroupServiceObjectsIpProtocol = "SCTP" - ServiceObjectGroupServiceObjectsIpProtocolSDRP ServiceObjectGroupServiceObjectsIpProtocol = "SDRP" - ServiceObjectGroupServiceObjectsIpProtocolSECUREVMTP ServiceObjectGroupServiceObjectsIpProtocol = "SECURE-VMTP" - ServiceObjectGroupServiceObjectsIpProtocolSKIP ServiceObjectGroupServiceObjectsIpProtocol = "SKIP" - ServiceObjectGroupServiceObjectsIpProtocolSM ServiceObjectGroupServiceObjectsIpProtocol = "SM" - ServiceObjectGroupServiceObjectsIpProtocolSMP ServiceObjectGroupServiceObjectsIpProtocol = "SMP" - ServiceObjectGroupServiceObjectsIpProtocolSNP ServiceObjectGroupServiceObjectsIpProtocol = "SNP" - ServiceObjectGroupServiceObjectsIpProtocolSPS ServiceObjectGroupServiceObjectsIpProtocol = "SPS" - ServiceObjectGroupServiceObjectsIpProtocolSRP ServiceObjectGroupServiceObjectsIpProtocol = "SRP" - ServiceObjectGroupServiceObjectsIpProtocolSSCOPMCE ServiceObjectGroupServiceObjectsIpProtocol = "SSCOPMCE" - ServiceObjectGroupServiceObjectsIpProtocolSTP ServiceObjectGroupServiceObjectsIpProtocol = "STP" - ServiceObjectGroupServiceObjectsIpProtocolSUNND ServiceObjectGroupServiceObjectsIpProtocol = "SUN-ND" - ServiceObjectGroupServiceObjectsIpProtocolSpriteRPC ServiceObjectGroupServiceObjectsIpProtocol = "Sprite-RPC" - ServiceObjectGroupServiceObjectsIpProtocolTCF ServiceObjectGroupServiceObjectsIpProtocol = "TCF" - ServiceObjectGroupServiceObjectsIpProtocolTCP ServiceObjectGroupServiceObjectsIpProtocol = "TCP" - ServiceObjectGroupServiceObjectsIpProtocolTLSP ServiceObjectGroupServiceObjectsIpProtocol = "TLSP" - ServiceObjectGroupServiceObjectsIpProtocolTP ServiceObjectGroupServiceObjectsIpProtocol = "TP++" - ServiceObjectGroupServiceObjectsIpProtocolTRUNK1 ServiceObjectGroupServiceObjectsIpProtocol = "TRUNK-1" - ServiceObjectGroupServiceObjectsIpProtocolTRUNK2 ServiceObjectGroupServiceObjectsIpProtocol = "TRUNK-2" - ServiceObjectGroupServiceObjectsIpProtocolTTP ServiceObjectGroupServiceObjectsIpProtocol = "TTP" - ServiceObjectGroupServiceObjectsIpProtocolUDP ServiceObjectGroupServiceObjectsIpProtocol = "UDP" - ServiceObjectGroupServiceObjectsIpProtocolUDPLite ServiceObjectGroupServiceObjectsIpProtocol = "UDPLite" - ServiceObjectGroupServiceObjectsIpProtocolUTI ServiceObjectGroupServiceObjectsIpProtocol = "UTI" - ServiceObjectGroupServiceObjectsIpProtocolVINES ServiceObjectGroupServiceObjectsIpProtocol = "VINES" - ServiceObjectGroupServiceObjectsIpProtocolVISA ServiceObjectGroupServiceObjectsIpProtocol = "VISA" - ServiceObjectGroupServiceObjectsIpProtocolVMTP ServiceObjectGroupServiceObjectsIpProtocol = "VMTP" - ServiceObjectGroupServiceObjectsIpProtocolWBEXPAK ServiceObjectGroupServiceObjectsIpProtocol = "WB-EXPAK" - ServiceObjectGroupServiceObjectsIpProtocolWBMON ServiceObjectGroupServiceObjectsIpProtocol = "WB-MON" - ServiceObjectGroupServiceObjectsIpProtocolWESP ServiceObjectGroupServiceObjectsIpProtocol = "WESP" - ServiceObjectGroupServiceObjectsIpProtocolWSN ServiceObjectGroupServiceObjectsIpProtocol = "WSN" - ServiceObjectGroupServiceObjectsIpProtocolXNET ServiceObjectGroupServiceObjectsIpProtocol = "XNET" - ServiceObjectGroupServiceObjectsIpProtocolXNSIDP ServiceObjectGroupServiceObjectsIpProtocol = "XNS-IDP" - ServiceObjectGroupServiceObjectsIpProtocolXTP ServiceObjectGroupServiceObjectsIpProtocol = "XTP" -) - -// Defines values for ServiceObjectGroupServiceObjectsStatusLabel. -const ( - ServiceObjectGroupServiceObjectsStatusLabelActive ServiceObjectGroupServiceObjectsStatusLabel = "Active" - ServiceObjectGroupServiceObjectsStatusLabelDecommissioned ServiceObjectGroupServiceObjectsStatusLabel = "Decommissioned" - ServiceObjectGroupServiceObjectsStatusLabelStaged ServiceObjectGroupServiceObjectsStatusLabel = "Staged" -) - -// Defines values for ServiceObjectGroupServiceObjectsStatusValue. -const ( - ServiceObjectGroupServiceObjectsStatusValueActive ServiceObjectGroupServiceObjectsStatusValue = "active" - ServiceObjectGroupServiceObjectsStatusValueDecommissioned ServiceObjectGroupServiceObjectsStatusValue = "decommissioned" - ServiceObjectGroupServiceObjectsStatusValueStaged ServiceObjectGroupServiceObjectsStatusValue = "staged" -) - -// Defines values for ServiceObjectGroupStatusLabel. -const ( - ServiceObjectGroupStatusLabelActive ServiceObjectGroupStatusLabel = "Active" - ServiceObjectGroupStatusLabelDecommissioned ServiceObjectGroupStatusLabel = "Decommissioned" - ServiceObjectGroupStatusLabelStaged ServiceObjectGroupStatusLabel = "Staged" -) - -// Defines values for ServiceObjectGroupStatusValue. -const ( - ServiceObjectGroupStatusValueActive ServiceObjectGroupStatusValue = "active" - ServiceObjectGroupStatusValueDecommissioned ServiceObjectGroupStatusValue = "decommissioned" - ServiceObjectGroupStatusValueStaged ServiceObjectGroupStatusValue = "staged" -) - -// Defines values for SeverityEnum. -const ( - Critical SeverityEnum = "Critical" - High SeverityEnum = "High" - Low SeverityEnum = "Low" - Medium SeverityEnum = "Medium" - None SeverityEnum = "None" -) - -// Defines values for SiteStatusLabel. -const ( - SiteStatusLabelActive SiteStatusLabel = "Active" - SiteStatusLabelDecommissioning SiteStatusLabel = "Decommissioning" - SiteStatusLabelPlanned SiteStatusLabel = "Planned" - SiteStatusLabelRetired SiteStatusLabel = "Retired" - SiteStatusLabelStaging SiteStatusLabel = "Staging" -) - -// Defines values for SiteStatusValue. -const ( - SiteStatusValueActive SiteStatusValue = "active" - SiteStatusValueDecommissioning SiteStatusValue = "decommissioning" - SiteStatusValuePlanned SiteStatusValue = "planned" - SiteStatusValueRetired SiteStatusValue = "retired" - SiteStatusValueStaging SiteStatusValue = "staging" -) - -// Defines values for Status2a0Enum. -const ( - Status2a0EnumActive Status2a0Enum = "active" - Status2a0EnumAvailable Status2a0Enum = "available" - Status2a0EnumPlanned Status2a0Enum = "planned" -) - -// Defines values for Status8f7Enum. -const ( - Status8f7EnumActive Status8f7Enum = "active" - Status8f7EnumDecommissioned Status8f7Enum = "decommissioned" - Status8f7EnumStaged Status8f7Enum = "staged" -) - -// Defines values for StatusD95Enum. -const ( - CANCELLED StatusD95Enum = "CANCELLED" - COMPLETED StatusD95Enum = "COMPLETED" - CONFIRMED StatusD95Enum = "CONFIRMED" - INPROCESS StatusD95Enum = "IN-PROCESS" - RESCHEDULED StatusD95Enum = "RE-SCHEDULED" - TENTATIVE StatusD95Enum = "TENTATIVE" - UNKNOWN StatusD95Enum = "UNKNOWN" -) - -// Defines values for SubdeviceRoleEnum. -const ( - Child SubdeviceRoleEnum = "child" - Parent SubdeviceRoleEnum = "parent" -) - -// Defines values for SupplyEnum. -const ( - SupplyEnumAc SupplyEnum = "ac" - SupplyEnumDc SupplyEnum = "dc" -) - -// Defines values for TermSideEnum. -const ( - TermSideEnumA TermSideEnum = "A" - TermSideEnumZ TermSideEnum = "Z" -) - -// Defines values for UserObjectStatusLabel. -const ( - UserObjectStatusLabelActive UserObjectStatusLabel = "Active" - UserObjectStatusLabelDecommissioned UserObjectStatusLabel = "Decommissioned" - UserObjectStatusLabelStaged UserObjectStatusLabel = "Staged" -) - -// Defines values for UserObjectStatusValue. -const ( - UserObjectStatusValueActive UserObjectStatusValue = "active" - UserObjectStatusValueDecommissioned UserObjectStatusValue = "decommissioned" - UserObjectStatusValueStaged UserObjectStatusValue = "staged" -) - -// Defines values for UserObjectGroupStatusLabel. -const ( - UserObjectGroupStatusLabelActive UserObjectGroupStatusLabel = "Active" - UserObjectGroupStatusLabelDecommissioned UserObjectGroupStatusLabel = "Decommissioned" - UserObjectGroupStatusLabelStaged UserObjectGroupStatusLabel = "Staged" -) - -// Defines values for UserObjectGroupStatusValue. -const ( - UserObjectGroupStatusValueActive UserObjectGroupStatusValue = "active" - UserObjectGroupStatusValueDecommissioned UserObjectGroupStatusValue = "decommissioned" - UserObjectGroupStatusValueStaged UserObjectGroupStatusValue = "staged" -) - -// Defines values for UserObjectGroupUserObjectsStatusLabel. -const ( - UserObjectGroupUserObjectsStatusLabelActive UserObjectGroupUserObjectsStatusLabel = "Active" - UserObjectGroupUserObjectsStatusLabelDecommissioned UserObjectGroupUserObjectsStatusLabel = "Decommissioned" - UserObjectGroupUserObjectsStatusLabelStaged UserObjectGroupUserObjectsStatusLabel = "Staged" -) - -// Defines values for UserObjectGroupUserObjectsStatusValue. -const ( - UserObjectGroupUserObjectsStatusValueActive UserObjectGroupUserObjectsStatusValue = "active" - UserObjectGroupUserObjectsStatusValueDecommissioned UserObjectGroupUserObjectsStatusValue = "decommissioned" - UserObjectGroupUserObjectsStatusValueStaged UserObjectGroupUserObjectsStatusValue = "staged" -) - -// Defines values for VLANStatusLabel. -const ( - VLANStatusLabelActive VLANStatusLabel = "Active" - VLANStatusLabelDeprecated VLANStatusLabel = "Deprecated" - VLANStatusLabelReserved VLANStatusLabel = "Reserved" -) - -// Defines values for VLANStatusValue. -const ( - VLANStatusValueActive VLANStatusValue = "active" - VLANStatusValueDeprecated VLANStatusValue = "deprecated" - VLANStatusValueReserved VLANStatusValue = "reserved" -) - -// Defines values for VLANStatusChoices. -const ( - VLANStatusChoicesActive VLANStatusChoices = "active" - VLANStatusChoicesDeprecated VLANStatusChoices = "deprecated" - VLANStatusChoicesReserved VLANStatusChoices = "reserved" -) - -// Defines values for VMInterfaceSerializerVersion12ModeLabel. -const ( - VMInterfaceSerializerVersion12ModeLabelAccess VMInterfaceSerializerVersion12ModeLabel = "Access" - VMInterfaceSerializerVersion12ModeLabelTagged VMInterfaceSerializerVersion12ModeLabel = "Tagged" - VMInterfaceSerializerVersion12ModeLabelTaggedAll VMInterfaceSerializerVersion12ModeLabel = "Tagged (All)" -) - -// Defines values for VMInterfaceSerializerVersion12ModeValue. -const ( - Access VMInterfaceSerializerVersion12ModeValue = "access" - Tagged VMInterfaceSerializerVersion12ModeValue = "tagged" - TaggedAll VMInterfaceSerializerVersion12ModeValue = "tagged-all" -) - -// Defines values for VirtualMachineStatusChoices. -const ( - VirtualMachineStatusChoicesActive VirtualMachineStatusChoices = "active" - VirtualMachineStatusChoicesDecommissioning VirtualMachineStatusChoices = "decommissioning" - VirtualMachineStatusChoicesFailed VirtualMachineStatusChoices = "failed" - VirtualMachineStatusChoicesOffline VirtualMachineStatusChoices = "offline" - VirtualMachineStatusChoicesPlanned VirtualMachineStatusChoices = "planned" - VirtualMachineStatusChoicesStaged VirtualMachineStatusChoices = "staged" -) - -// Defines values for VirtualMachineWithConfigContextStatusLabel. -const ( - VirtualMachineWithConfigContextStatusLabelActive VirtualMachineWithConfigContextStatusLabel = "Active" - VirtualMachineWithConfigContextStatusLabelDecommissioning VirtualMachineWithConfigContextStatusLabel = "Decommissioning" - VirtualMachineWithConfigContextStatusLabelFailed VirtualMachineWithConfigContextStatusLabel = "Failed" - VirtualMachineWithConfigContextStatusLabelOffline VirtualMachineWithConfigContextStatusLabel = "Offline" - VirtualMachineWithConfigContextStatusLabelPlanned VirtualMachineWithConfigContextStatusLabel = "Planned" - VirtualMachineWithConfigContextStatusLabelStaged VirtualMachineWithConfigContextStatusLabel = "Staged" -) - -// Defines values for VirtualMachineWithConfigContextStatusValue. -const ( - VirtualMachineWithConfigContextStatusValueActive VirtualMachineWithConfigContextStatusValue = "active" - VirtualMachineWithConfigContextStatusValueDecommissioning VirtualMachineWithConfigContextStatusValue = "decommissioning" - VirtualMachineWithConfigContextStatusValueFailed VirtualMachineWithConfigContextStatusValue = "failed" - VirtualMachineWithConfigContextStatusValueOffline VirtualMachineWithConfigContextStatusValue = "offline" - VirtualMachineWithConfigContextStatusValuePlanned VirtualMachineWithConfigContextStatusValue = "planned" - VirtualMachineWithConfigContextStatusValueStaged VirtualMachineWithConfigContextStatusValue = "staged" -) - -// Defines values for WidthEnum. -const ( - WidthEnumN10 WidthEnum = 10 - WidthEnumN19 WidthEnum = 19 - WidthEnumN21 WidthEnum = 21 - WidthEnumN23 WidthEnum = 23 -) - -// Defines values for ZoneStatusLabel. -const ( - ZoneStatusLabelActive ZoneStatusLabel = "Active" - ZoneStatusLabelDecommissioned ZoneStatusLabel = "Decommissioned" - ZoneStatusLabelStaged ZoneStatusLabel = "Staged" -) - -// Defines values for ZoneStatusValue. -const ( - Active ZoneStatusValue = "active" - Decommissioned ZoneStatusValue = "decommissioned" - Staged ZoneStatusValue = "staged" -) - -// Defines values for DcimDevicesListParamsFace. -const ( - DcimDevicesListParamsFaceFront DcimDevicesListParamsFace = "front" - DcimDevicesListParamsFaceRear DcimDevicesListParamsFace = "rear" -) - -// Defines values for DcimDevicesListParamsFaceN. -const ( - DcimDevicesListParamsFaceNFront DcimDevicesListParamsFaceN = "front" - DcimDevicesListParamsFaceNRear DcimDevicesListParamsFaceN = "rear" -) - -// Defines values for DcimRacksElevationListParamsFace. -const ( - DcimRacksElevationListParamsFaceFront DcimRacksElevationListParamsFace = "front" - DcimRacksElevationListParamsFaceRear DcimRacksElevationListParamsFace = "rear" -) - -// Defines values for DcimRacksElevationListParamsRender. -const ( - DcimRacksElevationListParamsRenderJson DcimRacksElevationListParamsRender = "json" - DcimRacksElevationListParamsRenderSvg DcimRacksElevationListParamsRender = "svg" -) - -// Defines values for ExtrasDynamicGroupMembershipsListParamsOperator. -const ( - ExtrasDynamicGroupMembershipsListParamsOperatorDifference ExtrasDynamicGroupMembershipsListParamsOperator = "difference" - ExtrasDynamicGroupMembershipsListParamsOperatorIntersection ExtrasDynamicGroupMembershipsListParamsOperator = "intersection" - ExtrasDynamicGroupMembershipsListParamsOperatorUnion ExtrasDynamicGroupMembershipsListParamsOperator = "union" -) - -// Defines values for ExtrasDynamicGroupMembershipsListParamsOperatorN. -const ( - Difference ExtrasDynamicGroupMembershipsListParamsOperatorN = "difference" - Intersection ExtrasDynamicGroupMembershipsListParamsOperatorN = "intersection" - Union ExtrasDynamicGroupMembershipsListParamsOperatorN = "union" -) - -// Defines values for PluginsFirewallPolicyRuleListParamsAction. -const ( - PluginsFirewallPolicyRuleListParamsActionAllow PluginsFirewallPolicyRuleListParamsAction = "allow" - PluginsFirewallPolicyRuleListParamsActionDeny PluginsFirewallPolicyRuleListParamsAction = "deny" - PluginsFirewallPolicyRuleListParamsActionDrop PluginsFirewallPolicyRuleListParamsAction = "drop" - PluginsFirewallPolicyRuleListParamsActionRemark PluginsFirewallPolicyRuleListParamsAction = "remark" -) - -// Defines values for PluginsFirewallPolicyRuleListParamsActionN. -const ( - Allow PluginsFirewallPolicyRuleListParamsActionN = "allow" - Deny PluginsFirewallPolicyRuleListParamsActionN = "deny" - Drop PluginsFirewallPolicyRuleListParamsActionN = "drop" - Remark PluginsFirewallPolicyRuleListParamsActionN = "remark" -) - -// Defines values for PluginsFirewallServiceObjectListParamsIpProtocol. -const ( - PluginsFirewallServiceObjectListParamsIpProtocolAH PluginsFirewallServiceObjectListParamsIpProtocol = "AH" - PluginsFirewallServiceObjectListParamsIpProtocolAN PluginsFirewallServiceObjectListParamsIpProtocol = "A/N" - PluginsFirewallServiceObjectListParamsIpProtocolARIS PluginsFirewallServiceObjectListParamsIpProtocol = "ARIS" - PluginsFirewallServiceObjectListParamsIpProtocolAX25 PluginsFirewallServiceObjectListParamsIpProtocol = "AX.25" - PluginsFirewallServiceObjectListParamsIpProtocolBBNRCCMON PluginsFirewallServiceObjectListParamsIpProtocol = "BBN-RCC-MON" - PluginsFirewallServiceObjectListParamsIpProtocolBNA PluginsFirewallServiceObjectListParamsIpProtocol = "BNA" - PluginsFirewallServiceObjectListParamsIpProtocolBRSATMON PluginsFirewallServiceObjectListParamsIpProtocol = "BR-SAT-MON" - PluginsFirewallServiceObjectListParamsIpProtocolCBT PluginsFirewallServiceObjectListParamsIpProtocol = "CBT" - PluginsFirewallServiceObjectListParamsIpProtocolCFTP PluginsFirewallServiceObjectListParamsIpProtocol = "CFTP" - PluginsFirewallServiceObjectListParamsIpProtocolCHAOS PluginsFirewallServiceObjectListParamsIpProtocol = "CHAOS" - PluginsFirewallServiceObjectListParamsIpProtocolCPHB PluginsFirewallServiceObjectListParamsIpProtocol = "CPHB" - PluginsFirewallServiceObjectListParamsIpProtocolCPNX PluginsFirewallServiceObjectListParamsIpProtocol = "CPNX" - PluginsFirewallServiceObjectListParamsIpProtocolCRTP PluginsFirewallServiceObjectListParamsIpProtocol = "CRTP" - PluginsFirewallServiceObjectListParamsIpProtocolCRUDP PluginsFirewallServiceObjectListParamsIpProtocol = "CRUDP" - PluginsFirewallServiceObjectListParamsIpProtocolCompaqPeer PluginsFirewallServiceObjectListParamsIpProtocol = "Compaq-Peer" - PluginsFirewallServiceObjectListParamsIpProtocolDCCP PluginsFirewallServiceObjectListParamsIpProtocol = "DCCP" - PluginsFirewallServiceObjectListParamsIpProtocolDCNMEAS PluginsFirewallServiceObjectListParamsIpProtocol = "DCN-MEAS" - PluginsFirewallServiceObjectListParamsIpProtocolDDP PluginsFirewallServiceObjectListParamsIpProtocol = "DDP" - PluginsFirewallServiceObjectListParamsIpProtocolDDX PluginsFirewallServiceObjectListParamsIpProtocol = "DDX" - PluginsFirewallServiceObjectListParamsIpProtocolDGP PluginsFirewallServiceObjectListParamsIpProtocol = "DGP" - PluginsFirewallServiceObjectListParamsIpProtocolDSR PluginsFirewallServiceObjectListParamsIpProtocol = "DSR" - PluginsFirewallServiceObjectListParamsIpProtocolEGP PluginsFirewallServiceObjectListParamsIpProtocol = "EGP" - PluginsFirewallServiceObjectListParamsIpProtocolEIGRP PluginsFirewallServiceObjectListParamsIpProtocol = "EIGRP" - PluginsFirewallServiceObjectListParamsIpProtocolEMCON PluginsFirewallServiceObjectListParamsIpProtocol = "EMCON" - PluginsFirewallServiceObjectListParamsIpProtocolENCAP PluginsFirewallServiceObjectListParamsIpProtocol = "ENCAP" - PluginsFirewallServiceObjectListParamsIpProtocolESP PluginsFirewallServiceObjectListParamsIpProtocol = "ESP" - PluginsFirewallServiceObjectListParamsIpProtocolETHERIP PluginsFirewallServiceObjectListParamsIpProtocol = "ETHERIP" - PluginsFirewallServiceObjectListParamsIpProtocolEthernet PluginsFirewallServiceObjectListParamsIpProtocol = "Ethernet" - PluginsFirewallServiceObjectListParamsIpProtocolFC PluginsFirewallServiceObjectListParamsIpProtocol = "FC" - PluginsFirewallServiceObjectListParamsIpProtocolFIRE PluginsFirewallServiceObjectListParamsIpProtocol = "FIRE" - PluginsFirewallServiceObjectListParamsIpProtocolGGP PluginsFirewallServiceObjectListParamsIpProtocol = "GGP" - PluginsFirewallServiceObjectListParamsIpProtocolGMTP PluginsFirewallServiceObjectListParamsIpProtocol = "GMTP" - PluginsFirewallServiceObjectListParamsIpProtocolGRE PluginsFirewallServiceObjectListParamsIpProtocol = "GRE" - PluginsFirewallServiceObjectListParamsIpProtocolHIP PluginsFirewallServiceObjectListParamsIpProtocol = "HIP" - PluginsFirewallServiceObjectListParamsIpProtocolHMP PluginsFirewallServiceObjectListParamsIpProtocol = "HMP" - PluginsFirewallServiceObjectListParamsIpProtocolIATP PluginsFirewallServiceObjectListParamsIpProtocol = "IATP" - PluginsFirewallServiceObjectListParamsIpProtocolICMP PluginsFirewallServiceObjectListParamsIpProtocol = "ICMP" - PluginsFirewallServiceObjectListParamsIpProtocolIDPR PluginsFirewallServiceObjectListParamsIpProtocol = "IDPR" - PluginsFirewallServiceObjectListParamsIpProtocolIDPRCMTP PluginsFirewallServiceObjectListParamsIpProtocol = "IDPR-CMTP" - PluginsFirewallServiceObjectListParamsIpProtocolIDRP PluginsFirewallServiceObjectListParamsIpProtocol = "IDRP" - PluginsFirewallServiceObjectListParamsIpProtocolIFMP PluginsFirewallServiceObjectListParamsIpProtocol = "IFMP" - PluginsFirewallServiceObjectListParamsIpProtocolIGMP PluginsFirewallServiceObjectListParamsIpProtocol = "IGMP" - PluginsFirewallServiceObjectListParamsIpProtocolIGP PluginsFirewallServiceObjectListParamsIpProtocol = "IGP" - PluginsFirewallServiceObjectListParamsIpProtocolIL PluginsFirewallServiceObjectListParamsIpProtocol = "IL" - PluginsFirewallServiceObjectListParamsIpProtocolINLSP PluginsFirewallServiceObjectListParamsIpProtocol = "I-NLSP" - PluginsFirewallServiceObjectListParamsIpProtocolIPCV PluginsFirewallServiceObjectListParamsIpProtocol = "IPCV" - PluginsFirewallServiceObjectListParamsIpProtocolIPComp PluginsFirewallServiceObjectListParamsIpProtocol = "IPComp" - PluginsFirewallServiceObjectListParamsIpProtocolIPIP PluginsFirewallServiceObjectListParamsIpProtocol = "IPIP" - PluginsFirewallServiceObjectListParamsIpProtocolIPLT PluginsFirewallServiceObjectListParamsIpProtocol = "IPLT" - PluginsFirewallServiceObjectListParamsIpProtocolIPPC PluginsFirewallServiceObjectListParamsIpProtocol = "IPPC" - PluginsFirewallServiceObjectListParamsIpProtocolIPXInIP PluginsFirewallServiceObjectListParamsIpProtocol = "IPX-in-IP" - PluginsFirewallServiceObjectListParamsIpProtocolIRTP PluginsFirewallServiceObjectListParamsIpProtocol = "IRTP" - PluginsFirewallServiceObjectListParamsIpProtocolISOIP PluginsFirewallServiceObjectListParamsIpProtocol = "ISO-IP" - PluginsFirewallServiceObjectListParamsIpProtocolISOTP4 PluginsFirewallServiceObjectListParamsIpProtocol = "ISO-TP4" - PluginsFirewallServiceObjectListParamsIpProtocolKRYPTOLAN PluginsFirewallServiceObjectListParamsIpProtocol = "KRYPTOLAN" - PluginsFirewallServiceObjectListParamsIpProtocolL2TP PluginsFirewallServiceObjectListParamsIpProtocol = "L2TP" - PluginsFirewallServiceObjectListParamsIpProtocolLARP PluginsFirewallServiceObjectListParamsIpProtocol = "LARP" - PluginsFirewallServiceObjectListParamsIpProtocolLEAF1 PluginsFirewallServiceObjectListParamsIpProtocol = "LEAF-1" - PluginsFirewallServiceObjectListParamsIpProtocolLEAF2 PluginsFirewallServiceObjectListParamsIpProtocol = "LEAF-2" - PluginsFirewallServiceObjectListParamsIpProtocolMERITINP PluginsFirewallServiceObjectListParamsIpProtocol = "MERIT-INP" - PluginsFirewallServiceObjectListParamsIpProtocolMFENSP PluginsFirewallServiceObjectListParamsIpProtocol = "MFE-NSP" - PluginsFirewallServiceObjectListParamsIpProtocolMOBILE PluginsFirewallServiceObjectListParamsIpProtocol = "MOBILE" - PluginsFirewallServiceObjectListParamsIpProtocolMTP PluginsFirewallServiceObjectListParamsIpProtocol = "MTP" - PluginsFirewallServiceObjectListParamsIpProtocolMUX PluginsFirewallServiceObjectListParamsIpProtocol = "MUX" - PluginsFirewallServiceObjectListParamsIpProtocolManet PluginsFirewallServiceObjectListParamsIpProtocol = "manet" - PluginsFirewallServiceObjectListParamsIpProtocolN3PC PluginsFirewallServiceObjectListParamsIpProtocol = "3PC" - PluginsFirewallServiceObjectListParamsIpProtocolNARP PluginsFirewallServiceObjectListParamsIpProtocol = "NARP" - PluginsFirewallServiceObjectListParamsIpProtocolNETBLT PluginsFirewallServiceObjectListParamsIpProtocol = "NETBLT" - PluginsFirewallServiceObjectListParamsIpProtocolNSFNETIGP PluginsFirewallServiceObjectListParamsIpProtocol = "NSFNET-IGP" - PluginsFirewallServiceObjectListParamsIpProtocolNVPII PluginsFirewallServiceObjectListParamsIpProtocol = "NVP-II" - PluginsFirewallServiceObjectListParamsIpProtocolOSPFIGP PluginsFirewallServiceObjectListParamsIpProtocol = "OSPFIGP" - PluginsFirewallServiceObjectListParamsIpProtocolPGM PluginsFirewallServiceObjectListParamsIpProtocol = "PGM" - PluginsFirewallServiceObjectListParamsIpProtocolPIM PluginsFirewallServiceObjectListParamsIpProtocol = "PIM" - PluginsFirewallServiceObjectListParamsIpProtocolPIPE PluginsFirewallServiceObjectListParamsIpProtocol = "PIPE" - PluginsFirewallServiceObjectListParamsIpProtocolPNNI PluginsFirewallServiceObjectListParamsIpProtocol = "PNNI" - PluginsFirewallServiceObjectListParamsIpProtocolPRM PluginsFirewallServiceObjectListParamsIpProtocol = "PRM" - PluginsFirewallServiceObjectListParamsIpProtocolPTP PluginsFirewallServiceObjectListParamsIpProtocol = "PTP" - PluginsFirewallServiceObjectListParamsIpProtocolPUP PluginsFirewallServiceObjectListParamsIpProtocol = "PUP" - PluginsFirewallServiceObjectListParamsIpProtocolPVP PluginsFirewallServiceObjectListParamsIpProtocol = "PVP" - PluginsFirewallServiceObjectListParamsIpProtocolQNX PluginsFirewallServiceObjectListParamsIpProtocol = "QNX" - PluginsFirewallServiceObjectListParamsIpProtocolRDP PluginsFirewallServiceObjectListParamsIpProtocol = "RDP" - PluginsFirewallServiceObjectListParamsIpProtocolROHC PluginsFirewallServiceObjectListParamsIpProtocol = "ROHC" - PluginsFirewallServiceObjectListParamsIpProtocolRSVP PluginsFirewallServiceObjectListParamsIpProtocol = "RSVP" - PluginsFirewallServiceObjectListParamsIpProtocolRSVPE2EIGNORE PluginsFirewallServiceObjectListParamsIpProtocol = "RSVP-E2E-IGNORE" - PluginsFirewallServiceObjectListParamsIpProtocolRVD PluginsFirewallServiceObjectListParamsIpProtocol = "RVD" - PluginsFirewallServiceObjectListParamsIpProtocolSATEXPAK PluginsFirewallServiceObjectListParamsIpProtocol = "SAT-EXPAK" - PluginsFirewallServiceObjectListParamsIpProtocolSATMON PluginsFirewallServiceObjectListParamsIpProtocol = "SAT-MON" - PluginsFirewallServiceObjectListParamsIpProtocolSCCSP PluginsFirewallServiceObjectListParamsIpProtocol = "SCC-SP" - PluginsFirewallServiceObjectListParamsIpProtocolSCPS PluginsFirewallServiceObjectListParamsIpProtocol = "SCPS" - PluginsFirewallServiceObjectListParamsIpProtocolSCTP PluginsFirewallServiceObjectListParamsIpProtocol = "SCTP" - PluginsFirewallServiceObjectListParamsIpProtocolSDRP PluginsFirewallServiceObjectListParamsIpProtocol = "SDRP" - PluginsFirewallServiceObjectListParamsIpProtocolSECUREVMTP PluginsFirewallServiceObjectListParamsIpProtocol = "SECURE-VMTP" - PluginsFirewallServiceObjectListParamsIpProtocolSKIP PluginsFirewallServiceObjectListParamsIpProtocol = "SKIP" - PluginsFirewallServiceObjectListParamsIpProtocolSM PluginsFirewallServiceObjectListParamsIpProtocol = "SM" - PluginsFirewallServiceObjectListParamsIpProtocolSMP PluginsFirewallServiceObjectListParamsIpProtocol = "SMP" - PluginsFirewallServiceObjectListParamsIpProtocolSNP PluginsFirewallServiceObjectListParamsIpProtocol = "SNP" - PluginsFirewallServiceObjectListParamsIpProtocolSPS PluginsFirewallServiceObjectListParamsIpProtocol = "SPS" - PluginsFirewallServiceObjectListParamsIpProtocolSRP PluginsFirewallServiceObjectListParamsIpProtocol = "SRP" - PluginsFirewallServiceObjectListParamsIpProtocolSSCOPMCE PluginsFirewallServiceObjectListParamsIpProtocol = "SSCOPMCE" - PluginsFirewallServiceObjectListParamsIpProtocolSTP PluginsFirewallServiceObjectListParamsIpProtocol = "STP" - PluginsFirewallServiceObjectListParamsIpProtocolSUNND PluginsFirewallServiceObjectListParamsIpProtocol = "SUN-ND" - PluginsFirewallServiceObjectListParamsIpProtocolSpriteRPC PluginsFirewallServiceObjectListParamsIpProtocol = "Sprite-RPC" - PluginsFirewallServiceObjectListParamsIpProtocolTCF PluginsFirewallServiceObjectListParamsIpProtocol = "TCF" - PluginsFirewallServiceObjectListParamsIpProtocolTCP PluginsFirewallServiceObjectListParamsIpProtocol = "TCP" - PluginsFirewallServiceObjectListParamsIpProtocolTLSP PluginsFirewallServiceObjectListParamsIpProtocol = "TLSP" - PluginsFirewallServiceObjectListParamsIpProtocolTP PluginsFirewallServiceObjectListParamsIpProtocol = "TP++" - PluginsFirewallServiceObjectListParamsIpProtocolTRUNK1 PluginsFirewallServiceObjectListParamsIpProtocol = "TRUNK-1" - PluginsFirewallServiceObjectListParamsIpProtocolTRUNK2 PluginsFirewallServiceObjectListParamsIpProtocol = "TRUNK-2" - PluginsFirewallServiceObjectListParamsIpProtocolTTP PluginsFirewallServiceObjectListParamsIpProtocol = "TTP" - PluginsFirewallServiceObjectListParamsIpProtocolUDP PluginsFirewallServiceObjectListParamsIpProtocol = "UDP" - PluginsFirewallServiceObjectListParamsIpProtocolUDPLite PluginsFirewallServiceObjectListParamsIpProtocol = "UDPLite" - PluginsFirewallServiceObjectListParamsIpProtocolUTI PluginsFirewallServiceObjectListParamsIpProtocol = "UTI" - PluginsFirewallServiceObjectListParamsIpProtocolVINES PluginsFirewallServiceObjectListParamsIpProtocol = "VINES" - PluginsFirewallServiceObjectListParamsIpProtocolVISA PluginsFirewallServiceObjectListParamsIpProtocol = "VISA" - PluginsFirewallServiceObjectListParamsIpProtocolVMTP PluginsFirewallServiceObjectListParamsIpProtocol = "VMTP" - PluginsFirewallServiceObjectListParamsIpProtocolWBEXPAK PluginsFirewallServiceObjectListParamsIpProtocol = "WB-EXPAK" - PluginsFirewallServiceObjectListParamsIpProtocolWBMON PluginsFirewallServiceObjectListParamsIpProtocol = "WB-MON" - PluginsFirewallServiceObjectListParamsIpProtocolWESP PluginsFirewallServiceObjectListParamsIpProtocol = "WESP" - PluginsFirewallServiceObjectListParamsIpProtocolWSN PluginsFirewallServiceObjectListParamsIpProtocol = "WSN" - PluginsFirewallServiceObjectListParamsIpProtocolXNET PluginsFirewallServiceObjectListParamsIpProtocol = "XNET" - PluginsFirewallServiceObjectListParamsIpProtocolXNSIDP PluginsFirewallServiceObjectListParamsIpProtocol = "XNS-IDP" - PluginsFirewallServiceObjectListParamsIpProtocolXTP PluginsFirewallServiceObjectListParamsIpProtocol = "XTP" -) - -// Defines values for PluginsFirewallServiceObjectListParamsIpProtocolN. -const ( - PluginsFirewallServiceObjectListParamsIpProtocolNAH PluginsFirewallServiceObjectListParamsIpProtocolN = "AH" - PluginsFirewallServiceObjectListParamsIpProtocolNAN PluginsFirewallServiceObjectListParamsIpProtocolN = "A/N" - PluginsFirewallServiceObjectListParamsIpProtocolNARIS PluginsFirewallServiceObjectListParamsIpProtocolN = "ARIS" - PluginsFirewallServiceObjectListParamsIpProtocolNAX25 PluginsFirewallServiceObjectListParamsIpProtocolN = "AX.25" - PluginsFirewallServiceObjectListParamsIpProtocolNBBNRCCMON PluginsFirewallServiceObjectListParamsIpProtocolN = "BBN-RCC-MON" - PluginsFirewallServiceObjectListParamsIpProtocolNBNA PluginsFirewallServiceObjectListParamsIpProtocolN = "BNA" - PluginsFirewallServiceObjectListParamsIpProtocolNBRSATMON PluginsFirewallServiceObjectListParamsIpProtocolN = "BR-SAT-MON" - PluginsFirewallServiceObjectListParamsIpProtocolNCBT PluginsFirewallServiceObjectListParamsIpProtocolN = "CBT" - PluginsFirewallServiceObjectListParamsIpProtocolNCFTP PluginsFirewallServiceObjectListParamsIpProtocolN = "CFTP" - PluginsFirewallServiceObjectListParamsIpProtocolNCHAOS PluginsFirewallServiceObjectListParamsIpProtocolN = "CHAOS" - PluginsFirewallServiceObjectListParamsIpProtocolNCPHB PluginsFirewallServiceObjectListParamsIpProtocolN = "CPHB" - PluginsFirewallServiceObjectListParamsIpProtocolNCPNX PluginsFirewallServiceObjectListParamsIpProtocolN = "CPNX" - PluginsFirewallServiceObjectListParamsIpProtocolNCRTP PluginsFirewallServiceObjectListParamsIpProtocolN = "CRTP" - PluginsFirewallServiceObjectListParamsIpProtocolNCRUDP PluginsFirewallServiceObjectListParamsIpProtocolN = "CRUDP" - PluginsFirewallServiceObjectListParamsIpProtocolNCompaqPeer PluginsFirewallServiceObjectListParamsIpProtocolN = "Compaq-Peer" - PluginsFirewallServiceObjectListParamsIpProtocolNDCCP PluginsFirewallServiceObjectListParamsIpProtocolN = "DCCP" - PluginsFirewallServiceObjectListParamsIpProtocolNDCNMEAS PluginsFirewallServiceObjectListParamsIpProtocolN = "DCN-MEAS" - PluginsFirewallServiceObjectListParamsIpProtocolNDDP PluginsFirewallServiceObjectListParamsIpProtocolN = "DDP" - PluginsFirewallServiceObjectListParamsIpProtocolNDDX PluginsFirewallServiceObjectListParamsIpProtocolN = "DDX" - PluginsFirewallServiceObjectListParamsIpProtocolNDGP PluginsFirewallServiceObjectListParamsIpProtocolN = "DGP" - PluginsFirewallServiceObjectListParamsIpProtocolNDSR PluginsFirewallServiceObjectListParamsIpProtocolN = "DSR" - PluginsFirewallServiceObjectListParamsIpProtocolNEGP PluginsFirewallServiceObjectListParamsIpProtocolN = "EGP" - PluginsFirewallServiceObjectListParamsIpProtocolNEIGRP PluginsFirewallServiceObjectListParamsIpProtocolN = "EIGRP" - PluginsFirewallServiceObjectListParamsIpProtocolNEMCON PluginsFirewallServiceObjectListParamsIpProtocolN = "EMCON" - PluginsFirewallServiceObjectListParamsIpProtocolNENCAP PluginsFirewallServiceObjectListParamsIpProtocolN = "ENCAP" - PluginsFirewallServiceObjectListParamsIpProtocolNESP PluginsFirewallServiceObjectListParamsIpProtocolN = "ESP" - PluginsFirewallServiceObjectListParamsIpProtocolNETHERIP PluginsFirewallServiceObjectListParamsIpProtocolN = "ETHERIP" - PluginsFirewallServiceObjectListParamsIpProtocolNEthernet PluginsFirewallServiceObjectListParamsIpProtocolN = "Ethernet" - PluginsFirewallServiceObjectListParamsIpProtocolNFC PluginsFirewallServiceObjectListParamsIpProtocolN = "FC" - PluginsFirewallServiceObjectListParamsIpProtocolNFIRE PluginsFirewallServiceObjectListParamsIpProtocolN = "FIRE" - PluginsFirewallServiceObjectListParamsIpProtocolNGGP PluginsFirewallServiceObjectListParamsIpProtocolN = "GGP" - PluginsFirewallServiceObjectListParamsIpProtocolNGMTP PluginsFirewallServiceObjectListParamsIpProtocolN = "GMTP" - PluginsFirewallServiceObjectListParamsIpProtocolNGRE PluginsFirewallServiceObjectListParamsIpProtocolN = "GRE" - PluginsFirewallServiceObjectListParamsIpProtocolNHIP PluginsFirewallServiceObjectListParamsIpProtocolN = "HIP" - PluginsFirewallServiceObjectListParamsIpProtocolNHMP PluginsFirewallServiceObjectListParamsIpProtocolN = "HMP" - PluginsFirewallServiceObjectListParamsIpProtocolNIATP PluginsFirewallServiceObjectListParamsIpProtocolN = "IATP" - PluginsFirewallServiceObjectListParamsIpProtocolNICMP PluginsFirewallServiceObjectListParamsIpProtocolN = "ICMP" - PluginsFirewallServiceObjectListParamsIpProtocolNIDPR PluginsFirewallServiceObjectListParamsIpProtocolN = "IDPR" - PluginsFirewallServiceObjectListParamsIpProtocolNIDPRCMTP PluginsFirewallServiceObjectListParamsIpProtocolN = "IDPR-CMTP" - PluginsFirewallServiceObjectListParamsIpProtocolNIDRP PluginsFirewallServiceObjectListParamsIpProtocolN = "IDRP" - PluginsFirewallServiceObjectListParamsIpProtocolNIFMP PluginsFirewallServiceObjectListParamsIpProtocolN = "IFMP" - PluginsFirewallServiceObjectListParamsIpProtocolNIGMP PluginsFirewallServiceObjectListParamsIpProtocolN = "IGMP" - PluginsFirewallServiceObjectListParamsIpProtocolNIGP PluginsFirewallServiceObjectListParamsIpProtocolN = "IGP" - PluginsFirewallServiceObjectListParamsIpProtocolNIL PluginsFirewallServiceObjectListParamsIpProtocolN = "IL" - PluginsFirewallServiceObjectListParamsIpProtocolNINLSP PluginsFirewallServiceObjectListParamsIpProtocolN = "I-NLSP" - PluginsFirewallServiceObjectListParamsIpProtocolNIPCV PluginsFirewallServiceObjectListParamsIpProtocolN = "IPCV" - PluginsFirewallServiceObjectListParamsIpProtocolNIPComp PluginsFirewallServiceObjectListParamsIpProtocolN = "IPComp" - PluginsFirewallServiceObjectListParamsIpProtocolNIPIP PluginsFirewallServiceObjectListParamsIpProtocolN = "IPIP" - PluginsFirewallServiceObjectListParamsIpProtocolNIPLT PluginsFirewallServiceObjectListParamsIpProtocolN = "IPLT" - PluginsFirewallServiceObjectListParamsIpProtocolNIPPC PluginsFirewallServiceObjectListParamsIpProtocolN = "IPPC" - PluginsFirewallServiceObjectListParamsIpProtocolNIPXInIP PluginsFirewallServiceObjectListParamsIpProtocolN = "IPX-in-IP" - PluginsFirewallServiceObjectListParamsIpProtocolNIRTP PluginsFirewallServiceObjectListParamsIpProtocolN = "IRTP" - PluginsFirewallServiceObjectListParamsIpProtocolNISOIP PluginsFirewallServiceObjectListParamsIpProtocolN = "ISO-IP" - PluginsFirewallServiceObjectListParamsIpProtocolNISOTP4 PluginsFirewallServiceObjectListParamsIpProtocolN = "ISO-TP4" - PluginsFirewallServiceObjectListParamsIpProtocolNKRYPTOLAN PluginsFirewallServiceObjectListParamsIpProtocolN = "KRYPTOLAN" - PluginsFirewallServiceObjectListParamsIpProtocolNL2TP PluginsFirewallServiceObjectListParamsIpProtocolN = "L2TP" - PluginsFirewallServiceObjectListParamsIpProtocolNLARP PluginsFirewallServiceObjectListParamsIpProtocolN = "LARP" - PluginsFirewallServiceObjectListParamsIpProtocolNLEAF1 PluginsFirewallServiceObjectListParamsIpProtocolN = "LEAF-1" - PluginsFirewallServiceObjectListParamsIpProtocolNLEAF2 PluginsFirewallServiceObjectListParamsIpProtocolN = "LEAF-2" - PluginsFirewallServiceObjectListParamsIpProtocolNMERITINP PluginsFirewallServiceObjectListParamsIpProtocolN = "MERIT-INP" - PluginsFirewallServiceObjectListParamsIpProtocolNMFENSP PluginsFirewallServiceObjectListParamsIpProtocolN = "MFE-NSP" - PluginsFirewallServiceObjectListParamsIpProtocolNMOBILE PluginsFirewallServiceObjectListParamsIpProtocolN = "MOBILE" - PluginsFirewallServiceObjectListParamsIpProtocolNMTP PluginsFirewallServiceObjectListParamsIpProtocolN = "MTP" - PluginsFirewallServiceObjectListParamsIpProtocolNMUX PluginsFirewallServiceObjectListParamsIpProtocolN = "MUX" - PluginsFirewallServiceObjectListParamsIpProtocolNManet PluginsFirewallServiceObjectListParamsIpProtocolN = "manet" - PluginsFirewallServiceObjectListParamsIpProtocolNN3PC PluginsFirewallServiceObjectListParamsIpProtocolN = "3PC" - PluginsFirewallServiceObjectListParamsIpProtocolNNARP PluginsFirewallServiceObjectListParamsIpProtocolN = "NARP" - PluginsFirewallServiceObjectListParamsIpProtocolNNETBLT PluginsFirewallServiceObjectListParamsIpProtocolN = "NETBLT" - PluginsFirewallServiceObjectListParamsIpProtocolNNSFNETIGP PluginsFirewallServiceObjectListParamsIpProtocolN = "NSFNET-IGP" - PluginsFirewallServiceObjectListParamsIpProtocolNNVPII PluginsFirewallServiceObjectListParamsIpProtocolN = "NVP-II" - PluginsFirewallServiceObjectListParamsIpProtocolNOSPFIGP PluginsFirewallServiceObjectListParamsIpProtocolN = "OSPFIGP" - PluginsFirewallServiceObjectListParamsIpProtocolNPGM PluginsFirewallServiceObjectListParamsIpProtocolN = "PGM" - PluginsFirewallServiceObjectListParamsIpProtocolNPIM PluginsFirewallServiceObjectListParamsIpProtocolN = "PIM" - PluginsFirewallServiceObjectListParamsIpProtocolNPIPE PluginsFirewallServiceObjectListParamsIpProtocolN = "PIPE" - PluginsFirewallServiceObjectListParamsIpProtocolNPNNI PluginsFirewallServiceObjectListParamsIpProtocolN = "PNNI" - PluginsFirewallServiceObjectListParamsIpProtocolNPRM PluginsFirewallServiceObjectListParamsIpProtocolN = "PRM" - PluginsFirewallServiceObjectListParamsIpProtocolNPTP PluginsFirewallServiceObjectListParamsIpProtocolN = "PTP" - PluginsFirewallServiceObjectListParamsIpProtocolNPUP PluginsFirewallServiceObjectListParamsIpProtocolN = "PUP" - PluginsFirewallServiceObjectListParamsIpProtocolNPVP PluginsFirewallServiceObjectListParamsIpProtocolN = "PVP" - PluginsFirewallServiceObjectListParamsIpProtocolNQNX PluginsFirewallServiceObjectListParamsIpProtocolN = "QNX" - PluginsFirewallServiceObjectListParamsIpProtocolNRDP PluginsFirewallServiceObjectListParamsIpProtocolN = "RDP" - PluginsFirewallServiceObjectListParamsIpProtocolNROHC PluginsFirewallServiceObjectListParamsIpProtocolN = "ROHC" - PluginsFirewallServiceObjectListParamsIpProtocolNRSVP PluginsFirewallServiceObjectListParamsIpProtocolN = "RSVP" - PluginsFirewallServiceObjectListParamsIpProtocolNRSVPE2EIGNORE PluginsFirewallServiceObjectListParamsIpProtocolN = "RSVP-E2E-IGNORE" - PluginsFirewallServiceObjectListParamsIpProtocolNRVD PluginsFirewallServiceObjectListParamsIpProtocolN = "RVD" - PluginsFirewallServiceObjectListParamsIpProtocolNSATEXPAK PluginsFirewallServiceObjectListParamsIpProtocolN = "SAT-EXPAK" - PluginsFirewallServiceObjectListParamsIpProtocolNSATMON PluginsFirewallServiceObjectListParamsIpProtocolN = "SAT-MON" - PluginsFirewallServiceObjectListParamsIpProtocolNSCCSP PluginsFirewallServiceObjectListParamsIpProtocolN = "SCC-SP" - PluginsFirewallServiceObjectListParamsIpProtocolNSCPS PluginsFirewallServiceObjectListParamsIpProtocolN = "SCPS" - PluginsFirewallServiceObjectListParamsIpProtocolNSCTP PluginsFirewallServiceObjectListParamsIpProtocolN = "SCTP" - PluginsFirewallServiceObjectListParamsIpProtocolNSDRP PluginsFirewallServiceObjectListParamsIpProtocolN = "SDRP" - PluginsFirewallServiceObjectListParamsIpProtocolNSECUREVMTP PluginsFirewallServiceObjectListParamsIpProtocolN = "SECURE-VMTP" - PluginsFirewallServiceObjectListParamsIpProtocolNSKIP PluginsFirewallServiceObjectListParamsIpProtocolN = "SKIP" - PluginsFirewallServiceObjectListParamsIpProtocolNSM PluginsFirewallServiceObjectListParamsIpProtocolN = "SM" - PluginsFirewallServiceObjectListParamsIpProtocolNSMP PluginsFirewallServiceObjectListParamsIpProtocolN = "SMP" - PluginsFirewallServiceObjectListParamsIpProtocolNSNP PluginsFirewallServiceObjectListParamsIpProtocolN = "SNP" - PluginsFirewallServiceObjectListParamsIpProtocolNSPS PluginsFirewallServiceObjectListParamsIpProtocolN = "SPS" - PluginsFirewallServiceObjectListParamsIpProtocolNSRP PluginsFirewallServiceObjectListParamsIpProtocolN = "SRP" - PluginsFirewallServiceObjectListParamsIpProtocolNSSCOPMCE PluginsFirewallServiceObjectListParamsIpProtocolN = "SSCOPMCE" - PluginsFirewallServiceObjectListParamsIpProtocolNSTP PluginsFirewallServiceObjectListParamsIpProtocolN = "STP" - PluginsFirewallServiceObjectListParamsIpProtocolNSUNND PluginsFirewallServiceObjectListParamsIpProtocolN = "SUN-ND" - PluginsFirewallServiceObjectListParamsIpProtocolNSpriteRPC PluginsFirewallServiceObjectListParamsIpProtocolN = "Sprite-RPC" - PluginsFirewallServiceObjectListParamsIpProtocolNTCF PluginsFirewallServiceObjectListParamsIpProtocolN = "TCF" - PluginsFirewallServiceObjectListParamsIpProtocolNTCP PluginsFirewallServiceObjectListParamsIpProtocolN = "TCP" - PluginsFirewallServiceObjectListParamsIpProtocolNTLSP PluginsFirewallServiceObjectListParamsIpProtocolN = "TLSP" - PluginsFirewallServiceObjectListParamsIpProtocolNTP PluginsFirewallServiceObjectListParamsIpProtocolN = "TP++" - PluginsFirewallServiceObjectListParamsIpProtocolNTRUNK1 PluginsFirewallServiceObjectListParamsIpProtocolN = "TRUNK-1" - PluginsFirewallServiceObjectListParamsIpProtocolNTRUNK2 PluginsFirewallServiceObjectListParamsIpProtocolN = "TRUNK-2" - PluginsFirewallServiceObjectListParamsIpProtocolNTTP PluginsFirewallServiceObjectListParamsIpProtocolN = "TTP" - PluginsFirewallServiceObjectListParamsIpProtocolNUDP PluginsFirewallServiceObjectListParamsIpProtocolN = "UDP" - PluginsFirewallServiceObjectListParamsIpProtocolNUDPLite PluginsFirewallServiceObjectListParamsIpProtocolN = "UDPLite" - PluginsFirewallServiceObjectListParamsIpProtocolNUTI PluginsFirewallServiceObjectListParamsIpProtocolN = "UTI" - PluginsFirewallServiceObjectListParamsIpProtocolNVINES PluginsFirewallServiceObjectListParamsIpProtocolN = "VINES" - PluginsFirewallServiceObjectListParamsIpProtocolNVISA PluginsFirewallServiceObjectListParamsIpProtocolN = "VISA" - PluginsFirewallServiceObjectListParamsIpProtocolNVMTP PluginsFirewallServiceObjectListParamsIpProtocolN = "VMTP" - PluginsFirewallServiceObjectListParamsIpProtocolNWBEXPAK PluginsFirewallServiceObjectListParamsIpProtocolN = "WB-EXPAK" - PluginsFirewallServiceObjectListParamsIpProtocolNWBMON PluginsFirewallServiceObjectListParamsIpProtocolN = "WB-MON" - PluginsFirewallServiceObjectListParamsIpProtocolNWESP PluginsFirewallServiceObjectListParamsIpProtocolN = "WESP" - PluginsFirewallServiceObjectListParamsIpProtocolNWSN PluginsFirewallServiceObjectListParamsIpProtocolN = "WSN" - PluginsFirewallServiceObjectListParamsIpProtocolNXNET PluginsFirewallServiceObjectListParamsIpProtocolN = "XNET" - PluginsFirewallServiceObjectListParamsIpProtocolNXNSIDP PluginsFirewallServiceObjectListParamsIpProtocolN = "XNS-IDP" - PluginsFirewallServiceObjectListParamsIpProtocolNXTP PluginsFirewallServiceObjectListParamsIpProtocolN = "XTP" -) - -// Defines values for SwaggerJsonRetrieveParamsLang. -const ( - SwaggerJsonRetrieveParamsLangAf SwaggerJsonRetrieveParamsLang = "af" - SwaggerJsonRetrieveParamsLangAr SwaggerJsonRetrieveParamsLang = "ar" - SwaggerJsonRetrieveParamsLangArDz SwaggerJsonRetrieveParamsLang = "ar-dz" - SwaggerJsonRetrieveParamsLangAst SwaggerJsonRetrieveParamsLang = "ast" - SwaggerJsonRetrieveParamsLangAz SwaggerJsonRetrieveParamsLang = "az" - SwaggerJsonRetrieveParamsLangBe SwaggerJsonRetrieveParamsLang = "be" - SwaggerJsonRetrieveParamsLangBg SwaggerJsonRetrieveParamsLang = "bg" - SwaggerJsonRetrieveParamsLangBn SwaggerJsonRetrieveParamsLang = "bn" - SwaggerJsonRetrieveParamsLangBr SwaggerJsonRetrieveParamsLang = "br" - SwaggerJsonRetrieveParamsLangBs SwaggerJsonRetrieveParamsLang = "bs" - SwaggerJsonRetrieveParamsLangCa SwaggerJsonRetrieveParamsLang = "ca" - SwaggerJsonRetrieveParamsLangCs SwaggerJsonRetrieveParamsLang = "cs" - SwaggerJsonRetrieveParamsLangCy SwaggerJsonRetrieveParamsLang = "cy" - SwaggerJsonRetrieveParamsLangDa SwaggerJsonRetrieveParamsLang = "da" - SwaggerJsonRetrieveParamsLangDe SwaggerJsonRetrieveParamsLang = "de" - SwaggerJsonRetrieveParamsLangDsb SwaggerJsonRetrieveParamsLang = "dsb" - SwaggerJsonRetrieveParamsLangEl SwaggerJsonRetrieveParamsLang = "el" - SwaggerJsonRetrieveParamsLangEn SwaggerJsonRetrieveParamsLang = "en" - SwaggerJsonRetrieveParamsLangEnAu SwaggerJsonRetrieveParamsLang = "en-au" - SwaggerJsonRetrieveParamsLangEnGb SwaggerJsonRetrieveParamsLang = "en-gb" - SwaggerJsonRetrieveParamsLangEo SwaggerJsonRetrieveParamsLang = "eo" - SwaggerJsonRetrieveParamsLangEs SwaggerJsonRetrieveParamsLang = "es" - SwaggerJsonRetrieveParamsLangEsAr SwaggerJsonRetrieveParamsLang = "es-ar" - SwaggerJsonRetrieveParamsLangEsCo SwaggerJsonRetrieveParamsLang = "es-co" - SwaggerJsonRetrieveParamsLangEsMx SwaggerJsonRetrieveParamsLang = "es-mx" - SwaggerJsonRetrieveParamsLangEsNi SwaggerJsonRetrieveParamsLang = "es-ni" - SwaggerJsonRetrieveParamsLangEsVe SwaggerJsonRetrieveParamsLang = "es-ve" - SwaggerJsonRetrieveParamsLangEt SwaggerJsonRetrieveParamsLang = "et" - SwaggerJsonRetrieveParamsLangEu SwaggerJsonRetrieveParamsLang = "eu" - SwaggerJsonRetrieveParamsLangFa SwaggerJsonRetrieveParamsLang = "fa" - SwaggerJsonRetrieveParamsLangFi SwaggerJsonRetrieveParamsLang = "fi" - SwaggerJsonRetrieveParamsLangFr SwaggerJsonRetrieveParamsLang = "fr" - SwaggerJsonRetrieveParamsLangFy SwaggerJsonRetrieveParamsLang = "fy" - SwaggerJsonRetrieveParamsLangGa SwaggerJsonRetrieveParamsLang = "ga" - SwaggerJsonRetrieveParamsLangGd SwaggerJsonRetrieveParamsLang = "gd" - SwaggerJsonRetrieveParamsLangGl SwaggerJsonRetrieveParamsLang = "gl" - SwaggerJsonRetrieveParamsLangHe SwaggerJsonRetrieveParamsLang = "he" - SwaggerJsonRetrieveParamsLangHi SwaggerJsonRetrieveParamsLang = "hi" - SwaggerJsonRetrieveParamsLangHr SwaggerJsonRetrieveParamsLang = "hr" - SwaggerJsonRetrieveParamsLangHsb SwaggerJsonRetrieveParamsLang = "hsb" - SwaggerJsonRetrieveParamsLangHu SwaggerJsonRetrieveParamsLang = "hu" - SwaggerJsonRetrieveParamsLangHy SwaggerJsonRetrieveParamsLang = "hy" - SwaggerJsonRetrieveParamsLangIa SwaggerJsonRetrieveParamsLang = "ia" - SwaggerJsonRetrieveParamsLangId SwaggerJsonRetrieveParamsLang = "id" - SwaggerJsonRetrieveParamsLangIg SwaggerJsonRetrieveParamsLang = "ig" - SwaggerJsonRetrieveParamsLangIo SwaggerJsonRetrieveParamsLang = "io" - SwaggerJsonRetrieveParamsLangIs SwaggerJsonRetrieveParamsLang = "is" - SwaggerJsonRetrieveParamsLangIt SwaggerJsonRetrieveParamsLang = "it" - SwaggerJsonRetrieveParamsLangJa SwaggerJsonRetrieveParamsLang = "ja" - SwaggerJsonRetrieveParamsLangKa SwaggerJsonRetrieveParamsLang = "ka" - SwaggerJsonRetrieveParamsLangKab SwaggerJsonRetrieveParamsLang = "kab" - SwaggerJsonRetrieveParamsLangKk SwaggerJsonRetrieveParamsLang = "kk" - SwaggerJsonRetrieveParamsLangKm SwaggerJsonRetrieveParamsLang = "km" - SwaggerJsonRetrieveParamsLangKn SwaggerJsonRetrieveParamsLang = "kn" - SwaggerJsonRetrieveParamsLangKo SwaggerJsonRetrieveParamsLang = "ko" - SwaggerJsonRetrieveParamsLangKy SwaggerJsonRetrieveParamsLang = "ky" - SwaggerJsonRetrieveParamsLangLb SwaggerJsonRetrieveParamsLang = "lb" - SwaggerJsonRetrieveParamsLangLt SwaggerJsonRetrieveParamsLang = "lt" - SwaggerJsonRetrieveParamsLangLv SwaggerJsonRetrieveParamsLang = "lv" - SwaggerJsonRetrieveParamsLangMk SwaggerJsonRetrieveParamsLang = "mk" - SwaggerJsonRetrieveParamsLangMl SwaggerJsonRetrieveParamsLang = "ml" - SwaggerJsonRetrieveParamsLangMn SwaggerJsonRetrieveParamsLang = "mn" - SwaggerJsonRetrieveParamsLangMr SwaggerJsonRetrieveParamsLang = "mr" - SwaggerJsonRetrieveParamsLangMy SwaggerJsonRetrieveParamsLang = "my" - SwaggerJsonRetrieveParamsLangNb SwaggerJsonRetrieveParamsLang = "nb" - SwaggerJsonRetrieveParamsLangNe SwaggerJsonRetrieveParamsLang = "ne" - SwaggerJsonRetrieveParamsLangNl SwaggerJsonRetrieveParamsLang = "nl" - SwaggerJsonRetrieveParamsLangNn SwaggerJsonRetrieveParamsLang = "nn" - SwaggerJsonRetrieveParamsLangOs SwaggerJsonRetrieveParamsLang = "os" - SwaggerJsonRetrieveParamsLangPa SwaggerJsonRetrieveParamsLang = "pa" - SwaggerJsonRetrieveParamsLangPl SwaggerJsonRetrieveParamsLang = "pl" - SwaggerJsonRetrieveParamsLangPt SwaggerJsonRetrieveParamsLang = "pt" - SwaggerJsonRetrieveParamsLangPtBr SwaggerJsonRetrieveParamsLang = "pt-br" - SwaggerJsonRetrieveParamsLangRo SwaggerJsonRetrieveParamsLang = "ro" - SwaggerJsonRetrieveParamsLangRu SwaggerJsonRetrieveParamsLang = "ru" - SwaggerJsonRetrieveParamsLangSk SwaggerJsonRetrieveParamsLang = "sk" - SwaggerJsonRetrieveParamsLangSl SwaggerJsonRetrieveParamsLang = "sl" - SwaggerJsonRetrieveParamsLangSq SwaggerJsonRetrieveParamsLang = "sq" - SwaggerJsonRetrieveParamsLangSr SwaggerJsonRetrieveParamsLang = "sr" - SwaggerJsonRetrieveParamsLangSrLatn SwaggerJsonRetrieveParamsLang = "sr-latn" - SwaggerJsonRetrieveParamsLangSv SwaggerJsonRetrieveParamsLang = "sv" - SwaggerJsonRetrieveParamsLangSw SwaggerJsonRetrieveParamsLang = "sw" - SwaggerJsonRetrieveParamsLangTa SwaggerJsonRetrieveParamsLang = "ta" - SwaggerJsonRetrieveParamsLangTe SwaggerJsonRetrieveParamsLang = "te" - SwaggerJsonRetrieveParamsLangTg SwaggerJsonRetrieveParamsLang = "tg" - SwaggerJsonRetrieveParamsLangTh SwaggerJsonRetrieveParamsLang = "th" - SwaggerJsonRetrieveParamsLangTk SwaggerJsonRetrieveParamsLang = "tk" - SwaggerJsonRetrieveParamsLangTr SwaggerJsonRetrieveParamsLang = "tr" - SwaggerJsonRetrieveParamsLangTt SwaggerJsonRetrieveParamsLang = "tt" - SwaggerJsonRetrieveParamsLangUdm SwaggerJsonRetrieveParamsLang = "udm" - SwaggerJsonRetrieveParamsLangUk SwaggerJsonRetrieveParamsLang = "uk" - SwaggerJsonRetrieveParamsLangUr SwaggerJsonRetrieveParamsLang = "ur" - SwaggerJsonRetrieveParamsLangUz SwaggerJsonRetrieveParamsLang = "uz" - SwaggerJsonRetrieveParamsLangVi SwaggerJsonRetrieveParamsLang = "vi" - SwaggerJsonRetrieveParamsLangZhHans SwaggerJsonRetrieveParamsLang = "zh-hans" - SwaggerJsonRetrieveParamsLangZhHant SwaggerJsonRetrieveParamsLang = "zh-hant" -) - -// Defines values for SwaggerYamlRetrieveParamsLang. -const ( - SwaggerYamlRetrieveParamsLangAf SwaggerYamlRetrieveParamsLang = "af" - SwaggerYamlRetrieveParamsLangAr SwaggerYamlRetrieveParamsLang = "ar" - SwaggerYamlRetrieveParamsLangArDz SwaggerYamlRetrieveParamsLang = "ar-dz" - SwaggerYamlRetrieveParamsLangAst SwaggerYamlRetrieveParamsLang = "ast" - SwaggerYamlRetrieveParamsLangAz SwaggerYamlRetrieveParamsLang = "az" - SwaggerYamlRetrieveParamsLangBe SwaggerYamlRetrieveParamsLang = "be" - SwaggerYamlRetrieveParamsLangBg SwaggerYamlRetrieveParamsLang = "bg" - SwaggerYamlRetrieveParamsLangBn SwaggerYamlRetrieveParamsLang = "bn" - SwaggerYamlRetrieveParamsLangBr SwaggerYamlRetrieveParamsLang = "br" - SwaggerYamlRetrieveParamsLangBs SwaggerYamlRetrieveParamsLang = "bs" - SwaggerYamlRetrieveParamsLangCa SwaggerYamlRetrieveParamsLang = "ca" - SwaggerYamlRetrieveParamsLangCs SwaggerYamlRetrieveParamsLang = "cs" - SwaggerYamlRetrieveParamsLangCy SwaggerYamlRetrieveParamsLang = "cy" - SwaggerYamlRetrieveParamsLangDa SwaggerYamlRetrieveParamsLang = "da" - SwaggerYamlRetrieveParamsLangDe SwaggerYamlRetrieveParamsLang = "de" - SwaggerYamlRetrieveParamsLangDsb SwaggerYamlRetrieveParamsLang = "dsb" - SwaggerYamlRetrieveParamsLangEl SwaggerYamlRetrieveParamsLang = "el" - SwaggerYamlRetrieveParamsLangEn SwaggerYamlRetrieveParamsLang = "en" - SwaggerYamlRetrieveParamsLangEnAu SwaggerYamlRetrieveParamsLang = "en-au" - SwaggerYamlRetrieveParamsLangEnGb SwaggerYamlRetrieveParamsLang = "en-gb" - SwaggerYamlRetrieveParamsLangEo SwaggerYamlRetrieveParamsLang = "eo" - SwaggerYamlRetrieveParamsLangEs SwaggerYamlRetrieveParamsLang = "es" - SwaggerYamlRetrieveParamsLangEsAr SwaggerYamlRetrieveParamsLang = "es-ar" - SwaggerYamlRetrieveParamsLangEsCo SwaggerYamlRetrieveParamsLang = "es-co" - SwaggerYamlRetrieveParamsLangEsMx SwaggerYamlRetrieveParamsLang = "es-mx" - SwaggerYamlRetrieveParamsLangEsNi SwaggerYamlRetrieveParamsLang = "es-ni" - SwaggerYamlRetrieveParamsLangEsVe SwaggerYamlRetrieveParamsLang = "es-ve" - SwaggerYamlRetrieveParamsLangEt SwaggerYamlRetrieveParamsLang = "et" - SwaggerYamlRetrieveParamsLangEu SwaggerYamlRetrieveParamsLang = "eu" - SwaggerYamlRetrieveParamsLangFa SwaggerYamlRetrieveParamsLang = "fa" - SwaggerYamlRetrieveParamsLangFi SwaggerYamlRetrieveParamsLang = "fi" - SwaggerYamlRetrieveParamsLangFr SwaggerYamlRetrieveParamsLang = "fr" - SwaggerYamlRetrieveParamsLangFy SwaggerYamlRetrieveParamsLang = "fy" - SwaggerYamlRetrieveParamsLangGa SwaggerYamlRetrieveParamsLang = "ga" - SwaggerYamlRetrieveParamsLangGd SwaggerYamlRetrieveParamsLang = "gd" - SwaggerYamlRetrieveParamsLangGl SwaggerYamlRetrieveParamsLang = "gl" - SwaggerYamlRetrieveParamsLangHe SwaggerYamlRetrieveParamsLang = "he" - SwaggerYamlRetrieveParamsLangHi SwaggerYamlRetrieveParamsLang = "hi" - SwaggerYamlRetrieveParamsLangHr SwaggerYamlRetrieveParamsLang = "hr" - SwaggerYamlRetrieveParamsLangHsb SwaggerYamlRetrieveParamsLang = "hsb" - SwaggerYamlRetrieveParamsLangHu SwaggerYamlRetrieveParamsLang = "hu" - SwaggerYamlRetrieveParamsLangHy SwaggerYamlRetrieveParamsLang = "hy" - SwaggerYamlRetrieveParamsLangIa SwaggerYamlRetrieveParamsLang = "ia" - SwaggerYamlRetrieveParamsLangId SwaggerYamlRetrieveParamsLang = "id" - SwaggerYamlRetrieveParamsLangIg SwaggerYamlRetrieveParamsLang = "ig" - SwaggerYamlRetrieveParamsLangIo SwaggerYamlRetrieveParamsLang = "io" - SwaggerYamlRetrieveParamsLangIs SwaggerYamlRetrieveParamsLang = "is" - SwaggerYamlRetrieveParamsLangIt SwaggerYamlRetrieveParamsLang = "it" - SwaggerYamlRetrieveParamsLangJa SwaggerYamlRetrieveParamsLang = "ja" - SwaggerYamlRetrieveParamsLangKa SwaggerYamlRetrieveParamsLang = "ka" - SwaggerYamlRetrieveParamsLangKab SwaggerYamlRetrieveParamsLang = "kab" - SwaggerYamlRetrieveParamsLangKk SwaggerYamlRetrieveParamsLang = "kk" - SwaggerYamlRetrieveParamsLangKm SwaggerYamlRetrieveParamsLang = "km" - SwaggerYamlRetrieveParamsLangKn SwaggerYamlRetrieveParamsLang = "kn" - SwaggerYamlRetrieveParamsLangKo SwaggerYamlRetrieveParamsLang = "ko" - SwaggerYamlRetrieveParamsLangKy SwaggerYamlRetrieveParamsLang = "ky" - SwaggerYamlRetrieveParamsLangLb SwaggerYamlRetrieveParamsLang = "lb" - SwaggerYamlRetrieveParamsLangLt SwaggerYamlRetrieveParamsLang = "lt" - SwaggerYamlRetrieveParamsLangLv SwaggerYamlRetrieveParamsLang = "lv" - SwaggerYamlRetrieveParamsLangMk SwaggerYamlRetrieveParamsLang = "mk" - SwaggerYamlRetrieveParamsLangMl SwaggerYamlRetrieveParamsLang = "ml" - SwaggerYamlRetrieveParamsLangMn SwaggerYamlRetrieveParamsLang = "mn" - SwaggerYamlRetrieveParamsLangMr SwaggerYamlRetrieveParamsLang = "mr" - SwaggerYamlRetrieveParamsLangMy SwaggerYamlRetrieveParamsLang = "my" - SwaggerYamlRetrieveParamsLangNb SwaggerYamlRetrieveParamsLang = "nb" - SwaggerYamlRetrieveParamsLangNe SwaggerYamlRetrieveParamsLang = "ne" - SwaggerYamlRetrieveParamsLangNl SwaggerYamlRetrieveParamsLang = "nl" - SwaggerYamlRetrieveParamsLangNn SwaggerYamlRetrieveParamsLang = "nn" - SwaggerYamlRetrieveParamsLangOs SwaggerYamlRetrieveParamsLang = "os" - SwaggerYamlRetrieveParamsLangPa SwaggerYamlRetrieveParamsLang = "pa" - SwaggerYamlRetrieveParamsLangPl SwaggerYamlRetrieveParamsLang = "pl" - SwaggerYamlRetrieveParamsLangPt SwaggerYamlRetrieveParamsLang = "pt" - SwaggerYamlRetrieveParamsLangPtBr SwaggerYamlRetrieveParamsLang = "pt-br" - SwaggerYamlRetrieveParamsLangRo SwaggerYamlRetrieveParamsLang = "ro" - SwaggerYamlRetrieveParamsLangRu SwaggerYamlRetrieveParamsLang = "ru" - SwaggerYamlRetrieveParamsLangSk SwaggerYamlRetrieveParamsLang = "sk" - SwaggerYamlRetrieveParamsLangSl SwaggerYamlRetrieveParamsLang = "sl" - SwaggerYamlRetrieveParamsLangSq SwaggerYamlRetrieveParamsLang = "sq" - SwaggerYamlRetrieveParamsLangSr SwaggerYamlRetrieveParamsLang = "sr" - SwaggerYamlRetrieveParamsLangSrLatn SwaggerYamlRetrieveParamsLang = "sr-latn" - SwaggerYamlRetrieveParamsLangSv SwaggerYamlRetrieveParamsLang = "sv" - SwaggerYamlRetrieveParamsLangSw SwaggerYamlRetrieveParamsLang = "sw" - SwaggerYamlRetrieveParamsLangTa SwaggerYamlRetrieveParamsLang = "ta" - SwaggerYamlRetrieveParamsLangTe SwaggerYamlRetrieveParamsLang = "te" - SwaggerYamlRetrieveParamsLangTg SwaggerYamlRetrieveParamsLang = "tg" - SwaggerYamlRetrieveParamsLangTh SwaggerYamlRetrieveParamsLang = "th" - SwaggerYamlRetrieveParamsLangTk SwaggerYamlRetrieveParamsLang = "tk" - SwaggerYamlRetrieveParamsLangTr SwaggerYamlRetrieveParamsLang = "tr" - SwaggerYamlRetrieveParamsLangTt SwaggerYamlRetrieveParamsLang = "tt" - SwaggerYamlRetrieveParamsLangUdm SwaggerYamlRetrieveParamsLang = "udm" - SwaggerYamlRetrieveParamsLangUk SwaggerYamlRetrieveParamsLang = "uk" - SwaggerYamlRetrieveParamsLangUr SwaggerYamlRetrieveParamsLang = "ur" - SwaggerYamlRetrieveParamsLangUz SwaggerYamlRetrieveParamsLang = "uz" - SwaggerYamlRetrieveParamsLangVi SwaggerYamlRetrieveParamsLang = "vi" - SwaggerYamlRetrieveParamsLangZhHans SwaggerYamlRetrieveParamsLang = "zh-hans" - SwaggerYamlRetrieveParamsLangZhHant SwaggerYamlRetrieveParamsLang = "zh-hant" -) - -// Defines values for SwaggerRetrieveParamsFormat. -const ( - SwaggerRetrieveParamsFormatJson SwaggerRetrieveParamsFormat = "json" - SwaggerRetrieveParamsFormatYaml SwaggerRetrieveParamsFormat = "yaml" -) - -// Defines values for SwaggerRetrieveParamsLang. -const ( - Af SwaggerRetrieveParamsLang = "af" - Ar SwaggerRetrieveParamsLang = "ar" - ArDz SwaggerRetrieveParamsLang = "ar-dz" - Ast SwaggerRetrieveParamsLang = "ast" - Az SwaggerRetrieveParamsLang = "az" - Be SwaggerRetrieveParamsLang = "be" - Bg SwaggerRetrieveParamsLang = "bg" - Bn SwaggerRetrieveParamsLang = "bn" - Br SwaggerRetrieveParamsLang = "br" - Bs SwaggerRetrieveParamsLang = "bs" - Ca SwaggerRetrieveParamsLang = "ca" - Cs SwaggerRetrieveParamsLang = "cs" - Cy SwaggerRetrieveParamsLang = "cy" - Da SwaggerRetrieveParamsLang = "da" - De SwaggerRetrieveParamsLang = "de" - Dsb SwaggerRetrieveParamsLang = "dsb" - El SwaggerRetrieveParamsLang = "el" - En SwaggerRetrieveParamsLang = "en" - EnAu SwaggerRetrieveParamsLang = "en-au" - EnGb SwaggerRetrieveParamsLang = "en-gb" - Eo SwaggerRetrieveParamsLang = "eo" - Es SwaggerRetrieveParamsLang = "es" - EsAr SwaggerRetrieveParamsLang = "es-ar" - EsCo SwaggerRetrieveParamsLang = "es-co" - EsMx SwaggerRetrieveParamsLang = "es-mx" - EsNi SwaggerRetrieveParamsLang = "es-ni" - EsVe SwaggerRetrieveParamsLang = "es-ve" - Et SwaggerRetrieveParamsLang = "et" - Eu SwaggerRetrieveParamsLang = "eu" - Fa SwaggerRetrieveParamsLang = "fa" - Fi SwaggerRetrieveParamsLang = "fi" - Fr SwaggerRetrieveParamsLang = "fr" - Fy SwaggerRetrieveParamsLang = "fy" - Ga SwaggerRetrieveParamsLang = "ga" - Gd SwaggerRetrieveParamsLang = "gd" - Gl SwaggerRetrieveParamsLang = "gl" - He SwaggerRetrieveParamsLang = "he" - Hi SwaggerRetrieveParamsLang = "hi" - Hr SwaggerRetrieveParamsLang = "hr" - Hsb SwaggerRetrieveParamsLang = "hsb" - Hu SwaggerRetrieveParamsLang = "hu" - Hy SwaggerRetrieveParamsLang = "hy" - Ia SwaggerRetrieveParamsLang = "ia" - Id SwaggerRetrieveParamsLang = "id" - Ig SwaggerRetrieveParamsLang = "ig" - Io SwaggerRetrieveParamsLang = "io" - Is SwaggerRetrieveParamsLang = "is" - It SwaggerRetrieveParamsLang = "it" - Ja SwaggerRetrieveParamsLang = "ja" - Ka SwaggerRetrieveParamsLang = "ka" - Kab SwaggerRetrieveParamsLang = "kab" - Kk SwaggerRetrieveParamsLang = "kk" - Km SwaggerRetrieveParamsLang = "km" - Kn SwaggerRetrieveParamsLang = "kn" - Ko SwaggerRetrieveParamsLang = "ko" - Ky SwaggerRetrieveParamsLang = "ky" - Lb SwaggerRetrieveParamsLang = "lb" - Lt SwaggerRetrieveParamsLang = "lt" - Lv SwaggerRetrieveParamsLang = "lv" - Mk SwaggerRetrieveParamsLang = "mk" - Ml SwaggerRetrieveParamsLang = "ml" - Mn SwaggerRetrieveParamsLang = "mn" - Mr SwaggerRetrieveParamsLang = "mr" - My SwaggerRetrieveParamsLang = "my" - Nb SwaggerRetrieveParamsLang = "nb" - Ne SwaggerRetrieveParamsLang = "ne" - Nl SwaggerRetrieveParamsLang = "nl" - Nn SwaggerRetrieveParamsLang = "nn" - Os SwaggerRetrieveParamsLang = "os" - Pa SwaggerRetrieveParamsLang = "pa" - Pl SwaggerRetrieveParamsLang = "pl" - Pt SwaggerRetrieveParamsLang = "pt" - PtBr SwaggerRetrieveParamsLang = "pt-br" - Ro SwaggerRetrieveParamsLang = "ro" - Ru SwaggerRetrieveParamsLang = "ru" - Sk SwaggerRetrieveParamsLang = "sk" - Sl SwaggerRetrieveParamsLang = "sl" - Sq SwaggerRetrieveParamsLang = "sq" - Sr SwaggerRetrieveParamsLang = "sr" - SrLatn SwaggerRetrieveParamsLang = "sr-latn" - Sv SwaggerRetrieveParamsLang = "sv" - Sw SwaggerRetrieveParamsLang = "sw" - Ta SwaggerRetrieveParamsLang = "ta" - Te SwaggerRetrieveParamsLang = "te" - Tg SwaggerRetrieveParamsLang = "tg" - Th SwaggerRetrieveParamsLang = "th" - Tk SwaggerRetrieveParamsLang = "tk" - Tr SwaggerRetrieveParamsLang = "tr" - Tt SwaggerRetrieveParamsLang = "tt" - Udm SwaggerRetrieveParamsLang = "udm" - Uk SwaggerRetrieveParamsLang = "uk" - Ur SwaggerRetrieveParamsLang = "ur" - Uz SwaggerRetrieveParamsLang = "uz" - Vi SwaggerRetrieveParamsLang = "vi" - ZhHans SwaggerRetrieveParamsLang = "zh-hans" - ZhHant SwaggerRetrieveParamsLang = "zh-hant" -) - -// AccessGrant API serializer for interacting with AccessGrant objects. -type AccessGrant struct { - // Command Enter * to grant access to all commands - Command string `json:"command"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - GrantType GrantTypeEnum `json:"grant_type"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Organization name, channel name, or user name - Name string `json:"name"` - - // Subcommand Enter * to grant access to all subcommands of the given command - Subcommand string `json:"subcommand"` - Url *string `json:"url,omitempty"` - - // Value Corresponding ID value to grant access to.
Enter * to grant access to all organizations, channels, or users - Value string `json:"value"` -} - -// AccessGrantRequest API serializer for interacting with AccessGrant objects. -type AccessGrantRequest struct { - // Command Enter * to grant access to all commands - Command string `json:"command"` - GrantType GrantTypeEnum `json:"grant_type"` - - // Name Organization name, channel name, or user name - Name string `json:"name"` - - // Subcommand Enter * to grant access to all subcommands of the given command - Subcommand string `json:"subcommand"` - - // Value Corresponding ID value to grant access to.
Enter * to grant access to all organizations, channels, or users - Value string `json:"value"` -} - -// AccessTypeEnum defines model for AccessTypeEnum. -type AccessTypeEnum string - -// ActionEnum defines model for ActionEnum. -type ActionEnum string - -// AddressFamily REST API serializer for AddressFamily records. -type AddressFamily struct { - AfiSafi AfiSafiEnum `json:"afi_safi"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // RoutingInstance Nested/brief serializer for PeerEndpoint. - RoutingInstance NestedRoutingInstance `json:"routing_instance"` - Url *string `json:"url,omitempty"` - Vrf *NestedVRF `json:"vrf"` -} - -// AddressObject AddressObject Serializer. -type AddressObject struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *AddressObjectStatusLabel `json:"label,omitempty"` - Value *AddressObjectStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// AddressObjectStatusLabel defines model for AddressObject.Status.Label. -type AddressObjectStatusLabel string - -// AddressObjectStatusValue defines model for AddressObject.Status.Value. -type AddressObjectStatusValue string - -// AddressObjectGroup AddressObjectGroup Serializer. -type AddressObjectGroup struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *AddressObjectGroupAddressObjectsStatusLabel `json:"label,omitempty"` - Value *AddressObjectGroupAddressObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"address_objects,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *AddressObjectGroupStatusLabel `json:"label,omitempty"` - Value *AddressObjectGroupStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// AddressObjectGroupAddressObjectsStatusLabel defines model for AddressObjectGroup.AddressObjects.Status.Label. -type AddressObjectGroupAddressObjectsStatusLabel string - -// AddressObjectGroupAddressObjectsStatusValue defines model for AddressObjectGroup.AddressObjects.Status.Value. -type AddressObjectGroupAddressObjectsStatusValue string - -// AddressObjectGroupStatusLabel defines model for AddressObjectGroup.Status.Label. -type AddressObjectGroupStatusLabel string - -// AddressObjectGroupStatusValue defines model for AddressObjectGroup.Status.Value. -type AddressObjectGroupStatusValue string - -// AfiSafiEnum defines model for AfiSafiEnum. -type AfiSafiEnum string - -// Aggregate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Aggregate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DateAdded *openapi_types.Date `json:"date_added"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Family *struct { - Label *AggregateFamilyLabel `json:"label,omitempty"` - Value *AggregateFamilyValue `json:"value,omitempty"` - } `json:"family,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - NotesUrl *string `json:"notes_url,omitempty"` - Prefix string `json:"prefix"` - - // Rir Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Rir NestedRIR `json:"rir"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` -} - -// AggregateFamilyLabel defines model for Aggregate.Family.Label. -type AggregateFamilyLabel string - -// AggregateFamilyValue defines model for Aggregate.Family.Value. -type AggregateFamilyValue int - -// AutonomousSystem REST API serializer for AutonomousSystem records. -type AutonomousSystem struct { - // Asn 32-bit autonomous system number - Asn int64 `json:"asn"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Provider *NestedProvider `json:"provider"` - Status struct { - Label *AutonomousSystemStatusLabel `json:"label,omitempty"` - Value *AutonomousSystemStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// AutonomousSystemStatusLabel defines model for AutonomousSystem.Status.Label. -type AutonomousSystemStatusLabel string - -// AutonomousSystemStatusValue defines model for AutonomousSystem.Status.Value. -type AutonomousSystemStatusValue string - -// AvailableIP Representation of an IP address which does not exist in the database. -type AvailableIP struct { - Address *string `json:"address,omitempty"` - Family *int `json:"family,omitempty"` - Vrf *NestedVRF `json:"vrf,omitempty"` -} - -// AvailablePrefix Representation of a prefix which does not exist in the database. -type AvailablePrefix struct { - Family *int `json:"family,omitempty"` - Prefix *string `json:"prefix,omitempty"` - Vrf *NestedVRF `json:"vrf,omitempty"` -} - -// BGPRoutingInstance REST API serializer for Peering records. -type BGPRoutingInstance struct { - AutonomousSystem *NestedAutonomousSystem `json:"autonomous_system"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Endpoints *[]NestedPeerEndpoint `json:"endpoints,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - RouterId *NestedIPAddress `json:"router_id"` - Url *string `json:"url,omitempty"` -} - -// BlankEnum defines model for BlankEnum. -type BlankEnum = interface{} - -// BulkOperationIntegerIDRequest As BulkOperationSerializer, but for models such as users.Group that have an integer ID field. -type BulkOperationIntegerIDRequest struct { - Id int `json:"id"` -} - -// BulkOperationRequest Representation of bulk-DELETE request for most models; also used to validate required ID field for bulk-PATCH/PUT. -type BulkOperationRequest struct { - Id openapi_types.UUID `json:"id"` -} - -// BulkWritableAccessGrantRequest API serializer for interacting with AccessGrant objects. -type BulkWritableAccessGrantRequest struct { - // Command Enter * to grant access to all commands - Command string `json:"command"` - GrantType GrantTypeEnum `json:"grant_type"` - Id openapi_types.UUID `json:"id"` - - // Name Organization name, channel name, or user name - Name string `json:"name"` - - // Subcommand Enter * to grant access to all subcommands of the given command - Subcommand string `json:"subcommand"` - - // Value Corresponding ID value to grant access to.
Enter * to grant access to all organizations, channels, or users - Value string `json:"value"` -} - -// BulkWritableAddressFamilyRequest REST API serializer for AddressFamily records. -type BulkWritableAddressFamilyRequest struct { - AfiSafi AfiSafiEnum `json:"afi_safi"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - Vrf *NestedVRFRequest `json:"vrf"` -} - -// BulkWritableAddressObjectGroupRequest AddressObjectGroup Serializer. -type BulkWritableAddressObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableAddressObjectGroupRequestAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item defines model for BulkWritableAddressObjectGroupRequest.AddressObjects.Relationships.Destination.Objects.Item. -type BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item defines model for BulkWritableAddressObjectGroupRequest.AddressObjects.Relationships.Peer.Objects.Item. -type BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item defines model for BulkWritableAddressObjectGroupRequest.AddressObjects.Relationships.Source.Objects.Item. -type BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectGroupRequestAddressObjectsStatus defines model for BulkWritableAddressObjectGroupRequest.AddressObjects.Status. -type BulkWritableAddressObjectGroupRequestAddressObjectsStatus string - -// BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableAddressObjectGroupRequest.relationships.destination.objects.Item. -type BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableAddressObjectGroupRequest.relationships.peer.objects.Item. -type BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableAddressObjectGroupRequest.relationships.source.objects.Item. -type BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectRequest AddressObject Serializer. -type BulkWritableAddressObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item defines model for BulkWritableAddressObjectRequest.relationships.destination.objects.Item. -type BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item defines model for BulkWritableAddressObjectRequest.relationships.peer.objects.Item. -type BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item defines model for BulkWritableAddressObjectRequest.relationships.source.objects.Item. -type BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAggregateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableAggregateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DateAdded *openapi_types.Date `json:"date_added"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Prefix string `json:"prefix"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAggregateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAggregateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableAggregateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Rir Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Rir NestedRIRRequest `json:"rir"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// BulkWritableAggregateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableAggregateRequest.relationships.destination.objects.Item. -type BulkWritableAggregateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAggregateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableAggregateRequest.relationships.peer.objects.Item. -type BulkWritableAggregateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAggregateRequest_Relationships_Source_Objects_Item defines model for BulkWritableAggregateRequest.relationships.source.objects.Item. -type BulkWritableAggregateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableAutonomousSystemRequest REST API serializer for AutonomousSystem records. -type BulkWritableAutonomousSystemRequest struct { - // Asn 32-bit autonomous system number - Asn int64 `json:"asn"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Provider *NestedProviderRequest `json:"provider"` - Status Status2a0Enum `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableBGPRoutingInstanceRequest REST API serializer for Peering records. -type BulkWritableBGPRoutingInstanceRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - RouterId *NestedIPAddressRequest `json:"router_id"` -} - -// BulkWritableCVELCMRequest REST API serializer for CVELCM records. -type BulkWritableCVELCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Cvss *float64 `json:"cvss"` - CvssV2 *float64 `json:"cvss_v2"` - CvssV3 *float64 `json:"cvss_v3"` - Description *string `json:"description"` - Fix *string `json:"fix"` - Id openapi_types.UUID `json:"id"` - Link string `json:"link"` - Name string `json:"name"` - PublishedDate openapi_types.Date `json:"published_date"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCVELCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Severity *SeverityEnum `json:"severity,omitempty"` - Status *Status4f5Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableCVELCMRequest.relationships.destination.objects.Item. -type BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableCVELCMRequest.relationships.peer.objects.Item. -type BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCVELCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableCVELCMRequest.relationships.source.objects.Item. -type BulkWritableCVELCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCableRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableCableRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Label *string `json:"label,omitempty"` - Length *int `json:"length"` - LengthUnit *LengthUnitEnum `json:"length_unit,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCableRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCableRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCableRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status CableStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - TerminationAId openapi_types.UUID `json:"termination_a_id"` - TerminationAType string `json:"termination_a_type"` - TerminationBId openapi_types.UUID `json:"termination_b_id"` - TerminationBType string `json:"termination_b_type"` - Type *BulkWritableCableRequest_Type `json:"type,omitempty"` -} - -// BulkWritableCableRequest_Relationships_Destination_Objects_Item defines model for BulkWritableCableRequest.relationships.destination.objects.Item. -type BulkWritableCableRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCableRequest_Relationships_Peer_Objects_Item defines model for BulkWritableCableRequest.relationships.peer.objects.Item. -type BulkWritableCableRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCableRequest_Relationships_Source_Objects_Item defines model for BulkWritableCableRequest.relationships.source.objects.Item. -type BulkWritableCableRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCableRequest_Type defines model for BulkWritableCableRequest.Type. -type BulkWritableCableRequest_Type struct { - union json.RawMessage -} - -// BulkWritableCapircaPolicyRequest CapircaPolicy Serializer. -type BulkWritableCapircaPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Cfg *string `json:"cfg"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Device *openapi_types.UUID `json:"device"` - Id openapi_types.UUID `json:"id"` - Net *string `json:"net"` - Pol *string `json:"pol"` - Svc *string `json:"svc"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableCircuitMaintenanceCircuitImpactRequest Serializer for API. -type BulkWritableCircuitMaintenanceCircuitImpactRequest struct { - Circuit openapi_types.UUID `json:"circuit"` - Id openapi_types.UUID `json:"id"` - Impact *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact `json:"impact"` - Maintenance openapi_types.UUID `json:"maintenance"` -} - -// BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact defines model for BulkWritableCircuitMaintenanceCircuitImpactRequest.Impact. -type BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact struct { - union json.RawMessage -} - -// BulkWritableCircuitMaintenanceRequest Serializer for API. -type BulkWritableCircuitMaintenanceRequest struct { - Ack *bool `json:"ack"` - Description *string `json:"description"` - EndTime time.Time `json:"end_time"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - StartTime time.Time `json:"start_time"` - Status *BulkWritableCircuitMaintenanceRequest_Status `json:"status"` -} - -// BulkWritableCircuitMaintenanceRequest_Status defines model for BulkWritableCircuitMaintenanceRequest.Status. -type BulkWritableCircuitMaintenanceRequest_Status struct { - union json.RawMessage -} - -// BulkWritableCircuitRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableCircuitRequest struct { - Cid string `json:"cid"` - Comments *string `json:"comments,omitempty"` - CommitRate *int `json:"commit_rate"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - InstallDate *openapi_types.Date `json:"install_date"` - - // Provider Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Provider NestedProviderRequest `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status CircuitStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - - // Type Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Type NestedCircuitTypeRequest `json:"type"` -} - -// BulkWritableCircuitRequest_Relationships_Destination_Objects_Item defines model for BulkWritableCircuitRequest.relationships.destination.objects.Item. -type BulkWritableCircuitRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitRequest_Relationships_Peer_Objects_Item defines model for BulkWritableCircuitRequest.relationships.peer.objects.Item. -type BulkWritableCircuitRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitRequest_Relationships_Source_Objects_Item defines model for BulkWritableCircuitRequest.relationships.source.objects.Item. -type BulkWritableCircuitRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitTerminationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableCircuitTerminationRequest struct { - // Circuit Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Circuit NestedCircuitRequest `json:"circuit"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - PortSpeed *int `json:"port_speed"` - PpInfo *string `json:"pp_info,omitempty"` - ProviderNetwork *NestedProviderNetworkRequest `json:"provider_network"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - TermSide TermSideEnum `json:"term_side"` - - // UpstreamSpeed Upstream speed, if different from port speed - UpstreamSpeed *int `json:"upstream_speed"` - XconnectId *string `json:"xconnect_id,omitempty"` -} - -// BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item defines model for BulkWritableCircuitTerminationRequest.relationships.destination.objects.Item. -type BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item defines model for BulkWritableCircuitTerminationRequest.relationships.peer.objects.Item. -type BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item defines model for BulkWritableCircuitTerminationRequest.relationships.source.objects.Item. -type BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableCircuitTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item defines model for BulkWritableCircuitTypeRequest.relationships.destination.objects.Item. -type BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item defines model for BulkWritableCircuitTypeRequest.relationships.peer.objects.Item. -type BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item defines model for BulkWritableCircuitTypeRequest.relationships.source.objects.Item. -type BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableClusterGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableClusterGroupRequest.relationships.destination.objects.Item. -type BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableClusterGroupRequest.relationships.peer.objects.Item. -type BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableClusterGroupRequest.relationships.source.objects.Item. -type BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableClusterRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Group *NestedClusterGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - - // Type Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Type NestedClusterTypeRequest `json:"type"` -} - -// BulkWritableClusterRequest_Relationships_Destination_Objects_Item defines model for BulkWritableClusterRequest.relationships.destination.objects.Item. -type BulkWritableClusterRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterRequest_Relationships_Peer_Objects_Item defines model for BulkWritableClusterRequest.relationships.peer.objects.Item. -type BulkWritableClusterRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterRequest_Relationships_Source_Objects_Item defines model for BulkWritableClusterRequest.relationships.source.objects.Item. -type BulkWritableClusterRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableClusterTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item defines model for BulkWritableClusterTypeRequest.relationships.destination.objects.Item. -type BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item defines model for BulkWritableClusterTypeRequest.relationships.peer.objects.Item. -type BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item defines model for BulkWritableClusterTypeRequest.relationships.source.objects.Item. -type BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCommandTokenRequest API serializer for interacting with CommandToken objects. -type BulkWritableCommandTokenRequest struct { - // Comment Optional: Enter description of token - Comment *string `json:"comment,omitempty"` - Id openapi_types.UUID `json:"id"` - Platform PlatformEnum `json:"platform"` - - // Token Token given by chat platform for signing or command validation - Token string `json:"token"` -} - -// BulkWritableComplianceFeatureRequest Serializer for ComplianceFeature object. -type BulkWritableComplianceFeatureRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Slug string `json:"slug"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableComplianceRuleRequest Serializer for ComplianceRule object. -type BulkWritableComplianceRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // ConfigOrdered Whether or not the configuration order matters, such as in ACLs. - ConfigOrdered bool `json:"config_ordered"` - - // ConfigType Whether the config is in cli or json/structured format. - ConfigType *ConfigTypeEnum `json:"config_type,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Feature openapi_types.UUID `json:"feature"` - Id openapi_types.UUID `json:"id"` - - // MatchConfig The config to match that is matched based on the parent most configuration. e.g. `router bgp` or `ntp`. - MatchConfig *string `json:"match_config"` - Platform openapi_types.UUID `json:"platform"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableComputedFieldRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableComputedFieldRequest struct { - ContentType string `json:"content_type"` - Description *string `json:"description,omitempty"` - - // FallbackValue Fallback value (if any) to be output for the field in the case of a template rendering error. - FallbackValue *string `json:"fallback_value,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Name of the field as displayed to users - Label string `json:"label"` - - // Slug Internal field name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // Template Jinja2 template code for field value - Template string `json:"template"` - Weight *int `json:"weight,omitempty"` -} - -// BulkWritableConfigComplianceRequest Serializer for ConfigCompliance object. -type BulkWritableConfigComplianceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // Actual Actual Configuration for feature - Actual *map[string]interface{} `json:"actual,omitempty"` - Compliance *bool `json:"compliance"` - ComplianceInt *int `json:"compliance_int"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device The device - Device openapi_types.UUID `json:"device"` - - // Extra Configuration that should not be on the device. - Extra *map[string]interface{} `json:"extra,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Intended Intended Configuration for feature - Intended *map[string]interface{} `json:"intended,omitempty"` - - // Missing Configuration that should be on the device. - Missing *map[string]interface{} `json:"missing,omitempty"` - Ordered *bool `json:"ordered,omitempty"` - Rule openapi_types.UUID `json:"rule"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableConfigContextRequest struct { - ClusterGroups *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"cluster_groups,omitempty"` - Clusters *[]struct { - Name string `json:"name"` - } `json:"clusters,omitempty"` - Data map[string]interface{} `json:"data"` - Description *string `json:"description,omitempty"` - DeviceTypes *[]struct { - Model string `json:"model"` - Slug string `json:"slug"` - } `json:"device_types,omitempty"` - Id openapi_types.UUID `json:"id"` - IsActive *bool `json:"is_active,omitempty"` - Locations *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"locations,omitempty"` - Name string `json:"name"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Platforms *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"platforms,omitempty"` - Regions *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"regions,omitempty"` - Roles *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"roles,omitempty"` - Schema *NestedConfigContextSchemaRequest `json:"schema"` - Sites *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"sites,omitempty"` - Tags *[]string `json:"tags,omitempty"` - TenantGroups *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"tenant_groups,omitempty"` - Tenants *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"tenants,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// BulkWritableConfigContextSchemaRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableConfigContextSchemaRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DataSchema A JSON Schema document which is used to validate a config context object. - DataSchema map[string]interface{} `json:"data_schema"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item defines model for BulkWritableConfigContextSchemaRequest.relationships.destination.objects.Item. -type BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item defines model for BulkWritableConfigContextSchemaRequest.relationships.peer.objects.Item. -type BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item defines model for BulkWritableConfigContextSchemaRequest.relationships.source.objects.Item. -type BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConfigRemoveRequest Serializer for ConfigRemove object. -type BulkWritableConfigRemoveRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Platform openapi_types.UUID `json:"platform"` - - // Regex Regex pattern used to remove a line from the backup configuration. - Regex string `json:"regex"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableConfigReplaceRequest Serializer for ConfigReplace object. -type BulkWritableConfigReplaceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Platform openapi_types.UUID `json:"platform"` - - // Regex Regex pattern that will be found and replaced with 'replaced text'. - Regex string `json:"regex"` - - // Replace Text that will be inserted in place of Regex pattern match. - Replace string `json:"replace"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableConsolePortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableConsolePortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsolePortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item defines model for BulkWritableConsolePortRequest.relationships.destination.objects.Item. -type BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item defines model for BulkWritableConsolePortRequest.relationships.peer.objects.Item. -type BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsolePortRequest_Relationships_Source_Objects_Item defines model for BulkWritableConsolePortRequest.relationships.source.objects.Item. -type BulkWritableConsolePortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsolePortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableConsolePortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableConsolePortTemplateRequest.relationships.destination.objects.Item. -type BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableConsolePortTemplateRequest.relationships.peer.objects.Item. -type BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritableConsolePortTemplateRequest.relationships.source.objects.Item. -type BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsoleServerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableConsoleServerPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item defines model for BulkWritableConsoleServerPortRequest.relationships.destination.objects.Item. -type BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item defines model for BulkWritableConsoleServerPortRequest.relationships.peer.objects.Item. -type BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item defines model for BulkWritableConsoleServerPortRequest.relationships.source.objects.Item. -type BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsoleServerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableConsoleServerPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableConsoleServerPortTemplateRequest.relationships.destination.objects.Item. -type BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableConsoleServerPortTemplateRequest.relationships.peer.objects.Item. -type BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritableConsoleServerPortTemplateRequest.relationships.source.objects.Item. -type BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableContactLCMRequest API serializer. -type BulkWritableContactLCMRequest struct { - Address *string `json:"address,omitempty"` - Comments *string `json:"comments,omitempty"` - - // Contract Associated Contract - Contract NestedContractLCMRequest `json:"contract"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name"` - Phone *string `json:"phone,omitempty"` - Priority *int `json:"priority,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableContactLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableContactLCMRequest.relationships.destination.objects.Item. -type BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableContactLCMRequest.relationships.peer.objects.Item. -type BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableContactLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableContactLCMRequest.relationships.source.objects.Item. -type BulkWritableContactLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableContractLCMRequest API serializer. -type BulkWritableContractLCMRequest struct { - ContractType *string `json:"contract_type"` - Cost *string `json:"cost"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - End *openapi_types.Date `json:"end"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - - // Provider Vendor - Provider NestedProviderLCMRequest `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableContractLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Start *openapi_types.Date `json:"start"` - SupportLevel *string `json:"support_level"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableContractLCMRequest.relationships.destination.objects.Item. -type BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableContractLCMRequest.relationships.peer.objects.Item. -type BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableContractLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableContractLCMRequest.relationships.source.objects.Item. -type BulkWritableContractLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableCustomFieldChoiceRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableCustomFieldChoiceRequest struct { - // Field Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Field NestedCustomFieldRequest `json:"field"` - Id openapi_types.UUID `json:"id"` - Value string `json:"value"` - - // Weight Higher weights appear later in the list - Weight *int `json:"weight,omitempty"` -} - -// BulkWritableCustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableCustomLinkRequest struct { - // ButtonClass The class of the first link in a group will be used for the dropdown button - ButtonClass *ButtonClassEnum `json:"button_class,omitempty"` - ContentType string `json:"content_type"` - - // GroupName Links with the same group will appear as a dropdown menu - GroupName *string `json:"group_name,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - - // NewWindow Force link to open in a new window - NewWindow bool `json:"new_window"` - - // TargetUrl Jinja2 template code for link URL. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. - TargetUrl string `json:"target_url"` - - // Text Jinja2 template code for link text. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. Links which render as empty text will not be displayed. - Text string `json:"text"` - Weight *int `json:"weight,omitempty"` -} - -// BulkWritableDeviceBayRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableDeviceBayRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - InstalledDevice *NestedDeviceRequest `json:"installed_device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item defines model for BulkWritableDeviceBayRequest.relationships.destination.objects.Item. -type BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item defines model for BulkWritableDeviceBayRequest.relationships.peer.objects.Item. -type BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item defines model for BulkWritableDeviceBayRequest.relationships.source.objects.Item. -type BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceBayTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableDeviceBayTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` -} - -// BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableDeviceBayTemplateRequest.relationships.destination.objects.Item. -type BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableDeviceBayTemplateRequest.relationships.peer.objects.Item. -type BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritableDeviceBayTemplateRequest.relationships.source.objects.Item. -type BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceRedundancyGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableDeviceRedundancyGroupRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - FailoverStrategy FailoverStrategyEnum `json:"failover_strategy"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Status LocationStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableDeviceRedundancyGroupRequest.relationships.destination.objects.Item. -type BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableDeviceRedundancyGroupRequest.relationships.peer.objects.Item. -type BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableDeviceRedundancyGroupRequest.relationships.source.objects.Item. -type BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableDeviceRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // VmRole Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` -} - -// BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item defines model for BulkWritableDeviceRoleRequest.relationships.destination.objects.Item. -type BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item defines model for BulkWritableDeviceRoleRequest.relationships.peer.objects.Item. -type BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item defines model for BulkWritableDeviceRoleRequest.relationships.source.objects.Item. -type BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableDeviceTypeRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - FrontImage *openapi_types.File `json:"front_image,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsFullDepth Device consumes both front and rear rack faces - IsFullDepth *bool `json:"is_full_depth,omitempty"` - - // Manufacturer Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Manufacturer NestedManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - - // PartNumber Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - RearImage *openapi_types.File `json:"rear_image,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - SubdeviceRole *SubdeviceRoleEnum `json:"subdevice_role,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UHeight *int `json:"u_height,omitempty"` -} - -// BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item defines model for BulkWritableDeviceTypeRequest.relationships.destination.objects.Item. -type BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item defines model for BulkWritableDeviceTypeRequest.relationships.peer.objects.Item. -type BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item defines model for BulkWritableDeviceTypeRequest.relationships.source.objects.Item. -type BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableDeviceWithConfigContextRequest struct { - // AssetTag A unique tag used to identify this device - AssetTag *string `json:"asset_tag"` - Cluster *NestedClusterRequest `json:"cluster"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRedundancyGroup *NestedDeviceRedundancyGroupRequest `json:"device_redundancy_group"` - - // DeviceRedundancyGroupPriority The priority the device has in the device redundancy group. - DeviceRedundancyGroupPriority *int `json:"device_redundancy_group_priority"` - - // DeviceRole Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceRole NestedDeviceRoleRequest `json:"device_role"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Face *FaceEnum `json:"face,omitempty"` - Id openapi_types.UUID `json:"id"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchemaRequest `json:"local_context_schema"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name"` - Platform *NestedPlatformRequest `json:"platform"` - - // Position The lowest-numbered unit occupied by the device - Position *int `json:"position"` - PrimaryIp4 *NestedIPAddressRequest `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddressRequest `json:"primary_ip6"` - Rack *NestedRackRequest `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *NestedSecretsGroupRequest `json:"secrets_group"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSiteRequest `json:"site"` - Status DeviceStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - VcPosition *int `json:"vc_position"` - VcPriority *int `json:"vc_priority"` - VirtualChassis *NestedVirtualChassisRequest `json:"virtual_chassis"` -} - -// BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for BulkWritableDeviceWithConfigContextRequest.relationships.destination.objects.Item. -type BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for BulkWritableDeviceWithConfigContextRequest.relationships.peer.objects.Item. -type BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item defines model for BulkWritableDeviceWithConfigContextRequest.relationships.source.objects.Item. -type BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDynamicGroupMembershipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableDynamicGroupMembershipRequest struct { - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group NestedDynamicGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - Operator OperatorEnum `json:"operator"` - - // ParentGroup Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - ParentGroup NestedDynamicGroupRequest `json:"parent_group"` - Weight int `json:"weight"` -} - -// BulkWritableDynamicGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableDynamicGroupRequest struct { - ContentType string `json:"content_type"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Filter A JSON-encoded dictionary of filter parameters for group membership - Filter map[string]interface{} `json:"filter"` - Id openapi_types.UUID `json:"id"` - - // Name Dynamic Group name - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Slug Unique slug - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableDynamicGroupRequest.relationships.destination.objects.Item. -type BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableDynamicGroupRequest.relationships.peer.objects.Item. -type BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableDynamicGroupRequest.relationships.source.objects.Item. -type BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableExportTemplateRequest Extend ValidatedModelSerializer with a `relationships` field. -type BulkWritableExportTemplateRequest struct { - ContentType string `json:"content_type"` - Description *string `json:"description,omitempty"` - - // FileExtension Extension to append to the rendered filename - FileExtension *string `json:"file_extension,omitempty"` - Id openapi_types.UUID `json:"id"` - - // MimeType Defaults to text/plain - MimeType *string `json:"mime_type,omitempty"` - Name string `json:"name"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TemplateCode The list of objects being exported is passed as a context variable named queryset. - TemplateCode string `json:"template_code"` -} - -// BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableExportTemplateRequest.relationships.destination.objects.Item. -type BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableExportTemplateRequest.relationships.peer.objects.Item. -type BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritableExportTemplateRequest.relationships.source.objects.Item. -type BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFQDNRequest FQDN Serializer. -type BulkWritableFQDNRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - IpAddresses *[]struct { - Address string `json:"address"` - } `json:"ip_addresses,omitempty"` - - // Name Resolvable fully qualified domain name (e.g. networktocode.com) - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFQDNRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFQDNRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFQDNRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableFQDNRequest_Relationships_Destination_Objects_Item defines model for BulkWritableFQDNRequest.relationships.destination.objects.Item. -type BulkWritableFQDNRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFQDNRequest_Relationships_Peer_Objects_Item defines model for BulkWritableFQDNRequest.relationships.peer.objects.Item. -type BulkWritableFQDNRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFQDNRequest_Relationships_Source_Objects_Item defines model for BulkWritableFQDNRequest.relationships.source.objects.Item. -type BulkWritableFQDNRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFrontPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableFrontPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - - // RearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) - RearPort FrontPortRearPortRequest `json:"rear_port"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFrontPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item defines model for BulkWritableFrontPortRequest.relationships.destination.objects.Item. -type BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item defines model for BulkWritableFrontPortRequest.relationships.peer.objects.Item. -type BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFrontPortRequest_Relationships_Source_Objects_Item defines model for BulkWritableFrontPortRequest.relationships.source.objects.Item. -type BulkWritableFrontPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFrontPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableFrontPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - - // RearPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - RearPort NestedRearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableFrontPortTemplateRequest.relationships.destination.objects.Item. -type BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableFrontPortTemplateRequest.relationships.peer.objects.Item. -type BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritableFrontPortTemplateRequest.relationships.source.objects.Item. -type BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableGitRepositoryRequest Git repositories defined as a data source. -type BulkWritableGitRepositoryRequest struct { - Branch *string `json:"branch,omitempty"` - - // CurrentHead Commit hash of the most recent fetch from the selected branch. Used for syncing between workers. - CurrentHead *string `json:"current_head,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - ProvidedContents *[]BulkWritableGitRepositoryRequest_ProvidedContents_Item `json:"provided_contents,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // RemoteUrl Only HTTP and HTTPS URLs are presently supported - RemoteUrl string `json:"remote_url"` - SecretsGroup *NestedSecretsGroupRequest `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Token *string `json:"token,omitempty"` - Username *string `json:"username,omitempty"` -} - -// BulkWritableGitRepositoryRequest_ProvidedContents_Item defines model for BulkWritableGitRepositoryRequest.provided_contents.Item. -type BulkWritableGitRepositoryRequest_ProvidedContents_Item struct { - union json.RawMessage -} - -// BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item defines model for BulkWritableGitRepositoryRequest.relationships.destination.objects.Item. -type BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item defines model for BulkWritableGitRepositoryRequest.relationships.peer.objects.Item. -type BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item defines model for BulkWritableGitRepositoryRequest.relationships.source.objects.Item. -type BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableGoldenConfigRequest Serializer for GoldenConfig object. -type BulkWritableGoldenConfigRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupConfig Full backup config for device. - BackupConfig *string `json:"backup_config,omitempty"` - BackupLastAttemptDate *time.Time `json:"backup_last_attempt_date"` - BackupLastSuccessDate *time.Time `json:"backup_last_success_date"` - - // ComplianceConfig Full config diff for device. - ComplianceConfig *string `json:"compliance_config,omitempty"` - ComplianceLastAttemptDate *time.Time `json:"compliance_last_attempt_date"` - ComplianceLastSuccessDate *time.Time `json:"compliance_last_success_date"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device device - Device openapi_types.UUID `json:"device"` - Id openapi_types.UUID `json:"id"` - - // IntendedConfig Intended config for the device. - IntendedConfig *string `json:"intended_config,omitempty"` - IntendedLastAttemptDate *time.Time `json:"intended_last_attempt_date"` - IntendedLastSuccessDate *time.Time `json:"intended_last_success_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableGoldenConfigSettingRequest Serializer for GoldenConfigSetting object. -type BulkWritableGoldenConfigSettingRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupPathTemplate The Jinja path representation of where the backup file will be found. The variable `obj` is available as the device instance object of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - BackupPathTemplate *string `json:"backup_path_template,omitempty"` - BackupRepository *openapi_types.UUID `json:"backup_repository"` - - // BackupTestConnectivity Whether or not to pretest the connectivity of the device by verifying there is a resolvable IP that can connect to port 22. - BackupTestConnectivity *bool `json:"backup_test_connectivity,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DynamicGroup Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DynamicGroup *NestedDynamicGroupRequest `json:"dynamic_group,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IntendedPathTemplate The Jinja path representation of where the generated file will be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - IntendedPathTemplate *string `json:"intended_path_template,omitempty"` - IntendedRepository *openapi_types.UUID `json:"intended_repository"` - - // JinjaPathTemplate The Jinja path representation of where the Jinja template can be found. e.g. `{{obj.platform.slug}}.j2` - JinjaPathTemplate *string `json:"jinja_path_template,omitempty"` - JinjaRepository *openapi_types.UUID `json:"jinja_repository"` - Name string `json:"name"` - Scope *map[string]interface{} `json:"scope,omitempty"` - Slug string `json:"slug"` - SotAggQuery *openapi_types.UUID `json:"sot_agg_query"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// BulkWritableGraphQLQueryRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableGraphQLQueryRequest struct { - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Query string `json:"query"` - Slug *string `json:"slug,omitempty"` - Variables *map[string]interface{} `json:"variables"` -} - -// BulkWritableGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableGroupRequest struct { - Id int `json:"id"` - Name string `json:"name"` -} - -// BulkWritableHardwareLCMRequest API serializer. -type BulkWritableHardwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DeviceType Device Type to attach the Hardware LCM to - DeviceType NestedDeviceTypeRequest `json:"device_type"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSale *openapi_types.Date `json:"end_of_sale"` - EndOfSecurityPatches *openapi_types.Date `json:"end_of_security_patches"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - EndOfSwReleases *openapi_types.Date `json:"end_of_sw_releases"` - Id openapi_types.UUID `json:"id"` - InventoryItem *string `json:"inventory_item"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableHardwareLCMRequest.relationships.destination.objects.Item. -type BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableHardwareLCMRequest.relationships.peer.objects.Item. -type BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableHardwareLCMRequest.relationships.source.objects.Item. -type BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableIPAddressRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableIPAddressRequest struct { - Address string `json:"address"` - AssignedObjectId *openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType *string `json:"assigned_object_type"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DnsName Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Id openapi_types.UUID `json:"id"` - NatInside *NestedIPAddressRequest `json:"nat_inside"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableIPAddressRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *RoleEnum `json:"role,omitempty"` - Status IPAddressStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vrf *NestedVRFRequest `json:"vrf"` -} - -// BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item defines model for BulkWritableIPAddressRequest.relationships.destination.objects.Item. -type BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item defines model for BulkWritableIPAddressRequest.relationships.peer.objects.Item. -type BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableIPAddressRequest_Relationships_Source_Objects_Item defines model for BulkWritableIPAddressRequest.relationships.source.objects.Item. -type BulkWritableIPAddressRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableIPRangeRequest IPRange Serializer. -type BulkWritableIPRangeRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - EndAddress string `json:"end_address"` - Id openapi_types.UUID `json:"id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableIPRangeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - StartAddress string `json:"start_address"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item defines model for BulkWritableIPRangeRequest.relationships.destination.objects.Item. -type BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item defines model for BulkWritableIPRangeRequest.relationships.peer.objects.Item. -type BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableIPRangeRequest_Relationships_Source_Objects_Item defines model for BulkWritableIPRangeRequest.relationships.source.objects.Item. -type BulkWritableIPRangeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableImageAttachmentRequest struct { - ContentType string `json:"content_type"` - Id openapi_types.UUID `json:"id"` - Image openapi_types.File `json:"image"` - ImageHeight int `json:"image_height"` - ImageWidth int `json:"image_width"` - Name *string `json:"name,omitempty"` - ObjectId openapi_types.UUID `json:"object_id"` -} - -// BulkWritableInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableInterfaceRequest struct { - Bridge *NestedInterfaceRequest `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Enabled *bool `json:"enabled,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Lag *NestedInterfaceRequest `json:"lag"` - MacAddress *string `json:"mac_address"` - - // MgmtOnly This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Mode *ModeEnum `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name string `json:"name"` - ParentInterface *NestedInterfaceRequest `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status InterfaceStatusChoices `json:"status"` - TaggedVlans *[]struct { - Name string `json:"name"` - Vid int `json:"vid"` - } `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type InterfaceTypeChoices `json:"type"` - UntaggedVlan *NestedVLANRequest `json:"untagged_vlan"` -} - -// BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item defines model for BulkWritableInterfaceRequest.relationships.destination.objects.Item. -type BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item defines model for BulkWritableInterfaceRequest.relationships.peer.objects.Item. -type BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInterfaceRequest_Relationships_Source_Objects_Item defines model for BulkWritableInterfaceRequest.relationships.source.objects.Item. -type BulkWritableInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInterfaceTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableInterfaceTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type InterfaceTypeChoices `json:"type"` -} - -// BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableInterfaceTemplateRequest.relationships.destination.objects.Item. -type BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableInterfaceTemplateRequest.relationships.peer.objects.Item. -type BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritableInterfaceTemplateRequest.relationships.source.objects.Item. -type BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInventoryItemRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableInventoryItemRequest struct { - // AssetTag A unique tag used to identify this item - AssetTag *string `json:"asset_tag"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - - // Discovered This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Manufacturer *NestedManufacturerRequest `json:"manufacturer"` - Name string `json:"name"` - Parent *openapi_types.UUID `json:"parent"` - - // PartId Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Serial *string `json:"serial,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item defines model for BulkWritableInventoryItemRequest.relationships.destination.objects.Item. -type BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item defines model for BulkWritableInventoryItemRequest.relationships.peer.objects.Item. -type BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item defines model for BulkWritableInventoryItemRequest.relationships.source.objects.Item. -type BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableJobHookRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableJobHookRequest struct { - ContentTypes []string `json:"content_types"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Job The job that this job hook will initiate - Job openapi_types.UUID `json:"job"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableJobHookRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableJobHookRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableJobHookRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TypeCreate Call this job hook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this job hook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this job hook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// BulkWritableJobHookRequest_Relationships_Destination_Objects_Item defines model for BulkWritableJobHookRequest.relationships.destination.objects.Item. -type BulkWritableJobHookRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableJobHookRequest_Relationships_Peer_Objects_Item defines model for BulkWritableJobHookRequest.relationships.peer.objects.Item. -type BulkWritableJobHookRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableJobHookRequest_Relationships_Source_Objects_Item defines model for BulkWritableJobHookRequest.relationships.source.objects.Item. -type BulkWritableJobHookRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableJobRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableJobRequest struct { - // ApprovalRequired Whether the job requires approval from another user before running - ApprovalRequired *bool `json:"approval_required,omitempty"` - - // ApprovalRequiredOverride If set, the configured value will remain even if the underlying Job source code changes - ApprovalRequiredOverride *bool `json:"approval_required_override,omitempty"` - - // CommitDefault Whether the job defaults to committing changes when run, or defaults to a dry-run - CommitDefault *bool `json:"commit_default,omitempty"` - - // CommitDefaultOverride If set, the configured value will remain even if the underlying Job source code changes - CommitDefaultOverride *bool `json:"commit_default_override,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Description Markdown formatting is supported - Description *string `json:"description,omitempty"` - - // DescriptionOverride If set, the configured description will remain even if the underlying Job source code changes - DescriptionOverride *bool `json:"description_override,omitempty"` - - // Enabled Whether this job can be executed by users - Enabled *bool `json:"enabled,omitempty"` - - // Grouping Human-readable grouping that this job belongs to - Grouping string `json:"grouping"` - - // GroupingOverride If set, the configured grouping will remain even if the underlying Job source code changes - GroupingOverride *bool `json:"grouping_override,omitempty"` - - // HasSensitiveVariables Whether this job contains sensitive variables - HasSensitiveVariables *bool `json:"has_sensitive_variables,omitempty"` - - // HasSensitiveVariablesOverride If set, the configured value will remain even if the underlying Job source code changes - HasSensitiveVariablesOverride *bool `json:"has_sensitive_variables_override,omitempty"` - - // Hidden Whether the job defaults to not being shown in the UI - Hidden *bool `json:"hidden,omitempty"` - - // HiddenOverride If set, the configured value will remain even if the underlying Job source code changes - HiddenOverride *bool `json:"hidden_override,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Human-readable name of this job - Name string `json:"name"` - - // NameOverride If set, the configured name will remain even if the underlying Job source code changes - NameOverride *bool `json:"name_override,omitempty"` - - // ReadOnly Whether the job is prevented from making lasting changes to the database - ReadOnly *bool `json:"read_only,omitempty"` - - // ReadOnlyOverride If set, the configured value will remain even if the underlying Job source code changes - ReadOnlyOverride *bool `json:"read_only_override,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableJobRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableJobRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableJobRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // SoftTimeLimit Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded exception.
Set to 0 to use Nautobot system default - SoftTimeLimit *float64 `json:"soft_time_limit,omitempty"` - - // SoftTimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - SoftTimeLimitOverride *bool `json:"soft_time_limit_override,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // TaskQueues Comma separated list of task queues that this job can run on. A blank list will use the default queue - TaskQueues *map[string]interface{} `json:"task_queues,omitempty"` - - // TaskQueuesOverride If set, the configured value will remain even if the underlying Job source code changes - TaskQueuesOverride *bool `json:"task_queues_override,omitempty"` - - // TimeLimit Maximum runtime in seconds before the job will be forcibly terminated.
Set to 0 to use Nautobot system default - TimeLimit *float64 `json:"time_limit,omitempty"` - - // TimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - TimeLimitOverride *bool `json:"time_limit_override,omitempty"` -} - -// BulkWritableJobRequest_Relationships_Destination_Objects_Item defines model for BulkWritableJobRequest.relationships.destination.objects.Item. -type BulkWritableJobRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableJobRequest_Relationships_Peer_Objects_Item defines model for BulkWritableJobRequest.relationships.peer.objects.Item. -type BulkWritableJobRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableJobRequest_Relationships_Source_Objects_Item defines model for BulkWritableJobRequest.relationships.source.objects.Item. -type BulkWritableJobRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableLocationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableLocationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // LocationType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - LocationType NestedLocationTypeRequest `json:"location_type"` - Name string `json:"name"` - Parent *NestedLocationRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableLocationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableLocationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableLocationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - Slug *string `json:"slug,omitempty"` - Status LocationStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// BulkWritableLocationRequest_Relationships_Destination_Objects_Item defines model for BulkWritableLocationRequest.relationships.destination.objects.Item. -type BulkWritableLocationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableLocationRequest_Relationships_Peer_Objects_Item defines model for BulkWritableLocationRequest.relationships.peer.objects.Item. -type BulkWritableLocationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableLocationRequest_Relationships_Source_Objects_Item defines model for BulkWritableLocationRequest.relationships.source.objects.Item. -type BulkWritableLocationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableLocationTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableLocationTypeRequest struct { - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - - // Nestable Allow Locations of this type to be parents/children of other Locations of this same type - Nestable *bool `json:"nestable,omitempty"` - Parent *NestedLocationTypeRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item defines model for BulkWritableLocationTypeRequest.relationships.destination.objects.Item. -type BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item defines model for BulkWritableLocationTypeRequest.relationships.peer.objects.Item. -type BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item defines model for BulkWritableLocationTypeRequest.relationships.source.objects.Item. -type BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableManufacturerRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableManufacturerRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableManufacturerRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item defines model for BulkWritableManufacturerRequest.relationships.destination.objects.Item. -type BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item defines model for BulkWritableManufacturerRequest.relationships.peer.objects.Item. -type BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableManufacturerRequest_Relationships_Source_Objects_Item defines model for BulkWritableManufacturerRequest.relationships.source.objects.Item. -type BulkWritableManufacturerRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableMinMaxValidationRuleRequest Serializer for `MinMaxValidationRule` objects. -type BulkWritableMinMaxValidationRuleRequest struct { - ContentType string `json:"content_type"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field string `json:"field"` - Id openapi_types.UUID `json:"id"` - - // Max When set, apply a maximum value contraint to the value of the model field. - Max *float64 `json:"max"` - - // Min When set, apply a minimum value contraint to the value of the model field. - Min *float64 `json:"min"` - Name string `json:"name"` - Slug string `json:"slug"` -} - -// BulkWritableNATPolicyRequest NATPolicy Serializer. -type BulkWritableNATPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]NATPolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]NATPolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRequest.relationships.destination.objects.Item. -type BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRequest.relationships.peer.objects.Item. -type BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRequest.relationships.source.objects.Item. -type BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest PolicyRule Serializer. -type BulkWritableNATPolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Id openapi_types.UUID `json:"id"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name string `json:"name"` - OriginalDestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_address_groups,omitempty"` - OriginalDestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_addresses,omitempty"` - OriginalDestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_service_groups,omitempty"` - OriginalDestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_services,omitempty"` - OriginalSourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_address_groups,omitempty"` - OriginalSourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_addresses,omitempty"` - OriginalSourceServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_service_groups,omitempty"` - OriginalSourceServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_services,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Remark *bool `json:"remark,omitempty"` - RequestId *string `json:"request_id"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - TranslatedDestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_address_groups,omitempty"` - TranslatedDestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_addresses,omitempty"` - TranslatedDestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_service_groups,omitempty"` - TranslatedDestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_services,omitempty"` - TranslatedSourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_address_groups,omitempty"` - TranslatedSourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_addresses,omitempty"` - TranslatedSourceServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_service_groups,omitempty"` - TranslatedSourceServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_services,omitempty"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Status. -type BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus string - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Status. -type BulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus string - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Status. -type BulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus string - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol string - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Status. -type BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus string - -// BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Status. -type BulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus string - -// BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol string - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Status. -type BulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus string - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Status. -type BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus string - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Status. -type BulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus string - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Status. -type BulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus string - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol string - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Status. -type BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus string - -// BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Status. -type BulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus string - -// BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol string - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServices.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServices.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServices.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus defines model for BulkWritableNATPolicyRuleRequest.OriginalSourceServices.Status. -type BulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus string - -// BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.relationships.destination.objects.Item. -type BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.relationships.peer.objects.Item. -type BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.relationships.source.objects.Item. -type BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Status. -type BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus string - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Status. -type BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus string - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Status. -type BulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus string - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol string - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Status. -type BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus string - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Status. -type BulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus string - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol string - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Status. -type BulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus string - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Status. -type BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus string - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Status. -type BulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus string - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Status. -type BulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus string - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol string - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Status. -type BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus string - -// BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Status. -type BulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus string - -// BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol string - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Relationships.Destination.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Relationships.Peer.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Relationships.Source.Objects.Item. -type BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus defines model for BulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Status. -type BulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus string - -// BulkWritableNoteRequest This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type BulkWritableNoteRequest struct { - AssignedObjectId openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType string `json:"assigned_object_type"` - Id openapi_types.UUID `json:"id"` - Note string `json:"note"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableObjectPermissionRequest struct { - // Actions The list of actions granted by this permission - Actions map[string]interface{} `json:"actions"` - - // Constraints Queryset filter matching the applicable objects of the selected type(s) - Constraints *map[string]interface{} `json:"constraints"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Groups *[]struct { - Name string `json:"name"` - } `json:"groups,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - ObjectTypes []string `json:"object_types"` - Users *[]struct { - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` - } `json:"users,omitempty"` -} - -// BulkWritablePeerEndpointRequest REST API serializer for PeerEndpoint records. -type BulkWritablePeerEndpointRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - PeerGroup *NestedPeerGroupRequest `json:"peer_group"` - Peering *NestedPeeringRequest `json:"peering"` - Secret *NestedSecretRequest `json:"secret"` - SourceInterface *NestedInterfaceRequest `json:"source_interface"` - SourceIp *NestedIPAddressRequest `json:"source_ip"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritablePeerGroupRequest REST API serializer for PeerGroup records. -type BulkWritablePeerGroupRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - Secret *NestedSecretRequest `json:"secret"` - SourceInterface *NestedInterfaceRequest `json:"source_interface"` - SourceIp *NestedIPAddressRequest `json:"source_ip"` - Template *NestedPeerGroupTemplateRequest `json:"template"` -} - -// BulkWritablePeerGroupTemplateRequest REST API serializer for PeerGroup records. -type BulkWritablePeerGroupTemplateRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - Secret *NestedSecretRequest `json:"secret"` -} - -// BulkWritablePeeringRequest REST API serializer for Peering records. -type BulkWritablePeeringRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Status CircuitStatusChoices `json:"status"` -} - -// BulkWritablePeeringRoleRequest REST API serializer for PeeringRole records. -type BulkWritablePeeringRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritablePlatformRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePlatformRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Manufacturer *NestedManufacturerRequest `json:"manufacturer"` - Name string `json:"name"` - - // NapalmArgs Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs *map[string]interface{} `json:"napalm_args"` - - // NapalmDriver The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePlatformRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePlatformRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePlatformRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritablePlatformRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePlatformRequest.relationships.destination.objects.Item. -type BulkWritablePlatformRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePlatformRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePlatformRequest.relationships.peer.objects.Item. -type BulkWritablePlatformRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePlatformRequest_Relationships_Source_Objects_Item defines model for BulkWritablePlatformRequest.relationships.source.objects.Item. -type BulkWritablePlatformRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRequest Policy Serializer. -type BulkWritablePolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]PolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]PolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// BulkWritablePolicyRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRequest.relationships.destination.objects.Item. -type BulkWritablePolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRequest.relationships.peer.objects.Item. -type BulkWritablePolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRequest_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRequest.relationships.source.objects.Item. -type BulkWritablePolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest PolicyRule Serializer. -type BulkWritablePolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Action ActionEnum `json:"action"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - DestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestDestinationAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_address_groups,omitempty"` - DestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestDestinationAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_addresses,omitempty"` - DestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *BulkWritablePolicyRuleRequestDestinationServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_service_groups,omitempty"` - DestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritablePolicyRuleRequestDestinationServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestDestinationServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_services,omitempty"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Id openapi_types.UUID `json:"id"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - RequestId *string `json:"request_id"` - SourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestSourceAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"source_address_groups,omitempty"` - SourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestSourceAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"source_addresses,omitempty"` - SourceUserGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestSourceUserGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UserObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"user_objects,omitempty"` - } `json:"source_user_groups,omitempty"` - SourceUsers *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritablePolicyRuleRequestSourceUsersStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"source_users,omitempty"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Status. -type BulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus string - -// BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestDestinationAddressGroupsStatus defines model for BulkWritablePolicyRuleRequest.DestinationAddressGroups.Status. -type BulkWritablePolicyRuleRequestDestinationAddressGroupsStatus string - -// BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddresses.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddresses.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationAddresses.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestDestinationAddressesStatus defines model for BulkWritablePolicyRuleRequest.DestinationAddresses.Status. -type BulkWritablePolicyRuleRequestDestinationAddressesStatus string - -// BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol string - -// BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Status. -type BulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus string - -// BulkWritablePolicyRuleRequestDestinationServiceGroupsStatus defines model for BulkWritablePolicyRuleRequest.DestinationServiceGroups.Status. -type BulkWritablePolicyRuleRequestDestinationServiceGroupsStatus string - -// BulkWritablePolicyRuleRequestDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritablePolicyRuleRequestDestinationServicesIpProtocol string - -// BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServices.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServices.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.DestinationServices.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestDestinationServicesStatus defines model for BulkWritablePolicyRuleRequest.DestinationServices.Status. -type BulkWritablePolicyRuleRequestDestinationServicesStatus string - -// BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.relationships.destination.objects.Item. -type BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.relationships.peer.objects.Item. -type BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.relationships.source.objects.Item. -type BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Status. -type BulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus string - -// BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestSourceAddressGroupsStatus defines model for BulkWritablePolicyRuleRequest.SourceAddressGroups.Status. -type BulkWritablePolicyRuleRequestSourceAddressGroupsStatus string - -// BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddresses.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddresses.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceAddresses.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestSourceAddressesStatus defines model for BulkWritablePolicyRuleRequest.SourceAddresses.Status. -type BulkWritablePolicyRuleRequestSourceAddressesStatus string - -// BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestSourceUserGroupsStatus defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.Status. -type BulkWritablePolicyRuleRequestSourceUserGroupsStatus string - -// BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus defines model for BulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Status. -type BulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus string - -// BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUsers.Relationships.Destination.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUsers.Relationships.Peer.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item defines model for BulkWritablePolicyRuleRequest.SourceUsers.Relationships.Source.Objects.Item. -type BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePolicyRuleRequestSourceUsersStatus defines model for BulkWritablePolicyRuleRequest.SourceUsers.Status. -type BulkWritablePolicyRuleRequestSourceUsersStatus string - -// BulkWritablePowerFeedRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePowerFeedRequest struct { - Amperage *int `json:"amperage,omitempty"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - - // MaxUtilization Maximum permissible draw (percentage) - MaxUtilization *int `json:"max_utilization,omitempty"` - Name string `json:"name"` - Phase *PhaseEnum `json:"phase,omitempty"` - - // PowerPanel Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPanel NestedPowerPanelRequest `json:"power_panel"` - Rack *NestedRackRequest `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status PowerFeedStatusChoices `json:"status"` - Supply *SupplyEnum `json:"supply,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerFeedTypeChoices `json:"type,omitempty"` - Voltage *int `json:"voltage,omitempty"` -} - -// BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePowerFeedRequest.relationships.destination.objects.Item. -type BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePowerFeedRequest.relationships.peer.objects.Item. -type BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item defines model for BulkWritablePowerFeedRequest.relationships.source.objects.Item. -type BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerOutletRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePowerOutletRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - FeedLeg *FeedLegEnum `json:"feed_leg,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - - // PowerPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPort *NestedPowerPortRequest `json:"power_port,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerOutletTypeChoices `json:"type,omitempty"` -} - -// BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePowerOutletRequest.relationships.destination.objects.Item. -type BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePowerOutletRequest.relationships.peer.objects.Item. -type BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item defines model for BulkWritablePowerOutletRequest.relationships.source.objects.Item. -type BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerOutletTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePowerOutletTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - FeedLeg *FeedLegEnum `json:"feed_leg,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - - // PowerPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPort *NestedPowerPortTemplateRequest `json:"power_port,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PowerOutletTypeChoices `json:"type,omitempty"` -} - -// BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePowerOutletTemplateRequest.relationships.destination.objects.Item. -type BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePowerOutletTemplateRequest.relationships.peer.objects.Item. -type BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritablePowerOutletTemplateRequest.relationships.source.objects.Item. -type BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPanelRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePowerPanelRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name string `json:"name"` - RackGroup *NestedRackGroupRequest `json:"rack_group"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSiteRequest `json:"site"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePowerPanelRequest.relationships.destination.objects.Item. -type BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePowerPanelRequest.relationships.peer.objects.Item. -type BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item defines model for BulkWritablePowerPanelRequest.relationships.source.objects.Item. -type BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePowerPortRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerPortTypeChoices `json:"type,omitempty"` -} - -// BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePowerPortRequest.relationships.destination.objects.Item. -type BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePowerPortRequest.relationships.peer.objects.Item. -type BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPortRequest_Relationships_Source_Objects_Item defines model for BulkWritablePowerPortRequest.relationships.source.objects.Item. -type BulkWritablePowerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePowerPortTemplateRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PowerPortTypeChoices `json:"type,omitempty"` -} - -// BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePowerPortTemplateRequest.relationships.destination.objects.Item. -type BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePowerPortTemplateRequest.relationships.peer.objects.Item. -type BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritablePowerPortTemplateRequest.relationships.source.objects.Item. -type BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePrefixRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritablePrefixRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsPool All IP addresses within this prefix are considered usable - IsPool *bool `json:"is_pool,omitempty"` - Location *NestedLocationRequest `json:"location"` - Prefix string `json:"prefix"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePrefixRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePrefixRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritablePrefixRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedRoleRequest `json:"role"` - Site *NestedSiteRequest `json:"site"` - Status PrefixStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vlan *NestedVLANRequest `json:"vlan"` - Vrf *NestedVRFRequest `json:"vrf"` -} - -// BulkWritablePrefixRequest_Relationships_Destination_Objects_Item defines model for BulkWritablePrefixRequest.relationships.destination.objects.Item. -type BulkWritablePrefixRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePrefixRequest_Relationships_Peer_Objects_Item defines model for BulkWritablePrefixRequest.relationships.peer.objects.Item. -type BulkWritablePrefixRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritablePrefixRequest_Relationships_Source_Objects_Item defines model for BulkWritablePrefixRequest.relationships.source.objects.Item. -type BulkWritablePrefixRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderLCMRequest API serializer. -type BulkWritableProviderLCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Phone *string `json:"phone,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableProviderLCMRequest.relationships.destination.objects.Item. -type BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableProviderLCMRequest.relationships.peer.objects.Item. -type BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableProviderLCMRequest.relationships.source.objects.Item. -type BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderNetworkRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableProviderNetworkRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - - // Provider Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Provider NestedProviderRequest `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item defines model for BulkWritableProviderNetworkRequest.relationships.destination.objects.Item. -type BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item defines model for BulkWritableProviderNetworkRequest.relationships.peer.objects.Item. -type BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item defines model for BulkWritableProviderNetworkRequest.relationships.source.objects.Item. -type BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableProviderRequest struct { - Account *string `json:"account,omitempty"` - AdminContact *string `json:"admin_contact,omitempty"` - - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - NocContact *string `json:"noc_contact,omitempty"` - PortalUrl *string `json:"portal_url,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableProviderRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableProviderRequest_Relationships_Destination_Objects_Item defines model for BulkWritableProviderRequest.relationships.destination.objects.Item. -type BulkWritableProviderRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderRequest_Relationships_Peer_Objects_Item defines model for BulkWritableProviderRequest.relationships.peer.objects.Item. -type BulkWritableProviderRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableProviderRequest_Relationships_Source_Objects_Item defines model for BulkWritableProviderRequest.relationships.source.objects.Item. -type BulkWritableProviderRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRIRRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRIRRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsPrivate IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRIRRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRIRRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRIRRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableRIRRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRIRRequest.relationships.destination.objects.Item. -type BulkWritableRIRRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRIRRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRIRRequest.relationships.peer.objects.Item. -type BulkWritableRIRRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRIRRequest_Relationships_Source_Objects_Item defines model for BulkWritableRIRRequest.relationships.source.objects.Item. -type BulkWritableRIRRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRackGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name string `json:"name"` - Parent *NestedRackGroupRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSiteRequest `json:"site"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRackGroupRequest.relationships.destination.objects.Item. -type BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRackGroupRequest.relationships.peer.objects.Item. -type BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableRackGroupRequest.relationships.source.objects.Item. -type BulkWritableRackGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRackRequest struct { - // AssetTag A unique tag used to identify this rack - AssetTag *string `json:"asset_tag"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DescUnits Units are numbered top-to-bottom - DescUnits *bool `json:"desc_units,omitempty"` - - // FacilityId Locally-assigned identifier - FacilityId *string `json:"facility_id"` - Group *NestedRackGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name string `json:"name"` - - // OuterDepth Outer dimension of rack (depth) - OuterDepth *int `json:"outer_depth"` - OuterUnit *OuterUnitEnum `json:"outer_unit,omitempty"` - - // OuterWidth Outer dimension of rack (width) - OuterWidth *int `json:"outer_width"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedRackRoleRequest `json:"role"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSiteRequest `json:"site"` - Status RackStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Type *RackTypeChoices `json:"type,omitempty"` - - // UHeight Height in rack units - UHeight *int `json:"u_height,omitempty"` - Width *WidthEnum `json:"width,omitempty"` -} - -// BulkWritableRackRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRackRequest.relationships.destination.objects.Item. -type BulkWritableRackRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRackRequest.relationships.peer.objects.Item. -type BulkWritableRackRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackRequest_Relationships_Source_Objects_Item defines model for BulkWritableRackRequest.relationships.source.objects.Item. -type BulkWritableRackRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackReservationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRackReservationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description string `json:"description"` - Id openapi_types.UUID `json:"id"` - - // Rack Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Rack NestedRackRequest `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackReservationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Units map[string]interface{} `json:"units"` - - // User Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - User NestedUserRequest `json:"user"` -} - -// BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRackReservationRequest.relationships.destination.objects.Item. -type BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRackReservationRequest.relationships.peer.objects.Item. -type BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackReservationRequest_Relationships_Source_Objects_Item defines model for BulkWritableRackReservationRequest.relationships.source.objects.Item. -type BulkWritableRackReservationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRackRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRackRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRackRoleRequest.relationships.destination.objects.Item. -type BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRackRoleRequest.relationships.peer.objects.Item. -type BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRackRoleRequest_Relationships_Source_Objects_Item defines model for BulkWritableRackRoleRequest.relationships.source.objects.Item. -type BulkWritableRackRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRearPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRearPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRearPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRearPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRearPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// BulkWritableRearPortRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRearPortRequest.relationships.destination.objects.Item. -type BulkWritableRearPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRearPortRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRearPortRequest.relationships.peer.objects.Item. -type BulkWritableRearPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRearPortRequest_Relationships_Source_Objects_Item defines model for BulkWritableRearPortRequest.relationships.source.objects.Item. -type BulkWritableRearPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRearPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRearPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceTypeRequest `json:"device_type"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRearPortTemplateRequest.relationships.destination.objects.Item. -type BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRearPortTemplateRequest.relationships.peer.objects.Item. -type BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item defines model for BulkWritableRearPortTemplateRequest.relationships.source.objects.Item. -type BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRegionRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRegionRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Parent *NestedRegionRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRegionRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRegionRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRegionRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableRegionRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRegionRequest.relationships.destination.objects.Item. -type BulkWritableRegionRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRegionRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRegionRequest.relationships.peer.objects.Item. -type BulkWritableRegionRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRegionRequest_Relationships_Source_Objects_Item defines model for BulkWritableRegionRequest.relationships.source.objects.Item. -type BulkWritableRegionRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRegularExpressionValidationRuleRequest Serializer for `RegularExpressionValidationRule` objects. -type BulkWritableRegularExpressionValidationRuleRequest struct { - ContentType string `json:"content_type"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field string `json:"field"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - RegularExpression string `json:"regular_expression"` - Slug string `json:"slug"` -} - -// BulkWritableRelationshipAssociationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableRelationshipAssociationRequest struct { - DestinationId openapi_types.UUID `json:"destination_id"` - DestinationType string `json:"destination_type"` - Id openapi_types.UUID `json:"id"` - - // Relationship Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Relationship NestedRelationshipRequest `json:"relationship"` - SourceId openapi_types.UUID `json:"source_id"` - SourceType string `json:"source_type"` -} - -// BulkWritableRelationshipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableRelationshipRequest struct { - Description *string `json:"description,omitempty"` - - // DestinationFilter Filterset filter matching the applicable destination objects of the selected type - DestinationFilter *map[string]interface{} `json:"destination_filter"` - - // DestinationHidden Hide this relationship on the destination object. - DestinationHidden *bool `json:"destination_hidden,omitempty"` - - // DestinationLabel Label for related source objects, as displayed on the destination object. - DestinationLabel *string `json:"destination_label,omitempty"` - DestinationType string `json:"destination_type"` - Id openapi_types.UUID `json:"id"` - - // Name Name of the relationship as displayed to users - Name string `json:"name"` - - // RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. - RequiredOn *BulkWritableRelationshipRequest_RequiredOn `json:"required_on,omitempty"` - - // Slug Internal relationship name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // SourceFilter Filterset filter matching the applicable source objects of the selected type - SourceFilter *map[string]interface{} `json:"source_filter"` - - // SourceHidden Hide this relationship on the source object. - SourceHidden *bool `json:"source_hidden,omitempty"` - - // SourceLabel Label for related destination objects, as displayed on the source object. - SourceLabel *string `json:"source_label,omitempty"` - SourceType string `json:"source_type"` - - // Type Cardinality of this relationship - Type *RelationshipTypeChoices `json:"type,omitempty"` -} - -// BulkWritableRelationshipRequest_RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. -type BulkWritableRelationshipRequest_RequiredOn struct { - union json.RawMessage -} - -// BulkWritableRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRoleRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// BulkWritableRoleRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRoleRequest.relationships.destination.objects.Item. -type BulkWritableRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRoleRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRoleRequest.relationships.peer.objects.Item. -type BulkWritableRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRoleRequest_Relationships_Source_Objects_Item defines model for BulkWritableRoleRequest.relationships.source.objects.Item. -type BulkWritableRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRouteTargetRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableRouteTargetRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item defines model for BulkWritableRouteTargetRequest.relationships.destination.objects.Item. -type BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item defines model for BulkWritableRouteTargetRequest.relationships.peer.objects.Item. -type BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item defines model for BulkWritableRouteTargetRequest.relationships.source.objects.Item. -type BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSecretRequest Serializer for `Secret` objects. -type BulkWritableSecretRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Parameters *map[string]interface{} `json:"parameters,omitempty"` - Provider string `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSecretRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSecretRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSecretRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableSecretRequest_Relationships_Destination_Objects_Item defines model for BulkWritableSecretRequest.relationships.destination.objects.Item. -type BulkWritableSecretRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSecretRequest_Relationships_Peer_Objects_Item defines model for BulkWritableSecretRequest.relationships.peer.objects.Item. -type BulkWritableSecretRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSecretRequest_Relationships_Source_Objects_Item defines model for BulkWritableSecretRequest.relationships.source.objects.Item. -type BulkWritableSecretRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSecretsGroupAssociationRequest Serializer for `SecretsGroupAssociation` objects. -type BulkWritableSecretsGroupAssociationRequest struct { - AccessType AccessTypeEnum `json:"access_type"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group NestedSecretsGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - - // Secret Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Secret NestedSecretRequest `json:"secret"` - SecretType SecretTypeEnum `json:"secret_type"` -} - -// BulkWritableSecretsGroupRequest Serializer for `SecretsGroup` objects. -type BulkWritableSecretsGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableSecretsGroupRequest.relationships.destination.objects.Item. -type BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableSecretsGroupRequest.relationships.peer.objects.Item. -type BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableSecretsGroupRequest.relationships.source.objects.Item. -type BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectGroupRequest ServiceObjectGroup Serializer. -type BulkWritableServiceObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableServiceObjectGroupRequestServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableServiceObjectGroupRequest.relationships.destination.objects.Item. -type BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableServiceObjectGroupRequest.relationships.peer.objects.Item. -type BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableServiceObjectGroupRequest.relationships.source.objects.Item. -type BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type BulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol string - -// BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item defines model for BulkWritableServiceObjectGroupRequest.ServiceObjects.Relationships.Destination.Objects.Item. -type BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item defines model for BulkWritableServiceObjectGroupRequest.ServiceObjects.Relationships.Peer.Objects.Item. -type BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item defines model for BulkWritableServiceObjectGroupRequest.ServiceObjects.Relationships.Source.Objects.Item. -type BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectGroupRequestServiceObjectsStatus defines model for BulkWritableServiceObjectGroupRequest.ServiceObjects.Status. -type BulkWritableServiceObjectGroupRequestServiceObjectsStatus string - -// BulkWritableServiceObjectRequest ServiceObject Serializer. -type BulkWritableServiceObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol IpProtocolEnum `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item defines model for BulkWritableServiceObjectRequest.relationships.destination.objects.Item. -type BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item defines model for BulkWritableServiceObjectRequest.relationships.peer.objects.Item. -type BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item defines model for BulkWritableServiceObjectRequest.relationships.source.objects.Item. -type BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableServiceRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - Ipaddresses *[]struct { - Address string `json:"address"` - } `json:"ipaddresses,omitempty"` - Name string `json:"name"` - Ports []int `json:"ports"` - Protocol *ProtocolEnum `json:"protocol,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableServiceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - VirtualMachine *NestedVirtualMachineRequest `json:"virtual_machine"` -} - -// BulkWritableServiceRequest_Relationships_Destination_Objects_Item defines model for BulkWritableServiceRequest.relationships.destination.objects.Item. -type BulkWritableServiceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceRequest_Relationships_Peer_Objects_Item defines model for BulkWritableServiceRequest.relationships.peer.objects.Item. -type BulkWritableServiceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableServiceRequest_Relationships_Source_Objects_Item defines model for BulkWritableServiceRequest.relationships.source.objects.Item. -type BulkWritableServiceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSiteRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableSiteRequest struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - ContactEmail *openapi_types.Email `json:"contact_email,omitempty"` - ContactName *string `json:"contact_name,omitempty"` - ContactPhone *string `json:"contact_phone,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Facility Local facility ID or description - Facility *string `json:"facility,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Latitude GPS coordinate (latitude) - Latitude *string `json:"latitude"` - - // Longitude GPS coordinate (longitude) - Longitude *string `json:"longitude"` - Name string `json:"name"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Region *NestedRegionRequest `json:"region"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSiteRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSiteRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSiteRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ShippingAddress *string `json:"shipping_address,omitempty"` - Slug *string `json:"slug,omitempty"` - Status LocationStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - TimeZone *string `json:"time_zone"` -} - -// BulkWritableSiteRequest_Relationships_Destination_Objects_Item defines model for BulkWritableSiteRequest.relationships.destination.objects.Item. -type BulkWritableSiteRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSiteRequest_Relationships_Peer_Objects_Item defines model for BulkWritableSiteRequest.relationships.peer.objects.Item. -type BulkWritableSiteRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSiteRequest_Relationships_Source_Objects_Item defines model for BulkWritableSiteRequest.relationships.source.objects.Item. -type BulkWritableSiteRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSoftwareImageLCMRequest REST API serializer for SoftwareImageLCM records. -type BulkWritableSoftwareImageLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - Id openapi_types.UUID `json:"id"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName string `json:"image_file_name"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Software Nested/brief serializer for SoftwareLCM. - Software NestedSoftwareLCMRequest `json:"software"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableSoftwareImageLCMRequest.relationships.destination.objects.Item. -type BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableSoftwareImageLCMRequest.relationships.peer.objects.Item. -type BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableSoftwareImageLCMRequest.relationships.source.objects.Item. -type BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSoftwareLCMRequest REST API serializer for SoftwareLCM records. -type BulkWritableSoftwareLCMRequest struct { - Alias *string `json:"alias"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DevicePlatform Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DevicePlatform NestedPlatformRequest `json:"device_platform"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - Id openapi_types.UUID `json:"id"` - LongTermSupport *bool `json:"long_term_support,omitempty"` - PreRelease *bool `json:"pre_release,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - SoftwareImages *[]struct { - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName string `json:"image_file_name"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - } `json:"software_images,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Version string `json:"version"` -} - -// BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableSoftwareLCMRequest.relationships.destination.objects.Item. -type BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableSoftwareLCMRequest.relationships.peer.objects.Item. -type BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableSoftwareLCMRequest.relationships.source.objects.Item. -type BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableStatusRequest Serializer for `Status` objects. -type BulkWritableStatusRequest struct { - Color *string `json:"color,omitempty"` - ContentTypes []string `json:"content_types"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableStatusRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableStatusRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableStatusRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableStatusRequest_Relationships_Destination_Objects_Item defines model for BulkWritableStatusRequest.relationships.destination.objects.Item. -type BulkWritableStatusRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableStatusRequest_Relationships_Peer_Objects_Item defines model for BulkWritableStatusRequest.relationships.peer.objects.Item. -type BulkWritableStatusRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableStatusRequest_Relationships_Source_Objects_Item defines model for BulkWritableStatusRequest.relationships.source.objects.Item. -type BulkWritableStatusRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTagSerializerVersion13Request Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableTagSerializerVersion13Request struct { - Color *string `json:"color,omitempty"` - ContentTypes []string `json:"content_types"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug string `json:"slug"` -} - -// BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item defines model for BulkWritableTagSerializerVersion13Request.relationships.destination.objects.Item. -type BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item defines model for BulkWritableTagSerializerVersion13Request.relationships.peer.objects.Item. -type BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item defines model for BulkWritableTagSerializerVersion13Request.relationships.source.objects.Item. -type BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTenantGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableTenantGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Parent *NestedTenantGroupRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableTenantGroupRequest.relationships.destination.objects.Item. -type BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableTenantGroupRequest.relationships.peer.objects.Item. -type BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableTenantGroupRequest.relationships.source.objects.Item. -type BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTenantRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableTenantRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group *NestedTenantGroupRequest `json:"group,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTenantRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTenantRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableTenantRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableTenantRequest_Relationships_Destination_Objects_Item defines model for BulkWritableTenantRequest.relationships.destination.objects.Item. -type BulkWritableTenantRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTenantRequest_Relationships_Peer_Objects_Item defines model for BulkWritableTenantRequest.relationships.peer.objects.Item. -type BulkWritableTenantRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTenantRequest_Relationships_Source_Objects_Item defines model for BulkWritableTenantRequest.relationships.source.objects.Item. -type BulkWritableTenantRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableTokenRequest struct { - Description *string `json:"description,omitempty"` - Expires *time.Time `json:"expires"` - Id openapi_types.UUID `json:"id"` - Key *string `json:"key,omitempty"` - - // WriteEnabled Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` -} - -// BulkWritableUserObjectGroupRequest UserObjectGroup Serializer. -type BulkWritableUserObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UserObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *BulkWritableUserObjectGroupRequestUserObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"user_objects,omitempty"` -} - -// BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableUserObjectGroupRequest.relationships.destination.objects.Item. -type BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableUserObjectGroupRequest.relationships.peer.objects.Item. -type BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableUserObjectGroupRequest.relationships.source.objects.Item. -type BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item defines model for BulkWritableUserObjectGroupRequest.UserObjects.Relationships.Destination.Objects.Item. -type BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item defines model for BulkWritableUserObjectGroupRequest.UserObjects.Relationships.Peer.Objects.Item. -type BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item defines model for BulkWritableUserObjectGroupRequest.UserObjects.Relationships.Source.Objects.Item. -type BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectGroupRequestUserObjectsStatus defines model for BulkWritableUserObjectGroupRequest.UserObjects.Status. -type BulkWritableUserObjectGroupRequestUserObjectsStatus string - -// BulkWritableUserObjectRequest UserObject Serializer. -type BulkWritableUserObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableUserObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` -} - -// BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item defines model for BulkWritableUserObjectRequest.relationships.destination.objects.Item. -type BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item defines model for BulkWritableUserObjectRequest.relationships.peer.objects.Item. -type BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserObjectRequest_Relationships_Source_Objects_Item defines model for BulkWritableUserObjectRequest.relationships.source.objects.Item. -type BulkWritableUserObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableUserRequest struct { - DateJoined *time.Time `json:"date_joined,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - FirstName *string `json:"first_name,omitempty"` - Groups *[]struct { - Name string `json:"name"` - } `json:"groups,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsActive Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - - // IsStaff Designates whether the user can log into this admin site. - IsStaff *bool `json:"is_staff,omitempty"` - LastName *string `json:"last_name,omitempty"` - Password *string `json:"password,omitempty"` - - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` -} - -// BulkWritableVLANGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableVLANGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - Slug *string `json:"slug,omitempty"` -} - -// BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item defines model for BulkWritableVLANGroupRequest.relationships.destination.objects.Item. -type BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item defines model for BulkWritableVLANGroupRequest.relationships.peer.objects.Item. -type BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item defines model for BulkWritableVLANGroupRequest.relationships.source.objects.Item. -type BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVLANRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableVLANRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Group *NestedVLANGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVLANRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVLANRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVLANRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedRoleRequest `json:"role"` - Site *NestedSiteRequest `json:"site"` - Status VLANStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vid int `json:"vid"` -} - -// BulkWritableVLANRequest_Relationships_Destination_Objects_Item defines model for BulkWritableVLANRequest.relationships.destination.objects.Item. -type BulkWritableVLANRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVLANRequest_Relationships_Peer_Objects_Item defines model for BulkWritableVLANRequest.relationships.peer.objects.Item. -type BulkWritableVLANRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVLANRequest_Relationships_Source_Objects_Item defines model for BulkWritableVLANRequest.relationships.source.objects.Item. -type BulkWritableVLANRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVMInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableVMInterfaceRequest struct { - Bridge *NestedVMInterfaceRequest `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id openapi_types.UUID `json:"id"` - MacAddress *string `json:"mac_address"` - Mode *ModeEnum `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name string `json:"name"` - ParentInterface *NestedVMInterfaceRequest `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status InterfaceStatusChoices `json:"status"` - TaggedVlans *[]struct { - Name string `json:"name"` - Vid int `json:"vid"` - } `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UntaggedVlan *NestedVLANRequest `json:"untagged_vlan"` - - // VirtualMachine Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - VirtualMachine NestedVirtualMachineRequest `json:"virtual_machine"` -} - -// BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item defines model for BulkWritableVMInterfaceRequest.relationships.destination.objects.Item. -type BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item defines model for BulkWritableVMInterfaceRequest.relationships.peer.objects.Item. -type BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item defines model for BulkWritableVMInterfaceRequest.relationships.source.objects.Item. -type BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVRFRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableVRFRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // EnforceUnique Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - ExportTargets *[]struct { - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - } `json:"export_targets,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportTargets *[]struct { - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - } `json:"import_targets,omitempty"` - Name string `json:"name"` - - // Rd Unique route distinguisher (as defined in RFC 4364) - Rd *string `json:"rd"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVRFRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVRFRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVRFRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// BulkWritableVRFRequest_Relationships_Destination_Objects_Item defines model for BulkWritableVRFRequest.relationships.destination.objects.Item. -type BulkWritableVRFRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVRFRequest_Relationships_Peer_Objects_Item defines model for BulkWritableVRFRequest.relationships.peer.objects.Item. -type BulkWritableVRFRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVRFRequest_Relationships_Source_Objects_Item defines model for BulkWritableVRFRequest.relationships.source.objects.Item. -type BulkWritableVRFRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableValidatedSoftwareLCMRequest REST API serializer for ValidatedSoftwareLCM records. -type BulkWritableValidatedSoftwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRoles *[]openapi_types.UUID `json:"device_roles,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - Devices *[]openapi_types.UUID `json:"devices,omitempty"` - End *openapi_types.Date `json:"end"` - Id openapi_types.UUID `json:"id"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Preferred *bool `json:"preferred,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Software Nested/brief serializer for SoftwareLCM. - Software NestedSoftwareLCMRequest `json:"software"` - Start openapi_types.Date `json:"start"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableValidatedSoftwareLCMRequest.relationships.destination.objects.Item. -type BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableValidatedSoftwareLCMRequest.relationships.peer.objects.Item. -type BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableValidatedSoftwareLCMRequest.relationships.source.objects.Item. -type BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVirtualChassisRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableVirtualChassisRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Domain *string `json:"domain,omitempty"` - Id openapi_types.UUID `json:"id"` - Master *NestedDeviceRequest `json:"master"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item defines model for BulkWritableVirtualChassisRequest.relationships.destination.objects.Item. -type BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item defines model for BulkWritableVirtualChassisRequest.relationships.peer.objects.Item. -type BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item defines model for BulkWritableVirtualChassisRequest.relationships.source.objects.Item. -type BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVirtualMachineWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type BulkWritableVirtualMachineWithConfigContextRequest struct { - // Cluster Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Cluster NestedClusterRequest `json:"cluster"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Disk *int `json:"disk"` - Id openapi_types.UUID `json:"id"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchemaRequest `json:"local_context_schema"` - Memory *int `json:"memory"` - Name string `json:"name"` - Platform *NestedPlatformRequest `json:"platform"` - PrimaryIp4 *NestedIPAddressRequest `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddressRequest `json:"primary_ip6"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedDeviceRoleRequest `json:"role"` - Status VirtualMachineStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vcpus *int `json:"vcpus"` -} - -// BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for BulkWritableVirtualMachineWithConfigContextRequest.relationships.destination.objects.Item. -type BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for BulkWritableVirtualMachineWithConfigContextRequest.relationships.peer.objects.Item. -type BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item defines model for BulkWritableVirtualMachineWithConfigContextRequest.relationships.source.objects.Item. -type BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVulnerabilityLCMRequest REST API serializer for VulnerabilityLCM records. -type BulkWritableVulnerabilityLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status Status4f5Enum `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item defines model for BulkWritableVulnerabilityLCMRequest.relationships.destination.objects.Item. -type BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item defines model for BulkWritableVulnerabilityLCMRequest.relationships.peer.objects.Item. -type BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item defines model for BulkWritableVulnerabilityLCMRequest.relationships.source.objects.Item. -type BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableWebhookRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type BulkWritableWebhookRequest struct { - // AdditionalHeaders User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value. Jinja2 template processing is support with the same context as the request body (below). - AdditionalHeaders *string `json:"additional_headers,omitempty"` - - // BodyTemplate Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. - BodyTemplate *string `json:"body_template,omitempty"` - - // CaFilePath The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath *string `json:"ca_file_path"` - ContentTypes []string `json:"content_types"` - - // HttpContentType The complete list of official content types is available here. - HttpContentType *string `json:"http_content_type,omitempty"` - HttpMethod *HttpMethodEnum `json:"http_method,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - - // PayloadUrl A POST will be sent to this URL when the webhook is called. - PayloadUrl string `json:"payload_url"` - - // Secret When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. - Secret *string `json:"secret,omitempty"` - - // SslVerification Enable SSL certificate verification. Disable with caution! - SslVerification *bool `json:"ssl_verification,omitempty"` - - // TypeCreate Call this webhook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this webhook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this webhook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// BulkWritableZoneRequest Zone Serializer. -type BulkWritableZoneRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Interfaces *[]NestedInterfaceRequest `json:"interfaces,omitempty"` - - // Name Name of the zone (e.g. trust) - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableZoneRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableZoneRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]BulkWritableZoneRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// BulkWritableZoneRequest_Relationships_Destination_Objects_Item defines model for BulkWritableZoneRequest.relationships.destination.objects.Item. -type BulkWritableZoneRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableZoneRequest_Relationships_Peer_Objects_Item defines model for BulkWritableZoneRequest.relationships.peer.objects.Item. -type BulkWritableZoneRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// BulkWritableZoneRequest_Relationships_Source_Objects_Item defines model for BulkWritableZoneRequest.relationships.source.objects.Item. -type BulkWritableZoneRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ButtonClassEnum defines model for ButtonClassEnum. -type ButtonClassEnum string - -// CVELCM REST API serializer for CVELCM records. -type CVELCM struct { - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Cvss *float64 `json:"cvss"` - CvssV2 *float64 `json:"cvss_v2"` - CvssV3 *float64 `json:"cvss_v3"` - Description *string `json:"description"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Fix *string `json:"fix"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Link string `json:"link"` - Name string `json:"name"` - PublishedDate openapi_types.Date `json:"published_date"` - Severity *struct { - Label *CVELCMSeverityLabel `json:"label,omitempty"` - Value *CVELCMSeverityValue `json:"value,omitempty"` - } `json:"severity,omitempty"` - Status *struct { - Label *string `json:"label,omitempty"` - Value *string `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// CVELCMSeverityLabel defines model for CVELCM.Severity.Label. -type CVELCMSeverityLabel string - -// CVELCMSeverityValue defines model for CVELCM.Severity.Value. -type CVELCMSeverityValue string - -// Cable Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Cable struct { - Color *string `json:"color,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Length *int `json:"length"` - LengthUnit *struct { - Label *CableLengthUnitLabel `json:"label,omitempty"` - Value *CableLengthUnitValue `json:"value,omitempty"` - } `json:"length_unit,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Status struct { - Label *CableStatusLabel `json:"label,omitempty"` - Value *CableStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - TerminationA *map[string]interface{} `json:"termination_a"` - TerminationAId openapi_types.UUID `json:"termination_a_id"` - TerminationAType string `json:"termination_a_type"` - TerminationB *map[string]interface{} `json:"termination_b"` - TerminationBId openapi_types.UUID `json:"termination_b_id"` - TerminationBType string `json:"termination_b_type"` - Type *Cable_Type `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// CableLengthUnitLabel defines model for Cable.LengthUnit.Label. -type CableLengthUnitLabel string - -// CableLengthUnitValue defines model for Cable.LengthUnit.Value. -type CableLengthUnitValue string - -// CableStatusLabel defines model for Cable.Status.Label. -type CableStatusLabel string - -// CableStatusValue defines model for Cable.Status.Value. -type CableStatusValue string - -// Cable_Type defines model for Cable.Type. -type Cable_Type struct { - union json.RawMessage -} - -// CableStatusChoices defines model for CableStatusChoices. -type CableStatusChoices string - -// CableTypeChoices defines model for CableTypeChoices. -type CableTypeChoices string - -// CapircaPolicy CapircaPolicy Serializer. -type CapircaPolicy struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Cfg *string `json:"cfg"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Device *openapi_types.UUID `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Net *string `json:"net"` - Pol *string `json:"pol"` - Svc *string `json:"svc"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// CapircaPolicyRequest CapircaPolicy Serializer. -type CapircaPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Cfg *string `json:"cfg"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Device *openapi_types.UUID `json:"device"` - Net *string `json:"net"` - Pol *string `json:"pol"` - Svc *string `json:"svc"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// Circuit Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Circuit struct { - Cid string `json:"cid"` - Comments *string `json:"comments,omitempty"` - CommitRate *int `json:"commit_rate"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - InstallDate *openapi_types.Date `json:"install_date"` - LastUpdated *time.Time `json:"last_updated"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Provider Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Provider NestedProvider `json:"provider"` - Status struct { - Label *CircuitStatusLabel `json:"label,omitempty"` - Value *CircuitStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - TerminationA *CircuitCircuitTermination `json:"termination_a,omitempty"` - TerminationZ *CircuitCircuitTermination `json:"termination_z,omitempty"` - - // Type Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Type NestedCircuitType `json:"type"` - Url *string `json:"url,omitempty"` -} - -// CircuitStatusLabel defines model for Circuit.Status.Label. -type CircuitStatusLabel string - -// CircuitStatusValue defines model for Circuit.Status.Value. -type CircuitStatusValue string - -// CircuitCircuitTermination Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type CircuitCircuitTermination struct { - // ConnectedEndpoint Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - ConnectedEndpoint NestedInterface `json:"connected_endpoint"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - NotesUrl *string `json:"notes_url,omitempty"` - PortSpeed *int `json:"port_speed"` - - // ProviderNetwork Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - ProviderNetwork NestedProviderNetwork `json:"provider_network"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSite `json:"site"` - - // UpstreamSpeed Upstream speed, if different from port speed - UpstreamSpeed *int `json:"upstream_speed"` - Url *string `json:"url,omitempty"` - XconnectId *string `json:"xconnect_id,omitempty"` -} - -// CircuitMaintenance Serializer for API. -type CircuitMaintenance struct { - Ack *bool `json:"ack"` - Description *string `json:"description"` - EndTime time.Time `json:"end_time"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - StartTime time.Time `json:"start_time"` - Status *CircuitMaintenance_Status `json:"status"` -} - -// CircuitMaintenance_Status defines model for CircuitMaintenance.Status. -type CircuitMaintenance_Status struct { - union json.RawMessage -} - -// CircuitMaintenanceCircuitImpact Serializer for API. -type CircuitMaintenanceCircuitImpact struct { - Circuit openapi_types.UUID `json:"circuit"` - Id *openapi_types.UUID `json:"id,omitempty"` - Impact *CircuitMaintenanceCircuitImpact_Impact `json:"impact"` - Maintenance openapi_types.UUID `json:"maintenance"` -} - -// CircuitMaintenanceCircuitImpact_Impact defines model for CircuitMaintenanceCircuitImpact.Impact. -type CircuitMaintenanceCircuitImpact_Impact struct { - union json.RawMessage -} - -// CircuitMaintenanceCircuitImpactRequest Serializer for API. -type CircuitMaintenanceCircuitImpactRequest struct { - Circuit openapi_types.UUID `json:"circuit"` - Impact *CircuitMaintenanceCircuitImpactRequest_Impact `json:"impact"` - Maintenance openapi_types.UUID `json:"maintenance"` -} - -// CircuitMaintenanceCircuitImpactRequest_Impact defines model for CircuitMaintenanceCircuitImpactRequest.Impact. -type CircuitMaintenanceCircuitImpactRequest_Impact struct { - union json.RawMessage -} - -// CircuitMaintenanceRequest Serializer for API. -type CircuitMaintenanceRequest struct { - Ack *bool `json:"ack"` - Description *string `json:"description"` - EndTime time.Time `json:"end_time"` - Name *string `json:"name,omitempty"` - StartTime time.Time `json:"start_time"` - Status *CircuitMaintenanceRequest_Status `json:"status"` -} - -// CircuitMaintenanceRequest_Status defines model for CircuitMaintenanceRequest.Status. -type CircuitMaintenanceRequest_Status struct { - union json.RawMessage -} - -// CircuitStatusChoices defines model for CircuitStatusChoices. -type CircuitStatusChoices string - -// CircuitTermination Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type CircuitTermination struct { - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - - // Circuit Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Circuit NestedCircuit `json:"circuit"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - NotesUrl *string `json:"notes_url,omitempty"` - PortSpeed *int `json:"port_speed"` - PpInfo *string `json:"pp_info,omitempty"` - ProviderNetwork *NestedProviderNetwork `json:"provider_network"` - Site *NestedSite `json:"site"` - TermSide TermSideEnum `json:"term_side"` - - // UpstreamSpeed Upstream speed, if different from port speed - UpstreamSpeed *int `json:"upstream_speed"` - Url *string `json:"url,omitempty"` - XconnectId *string `json:"xconnect_id,omitempty"` -} - -// CircuitType Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type CircuitType struct { - CircuitCount *int `json:"circuit_count,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// CircuitTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type CircuitTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]CircuitTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]CircuitTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]CircuitTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// CircuitTypeRequest_Relationships_Destination_Objects_Item defines model for CircuitTypeRequest.relationships.destination.objects.Item. -type CircuitTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// CircuitTypeRequest_Relationships_Peer_Objects_Item defines model for CircuitTypeRequest.relationships.peer.objects.Item. -type CircuitTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// CircuitTypeRequest_Relationships_Source_Objects_Item defines model for CircuitTypeRequest.relationships.source.objects.Item. -type CircuitTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// Cluster Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Cluster struct { - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Group *NestedClusterGroup `json:"group"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Site *NestedSite `json:"site"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - - // Type Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Type NestedClusterType `json:"type"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` -} - -// ClusterGroup Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ClusterGroup struct { - ClusterCount *int `json:"cluster_count,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ClusterGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ClusterGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ClusterGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ClusterGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ClusterGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// ClusterGroupRequest_Relationships_Destination_Objects_Item defines model for ClusterGroupRequest.relationships.destination.objects.Item. -type ClusterGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ClusterGroupRequest_Relationships_Peer_Objects_Item defines model for ClusterGroupRequest.relationships.peer.objects.Item. -type ClusterGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ClusterGroupRequest_Relationships_Source_Objects_Item defines model for ClusterGroupRequest.relationships.source.objects.Item. -type ClusterGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ClusterType Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ClusterType struct { - ClusterCount *int `json:"cluster_count,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ClusterTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ClusterTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ClusterTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ClusterTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ClusterTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// ClusterTypeRequest_Relationships_Destination_Objects_Item defines model for ClusterTypeRequest.relationships.destination.objects.Item. -type ClusterTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ClusterTypeRequest_Relationships_Peer_Objects_Item defines model for ClusterTypeRequest.relationships.peer.objects.Item. -type ClusterTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ClusterTypeRequest_Relationships_Source_Objects_Item defines model for ClusterTypeRequest.relationships.source.objects.Item. -type ClusterTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// CommandToken API serializer for interacting with CommandToken objects. -type CommandToken struct { - // Comment Optional: Enter description of token - Comment *string `json:"comment,omitempty"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Platform PlatformEnum `json:"platform"` - - // Token Token given by chat platform for signing or command validation - Token string `json:"token"` - Url *string `json:"url,omitempty"` -} - -// CommandTokenRequest API serializer for interacting with CommandToken objects. -type CommandTokenRequest struct { - // Comment Optional: Enter description of token - Comment *string `json:"comment,omitempty"` - Platform PlatformEnum `json:"platform"` - - // Token Token given by chat platform for signing or command validation - Token string `json:"token"` -} - -// ComplianceFeature Serializer for ComplianceFeature object. -type ComplianceFeature struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Slug string `json:"slug"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ComplianceFeatureRequest Serializer for ComplianceFeature object. -type ComplianceFeatureRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ComplianceRule Serializer for ComplianceRule object. -type ComplianceRule struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // ConfigOrdered Whether or not the configuration order matters, such as in ACLs. - ConfigOrdered bool `json:"config_ordered"` - - // ConfigType Whether the config is in cli or json/structured format. - ConfigType *ConfigTypeEnum `json:"config_type,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Feature openapi_types.UUID `json:"feature"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // MatchConfig The config to match that is matched based on the parent most configuration. e.g. `router bgp` or `ntp`. - MatchConfig *string `json:"match_config"` - Platform openapi_types.UUID `json:"platform"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ComplianceRuleRequest Serializer for ComplianceRule object. -type ComplianceRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // ConfigOrdered Whether or not the configuration order matters, such as in ACLs. - ConfigOrdered bool `json:"config_ordered"` - - // ConfigType Whether the config is in cli or json/structured format. - ConfigType *ConfigTypeEnum `json:"config_type,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Feature openapi_types.UUID `json:"feature"` - - // MatchConfig The config to match that is matched based on the parent most configuration. e.g. `router bgp` or `ntp`. - MatchConfig *string `json:"match_config"` - Platform openapi_types.UUID `json:"platform"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ComputedField Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type ComputedField struct { - ContentType string `json:"content_type"` - Created *openapi_types.Date `json:"created"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // FallbackValue Fallback value (if any) to be output for the field in the case of a template rendering error. - FallbackValue *string `json:"fallback_value,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Name of the field as displayed to users - Label string `json:"label"` - LastUpdated *time.Time `json:"last_updated"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Slug Internal field name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // Template Jinja2 template code for field value - Template string `json:"template"` - Url *string `json:"url,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// ComputedFieldRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type ComputedFieldRequest struct { - ContentType string `json:"content_type"` - Description *string `json:"description,omitempty"` - - // FallbackValue Fallback value (if any) to be output for the field in the case of a template rendering error. - FallbackValue *string `json:"fallback_value,omitempty"` - - // Label Name of the field as displayed to users - Label string `json:"label"` - - // Slug Internal field name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // Template Jinja2 template code for field value - Template string `json:"template"` - Weight *int `json:"weight,omitempty"` -} - -// ConfigCompliance Serializer for ConfigCompliance object. -type ConfigCompliance struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // Actual Actual Configuration for feature - Actual *map[string]interface{} `json:"actual,omitempty"` - Compliance *bool `json:"compliance"` - ComplianceInt *int `json:"compliance_int"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device The device - Device openapi_types.UUID `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Extra Configuration that should not be on the device. - Extra *map[string]interface{} `json:"extra,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Intended Intended Configuration for feature - Intended *map[string]interface{} `json:"intended,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Missing Configuration that should be on the device. - Missing *map[string]interface{} `json:"missing,omitempty"` - Ordered *bool `json:"ordered,omitempty"` - Rule openapi_types.UUID `json:"rule"` - Tags *[]TagSerializerField `json:"tags,omitempty"` -} - -// ConfigComplianceRequest Serializer for ConfigCompliance object. -type ConfigComplianceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // Actual Actual Configuration for feature - Actual *map[string]interface{} `json:"actual,omitempty"` - Compliance *bool `json:"compliance"` - ComplianceInt *int `json:"compliance_int"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device The device - Device openapi_types.UUID `json:"device"` - - // Extra Configuration that should not be on the device. - Extra *map[string]interface{} `json:"extra,omitempty"` - - // Intended Intended Configuration for feature - Intended *map[string]interface{} `json:"intended,omitempty"` - - // Missing Configuration that should be on the device. - Missing *map[string]interface{} `json:"missing,omitempty"` - Ordered *bool `json:"ordered,omitempty"` - Rule openapi_types.UUID `json:"rule"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type ConfigContext struct { - ClusterGroups *[]struct { - ClusterCount *int `json:"cluster_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"cluster_groups,omitempty"` - Clusters *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` - } `json:"clusters,omitempty"` - Created *openapi_types.Date `json:"created"` - Data map[string]interface{} `json:"data"` - Description *string `json:"description,omitempty"` - DeviceTypes *[]struct { - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Manufacturer *NestedManufacturer `json:"manufacturer,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` - Url *string `json:"url,omitempty"` - } `json:"device_types,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Locations *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - TreeDepth *int `json:"tree_depth"` - Url *string `json:"url,omitempty"` - } `json:"locations,omitempty"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Owner *map[string]interface{} `json:"owner"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Platforms *[]struct { - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` - } `json:"platforms,omitempty"` - Regions *[]struct { - Depth *int `json:"_depth,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - SiteCount *int `json:"site_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"regions,omitempty"` - Roles *[]struct { - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` - } `json:"roles,omitempty"` - Schema *NestedConfigContextSchema `json:"schema"` - Sites *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"sites,omitempty"` - Tags *[]string `json:"tags,omitempty"` - TenantGroups *[]struct { - Depth *int `json:"_depth,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - TenantCount *int `json:"tenant_count,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"tenant_groups,omitempty"` - Tenants *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"tenants,omitempty"` - Url *string `json:"url,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// ConfigContextSchema Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ConfigContextSchema struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DataSchema A JSON Schema document which is used to validate a config context object. - DataSchema map[string]interface{} `json:"data_schema"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Owner *map[string]interface{} `json:"owner"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ConfigContextSchemaRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ConfigContextSchemaRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DataSchema A JSON Schema document which is used to validate a config context object. - DataSchema map[string]interface{} `json:"data_schema"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ConfigContextSchemaRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ConfigContextSchemaRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ConfigContextSchemaRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// ConfigContextSchemaRequest_Relationships_Destination_Objects_Item defines model for ConfigContextSchemaRequest.relationships.destination.objects.Item. -type ConfigContextSchemaRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ConfigContextSchemaRequest_Relationships_Peer_Objects_Item defines model for ConfigContextSchemaRequest.relationships.peer.objects.Item. -type ConfigContextSchemaRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ConfigContextSchemaRequest_Relationships_Source_Objects_Item defines model for ConfigContextSchemaRequest.relationships.source.objects.Item. -type ConfigContextSchemaRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ConfigRemove Serializer for ConfigRemove object. -type ConfigRemove struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Platform openapi_types.UUID `json:"platform"` - - // Regex Regex pattern used to remove a line from the backup configuration. - Regex string `json:"regex"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ConfigRemoveRequest Serializer for ConfigRemove object. -type ConfigRemoveRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Platform openapi_types.UUID `json:"platform"` - - // Regex Regex pattern used to remove a line from the backup configuration. - Regex string `json:"regex"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ConfigReplace Serializer for ConfigReplace object. -type ConfigReplace struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Platform openapi_types.UUID `json:"platform"` - - // Regex Regex pattern that will be found and replaced with 'replaced text'. - Regex string `json:"regex"` - - // Replace Text that will be inserted in place of Regex pattern match. - Replace string `json:"replace"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ConfigReplaceRequest Serializer for ConfigReplace object. -type ConfigReplaceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Platform openapi_types.UUID `json:"platform"` - - // Regex Regex pattern that will be found and replaced with 'replaced text'. - Regex string `json:"regex"` - - // Replace Text that will be inserted in place of Regex pattern match. - Replace string `json:"replace"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ConfigToPush Serializer for ConfigToPush view. -type ConfigToPush struct { - // AssetTag A unique tag used to identify this device - AssetTag *string `json:"asset_tag"` - Cluster *NestedCluster `json:"cluster"` - Comments *string `json:"comments,omitempty"` - Config *string `json:"config,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRedundancyGroup *NestedDeviceRedundancyGroup `json:"device_redundancy_group"` - - // DeviceRedundancyGroupPriority The priority the device has in the device redundancy group. - DeviceRedundancyGroupPriority *int `json:"device_redundancy_group_priority"` - - // DeviceRole Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceRole NestedDeviceRole `json:"device_role"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Face *struct { - Label *ConfigToPushFaceLabel `json:"label,omitempty"` - Value *ConfigToPushFaceValue `json:"value,omitempty"` - } `json:"face,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchema `json:"local_context_schema"` - Location *NestedLocation `json:"location"` - Name *string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ParentDevice *NestedDevice `json:"parent_device,omitempty"` - Platform *NestedPlatform `json:"platform"` - - // Position The lowest-numbered unit occupied by the device - Position *int `json:"position"` - PrimaryIp *NestedIPAddress `json:"primary_ip,omitempty"` - PrimaryIp4 *NestedIPAddress `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddress `json:"primary_ip6"` - Rack *NestedRack `json:"rack"` - SecretsGroup *NestedSecretsGroup `json:"secrets_group"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSite `json:"site"` - Status struct { - Label *ConfigToPushStatusLabel `json:"label,omitempty"` - Value *ConfigToPushStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` - VcPosition *int `json:"vc_position"` - VcPriority *int `json:"vc_priority"` - VirtualChassis *NestedVirtualChassis `json:"virtual_chassis"` -} - -// ConfigToPushFaceLabel defines model for ConfigToPush.Face.Label. -type ConfigToPushFaceLabel string - -// ConfigToPushFaceValue defines model for ConfigToPush.Face.Value. -type ConfigToPushFaceValue string - -// ConfigToPushStatusLabel defines model for ConfigToPush.Status.Label. -type ConfigToPushStatusLabel string - -// ConfigToPushStatusValue defines model for ConfigToPush.Status.Value. -type ConfigToPushStatusValue string - -// ConfigTypeEnum defines model for ConfigTypeEnum. -type ConfigTypeEnum string - -// ConsolePort Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ConsolePort struct { - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type *struct { - Label *ConsolePortTypeLabel `json:"label,omitempty"` - Value *ConsolePortTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ConsolePortTypeLabel defines model for ConsolePort.Type.Label. -type ConsolePortTypeLabel string - -// ConsolePortTypeValue defines model for ConsolePort.Type.Value. -type ConsolePortTypeValue string - -// ConsolePortTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ConsolePortTemplate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Type *struct { - Label *ConsolePortTemplateTypeLabel `json:"label,omitempty"` - Value *ConsolePortTemplateTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ConsolePortTemplateTypeLabel defines model for ConsolePortTemplate.Type.Label. -type ConsolePortTemplateTypeLabel string - -// ConsolePortTemplateTypeValue defines model for ConsolePortTemplate.Type.Value. -type ConsolePortTemplateTypeValue string - -// ConsolePortTypeChoices defines model for ConsolePortTypeChoices. -type ConsolePortTypeChoices string - -// ConsoleServerPort Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ConsoleServerPort struct { - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type *struct { - Label *ConsoleServerPortTypeLabel `json:"label,omitempty"` - Value *ConsoleServerPortTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ConsoleServerPortTypeLabel defines model for ConsoleServerPort.Type.Label. -type ConsoleServerPortTypeLabel string - -// ConsoleServerPortTypeValue defines model for ConsoleServerPort.Type.Value. -type ConsoleServerPortTypeValue string - -// ConsoleServerPortTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ConsoleServerPortTemplate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Type *struct { - Label *ConsoleServerPortTemplateTypeLabel `json:"label,omitempty"` - Value *ConsoleServerPortTemplateTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ConsoleServerPortTemplateTypeLabel defines model for ConsoleServerPortTemplate.Type.Label. -type ConsoleServerPortTemplateTypeLabel string - -// ConsoleServerPortTemplateTypeValue defines model for ConsoleServerPortTemplate.Type.Value. -type ConsoleServerPortTemplateTypeValue string - -// ContactLCM API serializer. -type ContactLCM struct { - Address *string `json:"address,omitempty"` - Comments *string `json:"comments,omitempty"` - - // Contract Associated Contract - Contract NestedContractLCM `json:"contract"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name *string `json:"name"` - Phone *string `json:"phone,omitempty"` - Priority *int `json:"priority,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ContentType This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type ContentType struct { - AppLabel string `json:"app_label"` - Display *string `json:"display,omitempty"` - Id *int `json:"id,omitempty"` - Model string `json:"model"` - Url *string `json:"url,omitempty"` -} - -// ContractLCM API serializer. -type ContractLCM struct { - ContractType *string `json:"contract_type"` - Cost *string `json:"cost"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - End *openapi_types.Date `json:"end"` - Expired *string `json:"expired,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - - // Provider Vendor - Provider NestedProviderLCM `json:"provider"` - Start *openapi_types.Date `json:"start"` - SupportLevel *string `json:"support_level"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// CustomFieldChoice Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type CustomFieldChoice struct { - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Field Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Field NestedCustomField `json:"field"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Url *string `json:"url,omitempty"` - Value string `json:"value"` - - // Weight Higher weights appear later in the list - Weight *int `json:"weight,omitempty"` -} - -// CustomFieldSerializerVersion12 Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type CustomFieldSerializerVersion12 struct { - ContentTypes []string `json:"content_types"` - Created *openapi_types.Date `json:"created"` - - // Default Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). - Default *map[string]interface{} `json:"default"` - - // Description A helpful description for this field. - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - FilterLogic *struct { - Label *CustomFieldSerializerVersion12FilterLogicLabel `json:"label,omitempty"` - Value *CustomFieldSerializerVersion12FilterLogicValue `json:"value,omitempty"` - } `json:"filter_logic,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Human-readable unique name of this field. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Required If true, this field is required when creating new objects or editing an existing object. - Required *bool `json:"required,omitempty"` - Slug *string `json:"slug,omitempty"` - Type struct { - Label *CustomFieldSerializerVersion12TypeLabel `json:"label,omitempty"` - Value *CustomFieldSerializerVersion12TypeValue `json:"value,omitempty"` - } `json:"type"` - Url *string `json:"url,omitempty"` - - // ValidationMaximum Maximum allowed value (for numeric fields). - ValidationMaximum *int64 `json:"validation_maximum"` - - // ValidationMinimum Minimum allowed value (for numeric fields). - ValidationMinimum *int64 `json:"validation_minimum"` - - // ValidationRegex Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. Regular expression on select and multi-select will be applied at Custom Field Choices definition. - ValidationRegex *string `json:"validation_regex,omitempty"` - - // Weight Fields with higher weights appear lower in a form. - Weight *int `json:"weight,omitempty"` -} - -// CustomFieldSerializerVersion12FilterLogicLabel defines model for CustomFieldSerializerVersion12.FilterLogic.Label. -type CustomFieldSerializerVersion12FilterLogicLabel string - -// CustomFieldSerializerVersion12FilterLogicValue defines model for CustomFieldSerializerVersion12.FilterLogic.Value. -type CustomFieldSerializerVersion12FilterLogicValue string - -// CustomFieldSerializerVersion12TypeLabel defines model for CustomFieldSerializerVersion12.Type.Label. -type CustomFieldSerializerVersion12TypeLabel string - -// CustomFieldSerializerVersion12TypeValue defines model for CustomFieldSerializerVersion12.Type.Value. -type CustomFieldSerializerVersion12TypeValue string - -// CustomFieldSerializerVersion12Request Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type CustomFieldSerializerVersion12Request struct { - ContentTypes *[]string `json:"content_types,omitempty"` - - // Default Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). - Default *map[string]interface{} `json:"default"` - - // Description A helpful description for this field. - Description *string `json:"description,omitempty"` - FilterLogic *FilterLogicEnum `json:"filter_logic,omitempty"` - Label *string `json:"label,omitempty"` - - // Name Human-readable unique name of this field. - Name *string `json:"name,omitempty"` - - // Required If true, this field is required when creating new objects or editing an existing object. - Required *bool `json:"required,omitempty"` - Slug *string `json:"slug,omitempty"` - Type *CustomFieldTypeChoices `json:"type,omitempty"` - - // ValidationMaximum Maximum allowed value (for numeric fields). - ValidationMaximum *int64 `json:"validation_maximum"` - - // ValidationMinimum Minimum allowed value (for numeric fields). - ValidationMinimum *int64 `json:"validation_minimum"` - - // ValidationRegex Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. Regular expression on select and multi-select will be applied at Custom Field Choices definition. - ValidationRegex *string `json:"validation_regex,omitempty"` - - // Weight Fields with higher weights appear lower in a form. - Weight *int `json:"weight,omitempty"` -} - -// CustomFieldTypeChoices defines model for CustomFieldTypeChoices. -type CustomFieldTypeChoices string - -// CustomLink Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type CustomLink struct { - // ButtonClass The class of the first link in a group will be used for the dropdown button - ButtonClass *ButtonClassEnum `json:"button_class,omitempty"` - ContentType string `json:"content_type"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // GroupName Links with the same group will appear as a dropdown menu - GroupName *string `json:"group_name,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - - // NewWindow Force link to open in a new window - NewWindow bool `json:"new_window"` - NotesUrl *string `json:"notes_url,omitempty"` - - // TargetUrl Jinja2 template code for link URL. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. - TargetUrl string `json:"target_url"` - - // Text Jinja2 template code for link text. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. Links which render as empty text will not be displayed. - Text string `json:"text"` - Url *string `json:"url,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// CustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type CustomLinkRequest struct { - // ButtonClass The class of the first link in a group will be used for the dropdown button - ButtonClass *ButtonClassEnum `json:"button_class,omitempty"` - ContentType string `json:"content_type"` - - // GroupName Links with the same group will appear as a dropdown menu - GroupName *string `json:"group_name,omitempty"` - Name string `json:"name"` - - // NewWindow Force link to open in a new window - NewWindow bool `json:"new_window"` - - // TargetUrl Jinja2 template code for link URL. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. - TargetUrl string `json:"target_url"` - - // Text Jinja2 template code for link text. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. Links which render as empty text will not be displayed. - Text string `json:"text"` - Weight *int `json:"weight,omitempty"` -} - -// Device Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Device struct { - // AssetTag A unique tag used to identify this device - AssetTag *string `json:"asset_tag"` - Cluster *NestedCluster `json:"cluster"` - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRedundancyGroup *NestedDeviceRedundancyGroup `json:"device_redundancy_group"` - - // DeviceRedundancyGroupPriority The priority the device has in the device redundancy group. - DeviceRedundancyGroupPriority *int `json:"device_redundancy_group_priority"` - - // DeviceRole Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceRole NestedDeviceRole `json:"device_role"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Face *struct { - Label *DeviceFaceLabel `json:"label,omitempty"` - Value *DeviceFaceValue `json:"value,omitempty"` - } `json:"face,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchema `json:"local_context_schema"` - Location *NestedLocation `json:"location"` - Name *string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ParentDevice *NestedDevice `json:"parent_device,omitempty"` - Platform *NestedPlatform `json:"platform"` - - // Position The lowest-numbered unit occupied by the device - Position *int `json:"position"` - PrimaryIp *NestedIPAddress `json:"primary_ip,omitempty"` - PrimaryIp4 *NestedIPAddress `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddress `json:"primary_ip6"` - Rack *NestedRack `json:"rack"` - SecretsGroup *NestedSecretsGroup `json:"secrets_group"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSite `json:"site"` - Status struct { - Label *DeviceStatusLabel `json:"label,omitempty"` - Value *DeviceStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` - VcPosition *int `json:"vc_position"` - VcPriority *int `json:"vc_priority"` - VirtualChassis *NestedVirtualChassis `json:"virtual_chassis"` -} - -// DeviceFaceLabel defines model for Device.Face.Label. -type DeviceFaceLabel string - -// DeviceFaceValue defines model for Device.Face.Value. -type DeviceFaceValue string - -// DeviceStatusLabel defines model for Device.Status.Label. -type DeviceStatusLabel string - -// DeviceStatusValue defines model for Device.Status.Value. -type DeviceStatusValue string - -// DeviceBay Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DeviceBay struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - InstalledDevice *NestedDevice `json:"installed_device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// DeviceBayTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DeviceBayTemplate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// DeviceNAPALM defines model for DeviceNAPALM. -type DeviceNAPALM struct { - Method map[string]interface{} `json:"method"` -} - -// DeviceRedundancyGroup Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DeviceRedundancyGroup struct { - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - FailoverStrategy struct { - Label *DeviceRedundancyGroupFailoverStrategyLabel `json:"label,omitempty"` - Value *DeviceRedundancyGroupFailoverStrategyValue `json:"value,omitempty"` - } `json:"failover_strategy"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Status struct { - Label *DeviceRedundancyGroupStatusLabel `json:"label,omitempty"` - Value *DeviceRedundancyGroupStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// DeviceRedundancyGroupFailoverStrategyLabel defines model for DeviceRedundancyGroup.FailoverStrategy.Label. -type DeviceRedundancyGroupFailoverStrategyLabel string - -// DeviceRedundancyGroupFailoverStrategyValue defines model for DeviceRedundancyGroup.FailoverStrategy.Value. -type DeviceRedundancyGroupFailoverStrategyValue string - -// DeviceRedundancyGroupStatusLabel defines model for DeviceRedundancyGroup.Status.Label. -type DeviceRedundancyGroupStatusLabel string - -// DeviceRedundancyGroupStatusValue defines model for DeviceRedundancyGroup.Status.Value. -type DeviceRedundancyGroupStatusValue string - -// DeviceRole Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DeviceRole struct { - Color *string `json:"color,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` - - // VmRole Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` -} - -// DeviceRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DeviceRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]DeviceRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]DeviceRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]DeviceRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // VmRole Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` -} - -// DeviceRoleRequest_Relationships_Destination_Objects_Item defines model for DeviceRoleRequest.relationships.destination.objects.Item. -type DeviceRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// DeviceRoleRequest_Relationships_Peer_Objects_Item defines model for DeviceRoleRequest.relationships.peer.objects.Item. -type DeviceRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// DeviceRoleRequest_Relationships_Source_Objects_Item defines model for DeviceRoleRequest.relationships.source.objects.Item. -type DeviceRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// DeviceStatusChoices defines model for DeviceStatusChoices. -type DeviceStatusChoices string - -// DeviceType Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DeviceType struct { - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - FrontImage *string `json:"front_image,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IsFullDepth Device consumes both front and rear rack faces - IsFullDepth *bool `json:"is_full_depth,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Manufacturer Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Manufacturer NestedManufacturer `json:"manufacturer"` - Model string `json:"model"` - NotesUrl *string `json:"notes_url,omitempty"` - - // PartNumber Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - RearImage *string `json:"rear_image,omitempty"` - Slug *string `json:"slug,omitempty"` - SubdeviceRole *struct { - Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"` - Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"` - } `json:"subdevice_role,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - UHeight *int `json:"u_height,omitempty"` - Url *string `json:"url,omitempty"` -} - -// DeviceTypeSubdeviceRoleLabel defines model for DeviceType.SubdeviceRole.Label. -type DeviceTypeSubdeviceRoleLabel string - -// DeviceTypeSubdeviceRoleValue defines model for DeviceType.SubdeviceRole.Value. -type DeviceTypeSubdeviceRoleValue string - -// DeviceWithConfigContext Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DeviceWithConfigContext struct { - // AssetTag A unique tag used to identify this device - AssetTag *string `json:"asset_tag"` - Cluster *NestedCluster `json:"cluster"` - Comments *string `json:"comments,omitempty"` - ConfigContext *map[string]interface{} `json:"config_context,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRedundancyGroup *NestedDeviceRedundancyGroup `json:"device_redundancy_group"` - - // DeviceRedundancyGroupPriority The priority the device has in the device redundancy group. - DeviceRedundancyGroupPriority *int `json:"device_redundancy_group_priority"` - - // DeviceRole Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceRole NestedDeviceRole `json:"device_role"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Face *struct { - Label *DeviceWithConfigContextFaceLabel `json:"label,omitempty"` - Value *DeviceWithConfigContextFaceValue `json:"value,omitempty"` - } `json:"face,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchema `json:"local_context_schema"` - Location *NestedLocation `json:"location"` - Name *string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ParentDevice *NestedDevice `json:"parent_device,omitempty"` - Platform *NestedPlatform `json:"platform"` - - // Position The lowest-numbered unit occupied by the device - Position *int `json:"position"` - PrimaryIp *NestedIPAddress `json:"primary_ip,omitempty"` - PrimaryIp4 *NestedIPAddress `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddress `json:"primary_ip6"` - Rack *NestedRack `json:"rack"` - SecretsGroup *NestedSecretsGroup `json:"secrets_group"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSite `json:"site"` - Status struct { - Label *DeviceWithConfigContextStatusLabel `json:"label,omitempty"` - Value *DeviceWithConfigContextStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` - VcPosition *int `json:"vc_position"` - VcPriority *int `json:"vc_priority"` - VirtualChassis *NestedVirtualChassis `json:"virtual_chassis"` -} - -// DeviceWithConfigContextFaceLabel defines model for DeviceWithConfigContext.Face.Label. -type DeviceWithConfigContextFaceLabel string - -// DeviceWithConfigContextFaceValue defines model for DeviceWithConfigContext.Face.Value. -type DeviceWithConfigContextFaceValue string - -// DeviceWithConfigContextStatusLabel defines model for DeviceWithConfigContext.Status.Label. -type DeviceWithConfigContextStatusLabel string - -// DeviceWithConfigContextStatusValue defines model for DeviceWithConfigContext.Status.Value. -type DeviceWithConfigContextStatusValue string - -// DynamicGroup Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DynamicGroup struct { - Children *[]NestedDynamicGroupMembership `json:"children,omitempty"` - ContentType string `json:"content_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Filter A JSON-encoded dictionary of filter parameters for group membership - Filter map[string]interface{} `json:"filter"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Dynamic Group name - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Slug Unique slug - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// DynamicGroupMembership Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type DynamicGroupMembership struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group NestedDynamicGroup `json:"group"` - Id *openapi_types.UUID `json:"id,omitempty"` - Operator OperatorEnum `json:"operator"` - - // ParentGroup Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - ParentGroup NestedDynamicGroup `json:"parent_group"` - Url *string `json:"url,omitempty"` - Weight int `json:"weight"` -} - -// DynamicGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type DynamicGroupRequest struct { - ContentType string `json:"content_type"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Filter A JSON-encoded dictionary of filter parameters for group membership - Filter map[string]interface{} `json:"filter"` - - // Name Dynamic Group name - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]DynamicGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]DynamicGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]DynamicGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Slug Unique slug - Slug *string `json:"slug,omitempty"` -} - -// DynamicGroupRequest_Relationships_Destination_Objects_Item defines model for DynamicGroupRequest.relationships.destination.objects.Item. -type DynamicGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// DynamicGroupRequest_Relationships_Peer_Objects_Item defines model for DynamicGroupRequest.relationships.peer.objects.Item. -type DynamicGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// DynamicGroupRequest_Relationships_Source_Objects_Item defines model for DynamicGroupRequest.relationships.source.objects.Item. -type DynamicGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ExportTemplate Extend ValidatedModelSerializer with a `relationships` field. -type ExportTemplate struct { - ContentType string `json:"content_type"` - Created *openapi_types.Date `json:"created"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // FileExtension Extension to append to the rendered filename - FileExtension *string `json:"file_extension,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // MimeType Defaults to text/plain - MimeType *string `json:"mime_type,omitempty"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Owner *map[string]interface{} `json:"owner"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - - // TemplateCode The list of objects being exported is passed as a context variable named queryset. - TemplateCode string `json:"template_code"` - Url *string `json:"url,omitempty"` -} - -// ExportTemplateRequest Extend ValidatedModelSerializer with a `relationships` field. -type ExportTemplateRequest struct { - ContentType string `json:"content_type"` - Description *string `json:"description,omitempty"` - - // FileExtension Extension to append to the rendered filename - FileExtension *string `json:"file_extension,omitempty"` - - // MimeType Defaults to text/plain - MimeType *string `json:"mime_type,omitempty"` - Name string `json:"name"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ExportTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ExportTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ExportTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TemplateCode The list of objects being exported is passed as a context variable named queryset. - TemplateCode string `json:"template_code"` -} - -// ExportTemplateRequest_Relationships_Destination_Objects_Item defines model for ExportTemplateRequest.relationships.destination.objects.Item. -type ExportTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ExportTemplateRequest_Relationships_Peer_Objects_Item defines model for ExportTemplateRequest.relationships.peer.objects.Item. -type ExportTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ExportTemplateRequest_Relationships_Source_Objects_Item defines model for ExportTemplateRequest.relationships.source.objects.Item. -type ExportTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// FQDN FQDN Serializer. -type FQDN struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - IpAddresses *[]struct { - Address string `json:"address"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Family *int `json:"family,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"ip_addresses,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Resolvable fully qualified domain name (e.g. networktocode.com) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *FQDNStatusLabel `json:"label,omitempty"` - Value *FQDNStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// FQDNStatusLabel defines model for FQDN.Status.Label. -type FQDNStatusLabel string - -// FQDNStatusValue defines model for FQDN.Status.Value. -type FQDNStatusValue string - -// FaceEnum defines model for FaceEnum. -type FaceEnum string - -// FailoverStrategyEnum defines model for FailoverStrategyEnum. -type FailoverStrategyEnum string - -// FeedLegEnum defines model for FeedLegEnum. -type FeedLegEnum string - -// FilterLogicEnum defines model for FilterLogicEnum. -type FilterLogicEnum string - -// FrontPort Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type FrontPort struct { - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // RearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) - RearPort FrontPortRearPort `json:"rear_port"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type struct { - Label *FrontPortTypeLabel `json:"label,omitempty"` - Value *FrontPortTypeValue `json:"value,omitempty"` - } `json:"type"` - Url *string `json:"url,omitempty"` -} - -// FrontPortTypeLabel defines model for FrontPort.Type.Label. -type FrontPortTypeLabel string - -// FrontPortTypeValue defines model for FrontPort.Type.Value. -type FrontPortTypeValue string - -// FrontPortRearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) -type FrontPortRearPort struct { - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// FrontPortRearPortRequest NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) -type FrontPortRearPortRequest struct { - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` -} - -// FrontPortTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type FrontPortTemplate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - - // RearPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - RearPort NestedRearPortTemplate `json:"rear_port"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Type struct { - Label *FrontPortTemplateTypeLabel `json:"label,omitempty"` - Value *FrontPortTemplateTypeValue `json:"value,omitempty"` - } `json:"type"` - Url *string `json:"url,omitempty"` -} - -// FrontPortTemplateTypeLabel defines model for FrontPortTemplate.Type.Label. -type FrontPortTemplateTypeLabel string - -// FrontPortTemplateTypeValue defines model for FrontPortTemplate.Type.Value. -type FrontPortTemplateTypeValue string - -// GitRepository Git repositories defined as a data source. -type GitRepository struct { - Branch *string `json:"branch,omitempty"` - Created *openapi_types.Date `json:"created"` - - // CurrentHead Commit hash of the most recent fetch from the selected branch. Used for syncing between workers. - CurrentHead *string `json:"current_head,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ProvidedContents *[]GitRepository_ProvidedContents_Item `json:"provided_contents,omitempty"` - - // RemoteUrl Only HTTP and HTTPS URLs are presently supported - RemoteUrl string `json:"remote_url"` - SecretsGroup *NestedSecretsGroup `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - Username *string `json:"username,omitempty"` -} - -// GitRepository_ProvidedContents_Item defines model for GitRepository.provided_contents.Item. -type GitRepository_ProvidedContents_Item struct { - union json.RawMessage -} - -// GitRepositoryRequest Git repositories defined as a data source. -type GitRepositoryRequest struct { - Branch *string `json:"branch,omitempty"` - - // CurrentHead Commit hash of the most recent fetch from the selected branch. Used for syncing between workers. - CurrentHead *string `json:"current_head,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Name string `json:"name"` - ProvidedContents *[]GitRepositoryRequest_ProvidedContents_Item `json:"provided_contents,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]GitRepositoryRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]GitRepositoryRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]GitRepositoryRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // RemoteUrl Only HTTP and HTTPS URLs are presently supported - RemoteUrl string `json:"remote_url"` - SecretsGroup *NestedSecretsGroupRequest `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Token *string `json:"token,omitempty"` - Username *string `json:"username,omitempty"` -} - -// GitRepositoryRequest_ProvidedContents_Item defines model for GitRepositoryRequest.provided_contents.Item. -type GitRepositoryRequest_ProvidedContents_Item struct { - union json.RawMessage -} - -// GitRepositoryRequest_Relationships_Destination_Objects_Item defines model for GitRepositoryRequest.relationships.destination.objects.Item. -type GitRepositoryRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// GitRepositoryRequest_Relationships_Peer_Objects_Item defines model for GitRepositoryRequest.relationships.peer.objects.Item. -type GitRepositoryRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// GitRepositoryRequest_Relationships_Source_Objects_Item defines model for GitRepositoryRequest.relationships.source.objects.Item. -type GitRepositoryRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// GoldenConfig Serializer for GoldenConfig object. -type GoldenConfig struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupConfig Full backup config for device. - BackupConfig *string `json:"backup_config,omitempty"` - BackupLastAttemptDate *time.Time `json:"backup_last_attempt_date"` - BackupLastSuccessDate *time.Time `json:"backup_last_success_date"` - - // ComplianceConfig Full config diff for device. - ComplianceConfig *string `json:"compliance_config,omitempty"` - ComplianceLastAttemptDate *time.Time `json:"compliance_last_attempt_date"` - ComplianceLastSuccessDate *time.Time `json:"compliance_last_success_date"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device device - Device openapi_types.UUID `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IntendedConfig Intended config for the device. - IntendedConfig *string `json:"intended_config,omitempty"` - IntendedLastAttemptDate *time.Time `json:"intended_last_attempt_date"` - IntendedLastSuccessDate *time.Time `json:"intended_last_success_date"` - LastUpdated *time.Time `json:"last_updated"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// GoldenConfigRequest Serializer for GoldenConfig object. -type GoldenConfigRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupConfig Full backup config for device. - BackupConfig *string `json:"backup_config,omitempty"` - BackupLastAttemptDate *time.Time `json:"backup_last_attempt_date"` - BackupLastSuccessDate *time.Time `json:"backup_last_success_date"` - - // ComplianceConfig Full config diff for device. - ComplianceConfig *string `json:"compliance_config,omitempty"` - ComplianceLastAttemptDate *time.Time `json:"compliance_last_attempt_date"` - ComplianceLastSuccessDate *time.Time `json:"compliance_last_success_date"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device device - Device openapi_types.UUID `json:"device"` - - // IntendedConfig Intended config for the device. - IntendedConfig *string `json:"intended_config,omitempty"` - IntendedLastAttemptDate *time.Time `json:"intended_last_attempt_date"` - IntendedLastSuccessDate *time.Time `json:"intended_last_success_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// GoldenConfigSetting Serializer for GoldenConfigSetting object. -type GoldenConfigSetting struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupPathTemplate The Jinja path representation of where the backup file will be found. The variable `obj` is available as the device instance object of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - BackupPathTemplate *string `json:"backup_path_template,omitempty"` - BackupRepository *openapi_types.UUID `json:"backup_repository"` - - // BackupTestConnectivity Whether or not to pretest the connectivity of the device by verifying there is a resolvable IP that can connect to port 22. - BackupTestConnectivity *bool `json:"backup_test_connectivity,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // DynamicGroup Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DynamicGroup *NestedDynamicGroup `json:"dynamic_group,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IntendedPathTemplate The Jinja path representation of where the generated file will be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - IntendedPathTemplate *string `json:"intended_path_template,omitempty"` - IntendedRepository *openapi_types.UUID `json:"intended_repository"` - - // JinjaPathTemplate The Jinja path representation of where the Jinja template can be found. e.g. `{{obj.platform.slug}}.j2` - JinjaPathTemplate *string `json:"jinja_path_template,omitempty"` - JinjaRepository *openapi_types.UUID `json:"jinja_repository"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Scope *map[string]interface{} `json:"scope,omitempty"` - Slug string `json:"slug"` - SotAggQuery *openapi_types.UUID `json:"sot_agg_query"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// GrantTypeEnum defines model for GrantTypeEnum. -type GrantTypeEnum string - -// GraphQLAPIRequest defines model for GraphQLAPIRequest. -type GraphQLAPIRequest struct { - // Query GraphQL query - Query string `json:"query"` - - // Variables Variables in JSON Format - Variables *map[string]interface{} `json:"variables,omitempty"` -} - -// GraphQLQuery Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type GraphQLQuery struct { - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Query string `json:"query"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - Variables *map[string]interface{} `json:"variables"` -} - -// GraphQLQueryInputRequest defines model for GraphQLQueryInputRequest. -type GraphQLQueryInputRequest struct { - Variables *map[string]interface{} `json:"variables"` -} - -// GraphQLQueryOutput defines model for GraphQLQueryOutput. -type GraphQLQueryOutput struct { - Data *map[string]interface{} `json:"data,omitempty"` -} - -// GraphQLQueryRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type GraphQLQueryRequest struct { - Name string `json:"name"` - Query string `json:"query"` - Slug *string `json:"slug,omitempty"` - Variables *map[string]interface{} `json:"variables"` -} - -// Group Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type Group struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *int `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - UserCount *int `json:"user_count,omitempty"` -} - -// GroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type GroupRequest struct { - Name string `json:"name"` -} - -// HardwareLCM API serializer. -type HardwareLCM struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DeviceType Device Type to attach the Hardware LCM to - DeviceType NestedDeviceType `json:"device_type"` - - // Devices Devices tied to Device Type - Devices *[]NestedDevice `json:"devices,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSale *openapi_types.Date `json:"end_of_sale"` - EndOfSecurityPatches *openapi_types.Date `json:"end_of_security_patches"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - EndOfSwReleases *openapi_types.Date `json:"end_of_sw_releases"` - Expired *string `json:"expired,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - InventoryItem *string `json:"inventory_item"` - LastUpdated *time.Time `json:"last_updated"` - ReleaseDate *openapi_types.Date `json:"release_date"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// HttpMethodEnum defines model for HttpMethodEnum. -type HttpMethodEnum string - -// IPAddress Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type IPAddress struct { - Address string `json:"address"` - AssignedObject *map[string]interface{} `json:"assigned_object"` - AssignedObjectId *openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType *string `json:"assigned_object_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // DnsName Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Family *struct { - Label *IPAddressFamilyLabel `json:"label,omitempty"` - Value *IPAddressFamilyValue `json:"value,omitempty"` - } `json:"family,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - NatInside *NestedIPAddress `json:"nat_inside"` - NatOutside *[]NestedIPAddress `json:"nat_outside,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Role *struct { - Label *IPAddressRoleLabel `json:"label,omitempty"` - Value *IPAddressRoleValue `json:"value,omitempty"` - } `json:"role,omitempty"` - Status struct { - Label *IPAddressStatusLabel `json:"label,omitempty"` - Value *IPAddressStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` - Vrf *NestedVRF `json:"vrf"` -} - -// IPAddressFamilyLabel defines model for IPAddress.Family.Label. -type IPAddressFamilyLabel string - -// IPAddressFamilyValue defines model for IPAddress.Family.Value. -type IPAddressFamilyValue int - -// IPAddressRoleLabel defines model for IPAddress.Role.Label. -type IPAddressRoleLabel string - -// IPAddressRoleValue defines model for IPAddress.Role.Value. -type IPAddressRoleValue string - -// IPAddressStatusLabel defines model for IPAddress.Status.Label. -type IPAddressStatusLabel string - -// IPAddressStatusValue defines model for IPAddress.Status.Value. -type IPAddressStatusValue string - -// IPAddressStatusChoices defines model for IPAddressStatusChoices. -type IPAddressStatusChoices string - -// IPRange IPRange Serializer. -type IPRange struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - EndAddress string `json:"end_address"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - NotesUrl *string `json:"notes_url,omitempty"` - Size *int `json:"size,omitempty"` - StartAddress string `json:"start_address"` - Status *struct { - Label *IPRangeStatusLabel `json:"label,omitempty"` - Value *IPRangeStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// IPRangeStatusLabel defines model for IPRange.Status.Label. -type IPRangeStatusLabel string - -// IPRangeStatusValue defines model for IPRange.Status.Value. -type IPRangeStatusValue string - -// IPRangeRequest IPRange Serializer. -type IPRangeRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - EndAddress string `json:"end_address"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]IPRangeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]IPRangeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]IPRangeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - StartAddress string `json:"start_address"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// IPRangeRequest_Relationships_Destination_Objects_Item defines model for IPRangeRequest.relationships.destination.objects.Item. -type IPRangeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// IPRangeRequest_Relationships_Peer_Objects_Item defines model for IPRangeRequest.relationships.peer.objects.Item. -type IPRangeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// IPRangeRequest_Relationships_Source_Objects_Item defines model for IPRangeRequest.relationships.source.objects.Item. -type IPRangeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ImageAttachment Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type ImageAttachment struct { - ContentType string `json:"content_type"` - Created *time.Time `json:"created,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Image string `json:"image"` - ImageHeight int `json:"image_height"` - ImageWidth int `json:"image_width"` - Name *string `json:"name,omitempty"` - ObjectId openapi_types.UUID `json:"object_id"` - Parent *map[string]interface{} `json:"parent,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type ImageAttachmentRequest struct { - ContentType string `json:"content_type"` - Image openapi_types.File `json:"image"` - ImageHeight int `json:"image_height"` - ImageWidth int `json:"image_width"` - Name *string `json:"name,omitempty"` - ObjectId openapi_types.UUID `json:"object_id"` -} - -// ImpactEnum defines model for ImpactEnum. -type ImpactEnum string - -// Interface Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Interface struct { - Bridge *NestedInterface `json:"bridge"` - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - CountIpaddresses *int `json:"count_ipaddresses,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Lag *NestedInterface `json:"lag"` - LastUpdated *time.Time `json:"last_updated"` - MacAddress *string `json:"mac_address"` - - // MgmtOnly This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Mode *struct { - Label *InterfaceModeLabel `json:"label,omitempty"` - Value *InterfaceModeValue `json:"value,omitempty"` - } `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ParentInterface *NestedInterface `json:"parent_interface"` - Status struct { - Label *InterfaceStatusLabel `json:"label,omitempty"` - Value *InterfaceStatusValue `json:"value,omitempty"` - } `json:"status"` - TaggedVlans *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - Vid int `json:"vid"` - } `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type struct { - Label *InterfaceTypeLabel `json:"label,omitempty"` - Value *InterfaceTypeValue `json:"value,omitempty"` - } `json:"type"` - UntaggedVlan *NestedVLAN `json:"untagged_vlan"` - Url *string `json:"url,omitempty"` -} - -// InterfaceModeLabel defines model for Interface.Mode.Label. -type InterfaceModeLabel string - -// InterfaceModeValue defines model for Interface.Mode.Value. -type InterfaceModeValue string - -// InterfaceStatusLabel defines model for Interface.Status.Label. -type InterfaceStatusLabel string - -// InterfaceStatusValue defines model for Interface.Status.Value. -type InterfaceStatusValue string - -// InterfaceTypeLabel defines model for Interface.Type.Label. -type InterfaceTypeLabel string - -// InterfaceTypeValue defines model for Interface.Type.Value. -type InterfaceTypeValue string - -// InterfaceConnection Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type InterfaceConnection struct { - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - InterfaceA *NestedInterface `json:"interface_a,omitempty"` - - // InterfaceB Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - InterfaceB NestedInterface `json:"interface_b"` - LastUpdated *time.Time `json:"last_updated"` -} - -// InterfaceSerializerVersion12 Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type InterfaceSerializerVersion12 struct { - Bridge *NestedInterface `json:"bridge"` - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - CountIpaddresses *int `json:"count_ipaddresses,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Lag *NestedInterface `json:"lag"` - LastUpdated *time.Time `json:"last_updated"` - MacAddress *string `json:"mac_address"` - - // MgmtOnly This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Mode *struct { - Label *InterfaceSerializerVersion12ModeLabel `json:"label,omitempty"` - Value *InterfaceSerializerVersion12ModeValue `json:"value,omitempty"` - } `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ParentInterface *NestedInterface `json:"parent_interface"` - TaggedVlans *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - Vid int `json:"vid"` - } `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type struct { - Label *InterfaceSerializerVersion12TypeLabel `json:"label,omitempty"` - Value *InterfaceSerializerVersion12TypeValue `json:"value,omitempty"` - } `json:"type"` - UntaggedVlan *NestedVLAN `json:"untagged_vlan"` - Url *string `json:"url,omitempty"` -} - -// InterfaceSerializerVersion12ModeLabel defines model for InterfaceSerializerVersion12.Mode.Label. -type InterfaceSerializerVersion12ModeLabel string - -// InterfaceSerializerVersion12ModeValue defines model for InterfaceSerializerVersion12.Mode.Value. -type InterfaceSerializerVersion12ModeValue string - -// InterfaceSerializerVersion12TypeLabel defines model for InterfaceSerializerVersion12.Type.Label. -type InterfaceSerializerVersion12TypeLabel string - -// InterfaceSerializerVersion12TypeValue defines model for InterfaceSerializerVersion12.Type.Value. -type InterfaceSerializerVersion12TypeValue string - -// InterfaceStatusChoices defines model for InterfaceStatusChoices. -type InterfaceStatusChoices string - -// InterfaceTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type InterfaceTemplate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Name string `json:"name"` - Type struct { - Label *InterfaceTemplateTypeLabel `json:"label,omitempty"` - Value *InterfaceTemplateTypeValue `json:"value,omitempty"` - } `json:"type"` - Url *string `json:"url,omitempty"` -} - -// InterfaceTemplateTypeLabel defines model for InterfaceTemplate.Type.Label. -type InterfaceTemplateTypeLabel string - -// InterfaceTemplateTypeValue defines model for InterfaceTemplate.Type.Value. -type InterfaceTemplateTypeValue string - -// InterfaceTypeChoices defines model for InterfaceTypeChoices. -type InterfaceTypeChoices string - -// InventoryItem Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type InventoryItem struct { - Depth *int `json:"_depth,omitempty"` - - // AssetTag A unique tag used to identify this item - AssetTag *string `json:"asset_tag"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Discovered This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Manufacturer *NestedManufacturer `json:"manufacturer"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - - // PartId Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Serial *string `json:"serial,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// IpProtocolEnum defines model for IpProtocolEnum. -type IpProtocolEnum string - -// Job Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Job struct { - // ApprovalRequired Whether the job requires approval from another user before running - ApprovalRequired *bool `json:"approval_required,omitempty"` - - // ApprovalRequiredOverride If set, the configured value will remain even if the underlying Job source code changes - ApprovalRequiredOverride *bool `json:"approval_required_override,omitempty"` - - // CommitDefault Whether the job defaults to committing changes when run, or defaults to a dry-run - CommitDefault *bool `json:"commit_default,omitempty"` - - // CommitDefaultOverride If set, the configured value will remain even if the underlying Job source code changes - CommitDefaultOverride *bool `json:"commit_default_override,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Description Markdown formatting is supported - Description *string `json:"description,omitempty"` - - // DescriptionOverride If set, the configured description will remain even if the underlying Job source code changes - DescriptionOverride *bool `json:"description_override,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Enabled Whether this job can be executed by users - Enabled *bool `json:"enabled,omitempty"` - - // Grouping Human-readable grouping that this job belongs to - Grouping string `json:"grouping"` - - // GroupingOverride If set, the configured grouping will remain even if the underlying Job source code changes - GroupingOverride *bool `json:"grouping_override,omitempty"` - - // HasSensitiveVariables Whether this job contains sensitive variables - HasSensitiveVariables *bool `json:"has_sensitive_variables,omitempty"` - - // HasSensitiveVariablesOverride If set, the configured value will remain even if the underlying Job source code changes - HasSensitiveVariablesOverride *bool `json:"has_sensitive_variables_override,omitempty"` - - // Hidden Whether the job defaults to not being shown in the UI - Hidden *bool `json:"hidden,omitempty"` - - // HiddenOverride If set, the configured value will remain even if the underlying Job source code changes - HiddenOverride *bool `json:"hidden_override,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Installed Whether the Python module and class providing this job are presently installed and loadable - Installed *bool `json:"installed,omitempty"` - - // IsJobHookReceiver Whether this job is a job hook receiver - IsJobHookReceiver *bool `json:"is_job_hook_receiver,omitempty"` - - // JobClassName Name of the Python class providing this job - JobClassName *string `json:"job_class_name,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // ModuleName Dotted name of the Python module providing this job - ModuleName *string `json:"module_name,omitempty"` - - // Name Human-readable name of this job - Name string `json:"name"` - - // NameOverride If set, the configured name will remain even if the underlying Job source code changes - NameOverride *bool `json:"name_override,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - - // ReadOnly Whether the job is prevented from making lasting changes to the database - ReadOnly *bool `json:"read_only,omitempty"` - - // ReadOnlyOverride If set, the configured value will remain even if the underlying Job source code changes - ReadOnlyOverride *bool `json:"read_only_override,omitempty"` - Slug *string `json:"slug,omitempty"` - - // SoftTimeLimit Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded exception.
Set to 0 to use Nautobot system default - SoftTimeLimit *float64 `json:"soft_time_limit,omitempty"` - - // SoftTimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - SoftTimeLimitOverride *bool `json:"soft_time_limit_override,omitempty"` - - // Source Source of the Python code for this job - local, Git repository, or plugins - Source *string `json:"source,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - - // TaskQueues Comma separated list of task queues that this job can run on. A blank list will use the default queue - TaskQueues *map[string]interface{} `json:"task_queues,omitempty"` - - // TaskQueuesOverride If set, the configured value will remain even if the underlying Job source code changes - TaskQueuesOverride *bool `json:"task_queues_override,omitempty"` - - // TimeLimit Maximum runtime in seconds before the job will be forcibly terminated.
Set to 0 to use Nautobot system default - TimeLimit *float64 `json:"time_limit,omitempty"` - - // TimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - TimeLimitOverride *bool `json:"time_limit_override,omitempty"` - Url *string `json:"url,omitempty"` -} - -// JobClassDetail defines model for JobClassDetail. -type JobClassDetail struct { - Description *string `json:"description,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Pk *openapi_types.UUID `json:"pk"` - - // Result Extends ModelSerializer to render any CustomFields and their values associated with an object. - Result *JobResult `json:"result,omitempty"` - TestMethods []string `json:"test_methods"` - Url *string `json:"url,omitempty"` - Vars *map[string]interface{} `json:"vars,omitempty"` -} - -// JobExecutionTypeIntervalChoices defines model for JobExecutionTypeIntervalChoices. -type JobExecutionTypeIntervalChoices string - -// JobHook Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type JobHook struct { - ContentTypes []string `json:"content_types"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Job The job that this job hook will initiate - Job openapi_types.UUID `json:"job"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // TypeCreate Call this job hook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this job hook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this job hook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - Url *string `json:"url,omitempty"` -} - -// JobHookRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type JobHookRequest struct { - ContentTypes []string `json:"content_types"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // Job The job that this job hook will initiate - Job openapi_types.UUID `json:"job"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]JobHookRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]JobHookRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]JobHookRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TypeCreate Call this job hook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this job hook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this job hook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// JobHookRequest_Relationships_Destination_Objects_Item defines model for JobHookRequest.relationships.destination.objects.Item. -type JobHookRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// JobHookRequest_Relationships_Peer_Objects_Item defines model for JobHookRequest.relationships.peer.objects.Item. -type JobHookRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// JobHookRequest_Relationships_Source_Objects_Item defines model for JobHookRequest.relationships.source.objects.Item. -type JobHookRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// JobInputRequest defines model for JobInputRequest. -type JobInputRequest struct { - Commit *bool `json:"commit,omitempty"` - Data *map[string]interface{} `json:"data,omitempty"` - - // Schedule This base serializer implements common fields and logic for all ModelSerializers. - // - // Namely, it: - // - // - defines the `display` field which exposes a human friendly value for the given object. - // - ensures that `id` field is always present on the serializer as well - // - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. - Schedule *NestedScheduledJobRequest `json:"schedule,omitempty"` - TaskQueue *string `json:"task_queue,omitempty"` -} - -// JobLogEntry This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type JobLogEntry struct { - AbsoluteUrl *string `json:"absolute_url"` - Created *time.Time `json:"created,omitempty"` - Display *string `json:"display,omitempty"` - Grouping *string `json:"grouping,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - JobResult openapi_types.UUID `json:"job_result"` - LogLevel *LogLevelEnum `json:"log_level,omitempty"` - LogObject *string `json:"log_object"` - Message *string `json:"message,omitempty"` - Url *string `json:"url,omitempty"` -} - -// JobMultiPartInputRequest JobMultiPartInputSerializer is a "flattened" version of JobInputSerializer for use with multipart/form-data submissions which only accept key-value pairs -type JobMultiPartInputRequest struct { - Commit *bool `json:"_commit,omitempty"` - ScheduleCrontab *string `json:"_schedule_crontab,omitempty"` - ScheduleInterval *JobExecutionTypeIntervalChoices `json:"_schedule_interval,omitempty"` - ScheduleName *string `json:"_schedule_name,omitempty"` - ScheduleStartTime *time.Time `json:"_schedule_start_time,omitempty"` - TaskQueue *string `json:"_task_queue,omitempty"` -} - -// JobRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type JobRequest struct { - // ApprovalRequired Whether the job requires approval from another user before running - ApprovalRequired *bool `json:"approval_required,omitempty"` - - // ApprovalRequiredOverride If set, the configured value will remain even if the underlying Job source code changes - ApprovalRequiredOverride *bool `json:"approval_required_override,omitempty"` - - // CommitDefault Whether the job defaults to committing changes when run, or defaults to a dry-run - CommitDefault *bool `json:"commit_default,omitempty"` - - // CommitDefaultOverride If set, the configured value will remain even if the underlying Job source code changes - CommitDefaultOverride *bool `json:"commit_default_override,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Description Markdown formatting is supported - Description *string `json:"description,omitempty"` - - // DescriptionOverride If set, the configured description will remain even if the underlying Job source code changes - DescriptionOverride *bool `json:"description_override,omitempty"` - - // Enabled Whether this job can be executed by users - Enabled *bool `json:"enabled,omitempty"` - - // Grouping Human-readable grouping that this job belongs to - Grouping string `json:"grouping"` - - // GroupingOverride If set, the configured grouping will remain even if the underlying Job source code changes - GroupingOverride *bool `json:"grouping_override,omitempty"` - - // HasSensitiveVariables Whether this job contains sensitive variables - HasSensitiveVariables *bool `json:"has_sensitive_variables,omitempty"` - - // HasSensitiveVariablesOverride If set, the configured value will remain even if the underlying Job source code changes - HasSensitiveVariablesOverride *bool `json:"has_sensitive_variables_override,omitempty"` - - // Hidden Whether the job defaults to not being shown in the UI - Hidden *bool `json:"hidden,omitempty"` - - // HiddenOverride If set, the configured value will remain even if the underlying Job source code changes - HiddenOverride *bool `json:"hidden_override,omitempty"` - - // Name Human-readable name of this job - Name string `json:"name"` - - // NameOverride If set, the configured name will remain even if the underlying Job source code changes - NameOverride *bool `json:"name_override,omitempty"` - - // ReadOnly Whether the job is prevented from making lasting changes to the database - ReadOnly *bool `json:"read_only,omitempty"` - - // ReadOnlyOverride If set, the configured value will remain even if the underlying Job source code changes - ReadOnlyOverride *bool `json:"read_only_override,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]JobRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]JobRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]JobRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // SoftTimeLimit Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded exception.
Set to 0 to use Nautobot system default - SoftTimeLimit *float64 `json:"soft_time_limit,omitempty"` - - // SoftTimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - SoftTimeLimitOverride *bool `json:"soft_time_limit_override,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // TaskQueues Comma separated list of task queues that this job can run on. A blank list will use the default queue - TaskQueues *map[string]interface{} `json:"task_queues,omitempty"` - - // TaskQueuesOverride If set, the configured value will remain even if the underlying Job source code changes - TaskQueuesOverride *bool `json:"task_queues_override,omitempty"` - - // TimeLimit Maximum runtime in seconds before the job will be forcibly terminated.
Set to 0 to use Nautobot system default - TimeLimit *float64 `json:"time_limit,omitempty"` - - // TimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - TimeLimitOverride *bool `json:"time_limit_override,omitempty"` -} - -// JobRequest_Relationships_Destination_Objects_Item defines model for JobRequest.relationships.destination.objects.Item. -type JobRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// JobRequest_Relationships_Peer_Objects_Item defines model for JobRequest.relationships.peer.objects.Item. -type JobRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// JobRequest_Relationships_Source_Objects_Item defines model for JobRequest.relationships.source.objects.Item. -type JobRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// JobResult Extends ModelSerializer to render any CustomFields and their values associated with an object. -type JobResult struct { - Completed *time.Time `json:"completed"` - Created *time.Time `json:"created,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Data *map[string]interface{} `json:"data"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - JobId openapi_types.UUID `json:"job_id"` - JobKwargs *map[string]interface{} `json:"job_kwargs"` - JobModel *NestedJob `json:"job_model,omitempty"` - Name string `json:"name"` - ObjType *string `json:"obj_type,omitempty"` - Schedule *NestedScheduledJob `json:"schedule,omitempty"` - Status *struct { - Label *JobResultStatusLabel `json:"label,omitempty"` - Value *JobResultStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Url *string `json:"url,omitempty"` - User *NestedUser `json:"user,omitempty"` -} - -// JobResultStatusLabel defines model for JobResult.Status.Label. -type JobResultStatusLabel string - -// JobResultStatusValue defines model for JobResult.Status.Value. -type JobResultStatusValue string - -// JobRunResponse Serializer representing responses from the JobModelViewSet.run() POST endpoint. -type JobRunResponse struct { - JobResult *NestedJobResult `json:"job_result,omitempty"` - Schedule *NestedScheduledJob `json:"schedule,omitempty"` -} - -// JobVariable Serializer used for responses from the JobModelViewSet.variables() detail endpoint. -type JobVariable struct { - Choices *map[string]interface{} `json:"choices,omitempty"` - Default *map[string]interface{} `json:"default,omitempty"` - HelpText *string `json:"help_text,omitempty"` - Label *string `json:"label,omitempty"` - MaxLength *int `json:"max_length,omitempty"` - MaxValue *int `json:"max_value,omitempty"` - MinLength *int `json:"min_length,omitempty"` - MinValue *int `json:"min_value,omitempty"` - Model *string `json:"model,omitempty"` - Name *string `json:"name,omitempty"` - Required *bool `json:"required,omitempty"` - Type *string `json:"type,omitempty"` -} - -// LengthUnitEnum defines model for LengthUnitEnum. -type LengthUnitEnum string - -// Location Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Location struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // LocationType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - LocationType NestedLocationType `json:"location_type"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Parent *NestedLocation `json:"parent"` - Site *NestedSite `json:"site"` - Slug *string `json:"slug,omitempty"` - Status struct { - Label *LocationStatusLabel `json:"label,omitempty"` - Value *LocationStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - TreeDepth *int `json:"tree_depth"` - Url *string `json:"url,omitempty"` -} - -// LocationStatusLabel defines model for Location.Status.Label. -type LocationStatusLabel string - -// LocationStatusValue defines model for Location.Status.Value. -type LocationStatusValue string - -// LocationStatusChoices defines model for LocationStatusChoices. -type LocationStatusChoices string - -// LocationType Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type LocationType struct { - ContentTypes *[]string `json:"content_types,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - - // Nestable Allow Locations of this type to be parents/children of other Locations of this same type - Nestable *bool `json:"nestable,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Parent *NestedLocationType `json:"parent"` - Slug *string `json:"slug,omitempty"` - TreeDepth *int `json:"tree_depth"` - Url *string `json:"url,omitempty"` -} - -// LogLevelEnum defines model for LogLevelEnum. -type LogLevelEnum string - -// Manufacturer Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Manufacturer struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DevicetypeCount *int `json:"devicetype_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - InventoryitemCount *int `json:"inventoryitem_count,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PlatformCount *int `json:"platform_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ManufacturerRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ManufacturerRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ManufacturerRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ManufacturerRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ManufacturerRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// ManufacturerRequest_Relationships_Destination_Objects_Item defines model for ManufacturerRequest.relationships.destination.objects.Item. -type ManufacturerRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ManufacturerRequest_Relationships_Peer_Objects_Item defines model for ManufacturerRequest.relationships.peer.objects.Item. -type ManufacturerRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ManufacturerRequest_Relationships_Source_Objects_Item defines model for ManufacturerRequest.relationships.source.objects.Item. -type ManufacturerRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// MinMaxValidationRule Serializer for `MinMaxValidationRule` objects. -type MinMaxValidationRule struct { - ContentType string `json:"content_type"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field string `json:"field"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Max When set, apply a maximum value contraint to the value of the model field. - Max *float64 `json:"max"` - - // Min When set, apply a minimum value contraint to the value of the model field. - Min *float64 `json:"min"` - Name string `json:"name"` - Slug string `json:"slug"` - Url *string `json:"url,omitempty"` -} - -// MinMaxValidationRuleRequest Serializer for `MinMaxValidationRule` objects. -type MinMaxValidationRuleRequest struct { - ContentType string `json:"content_type"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field string `json:"field"` - - // Max When set, apply a maximum value contraint to the value of the model field. - Max *float64 `json:"max"` - - // Min When set, apply a minimum value contraint to the value of the model field. - Min *float64 `json:"min"` - Name string `json:"name"` - Slug string `json:"slug"` -} - -// ModeEnum defines model for ModeEnum. -type ModeEnum string - -// NATPolicy NATPolicy Serializer. -type NATPolicy struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]NATPolicyDeviceM2MNested `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]NATPolicyDynamicGroupM2MNested `json:"assigned_dynamic_groups,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NatPolicyRules *[]openapi_types.UUID `json:"nat_policy_rules,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *NATPolicyStatusLabel `json:"label,omitempty"` - Value *NATPolicyStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Url *string `json:"url,omitempty"` -} - -// NATPolicyStatusLabel defines model for NATPolicy.Status.Label. -type NATPolicyStatusLabel string - -// NATPolicyStatusValue defines model for NATPolicy.Status.Value. -type NATPolicyStatusValue string - -// NATPolicyDeviceM2MNested NATPolicyDeviceM2M NestedSerializer. -type NATPolicyDeviceM2MNested struct { - Device openapi_types.UUID `json:"device"` - Weight *int `json:"weight,omitempty"` -} - -// NATPolicyDeviceM2MNestedRequest NATPolicyDeviceM2M NestedSerializer. -type NATPolicyDeviceM2MNestedRequest struct { - Device *openapi_types.UUID `json:"device,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// NATPolicyDynamicGroupM2MNested NATPolicyDynamicGroupM2M NestedSerializer. -type NATPolicyDynamicGroupM2MNested struct { - DynamicGroup openapi_types.UUID `json:"dynamic_group"` - Weight *int `json:"weight,omitempty"` -} - -// NATPolicyDynamicGroupM2MNestedRequest NATPolicyDynamicGroupM2M NestedSerializer. -type NATPolicyDynamicGroupM2MNestedRequest struct { - DynamicGroup *openapi_types.UUID `json:"dynamic_group,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// NATPolicyRequest NATPolicy Serializer. -type NATPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]NATPolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]NATPolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]NATPolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]NATPolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]NATPolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// NATPolicyRequest_Relationships_Destination_Objects_Item defines model for NATPolicyRequest.relationships.destination.objects.Item. -type NATPolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// NATPolicyRequest_Relationships_Peer_Objects_Item defines model for NATPolicyRequest.relationships.peer.objects.Item. -type NATPolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// NATPolicyRequest_Relationships_Source_Objects_Item defines model for NATPolicyRequest.relationships.source.objects.Item. -type NATPolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// NATPolicyRule PolicyRule Serializer. -type NATPolicyRule struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - - // DestinationZone Zone Serializer. - DestinationZone *Zone `json:"destination_zone,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Index *int `json:"index"` - LastUpdated *time.Time `json:"last_updated"` - Log *bool `json:"log,omitempty"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - OriginalDestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"address_objects,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalDestinationAddressGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalDestinationAddressGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_destination_address_groups,omitempty"` - OriginalDestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalDestinationAddressesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalDestinationAddressesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_destination_addresses,omitempty"` - OriginalDestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"service_objects,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalDestinationServiceGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalDestinationServiceGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_destination_service_groups,omitempty"` - OriginalDestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleOriginalDestinationServicesIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleOriginalDestinationServicesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalDestinationServicesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_destination_services,omitempty"` - OriginalSourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"address_objects,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalSourceAddressGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalSourceAddressGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_source_address_groups,omitempty"` - OriginalSourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalSourceAddressesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalSourceAddressesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_source_addresses,omitempty"` - OriginalSourceServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"service_objects,omitempty"` - Status *struct { - Label *NATPolicyRuleOriginalSourceServiceGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalSourceServiceGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_source_service_groups,omitempty"` - OriginalSourceServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleOriginalSourceServicesIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleOriginalSourceServicesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleOriginalSourceServicesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"original_source_services,omitempty"` - Remark *bool `json:"remark,omitempty"` - RequestId *string `json:"request_id"` - - // SourceZone Zone Serializer. - SourceZone *Zone `json:"source_zone,omitempty"` - Status *struct { - Label *NATPolicyRuleStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - TranslatedDestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"address_objects,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedDestinationAddressGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_destination_address_groups,omitempty"` - TranslatedDestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedDestinationAddressesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedDestinationAddressesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_destination_addresses,omitempty"` - TranslatedDestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"service_objects,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedDestinationServiceGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_destination_service_groups,omitempty"` - TranslatedDestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleTranslatedDestinationServicesIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleTranslatedDestinationServicesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedDestinationServicesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_destination_services,omitempty"` - TranslatedSourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"address_objects,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedSourceAddressGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedSourceAddressGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_source_address_groups,omitempty"` - TranslatedSourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedSourceAddressesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedSourceAddressesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_source_addresses,omitempty"` - TranslatedSourceServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"service_objects,omitempty"` - Status *struct { - Label *NATPolicyRuleTranslatedSourceServiceGroupsStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedSourceServiceGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_source_service_groups,omitempty"` - TranslatedSourceServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol NATPolicyRuleTranslatedSourceServicesIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *NATPolicyRuleTranslatedSourceServicesStatusLabel `json:"label,omitempty"` - Value *NATPolicyRuleTranslatedSourceServicesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"translated_source_services,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabel defines model for NATPolicyRule.OriginalDestinationAddressGroups.AddressObjects.Status.Label. -type NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusLabel string - -// NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValue defines model for NATPolicyRule.OriginalDestinationAddressGroups.AddressObjects.Status.Value. -type NATPolicyRuleOriginalDestinationAddressGroupsAddressObjectsStatusValue string - -// NATPolicyRuleOriginalDestinationAddressGroupsStatusLabel defines model for NATPolicyRule.OriginalDestinationAddressGroups.Status.Label. -type NATPolicyRuleOriginalDestinationAddressGroupsStatusLabel string - -// NATPolicyRuleOriginalDestinationAddressGroupsStatusValue defines model for NATPolicyRule.OriginalDestinationAddressGroups.Status.Value. -type NATPolicyRuleOriginalDestinationAddressGroupsStatusValue string - -// NATPolicyRuleOriginalDestinationAddressesStatusLabel defines model for NATPolicyRule.OriginalDestinationAddresses.Status.Label. -type NATPolicyRuleOriginalDestinationAddressesStatusLabel string - -// NATPolicyRuleOriginalDestinationAddressesStatusValue defines model for NATPolicyRule.OriginalDestinationAddresses.Status.Value. -type NATPolicyRuleOriginalDestinationAddressesStatusValue string - -// NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsIpProtocol string - -// NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabel defines model for NATPolicyRule.OriginalDestinationServiceGroups.ServiceObjects.Status.Label. -type NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusLabel string - -// NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValue defines model for NATPolicyRule.OriginalDestinationServiceGroups.ServiceObjects.Status.Value. -type NATPolicyRuleOriginalDestinationServiceGroupsServiceObjectsStatusValue string - -// NATPolicyRuleOriginalDestinationServiceGroupsStatusLabel defines model for NATPolicyRule.OriginalDestinationServiceGroups.Status.Label. -type NATPolicyRuleOriginalDestinationServiceGroupsStatusLabel string - -// NATPolicyRuleOriginalDestinationServiceGroupsStatusValue defines model for NATPolicyRule.OriginalDestinationServiceGroups.Status.Value. -type NATPolicyRuleOriginalDestinationServiceGroupsStatusValue string - -// NATPolicyRuleOriginalDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleOriginalDestinationServicesIpProtocol string - -// NATPolicyRuleOriginalDestinationServicesStatusLabel defines model for NATPolicyRule.OriginalDestinationServices.Status.Label. -type NATPolicyRuleOriginalDestinationServicesStatusLabel string - -// NATPolicyRuleOriginalDestinationServicesStatusValue defines model for NATPolicyRule.OriginalDestinationServices.Status.Value. -type NATPolicyRuleOriginalDestinationServicesStatusValue string - -// NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabel defines model for NATPolicyRule.OriginalSourceAddressGroups.AddressObjects.Status.Label. -type NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusLabel string - -// NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValue defines model for NATPolicyRule.OriginalSourceAddressGroups.AddressObjects.Status.Value. -type NATPolicyRuleOriginalSourceAddressGroupsAddressObjectsStatusValue string - -// NATPolicyRuleOriginalSourceAddressGroupsStatusLabel defines model for NATPolicyRule.OriginalSourceAddressGroups.Status.Label. -type NATPolicyRuleOriginalSourceAddressGroupsStatusLabel string - -// NATPolicyRuleOriginalSourceAddressGroupsStatusValue defines model for NATPolicyRule.OriginalSourceAddressGroups.Status.Value. -type NATPolicyRuleOriginalSourceAddressGroupsStatusValue string - -// NATPolicyRuleOriginalSourceAddressesStatusLabel defines model for NATPolicyRule.OriginalSourceAddresses.Status.Label. -type NATPolicyRuleOriginalSourceAddressesStatusLabel string - -// NATPolicyRuleOriginalSourceAddressesStatusValue defines model for NATPolicyRule.OriginalSourceAddresses.Status.Value. -type NATPolicyRuleOriginalSourceAddressesStatusValue string - -// NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsIpProtocol string - -// NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabel defines model for NATPolicyRule.OriginalSourceServiceGroups.ServiceObjects.Status.Label. -type NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusLabel string - -// NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValue defines model for NATPolicyRule.OriginalSourceServiceGroups.ServiceObjects.Status.Value. -type NATPolicyRuleOriginalSourceServiceGroupsServiceObjectsStatusValue string - -// NATPolicyRuleOriginalSourceServiceGroupsStatusLabel defines model for NATPolicyRule.OriginalSourceServiceGroups.Status.Label. -type NATPolicyRuleOriginalSourceServiceGroupsStatusLabel string - -// NATPolicyRuleOriginalSourceServiceGroupsStatusValue defines model for NATPolicyRule.OriginalSourceServiceGroups.Status.Value. -type NATPolicyRuleOriginalSourceServiceGroupsStatusValue string - -// NATPolicyRuleOriginalSourceServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleOriginalSourceServicesIpProtocol string - -// NATPolicyRuleOriginalSourceServicesStatusLabel defines model for NATPolicyRule.OriginalSourceServices.Status.Label. -type NATPolicyRuleOriginalSourceServicesStatusLabel string - -// NATPolicyRuleOriginalSourceServicesStatusValue defines model for NATPolicyRule.OriginalSourceServices.Status.Value. -type NATPolicyRuleOriginalSourceServicesStatusValue string - -// NATPolicyRuleStatusLabel defines model for NATPolicyRule.Status.Label. -type NATPolicyRuleStatusLabel string - -// NATPolicyRuleStatusValue defines model for NATPolicyRule.Status.Value. -type NATPolicyRuleStatusValue string - -// NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabel defines model for NATPolicyRule.TranslatedDestinationAddressGroups.AddressObjects.Status.Label. -type NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusLabel string - -// NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValue defines model for NATPolicyRule.TranslatedDestinationAddressGroups.AddressObjects.Status.Value. -type NATPolicyRuleTranslatedDestinationAddressGroupsAddressObjectsStatusValue string - -// NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabel defines model for NATPolicyRule.TranslatedDestinationAddressGroups.Status.Label. -type NATPolicyRuleTranslatedDestinationAddressGroupsStatusLabel string - -// NATPolicyRuleTranslatedDestinationAddressGroupsStatusValue defines model for NATPolicyRule.TranslatedDestinationAddressGroups.Status.Value. -type NATPolicyRuleTranslatedDestinationAddressGroupsStatusValue string - -// NATPolicyRuleTranslatedDestinationAddressesStatusLabel defines model for NATPolicyRule.TranslatedDestinationAddresses.Status.Label. -type NATPolicyRuleTranslatedDestinationAddressesStatusLabel string - -// NATPolicyRuleTranslatedDestinationAddressesStatusValue defines model for NATPolicyRule.TranslatedDestinationAddresses.Status.Value. -type NATPolicyRuleTranslatedDestinationAddressesStatusValue string - -// NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsIpProtocol string - -// NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabel defines model for NATPolicyRule.TranslatedDestinationServiceGroups.ServiceObjects.Status.Label. -type NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusLabel string - -// NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValue defines model for NATPolicyRule.TranslatedDestinationServiceGroups.ServiceObjects.Status.Value. -type NATPolicyRuleTranslatedDestinationServiceGroupsServiceObjectsStatusValue string - -// NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabel defines model for NATPolicyRule.TranslatedDestinationServiceGroups.Status.Label. -type NATPolicyRuleTranslatedDestinationServiceGroupsStatusLabel string - -// NATPolicyRuleTranslatedDestinationServiceGroupsStatusValue defines model for NATPolicyRule.TranslatedDestinationServiceGroups.Status.Value. -type NATPolicyRuleTranslatedDestinationServiceGroupsStatusValue string - -// NATPolicyRuleTranslatedDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleTranslatedDestinationServicesIpProtocol string - -// NATPolicyRuleTranslatedDestinationServicesStatusLabel defines model for NATPolicyRule.TranslatedDestinationServices.Status.Label. -type NATPolicyRuleTranslatedDestinationServicesStatusLabel string - -// NATPolicyRuleTranslatedDestinationServicesStatusValue defines model for NATPolicyRule.TranslatedDestinationServices.Status.Value. -type NATPolicyRuleTranslatedDestinationServicesStatusValue string - -// NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabel defines model for NATPolicyRule.TranslatedSourceAddressGroups.AddressObjects.Status.Label. -type NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusLabel string - -// NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValue defines model for NATPolicyRule.TranslatedSourceAddressGroups.AddressObjects.Status.Value. -type NATPolicyRuleTranslatedSourceAddressGroupsAddressObjectsStatusValue string - -// NATPolicyRuleTranslatedSourceAddressGroupsStatusLabel defines model for NATPolicyRule.TranslatedSourceAddressGroups.Status.Label. -type NATPolicyRuleTranslatedSourceAddressGroupsStatusLabel string - -// NATPolicyRuleTranslatedSourceAddressGroupsStatusValue defines model for NATPolicyRule.TranslatedSourceAddressGroups.Status.Value. -type NATPolicyRuleTranslatedSourceAddressGroupsStatusValue string - -// NATPolicyRuleTranslatedSourceAddressesStatusLabel defines model for NATPolicyRule.TranslatedSourceAddresses.Status.Label. -type NATPolicyRuleTranslatedSourceAddressesStatusLabel string - -// NATPolicyRuleTranslatedSourceAddressesStatusValue defines model for NATPolicyRule.TranslatedSourceAddresses.Status.Value. -type NATPolicyRuleTranslatedSourceAddressesStatusValue string - -// NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsIpProtocol string - -// NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabel defines model for NATPolicyRule.TranslatedSourceServiceGroups.ServiceObjects.Status.Label. -type NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusLabel string - -// NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValue defines model for NATPolicyRule.TranslatedSourceServiceGroups.ServiceObjects.Status.Value. -type NATPolicyRuleTranslatedSourceServiceGroupsServiceObjectsStatusValue string - -// NATPolicyRuleTranslatedSourceServiceGroupsStatusLabel defines model for NATPolicyRule.TranslatedSourceServiceGroups.Status.Label. -type NATPolicyRuleTranslatedSourceServiceGroupsStatusLabel string - -// NATPolicyRuleTranslatedSourceServiceGroupsStatusValue defines model for NATPolicyRule.TranslatedSourceServiceGroups.Status.Value. -type NATPolicyRuleTranslatedSourceServiceGroupsStatusValue string - -// NATPolicyRuleTranslatedSourceServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type NATPolicyRuleTranslatedSourceServicesIpProtocol string - -// NATPolicyRuleTranslatedSourceServicesStatusLabel defines model for NATPolicyRule.TranslatedSourceServices.Status.Label. -type NATPolicyRuleTranslatedSourceServicesStatusLabel string - -// NATPolicyRuleTranslatedSourceServicesStatusValue defines model for NATPolicyRule.TranslatedSourceServices.Status.Value. -type NATPolicyRuleTranslatedSourceServicesStatusValue string - -// NestedAutonomousSystem Nested/brief serializer for AutonomousSystem. -type NestedAutonomousSystem struct { - // Asn 32-bit autonomous system number - Asn int64 `json:"asn"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedAutonomousSystemRequest Nested/brief serializer for AutonomousSystem. -type NestedAutonomousSystemRequest struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` -} - -// NestedCVELCM Nested serializer for the CVE class. -type NestedCVELCM struct { - Comments *string `json:"comments,omitempty"` - Cvss *float64 `json:"cvss"` - CvssV2 *float64 `json:"cvss_v2"` - CvssV3 *float64 `json:"cvss_v3"` - Description *string `json:"description"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Fix *string `json:"fix"` - Id *openapi_types.UUID `json:"id,omitempty"` - Link string `json:"link"` - Name string `json:"name"` - PublishedDate openapi_types.Date `json:"published_date"` - Severity *SeverityEnum `json:"severity,omitempty"` - Status *openapi_types.UUID `json:"status"` - Url *string `json:"url,omitempty"` -} - -// NestedCable This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type NestedCable struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Label *string `json:"label,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedCircuit Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedCircuit struct { - Cid string `json:"cid"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedCircuitRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedCircuitRequest struct { - Cid *string `json:"cid,omitempty"` -} - -// NestedCircuitType Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedCircuitType struct { - CircuitCount *int `json:"circuit_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedCircuitTypeRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedCircuitTypeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedCluster Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedCluster struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` -} - -// NestedClusterGroup Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedClusterGroup struct { - ClusterCount *int `json:"cluster_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedClusterGroupRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedClusterGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedClusterRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedClusterRequest struct { - Name *string `json:"name,omitempty"` -} - -// NestedClusterType Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedClusterType struct { - ClusterCount *int `json:"cluster_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedClusterTypeRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedClusterTypeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedConfigContextSchema Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedConfigContextSchema struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedConfigContextSchemaRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedConfigContextSchemaRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedContractLCM API serializer. -type NestedContractLCM struct { - ContractType *string `json:"contract_type"` - Cost *string `json:"cost"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - End *openapi_types.Date `json:"end"` - Expired *string `json:"expired,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - - // Provider Contract Provider - Provider NestedProviderLCM `json:"provider"` - Start *openapi_types.Date `json:"start"` - SupportLevel *string `json:"support_level"` -} - -// NestedContractLCMRequest API serializer. -type NestedContractLCMRequest struct { - ContractType *string `json:"contract_type"` - Cost *string `json:"cost"` - End *openapi_types.Date `json:"end"` - Name *string `json:"name,omitempty"` - - // Provider Contract Provider - Provider *NestedProviderLCMRequest `json:"provider,omitempty"` - Start *openapi_types.Date `json:"start"` - SupportLevel *string `json:"support_level"` -} - -// NestedCustomField Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedCustomField struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Name Human-readable unique name of this field. - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedCustomFieldRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedCustomFieldRequest struct { - // Name Human-readable unique name of this field. - Name *string `json:"name,omitempty"` -} - -// NestedDevice Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDevice struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedDeviceRedundancyGroup Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDeviceRedundancyGroup struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - FailoverStrategy *NestedDeviceRedundancyGroup_FailoverStrategy `json:"failover_strategy,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedDeviceRedundancyGroup_FailoverStrategy defines model for NestedDeviceRedundancyGroup.FailoverStrategy. -type NestedDeviceRedundancyGroup_FailoverStrategy struct { - union json.RawMessage -} - -// NestedDeviceRedundancyGroupRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDeviceRedundancyGroupRequest struct { - FailoverStrategy *NestedDeviceRedundancyGroupRequest_FailoverStrategy `json:"failover_strategy,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedDeviceRedundancyGroupRequest_FailoverStrategy defines model for NestedDeviceRedundancyGroupRequest.FailoverStrategy. -type NestedDeviceRedundancyGroupRequest_FailoverStrategy struct { - union json.RawMessage -} - -// NestedDeviceRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDeviceRequest struct { - Name *string `json:"name"` -} - -// NestedDeviceRole Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDeviceRole struct { - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` -} - -// NestedDeviceRoleRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDeviceRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedDeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDeviceType struct { - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Manufacturer *NestedManufacturer `json:"manufacturer,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` - Url *string `json:"url,omitempty"` -} - -// NestedDeviceTypeRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDeviceTypeRequest struct { - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedDynamicGroup Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDynamicGroup struct { - ContentType string `json:"content_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Name Dynamic Group name - Name string `json:"name"` - - // Slug Unique slug - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedDynamicGroupMembership Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDynamicGroupMembership struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group NestedDynamicGroup `json:"group"` - Id *openapi_types.UUID `json:"id,omitempty"` - Operator OperatorEnum `json:"operator"` - - // ParentGroup Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - ParentGroup NestedDynamicGroup `json:"parent_group"` - Url *string `json:"url,omitempty"` - Weight int `json:"weight"` -} - -// NestedDynamicGroupRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedDynamicGroupRequest struct { - ContentType *string `json:"content_type,omitempty"` - - // Name Dynamic Group name - Name *string `json:"name,omitempty"` - - // Slug Unique slug - Slug *string `json:"slug,omitempty"` -} - -// NestedFQDN Nested serializer for FQDN. -type NestedFQDN struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Name Resolvable fully qualified domain name (e.g. networktocode.com) - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedFQDNRequest Nested serializer for FQDN. -type NestedFQDNRequest struct { - // Name Resolvable fully qualified domain name (e.g. networktocode.com) - Name *string `json:"name,omitempty"` -} - -// NestedIPAddress Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedIPAddress struct { - Address string `json:"address"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Family *int `json:"family,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedIPAddressRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedIPAddressRequest struct { - Address *string `json:"address,omitempty"` -} - -// NestedIPRange Nested serializer for IPRange. -type NestedIPRange struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - EndAddress string `json:"end_address"` - Id *openapi_types.UUID `json:"id,omitempty"` - StartAddress string `json:"start_address"` - Url *string `json:"url,omitempty"` -} - -// NestedIPRangeRequest Nested serializer for IPRange. -type NestedIPRangeRequest struct { - EndAddress *string `json:"end_address,omitempty"` - StartAddress *string `json:"start_address,omitempty"` -} - -// NestedInterface Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedInterface struct { - Cable *openapi_types.UUID `json:"cable"` - Device *NestedDevice `json:"device,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedInterfaceRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedInterfaceRequest struct { - Cable *openapi_types.UUID `json:"cable"` - Name *string `json:"name,omitempty"` -} - -// NestedInventoryItem Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedInventoryItem struct { - Depth *int `json:"_depth,omitempty"` - Device *NestedDevice `json:"device,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedJob This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type NestedJob struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Grouping Human-readable grouping that this job belongs to - Grouping string `json:"grouping"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // JobClassName Name of the Python class providing this job - JobClassName *string `json:"job_class_name,omitempty"` - - // ModuleName Dotted name of the Python module providing this job - ModuleName *string `json:"module_name,omitempty"` - - // Name Human-readable name of this job - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - - // Source Source of the Python code for this job - local, Git repository, or plugins - Source *string `json:"source,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedJobResult This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type NestedJobResult struct { - Completed *time.Time `json:"completed"` - Created *time.Time `json:"created,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Status struct { - Label *NestedJobResultStatusLabel `json:"label,omitempty"` - Value *NestedJobResultStatusValue `json:"value,omitempty"` - } `json:"status"` - Url *string `json:"url,omitempty"` - User *NestedUser `json:"user,omitempty"` -} - -// NestedJobResultStatusLabel defines model for NestedJobResult.Status.Label. -type NestedJobResultStatusLabel string - -// NestedJobResultStatusValue defines model for NestedJobResult.Status.Value. -type NestedJobResultStatusValue string - -// NestedLocation Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedLocation struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - TreeDepth *int `json:"tree_depth"` - Url *string `json:"url,omitempty"` -} - -// NestedLocationRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedLocationRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedLocationType Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedLocationType struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - TreeDepth *int `json:"tree_depth"` - Url *string `json:"url,omitempty"` -} - -// NestedLocationTypeRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedLocationTypeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedManufacturer Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedManufacturer struct { - DevicetypeCount *int `json:"devicetype_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedManufacturerRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedManufacturerRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedPeerEndpoint Nested/brief serializer for PeerEndpoint. -type NestedPeerEndpoint struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedPeerGroup Nested/brief serializer for PeerGroup. -type NestedPeerGroup struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - Url *string `json:"url,omitempty"` -} - -// NestedPeerGroupRequest Nested/brief serializer for PeerGroup. -type NestedPeerGroupRequest struct { - Enabled *bool `json:"enabled,omitempty"` - Name *string `json:"name,omitempty"` - Role *openapi_types.UUID `json:"role"` -} - -// NestedPeerGroupTemplate Nested/brief serializer for PeerGroup. -type NestedPeerGroupTemplate struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - Url *string `json:"url,omitempty"` -} - -// NestedPeerGroupTemplateRequest Nested/brief serializer for PeerGroup. -type NestedPeerGroupTemplateRequest struct { - Enabled *bool `json:"enabled,omitempty"` - Name *string `json:"name,omitempty"` - Role *openapi_types.UUID `json:"role"` -} - -// NestedPeering Nested/brief serializer for Peering. -type NestedPeering struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Status *openapi_types.UUID `json:"status"` - Url *string `json:"url,omitempty"` -} - -// NestedPeeringRequest Nested/brief serializer for Peering. -type NestedPeeringRequest struct { - Status *openapi_types.UUID `json:"status"` -} - -// NestedPlatform Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPlatform struct { - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` -} - -// NestedPlatformRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPlatformRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedPowerPanel Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPowerPanel struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - PowerfeedCount *int `json:"powerfeed_count,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedPowerPanelRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPowerPanelRequest struct { - Name *string `json:"name,omitempty"` -} - -// NestedPowerPort Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPowerPort struct { - Cable *openapi_types.UUID `json:"cable"` - Device *NestedDevice `json:"device,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedPowerPortRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPowerPortRequest struct { - Cable *openapi_types.UUID `json:"cable"` - Name *string `json:"name,omitempty"` -} - -// NestedPowerPortTemplate Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPowerPortTemplate struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedPowerPortTemplateRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPowerPortTemplateRequest struct { - Name *string `json:"name,omitempty"` -} - -// NestedPrefix Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPrefix struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Family *int `json:"family,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Prefix string `json:"prefix"` - Url *string `json:"url,omitempty"` -} - -// NestedPrefixRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedPrefixRequest struct { - Prefix *string `json:"prefix,omitempty"` -} - -// NestedProvider Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedProvider struct { - CircuitCount *int `json:"circuit_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedProviderLCM Nested serializer for the provider class. -type NestedProviderLCM struct { - Comments *string `json:"comments,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Phone *string `json:"phone,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` -} - -// NestedProviderLCMRequest Nested serializer for the provider class. -type NestedProviderLCMRequest struct { - Comments *string `json:"comments,omitempty"` - Description *string `json:"description,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Name *string `json:"name,omitempty"` - Phone *string `json:"phone,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` -} - -// NestedProviderNetwork Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedProviderNetwork struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedProviderNetworkRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedProviderNetworkRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedProviderRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedProviderRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedRIR Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRIR struct { - AggregateCount *int `json:"aggregate_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedRIRRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRIRRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedRack Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRack struct { - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedRackGroup Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRackGroup struct { - Depth *int `json:"_depth,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - RackCount *int `json:"rack_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedRackGroupRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRackGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedRackRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRackRequest struct { - Name *string `json:"name,omitempty"` -} - -// NestedRackRole Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRackRole struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - RackCount *int `json:"rack_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedRackRoleRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRackRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedRearPortTemplate Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRearPortTemplate struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedRearPortTemplateRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRearPortTemplateRequest struct { - Name *string `json:"name,omitempty"` -} - -// NestedRegion Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRegion struct { - Depth *int `json:"_depth,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - SiteCount *int `json:"site_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedRegionRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRegionRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedRelationship Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRelationship struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Name Name of the relationship as displayed to users - Name string `json:"name"` - - // Slug Internal relationship name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedRelationshipRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRelationshipRequest struct { - // Name Name of the relationship as displayed to users - Name *string `json:"name,omitempty"` - - // Slug Internal relationship name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` -} - -// NestedRole Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRole struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - PrefixCount *int `json:"prefix_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VlanCount *int `json:"vlan_count,omitempty"` -} - -// NestedRoleRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedRoutingInstance Nested/brief serializer for PeerEndpoint. -type NestedRoutingInstance struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedScheduledJob This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type NestedScheduledJob struct { - // Crontab Cronjob syntax string for custom scheduling - Crontab *string `json:"crontab,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Interval JobExecutionTypeIntervalChoices `json:"interval"` - Name *string `json:"name,omitempty"` - StartTime *time.Time `json:"start_time,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedScheduledJobRequest This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type NestedScheduledJobRequest struct { - // Crontab Cronjob syntax string for custom scheduling - Crontab *string `json:"crontab,omitempty"` - Interval JobExecutionTypeIntervalChoices `json:"interval"` - Name *string `json:"name,omitempty"` - StartTime *time.Time `json:"start_time,omitempty"` -} - -// NestedSecret Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedSecret struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedSecretRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedSecretRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedSecretsGroup Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedSecretsGroup struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedSecretsGroupAssociation Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedSecretsGroupAssociation struct { - AccessType AccessTypeEnum `json:"access_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Secret Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Secret NestedSecret `json:"secret"` - SecretType SecretTypeEnum `json:"secret_type"` - Url *string `json:"url,omitempty"` -} - -// NestedSecretsGroupRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedSecretsGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedSite Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedSite struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedSiteRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedSiteRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedSoftwareLCM Nested/brief serializer for SoftwareLCM. -type NestedSoftwareLCM struct { - DevicePlatform *openapi_types.UUID `json:"device_platform,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - Version string `json:"version"` -} - -// NestedSoftwareLCMRequest Nested/brief serializer for SoftwareLCM. -type NestedSoftwareLCMRequest struct { - EndOfSupport *openapi_types.Date `json:"end_of_support"` - Version *string `json:"version,omitempty"` -} - -// NestedTenant Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedTenant struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedTenantGroup Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedTenantGroup struct { - Depth *int `json:"_depth,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - TenantCount *int `json:"tenant_count,omitempty"` - Url *string `json:"url,omitempty"` -} - -// NestedTenantGroupRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedTenantGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedTenantRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedTenantRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedUser Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedUser struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` -} - -// NestedUserRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedUserRequest struct { - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username *string `json:"username,omitempty"` -} - -// NestedVLAN Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVLAN struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - Vid int `json:"vid"` -} - -// NestedVLANGroup Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVLANGroup struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VlanCount *int `json:"vlan_count,omitempty"` -} - -// NestedVLANGroupRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVLANGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// NestedVLANRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVLANRequest struct { - Name *string `json:"name,omitempty"` - Vid *int `json:"vid,omitempty"` -} - -// NestedVMInterface Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVMInterface struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - VirtualMachine *NestedVirtualMachine `json:"virtual_machine,omitempty"` -} - -// NestedVMInterfaceRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVMInterfaceRequest struct { - Name *string `json:"name,omitempty"` -} - -// NestedVRF Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVRF struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - PrefixCount *int `json:"prefix_count,omitempty"` - - // Rd Unique route distinguisher (as defined in RFC 4364) - Rd *string `json:"rd"` - Url *string `json:"url,omitempty"` -} - -// NestedVRFRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVRFRequest struct { - Name *string `json:"name,omitempty"` - - // Rd Unique route distinguisher (as defined in RFC 4364) - Rd *string `json:"rd"` -} - -// NestedVirtualChassis Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVirtualChassis struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Master Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Master NestedDevice `json:"master"` - MemberCount *int `json:"member_count,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedVirtualChassisRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVirtualChassisRequest struct { - // Master Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Master *NestedDeviceRequest `json:"master,omitempty"` - Name *string `json:"name,omitempty"` -} - -// NestedVirtualMachine Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVirtualMachine struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` -} - -// NestedVirtualMachineRequest Returns a nested representation of an object on read, but accepts either the nested representation or the -// primary key value on write operations. -type NestedVirtualMachineRequest struct { - Name *string `json:"name,omitempty"` -} - -// Note This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type Note struct { - AssignedObject *map[string]interface{} `json:"assigned_object"` - AssignedObjectId openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType string `json:"assigned_object_type"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Note string `json:"note"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - User *NestedUser `json:"user,omitempty"` - UserName *string `json:"user_name,omitempty"` -} - -// NoteInputRequest defines model for NoteInputRequest. -type NoteInputRequest struct { - Note string `json:"note"` -} - -// NoteRequest This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type NoteRequest struct { - AssignedObjectId openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType string `json:"assigned_object_type"` - Note string `json:"note"` - Slug *string `json:"slug,omitempty"` -} - -// NotificationSource Serializer for NotificationSource records. -type NotificationSource struct { - // AttachAllProviders Attach all the Providers to this Notification Source - AttachAllProviders *bool `json:"attach_all_providers,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Name Notification Source Name as defined in configuration file. - Name string `json:"name"` - Providers []NestedProvider `json:"providers"` - Slug string `json:"slug"` - Url *string `json:"url,omitempty"` -} - -// NullEnum defines model for NullEnum. -type NullEnum = interface{} - -// ObjectChange This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type ObjectChange struct { - Action *struct { - Label *ObjectChangeActionLabel `json:"label,omitempty"` - Value *ObjectChangeActionValue `json:"value,omitempty"` - } `json:"action,omitempty"` - ChangedObject *map[string]interface{} `json:"changed_object"` - ChangedObjectId openapi_types.UUID `json:"changed_object_id"` - ChangedObjectType *string `json:"changed_object_type,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ObjectData *map[string]interface{} `json:"object_data,omitempty"` - RequestId *openapi_types.UUID `json:"request_id,omitempty"` - Time *time.Time `json:"time,omitempty"` - Url *string `json:"url,omitempty"` - User *NestedUser `json:"user,omitempty"` - UserName *string `json:"user_name,omitempty"` -} - -// ObjectChangeActionLabel defines model for ObjectChange.Action.Label. -type ObjectChangeActionLabel string - -// ObjectChangeActionValue defines model for ObjectChange.Action.Value. -type ObjectChangeActionValue string - -// ObjectPermission Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type ObjectPermission struct { - // Actions The list of actions granted by this permission - Actions map[string]interface{} `json:"actions"` - - // Constraints Queryset filter matching the applicable objects of the selected type(s) - Constraints *map[string]interface{} `json:"constraints"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Groups *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *int `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - } `json:"groups,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - ObjectTypes []string `json:"object_types"` - Url *string `json:"url,omitempty"` - Users *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` - } `json:"users,omitempty"` -} - -// OnboardingTask Serializer for the OnboardingTask model. -type OnboardingTask struct { - // CreatedDevice Created device name - CreatedDevice *string `json:"created_device,omitempty"` - - // DeviceType Nautobot device type 'slug' value - DeviceType *string `json:"device_type,omitempty"` - - // FailedReason Failure reason - FailedReason *string `json:"failed_reason,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress IP Address to reach device - IpAddress string `json:"ip_address"` - - // Message Status message - Message *string `json:"message,omitempty"` - - // Platform Nautobot Platform 'slug' value - Platform *string `json:"platform,omitempty"` - - // Port Device PORT to check for online - Port *int `json:"port,omitempty"` - - // Role Nautobot device role 'slug' value - Role *string `json:"role,omitempty"` - - // Site Nautobot site 'slug' value - Site string `json:"site"` - - // Status Onboarding Status - Status *string `json:"status,omitempty"` - - // Timeout Timeout (sec) for device connect - Timeout *int `json:"timeout,omitempty"` -} - -// OnboardingTaskRequest Serializer for the OnboardingTask model. -type OnboardingTaskRequest struct { - // DeviceType Nautobot device type 'slug' value - DeviceType *string `json:"device_type,omitempty"` - - // IpAddress IP Address to reach device - IpAddress string `json:"ip_address"` - - // Password Device password - Password *string `json:"password,omitempty"` - - // Platform Nautobot Platform 'slug' value - Platform *string `json:"platform,omitempty"` - - // Port Device PORT to check for online - Port *int `json:"port,omitempty"` - - // Role Nautobot device role 'slug' value - Role *string `json:"role,omitempty"` - - // Secret Device secret password - Secret *string `json:"secret,omitempty"` - - // Site Nautobot site 'slug' value - Site string `json:"site"` - - // Timeout Timeout (sec) for device connect - Timeout *int `json:"timeout,omitempty"` - - // Username Device username - Username *string `json:"username,omitempty"` -} - -// OperatorEnum defines model for OperatorEnum. -type OperatorEnum string - -// OuterUnitEnum defines model for OuterUnitEnum. -type OuterUnitEnum string - -// PaginatedAccessGrantList defines model for PaginatedAccessGrantList. -type PaginatedAccessGrantList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]AccessGrant `json:"results,omitempty"` -} - -// PaginatedAddressFamilyList defines model for PaginatedAddressFamilyList. -type PaginatedAddressFamilyList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]AddressFamily `json:"results,omitempty"` -} - -// PaginatedAddressObjectGroupList defines model for PaginatedAddressObjectGroupList. -type PaginatedAddressObjectGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]AddressObjectGroup `json:"results,omitempty"` -} - -// PaginatedAddressObjectList defines model for PaginatedAddressObjectList. -type PaginatedAddressObjectList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]AddressObject `json:"results,omitempty"` -} - -// PaginatedAggregateList defines model for PaginatedAggregateList. -type PaginatedAggregateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Aggregate `json:"results,omitempty"` -} - -// PaginatedAutonomousSystemList defines model for PaginatedAutonomousSystemList. -type PaginatedAutonomousSystemList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]AutonomousSystem `json:"results,omitempty"` -} - -// PaginatedAvailableIPList defines model for PaginatedAvailableIPList. -type PaginatedAvailableIPList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]AvailableIP `json:"results,omitempty"` -} - -// PaginatedAvailablePrefixList defines model for PaginatedAvailablePrefixList. -type PaginatedAvailablePrefixList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]AvailablePrefix `json:"results,omitempty"` -} - -// PaginatedBGPRoutingInstanceList defines model for PaginatedBGPRoutingInstanceList. -type PaginatedBGPRoutingInstanceList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]BGPRoutingInstance `json:"results,omitempty"` -} - -// PaginatedCVELCMList defines model for PaginatedCVELCMList. -type PaginatedCVELCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CVELCM `json:"results,omitempty"` -} - -// PaginatedCableList defines model for PaginatedCableList. -type PaginatedCableList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Cable `json:"results,omitempty"` -} - -// PaginatedCapircaPolicyList defines model for PaginatedCapircaPolicyList. -type PaginatedCapircaPolicyList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CapircaPolicy `json:"results,omitempty"` -} - -// PaginatedCircuitList defines model for PaginatedCircuitList. -type PaginatedCircuitList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Circuit `json:"results,omitempty"` -} - -// PaginatedCircuitMaintenanceCircuitImpactList defines model for PaginatedCircuitMaintenanceCircuitImpactList. -type PaginatedCircuitMaintenanceCircuitImpactList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CircuitMaintenanceCircuitImpact `json:"results,omitempty"` -} - -// PaginatedCircuitMaintenanceList defines model for PaginatedCircuitMaintenanceList. -type PaginatedCircuitMaintenanceList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CircuitMaintenance `json:"results,omitempty"` -} - -// PaginatedCircuitTerminationList defines model for PaginatedCircuitTerminationList. -type PaginatedCircuitTerminationList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CircuitTermination `json:"results,omitempty"` -} - -// PaginatedCircuitTypeList defines model for PaginatedCircuitTypeList. -type PaginatedCircuitTypeList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CircuitType `json:"results,omitempty"` -} - -// PaginatedClusterGroupList defines model for PaginatedClusterGroupList. -type PaginatedClusterGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ClusterGroup `json:"results,omitempty"` -} - -// PaginatedClusterList defines model for PaginatedClusterList. -type PaginatedClusterList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Cluster `json:"results,omitempty"` -} - -// PaginatedClusterTypeList defines model for PaginatedClusterTypeList. -type PaginatedClusterTypeList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ClusterType `json:"results,omitempty"` -} - -// PaginatedCommandTokenList defines model for PaginatedCommandTokenList. -type PaginatedCommandTokenList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CommandToken `json:"results,omitempty"` -} - -// PaginatedComplianceFeatureList defines model for PaginatedComplianceFeatureList. -type PaginatedComplianceFeatureList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ComplianceFeature `json:"results,omitempty"` -} - -// PaginatedComplianceRuleList defines model for PaginatedComplianceRuleList. -type PaginatedComplianceRuleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ComplianceRule `json:"results,omitempty"` -} - -// PaginatedComputedFieldList defines model for PaginatedComputedFieldList. -type PaginatedComputedFieldList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ComputedField `json:"results,omitempty"` -} - -// PaginatedConfigComplianceList defines model for PaginatedConfigComplianceList. -type PaginatedConfigComplianceList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConfigCompliance `json:"results,omitempty"` -} - -// PaginatedConfigContextList defines model for PaginatedConfigContextList. -type PaginatedConfigContextList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConfigContext `json:"results,omitempty"` -} - -// PaginatedConfigContextSchemaList defines model for PaginatedConfigContextSchemaList. -type PaginatedConfigContextSchemaList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConfigContextSchema `json:"results,omitempty"` -} - -// PaginatedConfigRemoveList defines model for PaginatedConfigRemoveList. -type PaginatedConfigRemoveList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConfigRemove `json:"results,omitempty"` -} - -// PaginatedConfigReplaceList defines model for PaginatedConfigReplaceList. -type PaginatedConfigReplaceList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConfigReplace `json:"results,omitempty"` -} - -// PaginatedConsolePortList defines model for PaginatedConsolePortList. -type PaginatedConsolePortList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConsolePort `json:"results,omitempty"` -} - -// PaginatedConsolePortTemplateList defines model for PaginatedConsolePortTemplateList. -type PaginatedConsolePortTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConsolePortTemplate `json:"results,omitempty"` -} - -// PaginatedConsoleServerPortList defines model for PaginatedConsoleServerPortList. -type PaginatedConsoleServerPortList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConsoleServerPort `json:"results,omitempty"` -} - -// PaginatedConsoleServerPortTemplateList defines model for PaginatedConsoleServerPortTemplateList. -type PaginatedConsoleServerPortTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ConsoleServerPortTemplate `json:"results,omitempty"` -} - -// PaginatedContactLCMList defines model for PaginatedContactLCMList. -type PaginatedContactLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ContactLCM `json:"results,omitempty"` -} - -// PaginatedContentTypeList defines model for PaginatedContentTypeList. -type PaginatedContentTypeList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ContentType `json:"results,omitempty"` -} - -// PaginatedContractLCMList defines model for PaginatedContractLCMList. -type PaginatedContractLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ContractLCM `json:"results,omitempty"` -} - -// PaginatedCustomFieldChoiceList defines model for PaginatedCustomFieldChoiceList. -type PaginatedCustomFieldChoiceList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CustomFieldChoice `json:"results,omitempty"` -} - -// PaginatedCustomFieldSerializerVersion12List defines model for PaginatedCustomFieldSerializerVersion12List. -type PaginatedCustomFieldSerializerVersion12List struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CustomFieldSerializerVersion12 `json:"results,omitempty"` -} - -// PaginatedCustomLinkList defines model for PaginatedCustomLinkList. -type PaginatedCustomLinkList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]CustomLink `json:"results,omitempty"` -} - -// PaginatedDeviceBayList defines model for PaginatedDeviceBayList. -type PaginatedDeviceBayList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DeviceBay `json:"results,omitempty"` -} - -// PaginatedDeviceBayTemplateList defines model for PaginatedDeviceBayTemplateList. -type PaginatedDeviceBayTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DeviceBayTemplate `json:"results,omitempty"` -} - -// PaginatedDeviceRedundancyGroupList defines model for PaginatedDeviceRedundancyGroupList. -type PaginatedDeviceRedundancyGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DeviceRedundancyGroup `json:"results,omitempty"` -} - -// PaginatedDeviceRoleList defines model for PaginatedDeviceRoleList. -type PaginatedDeviceRoleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DeviceRole `json:"results,omitempty"` -} - -// PaginatedDeviceTypeList defines model for PaginatedDeviceTypeList. -type PaginatedDeviceTypeList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DeviceType `json:"results,omitempty"` -} - -// PaginatedDeviceWithConfigContextList defines model for PaginatedDeviceWithConfigContextList. -type PaginatedDeviceWithConfigContextList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DeviceWithConfigContext `json:"results,omitempty"` -} - -// PaginatedDynamicGroupList defines model for PaginatedDynamicGroupList. -type PaginatedDynamicGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DynamicGroup `json:"results,omitempty"` -} - -// PaginatedDynamicGroupMembershipList defines model for PaginatedDynamicGroupMembershipList. -type PaginatedDynamicGroupMembershipList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]DynamicGroupMembership `json:"results,omitempty"` -} - -// PaginatedExportTemplateList defines model for PaginatedExportTemplateList. -type PaginatedExportTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ExportTemplate `json:"results,omitempty"` -} - -// PaginatedFQDNList defines model for PaginatedFQDNList. -type PaginatedFQDNList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]FQDN `json:"results,omitempty"` -} - -// PaginatedFrontPortList defines model for PaginatedFrontPortList. -type PaginatedFrontPortList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]FrontPort `json:"results,omitempty"` -} - -// PaginatedFrontPortTemplateList defines model for PaginatedFrontPortTemplateList. -type PaginatedFrontPortTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]FrontPortTemplate `json:"results,omitempty"` -} - -// PaginatedGitRepositoryList defines model for PaginatedGitRepositoryList. -type PaginatedGitRepositoryList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]GitRepository `json:"results,omitempty"` -} - -// PaginatedGoldenConfigList defines model for PaginatedGoldenConfigList. -type PaginatedGoldenConfigList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]GoldenConfig `json:"results,omitempty"` -} - -// PaginatedGoldenConfigSettingList defines model for PaginatedGoldenConfigSettingList. -type PaginatedGoldenConfigSettingList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]GoldenConfigSetting `json:"results,omitempty"` -} - -// PaginatedGraphQLQueryList defines model for PaginatedGraphQLQueryList. -type PaginatedGraphQLQueryList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]GraphQLQuery `json:"results,omitempty"` -} - -// PaginatedGroupList defines model for PaginatedGroupList. -type PaginatedGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Group `json:"results,omitempty"` -} - -// PaginatedHardwareLCMList defines model for PaginatedHardwareLCMList. -type PaginatedHardwareLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]HardwareLCM `json:"results,omitempty"` -} - -// PaginatedIPAddressList defines model for PaginatedIPAddressList. -type PaginatedIPAddressList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]IPAddress `json:"results,omitempty"` -} - -// PaginatedIPRangeList defines model for PaginatedIPRangeList. -type PaginatedIPRangeList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]IPRange `json:"results,omitempty"` -} - -// PaginatedImageAttachmentList defines model for PaginatedImageAttachmentList. -type PaginatedImageAttachmentList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ImageAttachment `json:"results,omitempty"` -} - -// PaginatedInterfaceConnectionList defines model for PaginatedInterfaceConnectionList. -type PaginatedInterfaceConnectionList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]InterfaceConnection `json:"results,omitempty"` -} - -// PaginatedInterfaceSerializerVersion12List defines model for PaginatedInterfaceSerializerVersion12List. -type PaginatedInterfaceSerializerVersion12List struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]InterfaceSerializerVersion12 `json:"results,omitempty"` -} - -// PaginatedInterfaceTemplateList defines model for PaginatedInterfaceTemplateList. -type PaginatedInterfaceTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]InterfaceTemplate `json:"results,omitempty"` -} - -// PaginatedInventoryItemList defines model for PaginatedInventoryItemList. -type PaginatedInventoryItemList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]InventoryItem `json:"results,omitempty"` -} - -// PaginatedJobHookList defines model for PaginatedJobHookList. -type PaginatedJobHookList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]JobHook `json:"results,omitempty"` -} - -// PaginatedJobList defines model for PaginatedJobList. -type PaginatedJobList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Job `json:"results,omitempty"` -} - -// PaginatedJobLogEntryList defines model for PaginatedJobLogEntryList. -type PaginatedJobLogEntryList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]JobLogEntry `json:"results,omitempty"` -} - -// PaginatedJobResultList defines model for PaginatedJobResultList. -type PaginatedJobResultList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]JobResult `json:"results,omitempty"` -} - -// PaginatedJobVariableList defines model for PaginatedJobVariableList. -type PaginatedJobVariableList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]JobVariable `json:"results,omitempty"` -} - -// PaginatedLocationList defines model for PaginatedLocationList. -type PaginatedLocationList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Location `json:"results,omitempty"` -} - -// PaginatedLocationTypeList defines model for PaginatedLocationTypeList. -type PaginatedLocationTypeList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]LocationType `json:"results,omitempty"` -} - -// PaginatedManufacturerList defines model for PaginatedManufacturerList. -type PaginatedManufacturerList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Manufacturer `json:"results,omitempty"` -} - -// PaginatedMinMaxValidationRuleList defines model for PaginatedMinMaxValidationRuleList. -type PaginatedMinMaxValidationRuleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]MinMaxValidationRule `json:"results,omitempty"` -} - -// PaginatedNATPolicyList defines model for PaginatedNATPolicyList. -type PaginatedNATPolicyList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]NATPolicy `json:"results,omitempty"` -} - -// PaginatedNATPolicyRuleList defines model for PaginatedNATPolicyRuleList. -type PaginatedNATPolicyRuleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]NATPolicyRule `json:"results,omitempty"` -} - -// PaginatedNoteList defines model for PaginatedNoteList. -type PaginatedNoteList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Note `json:"results,omitempty"` -} - -// PaginatedNotificationSourceList defines model for PaginatedNotificationSourceList. -type PaginatedNotificationSourceList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]NotificationSource `json:"results,omitempty"` -} - -// PaginatedObjectChangeList defines model for PaginatedObjectChangeList. -type PaginatedObjectChangeList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ObjectChange `json:"results,omitempty"` -} - -// PaginatedObjectPermissionList defines model for PaginatedObjectPermissionList. -type PaginatedObjectPermissionList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ObjectPermission `json:"results,omitempty"` -} - -// PaginatedOnboardingTaskList defines model for PaginatedOnboardingTaskList. -type PaginatedOnboardingTaskList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]OnboardingTask `json:"results,omitempty"` -} - -// PaginatedPeerEndpointList defines model for PaginatedPeerEndpointList. -type PaginatedPeerEndpointList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PeerEndpoint `json:"results,omitempty"` -} - -// PaginatedPeerGroupList defines model for PaginatedPeerGroupList. -type PaginatedPeerGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PeerGroup `json:"results,omitempty"` -} - -// PaginatedPeerGroupTemplateList defines model for PaginatedPeerGroupTemplateList. -type PaginatedPeerGroupTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PeerGroupTemplate `json:"results,omitempty"` -} - -// PaginatedPeeringList defines model for PaginatedPeeringList. -type PaginatedPeeringList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Peering `json:"results,omitempty"` -} - -// PaginatedPeeringRoleList defines model for PaginatedPeeringRoleList. -type PaginatedPeeringRoleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PeeringRole `json:"results,omitempty"` -} - -// PaginatedPlatformList defines model for PaginatedPlatformList. -type PaginatedPlatformList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Platform `json:"results,omitempty"` -} - -// PaginatedPolicyList defines model for PaginatedPolicyList. -type PaginatedPolicyList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Policy `json:"results,omitempty"` -} - -// PaginatedPolicyRuleList defines model for PaginatedPolicyRuleList. -type PaginatedPolicyRuleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PolicyRule `json:"results,omitempty"` -} - -// PaginatedPowerFeedList defines model for PaginatedPowerFeedList. -type PaginatedPowerFeedList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PowerFeed `json:"results,omitempty"` -} - -// PaginatedPowerOutletList defines model for PaginatedPowerOutletList. -type PaginatedPowerOutletList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PowerOutlet `json:"results,omitempty"` -} - -// PaginatedPowerOutletTemplateList defines model for PaginatedPowerOutletTemplateList. -type PaginatedPowerOutletTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PowerOutletTemplate `json:"results,omitempty"` -} - -// PaginatedPowerPanelList defines model for PaginatedPowerPanelList. -type PaginatedPowerPanelList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PowerPanel `json:"results,omitempty"` -} - -// PaginatedPowerPortList defines model for PaginatedPowerPortList. -type PaginatedPowerPortList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PowerPort `json:"results,omitempty"` -} - -// PaginatedPowerPortTemplateList defines model for PaginatedPowerPortTemplateList. -type PaginatedPowerPortTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]PowerPortTemplate `json:"results,omitempty"` -} - -// PaginatedPrefixList defines model for PaginatedPrefixList. -type PaginatedPrefixList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Prefix `json:"results,omitempty"` -} - -// PaginatedProviderLCMList defines model for PaginatedProviderLCMList. -type PaginatedProviderLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ProviderLCM `json:"results,omitempty"` -} - -// PaginatedProviderList defines model for PaginatedProviderList. -type PaginatedProviderList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Provider `json:"results,omitempty"` -} - -// PaginatedProviderNetworkList defines model for PaginatedProviderNetworkList. -type PaginatedProviderNetworkList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ProviderNetwork `json:"results,omitempty"` -} - -// PaginatedRIRList defines model for PaginatedRIRList. -type PaginatedRIRList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RIR `json:"results,omitempty"` -} - -// PaginatedRackGroupList defines model for PaginatedRackGroupList. -type PaginatedRackGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RackGroup `json:"results,omitempty"` -} - -// PaginatedRackList defines model for PaginatedRackList. -type PaginatedRackList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Rack `json:"results,omitempty"` -} - -// PaginatedRackReservationList defines model for PaginatedRackReservationList. -type PaginatedRackReservationList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RackReservation `json:"results,omitempty"` -} - -// PaginatedRackRoleList defines model for PaginatedRackRoleList. -type PaginatedRackRoleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RackRole `json:"results,omitempty"` -} - -// PaginatedRackUnitList defines model for PaginatedRackUnitList. -type PaginatedRackUnitList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RackUnit `json:"results,omitempty"` -} - -// PaginatedRearPortList defines model for PaginatedRearPortList. -type PaginatedRearPortList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RearPort `json:"results,omitempty"` -} - -// PaginatedRearPortTemplateList defines model for PaginatedRearPortTemplateList. -type PaginatedRearPortTemplateList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RearPortTemplate `json:"results,omitempty"` -} - -// PaginatedRegionList defines model for PaginatedRegionList. -type PaginatedRegionList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Region `json:"results,omitempty"` -} - -// PaginatedRegularExpressionValidationRuleList defines model for PaginatedRegularExpressionValidationRuleList. -type PaginatedRegularExpressionValidationRuleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RegularExpressionValidationRule `json:"results,omitempty"` -} - -// PaginatedRelationshipAssociationList defines model for PaginatedRelationshipAssociationList. -type PaginatedRelationshipAssociationList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RelationshipAssociation `json:"results,omitempty"` -} - -// PaginatedRelationshipList defines model for PaginatedRelationshipList. -type PaginatedRelationshipList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Relationship `json:"results,omitempty"` -} - -// PaginatedRoleList defines model for PaginatedRoleList. -type PaginatedRoleList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Role `json:"results,omitempty"` -} - -// PaginatedRouteTargetList defines model for PaginatedRouteTargetList. -type PaginatedRouteTargetList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]RouteTarget `json:"results,omitempty"` -} - -// PaginatedScheduledJobList defines model for PaginatedScheduledJobList. -type PaginatedScheduledJobList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ScheduledJob `json:"results,omitempty"` -} - -// PaginatedSecretList defines model for PaginatedSecretList. -type PaginatedSecretList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Secret `json:"results,omitempty"` -} - -// PaginatedSecretsGroupAssociationList defines model for PaginatedSecretsGroupAssociationList. -type PaginatedSecretsGroupAssociationList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]SecretsGroupAssociation `json:"results,omitempty"` -} - -// PaginatedSecretsGroupList defines model for PaginatedSecretsGroupList. -type PaginatedSecretsGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]SecretsGroup `json:"results,omitempty"` -} - -// PaginatedServiceList defines model for PaginatedServiceList. -type PaginatedServiceList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Service `json:"results,omitempty"` -} - -// PaginatedServiceObjectGroupList defines model for PaginatedServiceObjectGroupList. -type PaginatedServiceObjectGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ServiceObjectGroup `json:"results,omitempty"` -} - -// PaginatedServiceObjectList defines model for PaginatedServiceObjectList. -type PaginatedServiceObjectList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ServiceObject `json:"results,omitempty"` -} - -// PaginatedSiteList defines model for PaginatedSiteList. -type PaginatedSiteList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Site `json:"results,omitempty"` -} - -// PaginatedSoftwareImageLCMList defines model for PaginatedSoftwareImageLCMList. -type PaginatedSoftwareImageLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]SoftwareImageLCM `json:"results,omitempty"` -} - -// PaginatedSoftwareLCMList defines model for PaginatedSoftwareLCMList. -type PaginatedSoftwareLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]SoftwareLCM `json:"results,omitempty"` -} - -// PaginatedStatusList defines model for PaginatedStatusList. -type PaginatedStatusList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Status `json:"results,omitempty"` -} - -// PaginatedTagSerializerVersion13List defines model for PaginatedTagSerializerVersion13List. -type PaginatedTagSerializerVersion13List struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]TagSerializerVersion13 `json:"results,omitempty"` -} - -// PaginatedTenantGroupList defines model for PaginatedTenantGroupList. -type PaginatedTenantGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]TenantGroup `json:"results,omitempty"` -} - -// PaginatedTenantList defines model for PaginatedTenantList. -type PaginatedTenantList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Tenant `json:"results,omitempty"` -} - -// PaginatedTokenList defines model for PaginatedTokenList. -type PaginatedTokenList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Token `json:"results,omitempty"` -} - -// PaginatedUserList defines model for PaginatedUserList. -type PaginatedUserList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]User `json:"results,omitempty"` -} - -// PaginatedUserObjectGroupList defines model for PaginatedUserObjectGroupList. -type PaginatedUserObjectGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]UserObjectGroup `json:"results,omitempty"` -} - -// PaginatedUserObjectList defines model for PaginatedUserObjectList. -type PaginatedUserObjectList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]UserObject `json:"results,omitempty"` -} - -// PaginatedVLANGroupList defines model for PaginatedVLANGroupList. -type PaginatedVLANGroupList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]VLANGroup `json:"results,omitempty"` -} - -// PaginatedVLANList defines model for PaginatedVLANList. -type PaginatedVLANList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]VLAN `json:"results,omitempty"` -} - -// PaginatedVMInterfaceSerializerVersion12List defines model for PaginatedVMInterfaceSerializerVersion12List. -type PaginatedVMInterfaceSerializerVersion12List struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]VMInterfaceSerializerVersion12 `json:"results,omitempty"` -} - -// PaginatedVRFList defines model for PaginatedVRFList. -type PaginatedVRFList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]VRF `json:"results,omitempty"` -} - -// PaginatedValidatedSoftwareLCMList defines model for PaginatedValidatedSoftwareLCMList. -type PaginatedValidatedSoftwareLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]ValidatedSoftwareLCM `json:"results,omitempty"` -} - -// PaginatedVirtualChassisList defines model for PaginatedVirtualChassisList. -type PaginatedVirtualChassisList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]VirtualChassis `json:"results,omitempty"` -} - -// PaginatedVirtualMachineWithConfigContextList defines model for PaginatedVirtualMachineWithConfigContextList. -type PaginatedVirtualMachineWithConfigContextList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]VirtualMachineWithConfigContext `json:"results,omitempty"` -} - -// PaginatedVulnerabilityLCMList defines model for PaginatedVulnerabilityLCMList. -type PaginatedVulnerabilityLCMList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]VulnerabilityLCM `json:"results,omitempty"` -} - -// PaginatedWebhookList defines model for PaginatedWebhookList. -type PaginatedWebhookList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Webhook `json:"results,omitempty"` -} - -// PaginatedZoneList defines model for PaginatedZoneList. -type PaginatedZoneList struct { - Count *int `json:"count,omitempty"` - Next *string `json:"next"` - Previous *string `json:"previous"` - Results *[]Zone `json:"results,omitempty"` -} - -// PatchedAccessGrantRequest API serializer for interacting with AccessGrant objects. -type PatchedAccessGrantRequest struct { - // Command Enter * to grant access to all commands - Command *string `json:"command,omitempty"` - GrantType *GrantTypeEnum `json:"grant_type,omitempty"` - - // Name Organization name, channel name, or user name - Name *string `json:"name,omitempty"` - - // Subcommand Enter * to grant access to all subcommands of the given command - Subcommand *string `json:"subcommand,omitempty"` - - // Value Corresponding ID value to grant access to.
Enter * to grant access to all organizations, channels, or users - Value *string `json:"value,omitempty"` -} - -// PatchedBulkWritableAccessGrantRequest API serializer for interacting with AccessGrant objects. -type PatchedBulkWritableAccessGrantRequest struct { - // Command Enter * to grant access to all commands - Command *string `json:"command,omitempty"` - GrantType *GrantTypeEnum `json:"grant_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Organization name, channel name, or user name - Name *string `json:"name,omitempty"` - - // Subcommand Enter * to grant access to all subcommands of the given command - Subcommand *string `json:"subcommand,omitempty"` - - // Value Corresponding ID value to grant access to.
Enter * to grant access to all organizations, channels, or users - Value *string `json:"value,omitempty"` -} - -// PatchedBulkWritableAddressFamilyRequest REST API serializer for AddressFamily records. -type PatchedBulkWritableAddressFamilyRequest struct { - AfiSafi *AfiSafiEnum `json:"afi_safi,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - Vrf *NestedVRFRequest `json:"vrf"` -} - -// PatchedBulkWritableAddressObjectGroupRequest AddressObjectGroup Serializer. -type PatchedBulkWritableAddressObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Name descriptor for a group address objects. - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableAddressObjectGroupRequest.AddressObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableAddressObjectGroupRequest.AddressObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableAddressObjectGroupRequest.AddressObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatus defines model for PatchedBulkWritableAddressObjectGroupRequest.AddressObjects.Status. -type PatchedBulkWritableAddressObjectGroupRequestAddressObjectsStatus string - -// PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableAddressObjectGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableAddressObjectGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableAddressObjectGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectRequest AddressObject Serializer. -type PatchedBulkWritableAddressObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name *string `json:"name,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableAddressObjectRequest.relationships.destination.objects.Item. -type PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableAddressObjectRequest.relationships.peer.objects.Item. -type PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableAddressObjectRequest.relationships.source.objects.Item. -type PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAggregateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableAggregateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DateAdded *openapi_types.Date `json:"date_added"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Prefix *string `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Rir Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Rir *NestedRIRRequest `json:"rir,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableAggregateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableAggregateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableAggregateRequest.relationships.source.objects.Item. -type PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableAutonomousSystemRequest REST API serializer for AutonomousSystem records. -type PatchedBulkWritableAutonomousSystemRequest struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Provider *NestedProviderRequest `json:"provider"` - Status *Status2a0Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableBGPRoutingInstanceRequest REST API serializer for Peering records. -type PatchedBulkWritableBGPRoutingInstanceRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - RouterId *NestedIPAddressRequest `json:"router_id"` -} - -// PatchedBulkWritableCVELCMRequest REST API serializer for CVELCM records. -type PatchedBulkWritableCVELCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Cvss *float64 `json:"cvss"` - CvssV2 *float64 `json:"cvss_v2"` - CvssV3 *float64 `json:"cvss_v3"` - Description *string `json:"description"` - Fix *string `json:"fix"` - Id openapi_types.UUID `json:"id"` - Link *string `json:"link,omitempty"` - Name *string `json:"name,omitempty"` - PublishedDate *openapi_types.Date `json:"published_date,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Severity *SeverityEnum `json:"severity,omitempty"` - Status *Status4f5Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableCVELCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableCVELCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableCVELCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCableRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableCableRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Label *string `json:"label,omitempty"` - Length *int `json:"length"` - LengthUnit *LengthUnitEnum `json:"length_unit,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *CableStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - TerminationAId *openapi_types.UUID `json:"termination_a_id,omitempty"` - TerminationAType *string `json:"termination_a_type,omitempty"` - TerminationBId *openapi_types.UUID `json:"termination_b_id,omitempty"` - TerminationBType *string `json:"termination_b_type,omitempty"` - Type *PatchedBulkWritableCableRequest_Type `json:"type,omitempty"` -} - -// PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableCableRequest.relationships.destination.objects.Item. -type PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableCableRequest.relationships.peer.objects.Item. -type PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableCableRequest.relationships.source.objects.Item. -type PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCableRequest_Type defines model for PatchedBulkWritableCableRequest.Type. -type PatchedBulkWritableCableRequest_Type struct { - union json.RawMessage -} - -// PatchedBulkWritableCapircaPolicyRequest CapircaPolicy Serializer. -type PatchedBulkWritableCapircaPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Cfg *string `json:"cfg"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Device *openapi_types.UUID `json:"device"` - Id openapi_types.UUID `json:"id"` - Net *string `json:"net"` - Pol *string `json:"pol"` - Svc *string `json:"svc"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest Serializer for API. -type PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest struct { - Circuit *openapi_types.UUID `json:"circuit,omitempty"` - Id openapi_types.UUID `json:"id"` - Impact *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact `json:"impact"` - Maintenance *openapi_types.UUID `json:"maintenance,omitempty"` -} - -// PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact defines model for PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest.Impact. -type PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact struct { - union json.RawMessage -} - -// PatchedBulkWritableCircuitMaintenanceRequest Serializer for API. -type PatchedBulkWritableCircuitMaintenanceRequest struct { - Ack *bool `json:"ack"` - Description *string `json:"description"` - EndTime *time.Time `json:"end_time,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - StartTime *time.Time `json:"start_time,omitempty"` - Status *PatchedBulkWritableCircuitMaintenanceRequest_Status `json:"status"` -} - -// PatchedBulkWritableCircuitMaintenanceRequest_Status defines model for PatchedBulkWritableCircuitMaintenanceRequest.Status. -type PatchedBulkWritableCircuitMaintenanceRequest_Status struct { - union json.RawMessage -} - -// PatchedBulkWritableCircuitRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableCircuitRequest struct { - Cid *string `json:"cid,omitempty"` - Comments *string `json:"comments,omitempty"` - CommitRate *int `json:"commit_rate"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - InstallDate *openapi_types.Date `json:"install_date"` - - // Provider Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Provider *NestedProviderRequest `json:"provider,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *CircuitStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - - // Type Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Type *NestedCircuitTypeRequest `json:"type,omitempty"` -} - -// PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableCircuitRequest.relationships.destination.objects.Item. -type PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableCircuitRequest.relationships.peer.objects.Item. -type PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableCircuitRequest.relationships.source.objects.Item. -type PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitTerminationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableCircuitTerminationRequest struct { - // Circuit Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Circuit *NestedCircuitRequest `json:"circuit,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - PortSpeed *int `json:"port_speed"` - PpInfo *string `json:"pp_info,omitempty"` - ProviderNetwork *NestedProviderNetworkRequest `json:"provider_network"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - TermSide *TermSideEnum `json:"term_side,omitempty"` - - // UpstreamSpeed Upstream speed, if different from port speed - UpstreamSpeed *int `json:"upstream_speed"` - XconnectId *string `json:"xconnect_id,omitempty"` -} - -// PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableCircuitTerminationRequest.relationships.destination.objects.Item. -type PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableCircuitTerminationRequest.relationships.peer.objects.Item. -type PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableCircuitTerminationRequest.relationships.source.objects.Item. -type PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableCircuitTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableCircuitTypeRequest.relationships.destination.objects.Item. -type PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableCircuitTypeRequest.relationships.peer.objects.Item. -type PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableCircuitTypeRequest.relationships.source.objects.Item. -type PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableClusterGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableClusterGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableClusterGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableClusterGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableClusterRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Group *NestedClusterGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - - // Type Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Type *NestedClusterTypeRequest `json:"type,omitempty"` -} - -// PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableClusterRequest.relationships.destination.objects.Item. -type PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableClusterRequest.relationships.peer.objects.Item. -type PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableClusterRequest.relationships.source.objects.Item. -type PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableClusterTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableClusterTypeRequest.relationships.destination.objects.Item. -type PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableClusterTypeRequest.relationships.peer.objects.Item. -type PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableClusterTypeRequest.relationships.source.objects.Item. -type PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCommandTokenRequest API serializer for interacting with CommandToken objects. -type PatchedBulkWritableCommandTokenRequest struct { - // Comment Optional: Enter description of token - Comment *string `json:"comment,omitempty"` - Id openapi_types.UUID `json:"id"` - Platform *PlatformEnum `json:"platform,omitempty"` - - // Token Token given by chat platform for signing or command validation - Token *string `json:"token,omitempty"` -} - -// PatchedBulkWritableComplianceFeatureRequest Serializer for ComplianceFeature object. -type PatchedBulkWritableComplianceFeatureRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableComplianceRuleRequest Serializer for ComplianceRule object. -type PatchedBulkWritableComplianceRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // ConfigOrdered Whether or not the configuration order matters, such as in ACLs. - ConfigOrdered *bool `json:"config_ordered,omitempty"` - - // ConfigType Whether the config is in cli or json/structured format. - ConfigType *ConfigTypeEnum `json:"config_type,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Feature *openapi_types.UUID `json:"feature,omitempty"` - Id openapi_types.UUID `json:"id"` - - // MatchConfig The config to match that is matched based on the parent most configuration. e.g. `router bgp` or `ntp`. - MatchConfig *string `json:"match_config"` - Platform *openapi_types.UUID `json:"platform,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableComputedFieldRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableComputedFieldRequest struct { - ContentType *string `json:"content_type,omitempty"` - Description *string `json:"description,omitempty"` - - // FallbackValue Fallback value (if any) to be output for the field in the case of a template rendering error. - FallbackValue *string `json:"fallback_value,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Name of the field as displayed to users - Label *string `json:"label,omitempty"` - - // Slug Internal field name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // Template Jinja2 template code for field value - Template *string `json:"template,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedBulkWritableConfigComplianceRequest Serializer for ConfigCompliance object. -type PatchedBulkWritableConfigComplianceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // Actual Actual Configuration for feature - Actual *map[string]interface{} `json:"actual,omitempty"` - Compliance *bool `json:"compliance"` - ComplianceInt *int `json:"compliance_int"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device The device - Device *openapi_types.UUID `json:"device,omitempty"` - - // Extra Configuration that should not be on the device. - Extra *map[string]interface{} `json:"extra,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Intended Intended Configuration for feature - Intended *map[string]interface{} `json:"intended,omitempty"` - - // Missing Configuration that should be on the device. - Missing *map[string]interface{} `json:"missing,omitempty"` - Ordered *bool `json:"ordered,omitempty"` - Rule *openapi_types.UUID `json:"rule,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableConfigContextRequest struct { - ClusterGroups *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"cluster_groups,omitempty"` - Clusters *[]struct { - Name string `json:"name"` - } `json:"clusters,omitempty"` - Data *map[string]interface{} `json:"data,omitempty"` - Description *string `json:"description,omitempty"` - DeviceTypes *[]struct { - Model string `json:"model"` - Slug string `json:"slug"` - } `json:"device_types,omitempty"` - Id openapi_types.UUID `json:"id"` - IsActive *bool `json:"is_active,omitempty"` - Locations *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"locations,omitempty"` - Name *string `json:"name,omitempty"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Platforms *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"platforms,omitempty"` - Regions *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"regions,omitempty"` - Roles *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"roles,omitempty"` - Schema *NestedConfigContextSchemaRequest `json:"schema"` - Sites *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"sites,omitempty"` - Tags *[]string `json:"tags,omitempty"` - TenantGroups *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"tenant_groups,omitempty"` - Tenants *[]struct { - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - } `json:"tenants,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedBulkWritableConfigContextSchemaRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableConfigContextSchemaRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DataSchema A JSON Schema document which is used to validate a config context object. - DataSchema *map[string]interface{} `json:"data_schema,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableConfigContextSchemaRequest.relationships.destination.objects.Item. -type PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableConfigContextSchemaRequest.relationships.peer.objects.Item. -type PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableConfigContextSchemaRequest.relationships.source.objects.Item. -type PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConfigRemoveRequest Serializer for ConfigRemove object. -type PatchedBulkWritableConfigRemoveRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Platform *openapi_types.UUID `json:"platform,omitempty"` - - // Regex Regex pattern used to remove a line from the backup configuration. - Regex *string `json:"regex,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableConfigReplaceRequest Serializer for ConfigReplace object. -type PatchedBulkWritableConfigReplaceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Platform *openapi_types.UUID `json:"platform,omitempty"` - - // Regex Regex pattern that will be found and replaced with 'replaced text'. - Regex *string `json:"regex,omitempty"` - - // Replace Text that will be inserted in place of Regex pattern match. - Replace *string `json:"replace,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableConsolePortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableConsolePortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableConsolePortRequest.relationships.destination.objects.Item. -type PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableConsolePortRequest.relationships.peer.objects.Item. -type PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableConsolePortRequest.relationships.source.objects.Item. -type PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsolePortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableConsolePortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableConsolePortTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableConsolePortTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableConsolePortTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsoleServerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableConsoleServerPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableConsoleServerPortRequest.relationships.destination.objects.Item. -type PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableConsoleServerPortRequest.relationships.peer.objects.Item. -type PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableConsoleServerPortRequest.relationships.source.objects.Item. -type PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsoleServerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableConsoleServerPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *ConsolePortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableConsoleServerPortTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableConsoleServerPortTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableConsoleServerPortTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableContactLCMRequest API serializer. -type PatchedBulkWritableContactLCMRequest struct { - Address *string `json:"address,omitempty"` - Comments *string `json:"comments,omitempty"` - - // Contract Associated Contract - Contract *NestedContractLCMRequest `json:"contract,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name"` - Phone *string `json:"phone,omitempty"` - Priority *int `json:"priority,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableContactLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableContactLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableContactLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableContractLCMRequest API serializer. -type PatchedBulkWritableContractLCMRequest struct { - ContractType *string `json:"contract_type"` - Cost *string `json:"cost"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - End *openapi_types.Date `json:"end"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - - // Provider Vendor - Provider *NestedProviderLCMRequest `json:"provider,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Start *openapi_types.Date `json:"start"` - SupportLevel *string `json:"support_level"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableContractLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableContractLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableContractLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableCustomFieldChoiceRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableCustomFieldChoiceRequest struct { - // Field Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Field *NestedCustomFieldRequest `json:"field,omitempty"` - Id openapi_types.UUID `json:"id"` - Value *string `json:"value,omitempty"` - - // Weight Higher weights appear later in the list - Weight *int `json:"weight,omitempty"` -} - -// PatchedBulkWritableCustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableCustomLinkRequest struct { - // ButtonClass The class of the first link in a group will be used for the dropdown button - ButtonClass *ButtonClassEnum `json:"button_class,omitempty"` - ContentType *string `json:"content_type,omitempty"` - - // GroupName Links with the same group will appear as a dropdown menu - GroupName *string `json:"group_name,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - - // NewWindow Force link to open in a new window - NewWindow *bool `json:"new_window,omitempty"` - - // TargetUrl Jinja2 template code for link URL. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. - TargetUrl *string `json:"target_url,omitempty"` - - // Text Jinja2 template code for link text. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. Links which render as empty text will not be displayed. - Text *string `json:"text,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedBulkWritableDeviceBayRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableDeviceBayRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - InstalledDevice *NestedDeviceRequest `json:"installed_device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableDeviceBayRequest.relationships.destination.objects.Item. -type PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableDeviceBayRequest.relationships.peer.objects.Item. -type PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableDeviceBayRequest.relationships.source.objects.Item. -type PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceBayTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableDeviceBayTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` -} - -// PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableDeviceBayTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableDeviceBayTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableDeviceBayTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceRedundancyGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableDeviceRedundancyGroupRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - FailoverStrategy *FailoverStrategyEnum `json:"failover_strategy,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Status *LocationStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableDeviceRedundancyGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableDeviceRedundancyGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableDeviceRedundancyGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableDeviceRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // VmRole Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` -} - -// PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableDeviceRoleRequest.relationships.destination.objects.Item. -type PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableDeviceRoleRequest.relationships.peer.objects.Item. -type PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableDeviceRoleRequest.relationships.source.objects.Item. -type PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableDeviceTypeRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - FrontImage *openapi_types.File `json:"front_image,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsFullDepth Device consumes both front and rear rack faces - IsFullDepth *bool `json:"is_full_depth,omitempty"` - - // Manufacturer Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Manufacturer *NestedManufacturerRequest `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` - - // PartNumber Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - RearImage *openapi_types.File `json:"rear_image,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - SubdeviceRole *SubdeviceRoleEnum `json:"subdevice_role,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UHeight *int `json:"u_height,omitempty"` -} - -// PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableDeviceTypeRequest.relationships.destination.objects.Item. -type PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableDeviceTypeRequest.relationships.peer.objects.Item. -type PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableDeviceTypeRequest.relationships.source.objects.Item. -type PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableDeviceWithConfigContextRequest struct { - // AssetTag A unique tag used to identify this device - AssetTag *string `json:"asset_tag"` - Cluster *NestedClusterRequest `json:"cluster"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRedundancyGroup *NestedDeviceRedundancyGroupRequest `json:"device_redundancy_group"` - - // DeviceRedundancyGroupPriority The priority the device has in the device redundancy group. - DeviceRedundancyGroupPriority *int `json:"device_redundancy_group_priority"` - - // DeviceRole Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceRole *NestedDeviceRoleRequest `json:"device_role,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Face *FaceEnum `json:"face,omitempty"` - Id openapi_types.UUID `json:"id"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchemaRequest `json:"local_context_schema"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name"` - Platform *NestedPlatformRequest `json:"platform"` - - // Position The lowest-numbered unit occupied by the device - Position *int `json:"position"` - PrimaryIp4 *NestedIPAddressRequest `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddressRequest `json:"primary_ip6"` - Rack *NestedRackRequest `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *NestedSecretsGroupRequest `json:"secrets_group"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site *NestedSiteRequest `json:"site,omitempty"` - Status *DeviceStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - VcPosition *int `json:"vc_position"` - VcPriority *int `json:"vc_priority"` - VirtualChassis *NestedVirtualChassisRequest `json:"virtual_chassis"` -} - -// PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableDeviceWithConfigContextRequest.relationships.destination.objects.Item. -type PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableDeviceWithConfigContextRequest.relationships.peer.objects.Item. -type PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableDeviceWithConfigContextRequest.relationships.source.objects.Item. -type PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDynamicGroupMembershipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableDynamicGroupMembershipRequest struct { - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group *NestedDynamicGroupRequest `json:"group,omitempty"` - Id openapi_types.UUID `json:"id"` - Operator *OperatorEnum `json:"operator,omitempty"` - - // ParentGroup Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - ParentGroup *NestedDynamicGroupRequest `json:"parent_group,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedBulkWritableDynamicGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableDynamicGroupRequest struct { - ContentType *string `json:"content_type,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Filter A JSON-encoded dictionary of filter parameters for group membership - Filter *map[string]interface{} `json:"filter,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Dynamic Group name - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Slug Unique slug - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableDynamicGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableDynamicGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableDynamicGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableExportTemplateRequest Extend ValidatedModelSerializer with a `relationships` field. -type PatchedBulkWritableExportTemplateRequest struct { - ContentType *string `json:"content_type,omitempty"` - Description *string `json:"description,omitempty"` - - // FileExtension Extension to append to the rendered filename - FileExtension *string `json:"file_extension,omitempty"` - Id openapi_types.UUID `json:"id"` - - // MimeType Defaults to text/plain - MimeType *string `json:"mime_type,omitempty"` - Name *string `json:"name,omitempty"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TemplateCode The list of objects being exported is passed as a context variable named queryset. - TemplateCode *string `json:"template_code,omitempty"` -} - -// PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableExportTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableExportTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableExportTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFQDNRequest FQDN Serializer. -type PatchedBulkWritableFQDNRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - IpAddresses *[]struct { - Address string `json:"address"` - } `json:"ip_addresses,omitempty"` - - // Name Resolvable fully qualified domain name (e.g. networktocode.com) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableFQDNRequest.relationships.destination.objects.Item. -type PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableFQDNRequest.relationships.peer.objects.Item. -type PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableFQDNRequest.relationships.source.objects.Item. -type PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFrontPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableFrontPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - - // RearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) - RearPort *FrontPortRearPortRequest `json:"rear_port,omitempty"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableFrontPortRequest.relationships.destination.objects.Item. -type PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableFrontPortRequest.relationships.peer.objects.Item. -type PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableFrontPortRequest.relationships.source.objects.Item. -type PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFrontPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableFrontPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - - // RearPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - RearPort *NestedRearPortTemplateRequest `json:"rear_port,omitempty"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableFrontPortTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableFrontPortTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableFrontPortTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableGitRepositoryRequest Git repositories defined as a data source. -type PatchedBulkWritableGitRepositoryRequest struct { - Branch *string `json:"branch,omitempty"` - - // CurrentHead Commit hash of the most recent fetch from the selected branch. Used for syncing between workers. - CurrentHead *string `json:"current_head,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - ProvidedContents *[]PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item `json:"provided_contents,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // RemoteUrl Only HTTP and HTTPS URLs are presently supported - RemoteUrl *string `json:"remote_url,omitempty"` - SecretsGroup *NestedSecretsGroupRequest `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Token *string `json:"token,omitempty"` - Username *string `json:"username,omitempty"` -} - -// PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item defines model for PatchedBulkWritableGitRepositoryRequest.provided_contents.Item. -type PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item struct { - union json.RawMessage -} - -// PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableGitRepositoryRequest.relationships.destination.objects.Item. -type PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableGitRepositoryRequest.relationships.peer.objects.Item. -type PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableGitRepositoryRequest.relationships.source.objects.Item. -type PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableGoldenConfigRequest Serializer for GoldenConfig object. -type PatchedBulkWritableGoldenConfigRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupConfig Full backup config for device. - BackupConfig *string `json:"backup_config,omitempty"` - BackupLastAttemptDate *time.Time `json:"backup_last_attempt_date"` - BackupLastSuccessDate *time.Time `json:"backup_last_success_date"` - - // ComplianceConfig Full config diff for device. - ComplianceConfig *string `json:"compliance_config,omitempty"` - ComplianceLastAttemptDate *time.Time `json:"compliance_last_attempt_date"` - ComplianceLastSuccessDate *time.Time `json:"compliance_last_success_date"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device device - Device *openapi_types.UUID `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IntendedConfig Intended config for the device. - IntendedConfig *string `json:"intended_config,omitempty"` - IntendedLastAttemptDate *time.Time `json:"intended_last_attempt_date"` - IntendedLastSuccessDate *time.Time `json:"intended_last_success_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableGoldenConfigSettingRequest Serializer for GoldenConfigSetting object. -type PatchedBulkWritableGoldenConfigSettingRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupPathTemplate The Jinja path representation of where the backup file will be found. The variable `obj` is available as the device instance object of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - BackupPathTemplate *string `json:"backup_path_template,omitempty"` - BackupRepository *openapi_types.UUID `json:"backup_repository"` - - // BackupTestConnectivity Whether or not to pretest the connectivity of the device by verifying there is a resolvable IP that can connect to port 22. - BackupTestConnectivity *bool `json:"backup_test_connectivity,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DynamicGroup Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DynamicGroup *NestedDynamicGroupRequest `json:"dynamic_group,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IntendedPathTemplate The Jinja path representation of where the generated file will be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - IntendedPathTemplate *string `json:"intended_path_template,omitempty"` - IntendedRepository *openapi_types.UUID `json:"intended_repository"` - - // JinjaPathTemplate The Jinja path representation of where the Jinja template can be found. e.g. `{{obj.platform.slug}}.j2` - JinjaPathTemplate *string `json:"jinja_path_template,omitempty"` - JinjaRepository *openapi_types.UUID `json:"jinja_repository"` - Name *string `json:"name,omitempty"` - Scope *map[string]interface{} `json:"scope,omitempty"` - Slug *string `json:"slug,omitempty"` - SotAggQuery *openapi_types.UUID `json:"sot_agg_query"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedBulkWritableGraphQLQueryRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableGraphQLQueryRequest struct { - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Query *string `json:"query,omitempty"` - Slug *string `json:"slug,omitempty"` - Variables *map[string]interface{} `json:"variables"` -} - -// PatchedBulkWritableGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableGroupRequest struct { - Id int `json:"id"` - Name *string `json:"name,omitempty"` -} - -// PatchedBulkWritableHardwareLCMRequest API serializer. -type PatchedBulkWritableHardwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DeviceType Device Type to attach the Hardware LCM to - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSale *openapi_types.Date `json:"end_of_sale"` - EndOfSecurityPatches *openapi_types.Date `json:"end_of_security_patches"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - EndOfSwReleases *openapi_types.Date `json:"end_of_sw_releases"` - Id openapi_types.UUID `json:"id"` - InventoryItem *string `json:"inventory_item"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableHardwareLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableHardwareLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableHardwareLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableIPAddressRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableIPAddressRequest struct { - Address *string `json:"address,omitempty"` - AssignedObjectId *openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType *string `json:"assigned_object_type"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DnsName Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Id openapi_types.UUID `json:"id"` - NatInside *NestedIPAddressRequest `json:"nat_inside"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *RoleEnum `json:"role,omitempty"` - Status *IPAddressStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vrf *NestedVRFRequest `json:"vrf"` -} - -// PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableIPAddressRequest.relationships.destination.objects.Item. -type PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableIPAddressRequest.relationships.peer.objects.Item. -type PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableIPAddressRequest.relationships.source.objects.Item. -type PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableIPRangeRequest IPRange Serializer. -type PatchedBulkWritableIPRangeRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - EndAddress *string `json:"end_address,omitempty"` - Id openapi_types.UUID `json:"id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - StartAddress *string `json:"start_address,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableIPRangeRequest.relationships.destination.objects.Item. -type PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableIPRangeRequest.relationships.peer.objects.Item. -type PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableIPRangeRequest.relationships.source.objects.Item. -type PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableImageAttachmentRequest struct { - ContentType *string `json:"content_type,omitempty"` - Id openapi_types.UUID `json:"id"` - Image *openapi_types.File `json:"image,omitempty"` - ImageHeight *int `json:"image_height,omitempty"` - ImageWidth *int `json:"image_width,omitempty"` - Name *string `json:"name,omitempty"` - ObjectId *openapi_types.UUID `json:"object_id,omitempty"` -} - -// PatchedBulkWritableInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableInterfaceRequest struct { - Bridge *NestedInterfaceRequest `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Lag *NestedInterfaceRequest `json:"lag"` - MacAddress *string `json:"mac_address"` - - // MgmtOnly This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Mode *ModeEnum `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name *string `json:"name,omitempty"` - ParentInterface *NestedInterfaceRequest `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *InterfaceStatusChoices `json:"status,omitempty"` - TaggedVlans *[]struct { - Name string `json:"name"` - Vid int `json:"vid"` - } `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *InterfaceTypeChoices `json:"type,omitempty"` - UntaggedVlan *NestedVLANRequest `json:"untagged_vlan"` -} - -// PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableInterfaceRequest.relationships.destination.objects.Item. -type PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableInterfaceRequest.relationships.peer.objects.Item. -type PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableInterfaceRequest.relationships.source.objects.Item. -type PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInterfaceTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableInterfaceTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *InterfaceTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableInterfaceTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableInterfaceTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableInterfaceTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInventoryItemRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableInventoryItemRequest struct { - // AssetTag A unique tag used to identify this item - AssetTag *string `json:"asset_tag"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - - // Discovered This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Manufacturer *NestedManufacturerRequest `json:"manufacturer"` - Name *string `json:"name,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - - // PartId Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Serial *string `json:"serial,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableInventoryItemRequest.relationships.destination.objects.Item. -type PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableInventoryItemRequest.relationships.peer.objects.Item. -type PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableInventoryItemRequest.relationships.source.objects.Item. -type PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableJobHookRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableJobHookRequest struct { - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Job The job that this job hook will initiate - Job *openapi_types.UUID `json:"job,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TypeCreate Call this job hook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this job hook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this job hook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableJobHookRequest.relationships.destination.objects.Item. -type PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableJobHookRequest.relationships.peer.objects.Item. -type PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableJobHookRequest.relationships.source.objects.Item. -type PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableJobRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableJobRequest struct { - // ApprovalRequired Whether the job requires approval from another user before running - ApprovalRequired *bool `json:"approval_required,omitempty"` - - // ApprovalRequiredOverride If set, the configured value will remain even if the underlying Job source code changes - ApprovalRequiredOverride *bool `json:"approval_required_override,omitempty"` - - // CommitDefault Whether the job defaults to committing changes when run, or defaults to a dry-run - CommitDefault *bool `json:"commit_default,omitempty"` - - // CommitDefaultOverride If set, the configured value will remain even if the underlying Job source code changes - CommitDefaultOverride *bool `json:"commit_default_override,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Description Markdown formatting is supported - Description *string `json:"description,omitempty"` - - // DescriptionOverride If set, the configured description will remain even if the underlying Job source code changes - DescriptionOverride *bool `json:"description_override,omitempty"` - - // Enabled Whether this job can be executed by users - Enabled *bool `json:"enabled,omitempty"` - - // Grouping Human-readable grouping that this job belongs to - Grouping *string `json:"grouping,omitempty"` - - // GroupingOverride If set, the configured grouping will remain even if the underlying Job source code changes - GroupingOverride *bool `json:"grouping_override,omitempty"` - - // HasSensitiveVariables Whether this job contains sensitive variables - HasSensitiveVariables *bool `json:"has_sensitive_variables,omitempty"` - - // HasSensitiveVariablesOverride If set, the configured value will remain even if the underlying Job source code changes - HasSensitiveVariablesOverride *bool `json:"has_sensitive_variables_override,omitempty"` - - // Hidden Whether the job defaults to not being shown in the UI - Hidden *bool `json:"hidden,omitempty"` - - // HiddenOverride If set, the configured value will remain even if the underlying Job source code changes - HiddenOverride *bool `json:"hidden_override,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Human-readable name of this job - Name *string `json:"name,omitempty"` - - // NameOverride If set, the configured name will remain even if the underlying Job source code changes - NameOverride *bool `json:"name_override,omitempty"` - - // ReadOnly Whether the job is prevented from making lasting changes to the database - ReadOnly *bool `json:"read_only,omitempty"` - - // ReadOnlyOverride If set, the configured value will remain even if the underlying Job source code changes - ReadOnlyOverride *bool `json:"read_only_override,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // SoftTimeLimit Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded exception.
Set to 0 to use Nautobot system default - SoftTimeLimit *float64 `json:"soft_time_limit,omitempty"` - - // SoftTimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - SoftTimeLimitOverride *bool `json:"soft_time_limit_override,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // TaskQueues Comma separated list of task queues that this job can run on. A blank list will use the default queue - TaskQueues *map[string]interface{} `json:"task_queues,omitempty"` - - // TaskQueuesOverride If set, the configured value will remain even if the underlying Job source code changes - TaskQueuesOverride *bool `json:"task_queues_override,omitempty"` - - // TimeLimit Maximum runtime in seconds before the job will be forcibly terminated.
Set to 0 to use Nautobot system default - TimeLimit *float64 `json:"time_limit,omitempty"` - - // TimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - TimeLimitOverride *bool `json:"time_limit_override,omitempty"` -} - -// PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableJobRequest.relationships.destination.objects.Item. -type PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableJobRequest.relationships.peer.objects.Item. -type PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableJobRequest.relationships.source.objects.Item. -type PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableLocationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableLocationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // LocationType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - LocationType *NestedLocationTypeRequest `json:"location_type,omitempty"` - Name *string `json:"name,omitempty"` - Parent *NestedLocationRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - Slug *string `json:"slug,omitempty"` - Status *LocationStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableLocationRequest.relationships.destination.objects.Item. -type PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableLocationRequest.relationships.peer.objects.Item. -type PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableLocationRequest.relationships.source.objects.Item. -type PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableLocationTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableLocationTypeRequest struct { - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - - // Nestable Allow Locations of this type to be parents/children of other Locations of this same type - Nestable *bool `json:"nestable,omitempty"` - Parent *NestedLocationTypeRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableLocationTypeRequest.relationships.destination.objects.Item. -type PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableLocationTypeRequest.relationships.peer.objects.Item. -type PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableLocationTypeRequest.relationships.source.objects.Item. -type PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableManufacturerRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableManufacturerRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableManufacturerRequest.relationships.destination.objects.Item. -type PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableManufacturerRequest.relationships.peer.objects.Item. -type PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableManufacturerRequest.relationships.source.objects.Item. -type PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableMinMaxValidationRuleRequest Serializer for `MinMaxValidationRule` objects. -type PatchedBulkWritableMinMaxValidationRuleRequest struct { - ContentType *string `json:"content_type,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field *string `json:"field,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Max When set, apply a maximum value contraint to the value of the model field. - Max *float64 `json:"max"` - - // Min When set, apply a minimum value contraint to the value of the model field. - Min *float64 `json:"min"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableNATPolicyRequest NATPolicy Serializer. -type PatchedBulkWritableNATPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]NATPolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]NATPolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRequest.relationships.destination.objects.Item. -type PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRequest.relationships.peer.objects.Item. -type PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRequest.relationships.source.objects.Item. -type PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest PolicyRule Serializer. -type PatchedBulkWritableNATPolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Id openapi_types.UUID `json:"id"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name *string `json:"name,omitempty"` - OriginalDestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_address_groups,omitempty"` - OriginalDestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_addresses,omitempty"` - OriginalDestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_service_groups,omitempty"` - OriginalDestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_destination_services,omitempty"` - OriginalSourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_address_groups,omitempty"` - OriginalSourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_addresses,omitempty"` - OriginalSourceServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_service_groups,omitempty"` - OriginalSourceServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"original_source_services,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Remark *bool `json:"remark,omitempty"` - RequestId *string `json:"request_id"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - TranslatedDestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_address_groups,omitempty"` - TranslatedDestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_addresses,omitempty"` - TranslatedDestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_service_groups,omitempty"` - TranslatedDestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_destination_services,omitempty"` - TranslatedSourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_address_groups,omitempty"` - TranslatedSourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_addresses,omitempty"` - TranslatedSourceServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_service_groups,omitempty"` - TranslatedSourceServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"translated_source_services,omitempty"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.AddressObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsAddressObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddressGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationAddresses.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationAddressesStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.ServiceObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsServiceObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServiceGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServiceGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalDestinationServices.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalDestinationServicesStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.AddressObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsAddressObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddressGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceAddresses.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceAddressesStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.ServiceObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsServiceObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServiceGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServiceGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServices.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServices.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServices.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.OriginalSourceServices.Status. -type PatchedBulkWritableNATPolicyRuleRequestOriginalSourceServicesStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.relationships.destination.objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.relationships.peer.objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.relationships.source.objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.AddressObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsAddressObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddressGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationAddresses.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationAddressesStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.ServiceObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsServiceObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServiceGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServiceGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedDestinationServices.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedDestinationServicesStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.AddressObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsAddressObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddressGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceAddresses.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceAddressesStatus string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.ServiceObjects.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsServiceObjectsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServiceGroups.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServiceGroupsStatus string - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesIpProtocol string - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Relationships.Destination.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Relationships.Peer.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Relationships.Source.Objects.Item. -type PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus defines model for PatchedBulkWritableNATPolicyRuleRequest.TranslatedSourceServices.Status. -type PatchedBulkWritableNATPolicyRuleRequestTranslatedSourceServicesStatus string - -// PatchedBulkWritableNoteRequest This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type PatchedBulkWritableNoteRequest struct { - AssignedObjectId *openapi_types.UUID `json:"assigned_object_id,omitempty"` - AssignedObjectType *string `json:"assigned_object_type,omitempty"` - Id openapi_types.UUID `json:"id"` - Note *string `json:"note,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableObjectPermissionRequest struct { - // Actions The list of actions granted by this permission - Actions *map[string]interface{} `json:"actions,omitempty"` - - // Constraints Queryset filter matching the applicable objects of the selected type(s) - Constraints *map[string]interface{} `json:"constraints"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Groups *[]struct { - Name string `json:"name"` - } `json:"groups,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - ObjectTypes *[]string `json:"object_types,omitempty"` - Users *[]struct { - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` - } `json:"users,omitempty"` -} - -// PatchedBulkWritablePeerEndpointRequest REST API serializer for PeerEndpoint records. -type PatchedBulkWritablePeerEndpointRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - PeerGroup *NestedPeerGroupRequest `json:"peer_group"` - Peering *NestedPeeringRequest `json:"peering"` - Secret *NestedSecretRequest `json:"secret"` - SourceInterface *NestedInterfaceRequest `json:"source_interface"` - SourceIp *NestedIPAddressRequest `json:"source_ip"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritablePeerGroupRequest REST API serializer for PeerGroup records. -type PatchedBulkWritablePeerGroupRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name *string `json:"name,omitempty"` - Role *openapi_types.UUID `json:"role"` - Secret *NestedSecretRequest `json:"secret"` - SourceInterface *NestedInterfaceRequest `json:"source_interface"` - SourceIp *NestedIPAddressRequest `json:"source_ip"` - Template *NestedPeerGroupTemplateRequest `json:"template"` -} - -// PatchedBulkWritablePeerGroupTemplateRequest REST API serializer for PeerGroup records. -type PatchedBulkWritablePeerGroupTemplateRequest struct { - AutonomousSystem *NestedAutonomousSystemRequest `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name *string `json:"name,omitempty"` - Role *openapi_types.UUID `json:"role"` - Secret *NestedSecretRequest `json:"secret"` -} - -// PatchedBulkWritablePeeringRequest REST API serializer for Peering records. -type PatchedBulkWritablePeeringRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Status *CircuitStatusChoices `json:"status,omitempty"` -} - -// PatchedBulkWritablePeeringRoleRequest REST API serializer for PeeringRole records. -type PatchedBulkWritablePeeringRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritablePlatformRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePlatformRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Manufacturer *NestedManufacturerRequest `json:"manufacturer"` - Name *string `json:"name,omitempty"` - - // NapalmArgs Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs *map[string]interface{} `json:"napalm_args"` - - // NapalmDriver The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePlatformRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePlatformRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePlatformRequest.relationships.source.objects.Item. -type PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRequest Policy Serializer. -type PatchedBulkWritablePolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]PolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]PolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRequest.relationships.source.objects.Item. -type PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest PolicyRule Serializer. -type PatchedBulkWritablePolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Action *ActionEnum `json:"action,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - DestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_address_groups,omitempty"` - DestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_addresses,omitempty"` - DestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_service_groups,omitempty"` - DestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestDestinationServicesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"destination_services,omitempty"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Id openapi_types.UUID `json:"id"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - RequestId *string `json:"request_id"` - SourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"address_objects,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"source_address_groups,omitempty"` - SourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDNRequest `json:"fqdn,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddressRequest `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRangeRequest `json:"ip_range,omitempty"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefixRequest `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestSourceAddressesStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"source_addresses,omitempty"` - SourceUserGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UserObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"user_objects,omitempty"` - } `json:"source_user_groups,omitempty"` - SourceUsers *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritablePolicyRuleRequestSourceUsersStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"source_users,omitempty"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.AddressObjects.Status. -type PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsAddressObjectsStatus string - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatus defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddressGroups.Status. -type PatchedBulkWritablePolicyRuleRequestDestinationAddressGroupsStatus string - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddresses.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddresses.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddresses.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatus defines model for PatchedBulkWritablePolicyRuleRequest.DestinationAddresses.Status. -type PatchedBulkWritablePolicyRuleRequestDestinationAddressesStatus string - -// PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsIpProtocol string - -// PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.ServiceObjects.Status. -type PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsServiceObjectsStatus string - -// PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatus defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServiceGroups.Status. -type PatchedBulkWritablePolicyRuleRequestDestinationServiceGroupsStatus string - -// PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritablePolicyRuleRequestDestinationServicesIpProtocol string - -// PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServices.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServices.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServices.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestDestinationServicesStatus defines model for PatchedBulkWritablePolicyRuleRequest.DestinationServices.Status. -type PatchedBulkWritablePolicyRuleRequestDestinationServicesStatus string - -// PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.relationships.source.objects.Item. -type PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.AddressObjects.Status. -type PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsAddressObjectsStatus string - -// PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatus defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddressGroups.Status. -type PatchedBulkWritablePolicyRuleRequestSourceAddressGroupsStatus string - -// PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddresses.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddresses.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddresses.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestSourceAddressesStatus defines model for PatchedBulkWritablePolicyRuleRequest.SourceAddresses.Status. -type PatchedBulkWritablePolicyRuleRequestSourceAddressesStatus string - -// PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatus defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.Status. -type PatchedBulkWritablePolicyRuleRequestSourceUserGroupsStatus string - -// PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus defines model for PatchedBulkWritablePolicyRuleRequest.SourceUserGroups.UserObjects.Status. -type PatchedBulkWritablePolicyRuleRequestSourceUserGroupsUserObjectsStatus string - -// PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUsers.Relationships.Destination.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUsers.Relationships.Peer.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePolicyRuleRequest.SourceUsers.Relationships.Source.Objects.Item. -type PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePolicyRuleRequestSourceUsersStatus defines model for PatchedBulkWritablePolicyRuleRequest.SourceUsers.Status. -type PatchedBulkWritablePolicyRuleRequestSourceUsersStatus string - -// PatchedBulkWritablePowerFeedRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePowerFeedRequest struct { - Amperage *int `json:"amperage,omitempty"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - - // MaxUtilization Maximum permissible draw (percentage) - MaxUtilization *int `json:"max_utilization,omitempty"` - Name *string `json:"name,omitempty"` - Phase *PhaseEnum `json:"phase,omitempty"` - - // PowerPanel Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPanel *NestedPowerPanelRequest `json:"power_panel,omitempty"` - Rack *NestedRackRequest `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PowerFeedStatusChoices `json:"status,omitempty"` - Supply *SupplyEnum `json:"supply,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerFeedTypeChoices `json:"type,omitempty"` - Voltage *int `json:"voltage,omitempty"` -} - -// PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePowerFeedRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePowerFeedRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePowerFeedRequest.relationships.source.objects.Item. -type PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerOutletRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePowerOutletRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - FeedLeg *FeedLegEnum `json:"feed_leg,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - - // PowerPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPort *NestedPowerPortRequest `json:"power_port,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerOutletTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePowerOutletRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePowerOutletRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePowerOutletRequest.relationships.source.objects.Item. -type PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerOutletTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePowerOutletTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - FeedLeg *FeedLegEnum `json:"feed_leg,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - - // PowerPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPort *NestedPowerPortTemplateRequest `json:"power_port,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PowerOutletTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePowerOutletTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePowerOutletTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePowerOutletTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPanelRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePowerPanelRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name,omitempty"` - RackGroup *NestedRackGroupRequest `json:"rack_group"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site *NestedSiteRequest `json:"site,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePowerPanelRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePowerPanelRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePowerPanelRequest.relationships.source.objects.Item. -type PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePowerPortRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerPortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePowerPortRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePowerPortRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePowerPortRequest.relationships.source.objects.Item. -type PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePowerPortTemplateRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PowerPortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePowerPortTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePowerPortTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePowerPortTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePrefixRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritablePrefixRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsPool All IP addresses within this prefix are considered usable - IsPool *bool `json:"is_pool,omitempty"` - Location *NestedLocationRequest `json:"location"` - Prefix *string `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedRoleRequest `json:"role"` - Site *NestedSiteRequest `json:"site"` - Status *PrefixStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vlan *NestedVLANRequest `json:"vlan"` - Vrf *NestedVRFRequest `json:"vrf"` -} - -// PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritablePrefixRequest.relationships.destination.objects.Item. -type PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritablePrefixRequest.relationships.peer.objects.Item. -type PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritablePrefixRequest.relationships.source.objects.Item. -type PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderLCMRequest API serializer. -type PatchedBulkWritableProviderLCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Phone *string `json:"phone,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableProviderLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableProviderLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableProviderLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderNetworkRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableProviderNetworkRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - - // Provider Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Provider *NestedProviderRequest `json:"provider,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableProviderNetworkRequest.relationships.destination.objects.Item. -type PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableProviderNetworkRequest.relationships.peer.objects.Item. -type PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableProviderNetworkRequest.relationships.source.objects.Item. -type PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableProviderRequest struct { - Account *string `json:"account,omitempty"` - AdminContact *string `json:"admin_contact,omitempty"` - - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - NocContact *string `json:"noc_contact,omitempty"` - PortalUrl *string `json:"portal_url,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableProviderRequest.relationships.destination.objects.Item. -type PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableProviderRequest.relationships.peer.objects.Item. -type PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableProviderRequest.relationships.source.objects.Item. -type PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRIRRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRIRRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsPrivate IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRIRRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRIRRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRIRRequest.relationships.source.objects.Item. -type PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRackGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name,omitempty"` - Parent *NestedRackGroupRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site *NestedSiteRequest `json:"site,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRackGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRackGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRackGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRackRequest struct { - // AssetTag A unique tag used to identify this rack - AssetTag *string `json:"asset_tag"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DescUnits Units are numbered top-to-bottom - DescUnits *bool `json:"desc_units,omitempty"` - - // FacilityId Locally-assigned identifier - FacilityId *string `json:"facility_id"` - Group *NestedRackGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name,omitempty"` - - // OuterDepth Outer dimension of rack (depth) - OuterDepth *int `json:"outer_depth"` - OuterUnit *OuterUnitEnum `json:"outer_unit,omitempty"` - - // OuterWidth Outer dimension of rack (width) - OuterWidth *int `json:"outer_width"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedRackRoleRequest `json:"role"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site *NestedSiteRequest `json:"site,omitempty"` - Status *RackStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Type *RackTypeChoices `json:"type,omitempty"` - - // UHeight Height in rack units - UHeight *int `json:"u_height,omitempty"` - Width *WidthEnum `json:"width,omitempty"` -} - -// PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRackRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRackRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRackRequest.relationships.source.objects.Item. -type PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackReservationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRackReservationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Rack Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Rack *NestedRackRequest `json:"rack,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Units *map[string]interface{} `json:"units,omitempty"` - - // User Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - User *NestedUserRequest `json:"user,omitempty"` -} - -// PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRackReservationRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRackReservationRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRackReservationRequest.relationships.source.objects.Item. -type PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRackRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRackRoleRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRackRoleRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRackRoleRequest.relationships.source.objects.Item. -type PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRearPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRearPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device *NestedDeviceRequest `json:"device,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRearPortRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRearPortRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRearPortRequest.relationships.source.objects.Item. -type PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRearPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRearPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType *NestedDeviceTypeRequest `json:"device_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRearPortTemplateRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRearPortTemplateRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRearPortTemplateRequest.relationships.source.objects.Item. -type PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRegionRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRegionRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Parent *NestedRegionRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRegionRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRegionRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRegionRequest.relationships.source.objects.Item. -type PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRegularExpressionValidationRuleRequest Serializer for `RegularExpressionValidationRule` objects. -type PatchedBulkWritableRegularExpressionValidationRuleRequest struct { - ContentType *string `json:"content_type,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field *string `json:"field,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - RegularExpression *string `json:"regular_expression,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableRelationshipAssociationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableRelationshipAssociationRequest struct { - DestinationId *openapi_types.UUID `json:"destination_id,omitempty"` - DestinationType *string `json:"destination_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Relationship Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Relationship *NestedRelationshipRequest `json:"relationship,omitempty"` - SourceId *openapi_types.UUID `json:"source_id,omitempty"` - SourceType *string `json:"source_type,omitempty"` -} - -// PatchedBulkWritableRelationshipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableRelationshipRequest struct { - Description *string `json:"description,omitempty"` - - // DestinationFilter Filterset filter matching the applicable destination objects of the selected type - DestinationFilter *map[string]interface{} `json:"destination_filter"` - - // DestinationHidden Hide this relationship on the destination object. - DestinationHidden *bool `json:"destination_hidden,omitempty"` - - // DestinationLabel Label for related source objects, as displayed on the destination object. - DestinationLabel *string `json:"destination_label,omitempty"` - DestinationType *string `json:"destination_type,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Name of the relationship as displayed to users - Name *string `json:"name,omitempty"` - - // RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. - RequiredOn *PatchedBulkWritableRelationshipRequest_RequiredOn `json:"required_on,omitempty"` - - // Slug Internal relationship name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // SourceFilter Filterset filter matching the applicable source objects of the selected type - SourceFilter *map[string]interface{} `json:"source_filter"` - - // SourceHidden Hide this relationship on the source object. - SourceHidden *bool `json:"source_hidden,omitempty"` - - // SourceLabel Label for related destination objects, as displayed on the source object. - SourceLabel *string `json:"source_label,omitempty"` - SourceType *string `json:"source_type,omitempty"` - - // Type Cardinality of this relationship - Type *RelationshipTypeChoices `json:"type,omitempty"` -} - -// PatchedBulkWritableRelationshipRequest_RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. -type PatchedBulkWritableRelationshipRequest_RequiredOn struct { - union json.RawMessage -} - -// PatchedBulkWritableRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRoleRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRoleRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRoleRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRoleRequest.relationships.source.objects.Item. -type PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRouteTargetRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableRouteTargetRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableRouteTargetRequest.relationships.destination.objects.Item. -type PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableRouteTargetRequest.relationships.peer.objects.Item. -type PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableRouteTargetRequest.relationships.source.objects.Item. -type PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSecretRequest Serializer for `Secret` objects. -type PatchedBulkWritableSecretRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Parameters *map[string]interface{} `json:"parameters,omitempty"` - Provider *string `json:"provider,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableSecretRequest.relationships.destination.objects.Item. -type PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableSecretRequest.relationships.peer.objects.Item. -type PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableSecretRequest.relationships.source.objects.Item. -type PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSecretsGroupAssociationRequest Serializer for `SecretsGroupAssociation` objects. -type PatchedBulkWritableSecretsGroupAssociationRequest struct { - AccessType *AccessTypeEnum `json:"access_type,omitempty"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group *NestedSecretsGroupRequest `json:"group,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Secret Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Secret *NestedSecretRequest `json:"secret,omitempty"` - SecretType *SecretTypeEnum `json:"secret_type,omitempty"` -} - -// PatchedBulkWritableSecretsGroupRequest Serializer for `SecretsGroup` objects. -type PatchedBulkWritableSecretsGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableSecretsGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableSecretsGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableSecretsGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectGroupRequest ServiceObjectGroup Serializer. -type PatchedBulkWritableServiceObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - } `json:"service_objects,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableServiceObjectGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableServiceObjectGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableServiceObjectGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PatchedBulkWritableServiceObjectGroupRequestServiceObjectsIpProtocol string - -// PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableServiceObjectGroupRequest.ServiceObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableServiceObjectGroupRequest.ServiceObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableServiceObjectGroupRequest.ServiceObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatus defines model for PatchedBulkWritableServiceObjectGroupRequest.ServiceObjects.Status. -type PatchedBulkWritableServiceObjectGroupRequestServiceObjectsStatus string - -// PatchedBulkWritableServiceObjectRequest ServiceObject Serializer. -type PatchedBulkWritableServiceObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol *IpProtocolEnum `json:"ip_protocol,omitempty"` - - // Name Name of the service (e.g. HTTP) - Name *string `json:"name,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableServiceObjectRequest.relationships.destination.objects.Item. -type PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableServiceObjectRequest.relationships.peer.objects.Item. -type PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableServiceObjectRequest.relationships.source.objects.Item. -type PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableServiceRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *NestedDeviceRequest `json:"device"` - Id openapi_types.UUID `json:"id"` - Ipaddresses *[]struct { - Address string `json:"address"` - } `json:"ipaddresses,omitempty"` - Name *string `json:"name,omitempty"` - Ports *[]int `json:"ports,omitempty"` - Protocol *ProtocolEnum `json:"protocol,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - VirtualMachine *NestedVirtualMachineRequest `json:"virtual_machine"` -} - -// PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableServiceRequest.relationships.destination.objects.Item. -type PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableServiceRequest.relationships.peer.objects.Item. -type PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableServiceRequest.relationships.source.objects.Item. -type PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSiteRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableSiteRequest struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - ContactEmail *openapi_types.Email `json:"contact_email,omitempty"` - ContactName *string `json:"contact_name,omitempty"` - ContactPhone *string `json:"contact_phone,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Facility Local facility ID or description - Facility *string `json:"facility,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Latitude GPS coordinate (latitude) - Latitude *string `json:"latitude"` - - // Longitude GPS coordinate (longitude) - Longitude *string `json:"longitude"` - Name *string `json:"name,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Region *NestedRegionRequest `json:"region"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ShippingAddress *string `json:"shipping_address,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *LocationStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - TimeZone *string `json:"time_zone"` -} - -// PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableSiteRequest.relationships.destination.objects.Item. -type PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableSiteRequest.relationships.peer.objects.Item. -type PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableSiteRequest.relationships.source.objects.Item. -type PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSoftwareImageLCMRequest REST API serializer for SoftwareImageLCM records. -type PatchedBulkWritableSoftwareImageLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - Id openapi_types.UUID `json:"id"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName *string `json:"image_file_name,omitempty"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Software Nested/brief serializer for SoftwareLCM. - Software *NestedSoftwareLCMRequest `json:"software,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableSoftwareImageLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableSoftwareImageLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableSoftwareImageLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSoftwareLCMRequest REST API serializer for SoftwareLCM records. -type PatchedBulkWritableSoftwareLCMRequest struct { - Alias *string `json:"alias"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DevicePlatform Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DevicePlatform *NestedPlatformRequest `json:"device_platform,omitempty"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - Id openapi_types.UUID `json:"id"` - LongTermSupport *bool `json:"long_term_support,omitempty"` - PreRelease *bool `json:"pre_release,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - SoftwareImages *[]struct { - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName string `json:"image_file_name"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - } `json:"software_images,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Version *string `json:"version,omitempty"` -} - -// PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableSoftwareLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableSoftwareLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableSoftwareLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableStatusRequest Serializer for `Status` objects. -type PatchedBulkWritableStatusRequest struct { - Color *string `json:"color,omitempty"` - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableStatusRequest.relationships.destination.objects.Item. -type PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableStatusRequest.relationships.peer.objects.Item. -type PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableStatusRequest.relationships.source.objects.Item. -type PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTagSerializerVersion13Request Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableTagSerializerVersion13Request struct { - Color *string `json:"color,omitempty"` - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableTagSerializerVersion13Request.relationships.destination.objects.Item. -type PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableTagSerializerVersion13Request.relationships.peer.objects.Item. -type PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item defines model for PatchedBulkWritableTagSerializerVersion13Request.relationships.source.objects.Item. -type PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTenantGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableTenantGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Parent *NestedTenantGroupRequest `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableTenantGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableTenantGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableTenantGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTenantRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableTenantRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group *NestedTenantGroupRequest `json:"group,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableTenantRequest.relationships.destination.objects.Item. -type PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableTenantRequest.relationships.peer.objects.Item. -type PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableTenantRequest.relationships.source.objects.Item. -type PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableTokenRequest struct { - Description *string `json:"description,omitempty"` - Expires *time.Time `json:"expires"` - Id openapi_types.UUID `json:"id"` - Key *string `json:"key,omitempty"` - - // WriteEnabled Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` -} - -// PatchedBulkWritableUserObjectGroupRequest UserObjectGroup Serializer. -type PatchedBulkWritableUserObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UserObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PatchedBulkWritableUserObjectGroupRequestUserObjectsStatus `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"user_objects,omitempty"` -} - -// PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableUserObjectGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableUserObjectGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableUserObjectGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableUserObjectGroupRequest.UserObjects.Relationships.Destination.Objects.Item. -type PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableUserObjectGroupRequest.UserObjects.Relationships.Peer.Objects.Item. -type PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item defines model for PatchedBulkWritableUserObjectGroupRequest.UserObjects.Relationships.Source.Objects.Item. -type PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectGroupRequestUserObjectsStatus defines model for PatchedBulkWritableUserObjectGroupRequest.UserObjects.Status. -type PatchedBulkWritableUserObjectGroupRequestUserObjectsStatus string - -// PatchedBulkWritableUserObjectRequest UserObject Serializer. -type PatchedBulkWritableUserObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username *string `json:"username,omitempty"` -} - -// PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableUserObjectRequest.relationships.destination.objects.Item. -type PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableUserObjectRequest.relationships.peer.objects.Item. -type PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableUserObjectRequest.relationships.source.objects.Item. -type PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableUserRequest struct { - DateJoined *time.Time `json:"date_joined,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - FirstName *string `json:"first_name,omitempty"` - Groups *[]struct { - Name string `json:"name"` - } `json:"groups,omitempty"` - Id openapi_types.UUID `json:"id"` - - // IsActive Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - - // IsStaff Designates whether the user can log into this admin site. - IsStaff *bool `json:"is_staff,omitempty"` - LastName *string `json:"last_name,omitempty"` - Password *string `json:"password,omitempty"` - - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username *string `json:"username,omitempty"` -} - -// PatchedBulkWritableVLANGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableVLANGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *NestedSiteRequest `json:"site"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableVLANGroupRequest.relationships.destination.objects.Item. -type PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableVLANGroupRequest.relationships.peer.objects.Item. -type PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableVLANGroupRequest.relationships.source.objects.Item. -type PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVLANRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableVLANRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Group *NestedVLANGroupRequest `json:"group"` - Id openapi_types.UUID `json:"id"` - Location *NestedLocationRequest `json:"location"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedRoleRequest `json:"role"` - Site *NestedSiteRequest `json:"site"` - Status *VLANStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vid *int `json:"vid,omitempty"` -} - -// PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableVLANRequest.relationships.destination.objects.Item. -type PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableVLANRequest.relationships.peer.objects.Item. -type PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableVLANRequest.relationships.source.objects.Item. -type PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVMInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableVMInterfaceRequest struct { - Bridge *NestedVMInterfaceRequest `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id openapi_types.UUID `json:"id"` - MacAddress *string `json:"mac_address"` - Mode *ModeEnum `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name *string `json:"name,omitempty"` - ParentInterface *NestedVMInterfaceRequest `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *InterfaceStatusChoices `json:"status,omitempty"` - TaggedVlans *[]struct { - Name string `json:"name"` - Vid int `json:"vid"` - } `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UntaggedVlan *NestedVLANRequest `json:"untagged_vlan"` - - // VirtualMachine Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - VirtualMachine *NestedVirtualMachineRequest `json:"virtual_machine,omitempty"` -} - -// PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableVMInterfaceRequest.relationships.destination.objects.Item. -type PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableVMInterfaceRequest.relationships.peer.objects.Item. -type PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableVMInterfaceRequest.relationships.source.objects.Item. -type PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVRFRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableVRFRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // EnforceUnique Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - ExportTargets *[]struct { - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - } `json:"export_targets,omitempty"` - Id openapi_types.UUID `json:"id"` - ImportTargets *[]struct { - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - } `json:"import_targets,omitempty"` - Name *string `json:"name,omitempty"` - - // Rd Unique route distinguisher (as defined in RFC 4364) - Rd *string `json:"rd"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` -} - -// PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableVRFRequest.relationships.destination.objects.Item. -type PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableVRFRequest.relationships.peer.objects.Item. -type PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableVRFRequest.relationships.source.objects.Item. -type PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableValidatedSoftwareLCMRequest REST API serializer for ValidatedSoftwareLCM records. -type PatchedBulkWritableValidatedSoftwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRoles *[]openapi_types.UUID `json:"device_roles,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - Devices *[]openapi_types.UUID `json:"devices,omitempty"` - End *openapi_types.Date `json:"end"` - Id openapi_types.UUID `json:"id"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Preferred *bool `json:"preferred,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Software Nested/brief serializer for SoftwareLCM. - Software *NestedSoftwareLCMRequest `json:"software,omitempty"` - Start *openapi_types.Date `json:"start,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableValidatedSoftwareLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableValidatedSoftwareLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableValidatedSoftwareLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVirtualChassisRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableVirtualChassisRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Domain *string `json:"domain,omitempty"` - Id openapi_types.UUID `json:"id"` - Master *NestedDeviceRequest `json:"master"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableVirtualChassisRequest.relationships.destination.objects.Item. -type PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableVirtualChassisRequest.relationships.peer.objects.Item. -type PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableVirtualChassisRequest.relationships.source.objects.Item. -type PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVirtualMachineWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedBulkWritableVirtualMachineWithConfigContextRequest struct { - // Cluster Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Cluster *NestedClusterRequest `json:"cluster,omitempty"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Disk *int `json:"disk"` - Id openapi_types.UUID `json:"id"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchemaRequest `json:"local_context_schema"` - Memory *int `json:"memory"` - Name *string `json:"name,omitempty"` - Platform *NestedPlatformRequest `json:"platform"` - PrimaryIp4 *NestedIPAddressRequest `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddressRequest `json:"primary_ip6"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *NestedDeviceRoleRequest `json:"role"` - Status *VirtualMachineStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *NestedTenantRequest `json:"tenant"` - Vcpus *int `json:"vcpus"` -} - -// PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableVirtualMachineWithConfigContextRequest.relationships.destination.objects.Item. -type PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableVirtualMachineWithConfigContextRequest.relationships.peer.objects.Item. -type PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableVirtualMachineWithConfigContextRequest.relationships.source.objects.Item. -type PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVulnerabilityLCMRequest REST API serializer for VulnerabilityLCM records. -type PatchedBulkWritableVulnerabilityLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Id openapi_types.UUID `json:"id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status4f5Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableVulnerabilityLCMRequest.relationships.destination.objects.Item. -type PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableVulnerabilityLCMRequest.relationships.peer.objects.Item. -type PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableVulnerabilityLCMRequest.relationships.source.objects.Item. -type PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableWebhookRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedBulkWritableWebhookRequest struct { - // AdditionalHeaders User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value. Jinja2 template processing is support with the same context as the request body (below). - AdditionalHeaders *string `json:"additional_headers,omitempty"` - - // BodyTemplate Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. - BodyTemplate *string `json:"body_template,omitempty"` - - // CaFilePath The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath *string `json:"ca_file_path"` - ContentTypes *[]string `json:"content_types,omitempty"` - - // HttpContentType The complete list of official content types is available here. - HttpContentType *string `json:"http_content_type,omitempty"` - HttpMethod *HttpMethodEnum `json:"http_method,omitempty"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - - // PayloadUrl A POST will be sent to this URL when the webhook is called. - PayloadUrl *string `json:"payload_url,omitempty"` - - // Secret When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. - Secret *string `json:"secret,omitempty"` - - // SslVerification Enable SSL certificate verification. Disable with caution! - SslVerification *bool `json:"ssl_verification,omitempty"` - - // TypeCreate Call this webhook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this webhook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this webhook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// PatchedBulkWritableZoneRequest Zone Serializer. -type PatchedBulkWritableZoneRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Id openapi_types.UUID `json:"id"` - Interfaces *[]NestedInterfaceRequest `json:"interfaces,omitempty"` - - // Name Name of the zone (e.g. trust) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item defines model for PatchedBulkWritableZoneRequest.relationships.destination.objects.Item. -type PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item defines model for PatchedBulkWritableZoneRequest.relationships.peer.objects.Item. -type PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item defines model for PatchedBulkWritableZoneRequest.relationships.source.objects.Item. -type PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedCapircaPolicyRequest CapircaPolicy Serializer. -type PatchedCapircaPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Cfg *string `json:"cfg"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Device *openapi_types.UUID `json:"device"` - Net *string `json:"net"` - Pol *string `json:"pol"` - Svc *string `json:"svc"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedCircuitMaintenanceCircuitImpactRequest Serializer for API. -type PatchedCircuitMaintenanceCircuitImpactRequest struct { - Circuit *openapi_types.UUID `json:"circuit,omitempty"` - Impact *PatchedCircuitMaintenanceCircuitImpactRequest_Impact `json:"impact"` - Maintenance *openapi_types.UUID `json:"maintenance,omitempty"` -} - -// PatchedCircuitMaintenanceCircuitImpactRequest_Impact defines model for PatchedCircuitMaintenanceCircuitImpactRequest.Impact. -type PatchedCircuitMaintenanceCircuitImpactRequest_Impact struct { - union json.RawMessage -} - -// PatchedCircuitMaintenanceRequest Serializer for API. -type PatchedCircuitMaintenanceRequest struct { - Ack *bool `json:"ack"` - Description *string `json:"description"` - EndTime *time.Time `json:"end_time,omitempty"` - Name *string `json:"name,omitempty"` - StartTime *time.Time `json:"start_time,omitempty"` - Status *PatchedCircuitMaintenanceRequest_Status `json:"status"` -} - -// PatchedCircuitMaintenanceRequest_Status defines model for PatchedCircuitMaintenanceRequest.Status. -type PatchedCircuitMaintenanceRequest_Status struct { - union json.RawMessage -} - -// PatchedCircuitTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedCircuitTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedCircuitTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedCircuitTypeRequest.relationships.destination.objects.Item. -type PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedCircuitTypeRequest.relationships.peer.objects.Item. -type PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedCircuitTypeRequest_Relationships_Source_Objects_Item defines model for PatchedCircuitTypeRequest.relationships.source.objects.Item. -type PatchedCircuitTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedClusterGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedClusterGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedClusterGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedClusterGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedClusterGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedClusterGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedClusterGroupRequest.relationships.destination.objects.Item. -type PatchedClusterGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedClusterGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedClusterGroupRequest.relationships.peer.objects.Item. -type PatchedClusterGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedClusterGroupRequest_Relationships_Source_Objects_Item defines model for PatchedClusterGroupRequest.relationships.source.objects.Item. -type PatchedClusterGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedClusterTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedClusterTypeRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedClusterTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedClusterTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedClusterTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedClusterTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedClusterTypeRequest.relationships.destination.objects.Item. -type PatchedClusterTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedClusterTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedClusterTypeRequest.relationships.peer.objects.Item. -type PatchedClusterTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedClusterTypeRequest_Relationships_Source_Objects_Item defines model for PatchedClusterTypeRequest.relationships.source.objects.Item. -type PatchedClusterTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedCommandTokenRequest API serializer for interacting with CommandToken objects. -type PatchedCommandTokenRequest struct { - // Comment Optional: Enter description of token - Comment *string `json:"comment,omitempty"` - Platform *PlatformEnum `json:"platform,omitempty"` - - // Token Token given by chat platform for signing or command validation - Token *string `json:"token,omitempty"` -} - -// PatchedComplianceFeatureRequest Serializer for ComplianceFeature object. -type PatchedComplianceFeatureRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedComplianceRuleRequest Serializer for ComplianceRule object. -type PatchedComplianceRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // ConfigOrdered Whether or not the configuration order matters, such as in ACLs. - ConfigOrdered *bool `json:"config_ordered,omitempty"` - - // ConfigType Whether the config is in cli or json/structured format. - ConfigType *ConfigTypeEnum `json:"config_type,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Feature *openapi_types.UUID `json:"feature,omitempty"` - - // MatchConfig The config to match that is matched based on the parent most configuration. e.g. `router bgp` or `ntp`. - MatchConfig *string `json:"match_config"` - Platform *openapi_types.UUID `json:"platform,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedComputedFieldRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedComputedFieldRequest struct { - ContentType *string `json:"content_type,omitempty"` - Description *string `json:"description,omitempty"` - - // FallbackValue Fallback value (if any) to be output for the field in the case of a template rendering error. - FallbackValue *string `json:"fallback_value,omitempty"` - - // Label Name of the field as displayed to users - Label *string `json:"label,omitempty"` - - // Slug Internal field name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // Template Jinja2 template code for field value - Template *string `json:"template,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedConfigComplianceRequest Serializer for ConfigCompliance object. -type PatchedConfigComplianceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // Actual Actual Configuration for feature - Actual *map[string]interface{} `json:"actual,omitempty"` - Compliance *bool `json:"compliance"` - ComplianceInt *int `json:"compliance_int"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device The device - Device *openapi_types.UUID `json:"device,omitempty"` - - // Extra Configuration that should not be on the device. - Extra *map[string]interface{} `json:"extra,omitempty"` - - // Intended Intended Configuration for feature - Intended *map[string]interface{} `json:"intended,omitempty"` - - // Missing Configuration that should be on the device. - Missing *map[string]interface{} `json:"missing,omitempty"` - Ordered *bool `json:"ordered,omitempty"` - Rule *openapi_types.UUID `json:"rule,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedConfigContextSchemaRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedConfigContextSchemaRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DataSchema A JSON Schema document which is used to validate a config context object. - DataSchema *map[string]interface{} `json:"data_schema,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item defines model for PatchedConfigContextSchemaRequest.relationships.destination.objects.Item. -type PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item defines model for PatchedConfigContextSchemaRequest.relationships.peer.objects.Item. -type PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item defines model for PatchedConfigContextSchemaRequest.relationships.source.objects.Item. -type PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedConfigRemoveRequest Serializer for ConfigRemove object. -type PatchedConfigRemoveRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Platform *openapi_types.UUID `json:"platform,omitempty"` - - // Regex Regex pattern used to remove a line from the backup configuration. - Regex *string `json:"regex,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedConfigReplaceRequest Serializer for ConfigReplace object. -type PatchedConfigReplaceRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Platform *openapi_types.UUID `json:"platform,omitempty"` - - // Regex Regex pattern that will be found and replaced with 'replaced text'. - Regex *string `json:"regex,omitempty"` - - // Replace Text that will be inserted in place of Regex pattern match. - Replace *string `json:"replace,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedCustomFieldSerializerVersion12Request Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedCustomFieldSerializerVersion12Request struct { - ContentTypes *[]string `json:"content_types,omitempty"` - - // Default Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). - Default *map[string]interface{} `json:"default"` - - // Description A helpful description for this field. - Description *string `json:"description,omitempty"` - FilterLogic *FilterLogicEnum `json:"filter_logic,omitempty"` - Label *string `json:"label,omitempty"` - - // Name Human-readable unique name of this field. - Name *string `json:"name,omitempty"` - - // Required If true, this field is required when creating new objects or editing an existing object. - Required *bool `json:"required,omitempty"` - Slug *string `json:"slug,omitempty"` - Type *CustomFieldTypeChoices `json:"type,omitempty"` - - // ValidationMaximum Maximum allowed value (for numeric fields). - ValidationMaximum *int64 `json:"validation_maximum"` - - // ValidationMinimum Minimum allowed value (for numeric fields). - ValidationMinimum *int64 `json:"validation_minimum"` - - // ValidationRegex Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. Regular expression on select and multi-select will be applied at Custom Field Choices definition. - ValidationRegex *string `json:"validation_regex,omitempty"` - - // Weight Fields with higher weights appear lower in a form. - Weight *int `json:"weight,omitempty"` -} - -// PatchedCustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedCustomLinkRequest struct { - // ButtonClass The class of the first link in a group will be used for the dropdown button - ButtonClass *ButtonClassEnum `json:"button_class,omitempty"` - ContentType *string `json:"content_type,omitempty"` - - // GroupName Links with the same group will appear as a dropdown menu - GroupName *string `json:"group_name,omitempty"` - Name *string `json:"name,omitempty"` - - // NewWindow Force link to open in a new window - NewWindow *bool `json:"new_window,omitempty"` - - // TargetUrl Jinja2 template code for link URL. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. - TargetUrl *string `json:"target_url,omitempty"` - - // Text Jinja2 template code for link text. Reference the object as {{ obj }} such as {{ obj.platform.slug }}. Links which render as empty text will not be displayed. - Text *string `json:"text,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedDeviceRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedDeviceRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedDeviceRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // VmRole Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` -} - -// PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item defines model for PatchedDeviceRoleRequest.relationships.destination.objects.Item. -type PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item defines model for PatchedDeviceRoleRequest.relationships.peer.objects.Item. -type PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedDeviceRoleRequest_Relationships_Source_Objects_Item defines model for PatchedDeviceRoleRequest.relationships.source.objects.Item. -type PatchedDeviceRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedDynamicGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedDynamicGroupRequest struct { - ContentType *string `json:"content_type,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Filter A JSON-encoded dictionary of filter parameters for group membership - Filter *map[string]interface{} `json:"filter,omitempty"` - - // Name Dynamic Group name - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedDynamicGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Slug Unique slug - Slug *string `json:"slug,omitempty"` -} - -// PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedDynamicGroupRequest.relationships.destination.objects.Item. -type PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedDynamicGroupRequest.relationships.peer.objects.Item. -type PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedDynamicGroupRequest_Relationships_Source_Objects_Item defines model for PatchedDynamicGroupRequest.relationships.source.objects.Item. -type PatchedDynamicGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedExportTemplateRequest Extend ValidatedModelSerializer with a `relationships` field. -type PatchedExportTemplateRequest struct { - ContentType *string `json:"content_type,omitempty"` - Description *string `json:"description,omitempty"` - - // FileExtension Extension to append to the rendered filename - FileExtension *string `json:"file_extension,omitempty"` - - // MimeType Defaults to text/plain - MimeType *string `json:"mime_type,omitempty"` - Name *string `json:"name,omitempty"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedExportTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedExportTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedExportTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TemplateCode The list of objects being exported is passed as a context variable named queryset. - TemplateCode *string `json:"template_code,omitempty"` -} - -// PatchedExportTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedExportTemplateRequest.relationships.destination.objects.Item. -type PatchedExportTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedExportTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedExportTemplateRequest.relationships.peer.objects.Item. -type PatchedExportTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedExportTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedExportTemplateRequest.relationships.source.objects.Item. -type PatchedExportTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedGoldenConfigRequest Serializer for GoldenConfig object. -type PatchedGoldenConfigRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupConfig Full backup config for device. - BackupConfig *string `json:"backup_config,omitempty"` - BackupLastAttemptDate *time.Time `json:"backup_last_attempt_date"` - BackupLastSuccessDate *time.Time `json:"backup_last_success_date"` - - // ComplianceConfig Full config diff for device. - ComplianceConfig *string `json:"compliance_config,omitempty"` - ComplianceLastAttemptDate *time.Time `json:"compliance_last_attempt_date"` - ComplianceLastSuccessDate *time.Time `json:"compliance_last_success_date"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Device device - Device *openapi_types.UUID `json:"device,omitempty"` - - // IntendedConfig Intended config for the device. - IntendedConfig *string `json:"intended_config,omitempty"` - IntendedLastAttemptDate *time.Time `json:"intended_last_attempt_date"` - IntendedLastSuccessDate *time.Time `json:"intended_last_success_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedGraphQLQueryRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedGraphQLQueryRequest struct { - Name *string `json:"name,omitempty"` - Query *string `json:"query,omitempty"` - Slug *string `json:"slug,omitempty"` - Variables *map[string]interface{} `json:"variables"` -} - -// PatchedGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedGroupRequest struct { - Name *string `json:"name,omitempty"` -} - -// PatchedIPRangeRequest IPRange Serializer. -type PatchedIPRangeRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - EndAddress *string `json:"end_address,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedIPRangeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedIPRangeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedIPRangeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - StartAddress *string `json:"start_address,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// PatchedIPRangeRequest_Relationships_Destination_Objects_Item defines model for PatchedIPRangeRequest.relationships.destination.objects.Item. -type PatchedIPRangeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedIPRangeRequest_Relationships_Peer_Objects_Item defines model for PatchedIPRangeRequest.relationships.peer.objects.Item. -type PatchedIPRangeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedIPRangeRequest_Relationships_Source_Objects_Item defines model for PatchedIPRangeRequest.relationships.source.objects.Item. -type PatchedIPRangeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedImageAttachmentRequest struct { - ContentType *string `json:"content_type,omitempty"` - Image *openapi_types.File `json:"image,omitempty"` - ImageHeight *int `json:"image_height,omitempty"` - ImageWidth *int `json:"image_width,omitempty"` - Name *string `json:"name,omitempty"` - ObjectId *openapi_types.UUID `json:"object_id,omitempty"` -} - -// PatchedJobHookRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedJobHookRequest struct { - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // Job The job that this job hook will initiate - Job *openapi_types.UUID `json:"job,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedJobHookRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedJobHookRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedJobHookRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // TypeCreate Call this job hook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this job hook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this job hook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// PatchedJobHookRequest_Relationships_Destination_Objects_Item defines model for PatchedJobHookRequest.relationships.destination.objects.Item. -type PatchedJobHookRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedJobHookRequest_Relationships_Peer_Objects_Item defines model for PatchedJobHookRequest.relationships.peer.objects.Item. -type PatchedJobHookRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedJobHookRequest_Relationships_Source_Objects_Item defines model for PatchedJobHookRequest.relationships.source.objects.Item. -type PatchedJobHookRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedJobRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedJobRequest struct { - // ApprovalRequired Whether the job requires approval from another user before running - ApprovalRequired *bool `json:"approval_required,omitempty"` - - // ApprovalRequiredOverride If set, the configured value will remain even if the underlying Job source code changes - ApprovalRequiredOverride *bool `json:"approval_required_override,omitempty"` - - // CommitDefault Whether the job defaults to committing changes when run, or defaults to a dry-run - CommitDefault *bool `json:"commit_default,omitempty"` - - // CommitDefaultOverride If set, the configured value will remain even if the underlying Job source code changes - CommitDefaultOverride *bool `json:"commit_default_override,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Description Markdown formatting is supported - Description *string `json:"description,omitempty"` - - // DescriptionOverride If set, the configured description will remain even if the underlying Job source code changes - DescriptionOverride *bool `json:"description_override,omitempty"` - - // Enabled Whether this job can be executed by users - Enabled *bool `json:"enabled,omitempty"` - - // Grouping Human-readable grouping that this job belongs to - Grouping *string `json:"grouping,omitempty"` - - // GroupingOverride If set, the configured grouping will remain even if the underlying Job source code changes - GroupingOverride *bool `json:"grouping_override,omitempty"` - - // HasSensitiveVariables Whether this job contains sensitive variables - HasSensitiveVariables *bool `json:"has_sensitive_variables,omitempty"` - - // HasSensitiveVariablesOverride If set, the configured value will remain even if the underlying Job source code changes - HasSensitiveVariablesOverride *bool `json:"has_sensitive_variables_override,omitempty"` - - // Hidden Whether the job defaults to not being shown in the UI - Hidden *bool `json:"hidden,omitempty"` - - // HiddenOverride If set, the configured value will remain even if the underlying Job source code changes - HiddenOverride *bool `json:"hidden_override,omitempty"` - - // Name Human-readable name of this job - Name *string `json:"name,omitempty"` - - // NameOverride If set, the configured name will remain even if the underlying Job source code changes - NameOverride *bool `json:"name_override,omitempty"` - - // ReadOnly Whether the job is prevented from making lasting changes to the database - ReadOnly *bool `json:"read_only,omitempty"` - - // ReadOnlyOverride If set, the configured value will remain even if the underlying Job source code changes - ReadOnlyOverride *bool `json:"read_only_override,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedJobRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedJobRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedJobRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // SoftTimeLimit Maximum runtime in seconds before the job will receive a SoftTimeLimitExceeded exception.
Set to 0 to use Nautobot system default - SoftTimeLimit *float64 `json:"soft_time_limit,omitempty"` - - // SoftTimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - SoftTimeLimitOverride *bool `json:"soft_time_limit_override,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // TaskQueues Comma separated list of task queues that this job can run on. A blank list will use the default queue - TaskQueues *map[string]interface{} `json:"task_queues,omitempty"` - - // TaskQueuesOverride If set, the configured value will remain even if the underlying Job source code changes - TaskQueuesOverride *bool `json:"task_queues_override,omitempty"` - - // TimeLimit Maximum runtime in seconds before the job will be forcibly terminated.
Set to 0 to use Nautobot system default - TimeLimit *float64 `json:"time_limit,omitempty"` - - // TimeLimitOverride If set, the configured value will remain even if the underlying Job source code changes - TimeLimitOverride *bool `json:"time_limit_override,omitempty"` -} - -// PatchedJobRequest_Relationships_Destination_Objects_Item defines model for PatchedJobRequest.relationships.destination.objects.Item. -type PatchedJobRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedJobRequest_Relationships_Peer_Objects_Item defines model for PatchedJobRequest.relationships.peer.objects.Item. -type PatchedJobRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedJobRequest_Relationships_Source_Objects_Item defines model for PatchedJobRequest.relationships.source.objects.Item. -type PatchedJobRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedManufacturerRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedManufacturerRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedManufacturerRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedManufacturerRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedManufacturerRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedManufacturerRequest_Relationships_Destination_Objects_Item defines model for PatchedManufacturerRequest.relationships.destination.objects.Item. -type PatchedManufacturerRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedManufacturerRequest_Relationships_Peer_Objects_Item defines model for PatchedManufacturerRequest.relationships.peer.objects.Item. -type PatchedManufacturerRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedManufacturerRequest_Relationships_Source_Objects_Item defines model for PatchedManufacturerRequest.relationships.source.objects.Item. -type PatchedManufacturerRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedMinMaxValidationRuleRequest Serializer for `MinMaxValidationRule` objects. -type PatchedMinMaxValidationRuleRequest struct { - ContentType *string `json:"content_type,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field *string `json:"field,omitempty"` - - // Max When set, apply a maximum value contraint to the value of the model field. - Max *float64 `json:"max"` - - // Min When set, apply a minimum value contraint to the value of the model field. - Min *float64 `json:"min"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedNATPolicyRequest NATPolicy Serializer. -type PatchedNATPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]NATPolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]NATPolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedNATPolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedNATPolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedNATPolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedNATPolicyRequest_Relationships_Destination_Objects_Item defines model for PatchedNATPolicyRequest.relationships.destination.objects.Item. -type PatchedNATPolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedNATPolicyRequest_Relationships_Peer_Objects_Item defines model for PatchedNATPolicyRequest.relationships.peer.objects.Item. -type PatchedNATPolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedNATPolicyRequest_Relationships_Source_Objects_Item defines model for PatchedNATPolicyRequest.relationships.source.objects.Item. -type PatchedNATPolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedNoteRequest This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type PatchedNoteRequest struct { - AssignedObjectId *openapi_types.UUID `json:"assigned_object_id,omitempty"` - AssignedObjectType *string `json:"assigned_object_type,omitempty"` - Note *string `json:"note,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedPeeringRequest REST API serializer for Peering records. -type PatchedPeeringRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Status *CircuitStatusChoices `json:"status,omitempty"` -} - -// PatchedPeeringRoleRequest REST API serializer for PeeringRole records. -type PatchedPeeringRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedPolicyRequest Policy Serializer. -type PatchedPolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]PolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]PolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedPolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedPolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedPolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedPolicyRequest_Relationships_Destination_Objects_Item defines model for PatchedPolicyRequest.relationships.destination.objects.Item. -type PatchedPolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedPolicyRequest_Relationships_Peer_Objects_Item defines model for PatchedPolicyRequest.relationships.peer.objects.Item. -type PatchedPolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedPolicyRequest_Relationships_Source_Objects_Item defines model for PatchedPolicyRequest.relationships.source.objects.Item. -type PatchedPolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedProviderLCMRequest API serializer. -type PatchedProviderLCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Name *string `json:"name,omitempty"` - Phone *string `json:"phone,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedProviderLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedProviderLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedProviderLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedProviderLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedProviderLCMRequest.relationships.destination.objects.Item. -type PatchedProviderLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedProviderLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedProviderLCMRequest.relationships.peer.objects.Item. -type PatchedProviderLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedProviderLCMRequest_Relationships_Source_Objects_Item defines model for PatchedProviderLCMRequest.relationships.source.objects.Item. -type PatchedProviderLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedProviderRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedProviderRequest struct { - Account *string `json:"account,omitempty"` - AdminContact *string `json:"admin_contact,omitempty"` - - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Name *string `json:"name,omitempty"` - NocContact *string `json:"noc_contact,omitempty"` - PortalUrl *string `json:"portal_url,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedProviderRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedProviderRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedProviderRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedProviderRequest_Relationships_Destination_Objects_Item defines model for PatchedProviderRequest.relationships.destination.objects.Item. -type PatchedProviderRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedProviderRequest_Relationships_Peer_Objects_Item defines model for PatchedProviderRequest.relationships.peer.objects.Item. -type PatchedProviderRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedProviderRequest_Relationships_Source_Objects_Item defines model for PatchedProviderRequest.relationships.source.objects.Item. -type PatchedProviderRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRIRRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedRIRRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IsPrivate IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRIRRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRIRRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRIRRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedRIRRequest_Relationships_Destination_Objects_Item defines model for PatchedRIRRequest.relationships.destination.objects.Item. -type PatchedRIRRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRIRRequest_Relationships_Peer_Objects_Item defines model for PatchedRIRRequest.relationships.peer.objects.Item. -type PatchedRIRRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRIRRequest_Relationships_Source_Objects_Item defines model for PatchedRIRRequest.relationships.source.objects.Item. -type PatchedRIRRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRackRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedRackRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRackRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRackRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRackRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedRackRoleRequest_Relationships_Destination_Objects_Item defines model for PatchedRackRoleRequest.relationships.destination.objects.Item. -type PatchedRackRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRackRoleRequest_Relationships_Peer_Objects_Item defines model for PatchedRackRoleRequest.relationships.peer.objects.Item. -type PatchedRackRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRackRoleRequest_Relationships_Source_Objects_Item defines model for PatchedRackRoleRequest.relationships.source.objects.Item. -type PatchedRackRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRegularExpressionValidationRuleRequest Serializer for `RegularExpressionValidationRule` objects. -type PatchedRegularExpressionValidationRuleRequest struct { - ContentType *string `json:"content_type,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field *string `json:"field,omitempty"` - Name *string `json:"name,omitempty"` - RegularExpression *string `json:"regular_expression,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedRelationshipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedRelationshipRequest struct { - Description *string `json:"description,omitempty"` - - // DestinationFilter Filterset filter matching the applicable destination objects of the selected type - DestinationFilter *map[string]interface{} `json:"destination_filter"` - - // DestinationHidden Hide this relationship on the destination object. - DestinationHidden *bool `json:"destination_hidden,omitempty"` - - // DestinationLabel Label for related source objects, as displayed on the destination object. - DestinationLabel *string `json:"destination_label,omitempty"` - DestinationType *string `json:"destination_type,omitempty"` - - // Name Name of the relationship as displayed to users - Name *string `json:"name,omitempty"` - - // RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. - RequiredOn *PatchedRelationshipRequest_RequiredOn `json:"required_on,omitempty"` - - // Slug Internal relationship name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // SourceFilter Filterset filter matching the applicable source objects of the selected type - SourceFilter *map[string]interface{} `json:"source_filter"` - - // SourceHidden Hide this relationship on the source object. - SourceHidden *bool `json:"source_hidden,omitempty"` - - // SourceLabel Label for related destination objects, as displayed on the source object. - SourceLabel *string `json:"source_label,omitempty"` - SourceType *string `json:"source_type,omitempty"` - - // Type Cardinality of this relationship - Type *RelationshipTypeChoices `json:"type,omitempty"` -} - -// PatchedRelationshipRequest_RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. -type PatchedRelationshipRequest_RequiredOn struct { - union json.RawMessage -} - -// PatchedRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedRoleRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedRoleRequest_Relationships_Destination_Objects_Item defines model for PatchedRoleRequest.relationships.destination.objects.Item. -type PatchedRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRoleRequest_Relationships_Peer_Objects_Item defines model for PatchedRoleRequest.relationships.peer.objects.Item. -type PatchedRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedRoleRequest_Relationships_Source_Objects_Item defines model for PatchedRoleRequest.relationships.source.objects.Item. -type PatchedRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedSecretRequest Serializer for `Secret` objects. -type PatchedSecretRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Parameters *map[string]interface{} `json:"parameters,omitempty"` - Provider *string `json:"provider,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedSecretRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedSecretRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedSecretRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedSecretRequest_Relationships_Destination_Objects_Item defines model for PatchedSecretRequest.relationships.destination.objects.Item. -type PatchedSecretRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedSecretRequest_Relationships_Peer_Objects_Item defines model for PatchedSecretRequest.relationships.peer.objects.Item. -type PatchedSecretRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedSecretRequest_Relationships_Source_Objects_Item defines model for PatchedSecretRequest.relationships.source.objects.Item. -type PatchedSecretRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedSecretsGroupRequest Serializer for `SecretsGroup` objects. -type PatchedSecretsGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedSecretsGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedSecretsGroupRequest.relationships.destination.objects.Item. -type PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedSecretsGroupRequest.relationships.peer.objects.Item. -type PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedSecretsGroupRequest_Relationships_Source_Objects_Item defines model for PatchedSecretsGroupRequest.relationships.source.objects.Item. -type PatchedSecretsGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedServiceObjectRequest ServiceObject Serializer. -type PatchedServiceObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol *IpProtocolEnum `json:"ip_protocol,omitempty"` - - // Name Name of the service (e.g. HTTP) - Name *string `json:"name,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedServiceObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedServiceObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedServiceObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedServiceObjectRequest_Relationships_Destination_Objects_Item defines model for PatchedServiceObjectRequest.relationships.destination.objects.Item. -type PatchedServiceObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedServiceObjectRequest_Relationships_Peer_Objects_Item defines model for PatchedServiceObjectRequest.relationships.peer.objects.Item. -type PatchedServiceObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedServiceObjectRequest_Relationships_Source_Objects_Item defines model for PatchedServiceObjectRequest.relationships.source.objects.Item. -type PatchedServiceObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedStatusRequest Serializer for `Status` objects. -type PatchedStatusRequest struct { - Color *string `json:"color,omitempty"` - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedStatusRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedStatusRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedStatusRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedStatusRequest_Relationships_Destination_Objects_Item defines model for PatchedStatusRequest.relationships.destination.objects.Item. -type PatchedStatusRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedStatusRequest_Relationships_Peer_Objects_Item defines model for PatchedStatusRequest.relationships.peer.objects.Item. -type PatchedStatusRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedStatusRequest_Relationships_Source_Objects_Item defines model for PatchedStatusRequest.relationships.source.objects.Item. -type PatchedStatusRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedTagSerializerVersion13Request Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedTagSerializerVersion13Request struct { - Color *string `json:"color,omitempty"` - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item defines model for PatchedTagSerializerVersion13Request.relationships.destination.objects.Item. -type PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item defines model for PatchedTagSerializerVersion13Request.relationships.peer.objects.Item. -type PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item defines model for PatchedTagSerializerVersion13Request.relationships.source.objects.Item. -type PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedTokenRequest struct { - Description *string `json:"description,omitempty"` - Expires *time.Time `json:"expires"` - Key *string `json:"key,omitempty"` - - // WriteEnabled Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` -} - -// PatchedUserObjectRequest UserObject Serializer. -type PatchedUserObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedUserObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedUserObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedUserObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username *string `json:"username,omitempty"` -} - -// PatchedUserObjectRequest_Relationships_Destination_Objects_Item defines model for PatchedUserObjectRequest.relationships.destination.objects.Item. -type PatchedUserObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedUserObjectRequest_Relationships_Peer_Objects_Item defines model for PatchedUserObjectRequest.relationships.peer.objects.Item. -type PatchedUserObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedUserObjectRequest_Relationships_Source_Objects_Item defines model for PatchedUserObjectRequest.relationships.source.objects.Item. -type PatchedUserObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedVulnerabilityLCMRequest REST API serializer for VulnerabilityLCM records. -type PatchedVulnerabilityLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status4f5Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedVulnerabilityLCMRequest.relationships.destination.objects.Item. -type PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedVulnerabilityLCMRequest.relationships.peer.objects.Item. -type PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item defines model for PatchedVulnerabilityLCMRequest.relationships.source.objects.Item. -type PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWebhookRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedWebhookRequest struct { - // AdditionalHeaders User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value. Jinja2 template processing is support with the same context as the request body (below). - AdditionalHeaders *string `json:"additional_headers,omitempty"` - - // BodyTemplate Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. - BodyTemplate *string `json:"body_template,omitempty"` - - // CaFilePath The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath *string `json:"ca_file_path"` - ContentTypes *[]string `json:"content_types,omitempty"` - - // HttpContentType The complete list of official content types is available here. - HttpContentType *string `json:"http_content_type,omitempty"` - HttpMethod *HttpMethodEnum `json:"http_method,omitempty"` - Name *string `json:"name,omitempty"` - - // PayloadUrl A POST will be sent to this URL when the webhook is called. - PayloadUrl *string `json:"payload_url,omitempty"` - - // Secret When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. - Secret *string `json:"secret,omitempty"` - - // SslVerification Enable SSL certificate verification. Disable with caution! - SslVerification *bool `json:"ssl_verification,omitempty"` - - // TypeCreate Call this webhook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this webhook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this webhook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// PatchedWritableAddressFamilyRequest REST API serializer for AddressFamily records. -type PatchedWritableAddressFamilyRequest struct { - AfiSafi *AfiSafiEnum `json:"afi_safi,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - RoutingInstance *openapi_types.UUID `json:"routing_instance,omitempty"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// PatchedWritableAddressObjectGroupRequest AddressObjectGroup Serializer. -type PatchedWritableAddressObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableAddressObjectGroupRequest.relationships.destination.objects.Item. -type PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableAddressObjectGroupRequest.relationships.peer.objects.Item. -type PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item defines model for PatchedWritableAddressObjectGroupRequest.relationships.source.objects.Item. -type PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAddressObjectRequest AddressObject Serializer. -type PatchedWritableAddressObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Fqdn *openapi_types.UUID `json:"fqdn"` - IpAddress *openapi_types.UUID `json:"ip_address"` - IpRange *openapi_types.UUID `json:"ip_range"` - - // Name Name descriptor for an address object type. - Name *string `json:"name,omitempty"` - Prefix *openapi_types.UUID `json:"prefix"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableAddressObjectRequest.relationships.destination.objects.Item. -type PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableAddressObjectRequest.relationships.peer.objects.Item. -type PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item defines model for PatchedWritableAddressObjectRequest.relationships.source.objects.Item. -type PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAggregateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableAggregateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DateAdded *openapi_types.Date `json:"date_added"` - Description *string `json:"description,omitempty"` - Prefix *string `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableAggregateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Rir *openapi_types.UUID `json:"rir,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableAggregateRequest.relationships.destination.objects.Item. -type PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableAggregateRequest.relationships.peer.objects.Item. -type PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAggregateRequest_Relationships_Source_Objects_Item defines model for PatchedWritableAggregateRequest.relationships.source.objects.Item. -type PatchedWritableAggregateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableAutonomousSystemRequest REST API serializer for AutonomousSystem records. -type PatchedWritableAutonomousSystemRequest struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Provider *openapi_types.UUID `json:"provider"` - Status *Status2a0Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableBGPRoutingInstanceRequest REST API serializer for Peering records. -type PatchedWritableBGPRoutingInstanceRequest struct { - AutonomousSystem *openapi_types.UUID `json:"autonomous_system,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - RouterId *openapi_types.UUID `json:"router_id"` -} - -// PatchedWritableCVELCMRequest REST API serializer for CVELCM records. -type PatchedWritableCVELCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Cvss *float64 `json:"cvss"` - CvssV2 *float64 `json:"cvss_v2"` - CvssV3 *float64 `json:"cvss_v3"` - Description *string `json:"description"` - Fix *string `json:"fix"` - Link *string `json:"link,omitempty"` - Name *string `json:"name,omitempty"` - PublishedDate *openapi_types.Date `json:"published_date,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Severity *SeverityEnum `json:"severity,omitempty"` - Status *Status4f5Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableCVELCMRequest.relationships.destination.objects.Item. -type PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableCVELCMRequest.relationships.peer.objects.Item. -type PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item defines model for PatchedWritableCVELCMRequest.relationships.source.objects.Item. -type PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCableRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableCableRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Label *string `json:"label,omitempty"` - Length *int `json:"length"` - LengthUnit *PatchedWritableCableRequest_LengthUnit `json:"length_unit,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCableRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCableRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCableRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *CableStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - TerminationAId *openapi_types.UUID `json:"termination_a_id,omitempty"` - TerminationAType *string `json:"termination_a_type,omitempty"` - TerminationBId *openapi_types.UUID `json:"termination_b_id,omitempty"` - TerminationBType *string `json:"termination_b_type,omitempty"` - Type *PatchedWritableCableRequest_Type `json:"type,omitempty"` -} - -// PatchedWritableCableRequest_LengthUnit defines model for PatchedWritableCableRequest.LengthUnit. -type PatchedWritableCableRequest_LengthUnit struct { - union json.RawMessage -} - -// PatchedWritableCableRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableCableRequest.relationships.destination.objects.Item. -type PatchedWritableCableRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCableRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableCableRequest.relationships.peer.objects.Item. -type PatchedWritableCableRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCableRequest_Relationships_Source_Objects_Item defines model for PatchedWritableCableRequest.relationships.source.objects.Item. -type PatchedWritableCableRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCableRequest_Type defines model for PatchedWritableCableRequest.Type. -type PatchedWritableCableRequest_Type struct { - union json.RawMessage -} - -// PatchedWritableCircuitRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableCircuitRequest struct { - Cid *string `json:"cid,omitempty"` - Comments *string `json:"comments,omitempty"` - CommitRate *int `json:"commit_rate"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - InstallDate *openapi_types.Date `json:"install_date"` - Provider *openapi_types.UUID `json:"provider,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCircuitRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *CircuitStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Type *openapi_types.UUID `json:"type,omitempty"` -} - -// PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableCircuitRequest.relationships.destination.objects.Item. -type PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableCircuitRequest.relationships.peer.objects.Item. -type PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCircuitRequest_Relationships_Source_Objects_Item defines model for PatchedWritableCircuitRequest.relationships.source.objects.Item. -type PatchedWritableCircuitRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCircuitTerminationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableCircuitTerminationRequest struct { - Circuit *openapi_types.UUID `json:"circuit,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Location *openapi_types.UUID `json:"location"` - PortSpeed *int `json:"port_speed"` - PpInfo *string `json:"pp_info,omitempty"` - ProviderNetwork *openapi_types.UUID `json:"provider_network"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - TermSide *TermSideEnum `json:"term_side,omitempty"` - - // UpstreamSpeed Upstream speed, if different from port speed - UpstreamSpeed *int `json:"upstream_speed"` - XconnectId *string `json:"xconnect_id,omitempty"` -} - -// PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableCircuitTerminationRequest.relationships.destination.objects.Item. -type PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableCircuitTerminationRequest.relationships.peer.objects.Item. -type PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item defines model for PatchedWritableCircuitTerminationRequest.relationships.source.objects.Item. -type PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableClusterRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableClusterRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Group *openapi_types.UUID `json:"group"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableClusterRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableClusterRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableClusterRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Type *openapi_types.UUID `json:"type,omitempty"` -} - -// PatchedWritableClusterRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableClusterRequest.relationships.destination.objects.Item. -type PatchedWritableClusterRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableClusterRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableClusterRequest.relationships.peer.objects.Item. -type PatchedWritableClusterRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableClusterRequest_Relationships_Source_Objects_Item defines model for PatchedWritableClusterRequest.relationships.source.objects.Item. -type PatchedWritableClusterRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedWritableConfigContextRequest struct { - ClusterGroups *[]openapi_types.UUID `json:"cluster_groups,omitempty"` - Clusters *[]openapi_types.UUID `json:"clusters,omitempty"` - Data *map[string]interface{} `json:"data,omitempty"` - Description *string `json:"description,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Locations *[]openapi_types.UUID `json:"locations,omitempty"` - Name *string `json:"name,omitempty"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Platforms *[]openapi_types.UUID `json:"platforms,omitempty"` - Regions *[]openapi_types.UUID `json:"regions,omitempty"` - Roles *[]openapi_types.UUID `json:"roles,omitempty"` - - // Schema Optional schema to validate the structure of the data - Schema *openapi_types.UUID `json:"schema"` - Sites *[]openapi_types.UUID `json:"sites,omitempty"` - Tags *[]string `json:"tags,omitempty"` - TenantGroups *[]openapi_types.UUID `json:"tenant_groups,omitempty"` - Tenants *[]openapi_types.UUID `json:"tenants,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedWritableConsolePortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableConsolePortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *PatchedWritableConsolePortRequest_Type `json:"type,omitempty"` -} - -// PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableConsolePortRequest.relationships.destination.objects.Item. -type PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableConsolePortRequest.relationships.peer.objects.Item. -type PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item defines model for PatchedWritableConsolePortRequest.relationships.source.objects.Item. -type PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsolePortRequest_Type Physical port type -type PatchedWritableConsolePortRequest_Type struct { - union json.RawMessage -} - -// PatchedWritableConsolePortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableConsolePortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PatchedWritableConsolePortTemplateRequest_Type `json:"type,omitempty"` -} - -// PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableConsolePortTemplateRequest.relationships.destination.objects.Item. -type PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableConsolePortTemplateRequest.relationships.peer.objects.Item. -type PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritableConsolePortTemplateRequest.relationships.source.objects.Item. -type PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsolePortTemplateRequest_Type defines model for PatchedWritableConsolePortTemplateRequest.Type. -type PatchedWritableConsolePortTemplateRequest_Type struct { - union json.RawMessage -} - -// PatchedWritableConsoleServerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableConsoleServerPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *PatchedWritableConsoleServerPortRequest_Type `json:"type,omitempty"` -} - -// PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableConsoleServerPortRequest.relationships.destination.objects.Item. -type PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableConsoleServerPortRequest.relationships.peer.objects.Item. -type PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item defines model for PatchedWritableConsoleServerPortRequest.relationships.source.objects.Item. -type PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsoleServerPortRequest_Type Physical port type -type PatchedWritableConsoleServerPortRequest_Type struct { - union json.RawMessage -} - -// PatchedWritableConsoleServerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableConsoleServerPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PatchedWritableConsoleServerPortTemplateRequest_Type `json:"type,omitempty"` -} - -// PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableConsoleServerPortTemplateRequest.relationships.destination.objects.Item. -type PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableConsoleServerPortTemplateRequest.relationships.peer.objects.Item. -type PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritableConsoleServerPortTemplateRequest.relationships.source.objects.Item. -type PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableConsoleServerPortTemplateRequest_Type defines model for PatchedWritableConsoleServerPortTemplateRequest.Type. -type PatchedWritableConsoleServerPortTemplateRequest_Type struct { - union json.RawMessage -} - -// PatchedWritableContactLCMRequest API serializer. -type PatchedWritableContactLCMRequest struct { - Address *string `json:"address,omitempty"` - Comments *string `json:"comments,omitempty"` - Contract *openapi_types.UUID `json:"contract"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Name *string `json:"name"` - Phone *string `json:"phone,omitempty"` - Priority *int `json:"priority,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableContactLCMRequest.relationships.destination.objects.Item. -type PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableContactLCMRequest.relationships.peer.objects.Item. -type PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item defines model for PatchedWritableContactLCMRequest.relationships.source.objects.Item. -type PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableContractLCMRequest API serializer. -type PatchedWritableContractLCMRequest struct { - ContractType *string `json:"contract_type"` - Cost *string `json:"cost"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - End *openapi_types.Date `json:"end"` - Name *string `json:"name,omitempty"` - Provider *openapi_types.UUID `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Start *openapi_types.Date `json:"start"` - SupportLevel *string `json:"support_level"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableContractLCMRequest.relationships.destination.objects.Item. -type PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableContractLCMRequest.relationships.peer.objects.Item. -type PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item defines model for PatchedWritableContractLCMRequest.relationships.source.objects.Item. -type PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableCustomFieldChoiceRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedWritableCustomFieldChoiceRequest struct { - Field *openapi_types.UUID `json:"field,omitempty"` - Value *string `json:"value,omitempty"` - - // Weight Higher weights appear later in the list - Weight *int `json:"weight,omitempty"` -} - -// PatchedWritableDeviceBayRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableDeviceBayRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - InstalledDevice *openapi_types.UUID `json:"installed_device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableDeviceBayRequest.relationships.destination.objects.Item. -type PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableDeviceBayRequest.relationships.peer.objects.Item. -type PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item defines model for PatchedWritableDeviceBayRequest.relationships.source.objects.Item. -type PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceBayTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableDeviceBayTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` -} - -// PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableDeviceBayTemplateRequest.relationships.destination.objects.Item. -type PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableDeviceBayTemplateRequest.relationships.peer.objects.Item. -type PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritableDeviceBayTemplateRequest.relationships.source.objects.Item. -type PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceRedundancyGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableDeviceRedundancyGroupRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - FailoverStrategy *PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy `json:"failover_strategy,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Status *LocationStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy defines model for PatchedWritableDeviceRedundancyGroupRequest.FailoverStrategy. -type PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy struct { - union json.RawMessage -} - -// PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableDeviceRedundancyGroupRequest.relationships.destination.objects.Item. -type PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableDeviceRedundancyGroupRequest.relationships.peer.objects.Item. -type PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item defines model for PatchedWritableDeviceRedundancyGroupRequest.relationships.source.objects.Item. -type PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableDeviceTypeRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - FrontImage *openapi_types.File `json:"front_image,omitempty"` - - // IsFullDepth Device consumes both front and rear rack faces - IsFullDepth *bool `json:"is_full_depth,omitempty"` - Manufacturer *openapi_types.UUID `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` - - // PartNumber Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - RearImage *openapi_types.File `json:"rear_image,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // SubdeviceRole Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. - SubdeviceRole *PatchedWritableDeviceTypeRequest_SubdeviceRole `json:"subdevice_role,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UHeight *int `json:"u_height,omitempty"` -} - -// PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableDeviceTypeRequest.relationships.destination.objects.Item. -type PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableDeviceTypeRequest.relationships.peer.objects.Item. -type PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item defines model for PatchedWritableDeviceTypeRequest.relationships.source.objects.Item. -type PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceTypeRequest_SubdeviceRole Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. -type PatchedWritableDeviceTypeRequest_SubdeviceRole struct { - union json.RawMessage -} - -// PatchedWritableDeviceWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableDeviceWithConfigContextRequest struct { - // AssetTag A unique tag used to identify this device - AssetTag *string `json:"asset_tag"` - Cluster *openapi_types.UUID `json:"cluster"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRedundancyGroup *openapi_types.UUID `json:"device_redundancy_group"` - - // DeviceRedundancyGroupPriority The priority the device has in the device redundancy group. - DeviceRedundancyGroupPriority *int `json:"device_redundancy_group_priority"` - DeviceRole *openapi_types.UUID `json:"device_role,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - Face *PatchedWritableDeviceWithConfigContextRequest_Face `json:"face,omitempty"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - - // LocalContextSchema Optional schema to validate the structure of the data - LocalContextSchema *openapi_types.UUID `json:"local_context_schema"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name"` - Platform *openapi_types.UUID `json:"platform"` - - // Position The lowest-numbered unit occupied by the device - Position *int `json:"position"` - PrimaryIp4 *openapi_types.UUID `json:"primary_ip4"` - PrimaryIp6 *openapi_types.UUID `json:"primary_ip6"` - Rack *openapi_types.UUID `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Serial *string `json:"serial,omitempty"` - Site *openapi_types.UUID `json:"site,omitempty"` - Status *DeviceStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - VcPosition *int `json:"vc_position"` - VcPriority *int `json:"vc_priority"` - VirtualChassis *openapi_types.UUID `json:"virtual_chassis"` -} - -// PatchedWritableDeviceWithConfigContextRequest_Face defines model for PatchedWritableDeviceWithConfigContextRequest.Face. -type PatchedWritableDeviceWithConfigContextRequest_Face struct { - union json.RawMessage -} - -// PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableDeviceWithConfigContextRequest.relationships.destination.objects.Item. -type PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableDeviceWithConfigContextRequest.relationships.peer.objects.Item. -type PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item defines model for PatchedWritableDeviceWithConfigContextRequest.relationships.source.objects.Item. -type PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableDynamicGroupMembershipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedWritableDynamicGroupMembershipRequest struct { - Group *openapi_types.UUID `json:"group,omitempty"` - Operator *OperatorEnum `json:"operator,omitempty"` - ParentGroup *openapi_types.UUID `json:"parent_group,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedWritableFQDNRequest FQDN Serializer. -type PatchedWritableFQDNRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Resolvable fully qualified domain name (e.g. networktocode.com) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFQDNRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableFQDNRequest.relationships.destination.objects.Item. -type PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableFQDNRequest.relationships.peer.objects.Item. -type PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFQDNRequest_Relationships_Source_Objects_Item defines model for PatchedWritableFQDNRequest.relationships.source.objects.Item. -type PatchedWritableFQDNRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFrontPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableFrontPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - RearPort *openapi_types.UUID `json:"rear_port,omitempty"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableFrontPortRequest.relationships.destination.objects.Item. -type PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableFrontPortRequest.relationships.peer.objects.Item. -type PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item defines model for PatchedWritableFrontPortRequest.relationships.source.objects.Item. -type PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFrontPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableFrontPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - RearPort *openapi_types.UUID `json:"rear_port,omitempty"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableFrontPortTemplateRequest.relationships.destination.objects.Item. -type PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableFrontPortTemplateRequest.relationships.peer.objects.Item. -type PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritableFrontPortTemplateRequest.relationships.source.objects.Item. -type PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableGitRepositoryRequest Git repositories defined as a data source. -type PatchedWritableGitRepositoryRequest struct { - Branch *string `json:"branch,omitempty"` - - // CurrentHead Commit hash of the most recent fetch from the selected branch. Used for syncing between workers. - CurrentHead *string `json:"current_head,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Name *string `json:"name,omitempty"` - ProvidedContents *[]PatchedWritableGitRepositoryRequest_ProvidedContents_Item `json:"provided_contents,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // RemoteUrl Only HTTP and HTTPS URLs are presently supported - RemoteUrl *string `json:"remote_url,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Token *string `json:"token,omitempty"` - Username *string `json:"username,omitempty"` -} - -// PatchedWritableGitRepositoryRequest_ProvidedContents_Item defines model for PatchedWritableGitRepositoryRequest.provided_contents.Item. -type PatchedWritableGitRepositoryRequest_ProvidedContents_Item struct { - union json.RawMessage -} - -// PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableGitRepositoryRequest.relationships.destination.objects.Item. -type PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableGitRepositoryRequest.relationships.peer.objects.Item. -type PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item defines model for PatchedWritableGitRepositoryRequest.relationships.source.objects.Item. -type PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableGoldenConfigSettingRequest Serializer for GoldenConfigSetting object. -type PatchedWritableGoldenConfigSettingRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupPathTemplate The Jinja path representation of where the backup file will be found. The variable `obj` is available as the device instance object of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - BackupPathTemplate *string `json:"backup_path_template,omitempty"` - BackupRepository *openapi_types.UUID `json:"backup_repository"` - - // BackupTestConnectivity Whether or not to pretest the connectivity of the device by verifying there is a resolvable IP that can connect to port 22. - BackupTestConnectivity *bool `json:"backup_test_connectivity,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DynamicGroup *openapi_types.UUID `json:"dynamic_group,omitempty"` - - // IntendedPathTemplate The Jinja path representation of where the generated file will be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - IntendedPathTemplate *string `json:"intended_path_template,omitempty"` - IntendedRepository *openapi_types.UUID `json:"intended_repository"` - - // JinjaPathTemplate The Jinja path representation of where the Jinja template can be found. e.g. `{{obj.platform.slug}}.j2` - JinjaPathTemplate *string `json:"jinja_path_template,omitempty"` - JinjaRepository *openapi_types.UUID `json:"jinja_repository"` - Name *string `json:"name,omitempty"` - Scope *map[string]interface{} `json:"scope,omitempty"` - Slug *string `json:"slug,omitempty"` - SotAggQuery *openapi_types.UUID `json:"sot_agg_query"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PatchedWritableHardwareLCMRequest API serializer. -type PatchedWritableHardwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSale *openapi_types.Date `json:"end_of_sale"` - EndOfSecurityPatches *openapi_types.Date `json:"end_of_security_patches"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - EndOfSwReleases *openapi_types.Date `json:"end_of_sw_releases"` - InventoryItem *string `json:"inventory_item"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableHardwareLCMRequest.relationships.destination.objects.Item. -type PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableHardwareLCMRequest.relationships.peer.objects.Item. -type PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item defines model for PatchedWritableHardwareLCMRequest.relationships.source.objects.Item. -type PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableIPAddressRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableIPAddressRequest struct { - Address *string `json:"address,omitempty"` - AssignedObjectId *openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType *string `json:"assigned_object_type"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DnsName Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - - // NatInside The IP Addresses for which this address is the "outside" IP - NatInside *openapi_types.UUID `json:"nat_inside"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Role The functional role of this IP - Role *PatchedWritableIPAddressRequest_Role `json:"role,omitempty"` - Status *IPAddressStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableIPAddressRequest.relationships.destination.objects.Item. -type PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableIPAddressRequest.relationships.peer.objects.Item. -type PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item defines model for PatchedWritableIPAddressRequest.relationships.source.objects.Item. -type PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableIPAddressRequest_Role The functional role of this IP -type PatchedWritableIPAddressRequest_Role struct { - union json.RawMessage -} - -// PatchedWritableInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableInterfaceRequest struct { - // Bridge Assigned bridge interface - Bridge *openapi_types.UUID `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // Lag Assigned LAG interface - Lag *openapi_types.UUID `json:"lag"` - MacAddress *string `json:"mac_address"` - - // MgmtOnly This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Mode *PatchedWritableInterfaceRequest_Mode `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name *string `json:"name,omitempty"` - - // ParentInterface Assigned parent interface - ParentInterface *openapi_types.UUID `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *InterfaceStatusChoices `json:"status,omitempty"` - TaggedVlans *[]openapi_types.UUID `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *InterfaceTypeChoices `json:"type,omitempty"` - UntaggedVlan *openapi_types.UUID `json:"untagged_vlan"` -} - -// PatchedWritableInterfaceRequest_Mode defines model for PatchedWritableInterfaceRequest.Mode. -type PatchedWritableInterfaceRequest_Mode struct { - union json.RawMessage -} - -// PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableInterfaceRequest.relationships.destination.objects.Item. -type PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableInterfaceRequest.relationships.peer.objects.Item. -type PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item defines model for PatchedWritableInterfaceRequest.relationships.source.objects.Item. -type PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInterfaceTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableInterfaceTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *InterfaceTypeChoices `json:"type,omitempty"` -} - -// PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableInterfaceTemplateRequest.relationships.destination.objects.Item. -type PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableInterfaceTemplateRequest.relationships.peer.objects.Item. -type PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritableInterfaceTemplateRequest.relationships.source.objects.Item. -type PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInventoryItemRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableInventoryItemRequest struct { - // AssetTag A unique tag used to identify this item - AssetTag *string `json:"asset_tag"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - - // Discovered This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Manufacturer *openapi_types.UUID `json:"manufacturer"` - Name *string `json:"name,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - - // PartId Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Serial *string `json:"serial,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableInventoryItemRequest.relationships.destination.objects.Item. -type PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableInventoryItemRequest.relationships.peer.objects.Item. -type PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item defines model for PatchedWritableInventoryItemRequest.relationships.source.objects.Item. -type PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableLocationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableLocationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - LocationType *openapi_types.UUID `json:"location_type,omitempty"` - Name *string `json:"name,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableLocationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableLocationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableLocationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - Slug *string `json:"slug,omitempty"` - Status *LocationStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedWritableLocationRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableLocationRequest.relationships.destination.objects.Item. -type PatchedWritableLocationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableLocationRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableLocationRequest.relationships.peer.objects.Item. -type PatchedWritableLocationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableLocationRequest_Relationships_Source_Objects_Item defines model for PatchedWritableLocationRequest.relationships.source.objects.Item. -type PatchedWritableLocationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableLocationTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableLocationTypeRequest struct { - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - - // Nestable Allow Locations of this type to be parents/children of other Locations of this same type - Nestable *bool `json:"nestable,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableLocationTypeRequest.relationships.destination.objects.Item. -type PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableLocationTypeRequest.relationships.peer.objects.Item. -type PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item defines model for PatchedWritableLocationTypeRequest.relationships.source.objects.Item. -type PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableNATPolicyRuleRequest PolicyRule Serializer. -type PatchedWritableNATPolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Remark *bool `json:"remark,omitempty"` - RequestId *string `json:"request_id"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableNATPolicyRuleRequest.relationships.destination.objects.Item. -type PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableNATPolicyRuleRequest.relationships.peer.objects.Item. -type PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item defines model for PatchedWritableNATPolicyRuleRequest.relationships.source.objects.Item. -type PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedWritableObjectPermissionRequest struct { - // Actions The list of actions granted by this permission - Actions *map[string]interface{} `json:"actions,omitempty"` - - // Constraints Queryset filter matching the applicable objects of the selected type(s) - Constraints *map[string]interface{} `json:"constraints"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Groups *[]int `json:"groups,omitempty"` - Name *string `json:"name,omitempty"` - ObjectTypes *[]string `json:"object_types,omitempty"` - Users *[]openapi_types.UUID `json:"users,omitempty"` -} - -// PatchedWritablePeerEndpointRequest REST API serializer for PeerEndpoint records. -type PatchedWritablePeerEndpointRequest struct { - AutonomousSystem *openapi_types.UUID `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - Peer *openapi_types.UUID `json:"peer"` - PeerGroup *openapi_types.UUID `json:"peer_group"` - Peering *openapi_types.UUID `json:"peering,omitempty"` - RoutingInstance *openapi_types.UUID `json:"routing_instance"` - Secret *openapi_types.UUID `json:"secret"` - SourceInterface *openapi_types.UUID `json:"source_interface"` - SourceIp *openapi_types.UUID `json:"source_ip"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritablePeerGroupRequest REST API serializer for PeerGroup records. -type PatchedWritablePeerGroupRequest struct { - AutonomousSystem *openapi_types.UUID `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name *string `json:"name,omitempty"` - Role *openapi_types.UUID `json:"role"` - RoutingInstance *openapi_types.UUID `json:"routing_instance,omitempty"` - Secret *openapi_types.UUID `json:"secret"` - SourceInterface *openapi_types.UUID `json:"source_interface"` - SourceIp *openapi_types.UUID `json:"source_ip"` - Template *openapi_types.UUID `json:"template"` -} - -// PatchedWritablePeerGroupTemplateRequest REST API serializer for PeerGroup records. -type PatchedWritablePeerGroupTemplateRequest struct { - AutonomousSystem *openapi_types.UUID `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name *string `json:"name,omitempty"` - Role *openapi_types.UUID `json:"role"` - Secret *openapi_types.UUID `json:"secret"` -} - -// PatchedWritablePlatformRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePlatformRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Manufacturer Optionally limit this platform to devices of a certain manufacturer - Manufacturer *openapi_types.UUID `json:"manufacturer"` - Name *string `json:"name,omitempty"` - - // NapalmArgs Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs *map[string]interface{} `json:"napalm_args"` - - // NapalmDriver The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePlatformRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePlatformRequest.relationships.destination.objects.Item. -type PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePlatformRequest.relationships.peer.objects.Item. -type PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePlatformRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePlatformRequest.relationships.source.objects.Item. -type PatchedWritablePlatformRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePolicyRuleRequest PolicyRule Serializer. -type PatchedWritablePolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Action *ActionEnum `json:"action,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - RequestId *string `json:"request_id"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePolicyRuleRequest.relationships.destination.objects.Item. -type PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePolicyRuleRequest.relationships.peer.objects.Item. -type PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePolicyRuleRequest.relationships.source.objects.Item. -type PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerFeedRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePowerFeedRequest struct { - Amperage *int `json:"amperage,omitempty"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // MaxUtilization Maximum permissible draw (percentage) - MaxUtilization *int `json:"max_utilization,omitempty"` - Name *string `json:"name,omitempty"` - Phase *PhaseEnum `json:"phase,omitempty"` - PowerPanel *openapi_types.UUID `json:"power_panel,omitempty"` - Rack *openapi_types.UUID `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *PowerFeedStatusChoices `json:"status,omitempty"` - Supply *SupplyEnum `json:"supply,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerFeedTypeChoices `json:"type,omitempty"` - Voltage *int `json:"voltage,omitempty"` -} - -// PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePowerFeedRequest.relationships.destination.objects.Item. -type PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePowerFeedRequest.relationships.peer.objects.Item. -type PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePowerFeedRequest.relationships.source.objects.Item. -type PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerOutletRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePowerOutletRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - - // FeedLeg Phase (for three-phase feeds) - FeedLeg *PatchedWritablePowerOutletRequest_FeedLeg `json:"feed_leg,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - PowerPort *openapi_types.UUID `json:"power_port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *PatchedWritablePowerOutletRequest_Type `json:"type,omitempty"` -} - -// PatchedWritablePowerOutletRequest_FeedLeg Phase (for three-phase feeds) -type PatchedWritablePowerOutletRequest_FeedLeg struct { - union json.RawMessage -} - -// PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePowerOutletRequest.relationships.destination.objects.Item. -type PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePowerOutletRequest.relationships.peer.objects.Item. -type PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePowerOutletRequest.relationships.source.objects.Item. -type PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerOutletRequest_Type Physical port type -type PatchedWritablePowerOutletRequest_Type struct { - union json.RawMessage -} - -// PatchedWritablePowerOutletTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePowerOutletTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // FeedLeg Phase (for three-phase feeds) - FeedLeg *PatchedWritablePowerOutletTemplateRequest_FeedLeg `json:"feed_leg,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - PowerPort *openapi_types.UUID `json:"power_port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PatchedWritablePowerOutletTemplateRequest_Type `json:"type,omitempty"` -} - -// PatchedWritablePowerOutletTemplateRequest_FeedLeg Phase (for three-phase feeds) -type PatchedWritablePowerOutletTemplateRequest_FeedLeg struct { - union json.RawMessage -} - -// PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePowerOutletTemplateRequest.relationships.destination.objects.Item. -type PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePowerOutletTemplateRequest.relationships.peer.objects.Item. -type PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePowerOutletTemplateRequest.relationships.source.objects.Item. -type PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerOutletTemplateRequest_Type defines model for PatchedWritablePowerOutletTemplateRequest.Type. -type PatchedWritablePowerOutletTemplateRequest_Type struct { - union json.RawMessage -} - -// PatchedWritablePowerPanelRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePowerPanelRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name,omitempty"` - RackGroup *openapi_types.UUID `json:"rack_group"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePowerPanelRequest.relationships.destination.objects.Item. -type PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePowerPanelRequest.relationships.peer.objects.Item. -type PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePowerPanelRequest.relationships.source.objects.Item. -type PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePowerPortRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *PatchedWritablePowerPortRequest_Type `json:"type,omitempty"` -} - -// PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePowerPortRequest.relationships.destination.objects.Item. -type PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePowerPortRequest.relationships.peer.objects.Item. -type PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePowerPortRequest.relationships.source.objects.Item. -type PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPortRequest_Type Physical port type -type PatchedWritablePowerPortRequest_Type struct { - union json.RawMessage -} - -// PatchedWritablePowerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePowerPortTemplateRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PatchedWritablePowerPortTemplateRequest_Type `json:"type,omitempty"` -} - -// PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePowerPortTemplateRequest.relationships.destination.objects.Item. -type PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePowerPortTemplateRequest.relationships.peer.objects.Item. -type PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePowerPortTemplateRequest.relationships.source.objects.Item. -type PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePowerPortTemplateRequest_Type defines model for PatchedWritablePowerPortTemplateRequest.Type. -type PatchedWritablePowerPortTemplateRequest_Type struct { - union json.RawMessage -} - -// PatchedWritablePrefixRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritablePrefixRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IsPool All IP addresses within this prefix are considered usable - IsPool *bool `json:"is_pool,omitempty"` - Location *openapi_types.UUID `json:"location"` - Prefix *string `json:"prefix,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritablePrefixRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Role The primary function of this prefix - Role *openapi_types.UUID `json:"role"` - Site *openapi_types.UUID `json:"site"` - Status *PrefixStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vlan *openapi_types.UUID `json:"vlan"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item defines model for PatchedWritablePrefixRequest.relationships.destination.objects.Item. -type PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item defines model for PatchedWritablePrefixRequest.relationships.peer.objects.Item. -type PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritablePrefixRequest_Relationships_Source_Objects_Item defines model for PatchedWritablePrefixRequest.relationships.source.objects.Item. -type PatchedWritablePrefixRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableProviderNetworkRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableProviderNetworkRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Provider *openapi_types.UUID `json:"provider,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableProviderNetworkRequest.relationships.destination.objects.Item. -type PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableProviderNetworkRequest.relationships.peer.objects.Item. -type PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item defines model for PatchedWritableProviderNetworkRequest.relationships.source.objects.Item. -type PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableRackGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableRackGroupRequest.relationships.destination.objects.Item. -type PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableRackGroupRequest.relationships.peer.objects.Item. -type PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item defines model for PatchedWritableRackGroupRequest.relationships.source.objects.Item. -type PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableRackRequest struct { - // AssetTag A unique tag used to identify this rack - AssetTag *string `json:"asset_tag"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DescUnits Units are numbered top-to-bottom - DescUnits *bool `json:"desc_units,omitempty"` - - // FacilityId Locally-assigned identifier - FacilityId *string `json:"facility_id"` - - // Group Assigned group - Group *openapi_types.UUID `json:"group"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name,omitempty"` - - // OuterDepth Outer dimension of rack (depth) - OuterDepth *int `json:"outer_depth"` - OuterUnit *PatchedWritableRackRequest_OuterUnit `json:"outer_unit,omitempty"` - - // OuterWidth Outer dimension of rack (width) - OuterWidth *int `json:"outer_width"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Role Functional role - Role *openapi_types.UUID `json:"role"` - Serial *string `json:"serial,omitempty"` - Site *openapi_types.UUID `json:"site,omitempty"` - Status *RackStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Type *PatchedWritableRackRequest_Type `json:"type,omitempty"` - - // UHeight Height in rack units - UHeight *int `json:"u_height,omitempty"` - - // Width Rail-to-rail width - Width *WidthEnum `json:"width,omitempty"` -} - -// PatchedWritableRackRequest_OuterUnit defines model for PatchedWritableRackRequest.OuterUnit. -type PatchedWritableRackRequest_OuterUnit struct { - union json.RawMessage -} - -// PatchedWritableRackRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableRackRequest.relationships.destination.objects.Item. -type PatchedWritableRackRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableRackRequest.relationships.peer.objects.Item. -type PatchedWritableRackRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackRequest_Relationships_Source_Objects_Item defines model for PatchedWritableRackRequest.relationships.source.objects.Item. -type PatchedWritableRackRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackRequest_Type defines model for PatchedWritableRackRequest.Type. -type PatchedWritableRackRequest_Type struct { - union json.RawMessage -} - -// PatchedWritableRackReservationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableRackReservationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Rack *openapi_types.UUID `json:"rack,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Units *map[string]interface{} `json:"units,omitempty"` - User *openapi_types.UUID `json:"user,omitempty"` -} - -// PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableRackReservationRequest.relationships.destination.objects.Item. -type PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableRackReservationRequest.relationships.peer.objects.Item. -type PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item defines model for PatchedWritableRackReservationRequest.relationships.source.objects.Item. -type PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRearPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableRearPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRearPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableRearPortRequest.relationships.destination.objects.Item. -type PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableRearPortRequest.relationships.peer.objects.Item. -type PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRearPortRequest_Relationships_Source_Objects_Item defines model for PatchedWritableRearPortRequest.relationships.source.objects.Item. -type PatchedWritableRearPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRearPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableRearPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name *string `json:"name,omitempty"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *PortTypeChoices `json:"type,omitempty"` -} - -// PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableRearPortTemplateRequest.relationships.destination.objects.Item. -type PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableRearPortTemplateRequest.relationships.peer.objects.Item. -type PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item defines model for PatchedWritableRearPortTemplateRequest.relationships.source.objects.Item. -type PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRegionRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableRegionRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRegionRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRegionRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRegionRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedWritableRegionRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableRegionRequest.relationships.destination.objects.Item. -type PatchedWritableRegionRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRegionRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableRegionRequest.relationships.peer.objects.Item. -type PatchedWritableRegionRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRegionRequest_Relationships_Source_Objects_Item defines model for PatchedWritableRegionRequest.relationships.source.objects.Item. -type PatchedWritableRegionRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRelationshipAssociationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedWritableRelationshipAssociationRequest struct { - DestinationId *openapi_types.UUID `json:"destination_id,omitempty"` - DestinationType *string `json:"destination_type,omitempty"` - Relationship *openapi_types.UUID `json:"relationship,omitempty"` - SourceId *openapi_types.UUID `json:"source_id,omitempty"` - SourceType *string `json:"source_type,omitempty"` -} - -// PatchedWritableRouteTargetRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableRouteTargetRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableRouteTargetRequest.relationships.destination.objects.Item. -type PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableRouteTargetRequest.relationships.peer.objects.Item. -type PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item defines model for PatchedWritableRouteTargetRequest.relationships.source.objects.Item. -type PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSecretsGroupAssociationRequest Serializer for `SecretsGroupAssociation` objects. -type PatchedWritableSecretsGroupAssociationRequest struct { - AccessType *AccessTypeEnum `json:"access_type,omitempty"` - Group *openapi_types.UUID `json:"group,omitempty"` - Secret *openapi_types.UUID `json:"secret,omitempty"` - SecretType *SecretTypeEnum `json:"secret_type,omitempty"` -} - -// PatchedWritableServiceObjectGroupRequest ServiceObjectGroup Serializer. -type PatchedWritableServiceObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableServiceObjectGroupRequest.relationships.destination.objects.Item. -type PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableServiceObjectGroupRequest.relationships.peer.objects.Item. -type PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item defines model for PatchedWritableServiceObjectGroupRequest.relationships.source.objects.Item. -type PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableServiceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableServiceRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device"` - Ipaddresses *[]openapi_types.UUID `json:"ipaddresses,omitempty"` - Name *string `json:"name,omitempty"` - Ports *[]int `json:"ports,omitempty"` - Protocol *ProtocolEnum `json:"protocol,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableServiceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableServiceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableServiceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - VirtualMachine *openapi_types.UUID `json:"virtual_machine"` -} - -// PatchedWritableServiceRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableServiceRequest.relationships.destination.objects.Item. -type PatchedWritableServiceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableServiceRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableServiceRequest.relationships.peer.objects.Item. -type PatchedWritableServiceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableServiceRequest_Relationships_Source_Objects_Item defines model for PatchedWritableServiceRequest.relationships.source.objects.Item. -type PatchedWritableServiceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSiteRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableSiteRequest struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - ContactEmail *openapi_types.Email `json:"contact_email,omitempty"` - ContactName *string `json:"contact_name,omitempty"` - ContactPhone *string `json:"contact_phone,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Facility Local facility ID or description - Facility *string `json:"facility,omitempty"` - - // Latitude GPS coordinate (latitude) - Latitude *string `json:"latitude"` - - // Longitude GPS coordinate (longitude) - Longitude *string `json:"longitude"` - Name *string `json:"name,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Region *openapi_types.UUID `json:"region"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSiteRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSiteRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSiteRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ShippingAddress *string `json:"shipping_address,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *LocationStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - TimeZone *string `json:"time_zone"` -} - -// PatchedWritableSiteRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableSiteRequest.relationships.destination.objects.Item. -type PatchedWritableSiteRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSiteRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableSiteRequest.relationships.peer.objects.Item. -type PatchedWritableSiteRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSiteRequest_Relationships_Source_Objects_Item defines model for PatchedWritableSiteRequest.relationships.source.objects.Item. -type PatchedWritableSiteRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSoftwareImageLCMRequest REST API serializer for SoftwareImageLCM records. -type PatchedWritableSoftwareImageLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName *string `json:"image_file_name,omitempty"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Software *openapi_types.UUID `json:"software,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableSoftwareImageLCMRequest.relationships.destination.objects.Item. -type PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableSoftwareImageLCMRequest.relationships.peer.objects.Item. -type PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item defines model for PatchedWritableSoftwareImageLCMRequest.relationships.source.objects.Item. -type PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSoftwareLCMRequest REST API serializer for SoftwareLCM records. -type PatchedWritableSoftwareLCMRequest struct { - Alias *string `json:"alias"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DevicePlatform *openapi_types.UUID `json:"device_platform,omitempty"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - LongTermSupport *bool `json:"long_term_support,omitempty"` - PreRelease *bool `json:"pre_release,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - SoftwareImages *[]openapi_types.UUID `json:"software_images,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Version *string `json:"version,omitempty"` -} - -// PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableSoftwareLCMRequest.relationships.destination.objects.Item. -type PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableSoftwareLCMRequest.relationships.peer.objects.Item. -type PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for PatchedWritableSoftwareLCMRequest.relationships.source.objects.Item. -type PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableTenantGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableTenantGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableTenantGroupRequest.relationships.destination.objects.Item. -type PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableTenantGroupRequest.relationships.peer.objects.Item. -type PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item defines model for PatchedWritableTenantGroupRequest.relationships.source.objects.Item. -type PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableTenantRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableTenantRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Group *openapi_types.UUID `json:"group"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableTenantRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableTenantRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableTenantRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableTenantRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableTenantRequest.relationships.destination.objects.Item. -type PatchedWritableTenantRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableTenantRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableTenantRequest.relationships.peer.objects.Item. -type PatchedWritableTenantRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableTenantRequest_Relationships_Source_Objects_Item defines model for PatchedWritableTenantRequest.relationships.source.objects.Item. -type PatchedWritableTenantRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableUserObjectGroupRequest UserObjectGroup Serializer. -type PatchedWritableUserObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableUserObjectGroupRequest.relationships.destination.objects.Item. -type PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableUserObjectGroupRequest.relationships.peer.objects.Item. -type PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item defines model for PatchedWritableUserObjectGroupRequest.relationships.source.objects.Item. -type PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type PatchedWritableUserRequest struct { - DateJoined *time.Time `json:"date_joined,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - FirstName *string `json:"first_name,omitempty"` - - // Groups The groups this user belongs to. A user will get all permissions granted to each of their groups. - Groups *[]int `json:"groups,omitempty"` - - // IsActive Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - - // IsStaff Designates whether the user can log into this admin site. - IsStaff *bool `json:"is_staff,omitempty"` - LastName *string `json:"last_name,omitempty"` - Password *string `json:"password,omitempty"` - - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username *string `json:"username,omitempty"` -} - -// PatchedWritableVLANGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableVLANGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - Slug *string `json:"slug,omitempty"` -} - -// PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableVLANGroupRequest.relationships.destination.objects.Item. -type PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableVLANGroupRequest.relationships.peer.objects.Item. -type PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item defines model for PatchedWritableVLANGroupRequest.relationships.source.objects.Item. -type PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVLANRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableVLANRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Group *openapi_types.UUID `json:"group"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVLANRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVLANRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVLANRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *openapi_types.UUID `json:"role"` - Site *openapi_types.UUID `json:"site"` - Status *VLANStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vid *int `json:"vid,omitempty"` -} - -// PatchedWritableVLANRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableVLANRequest.relationships.destination.objects.Item. -type PatchedWritableVLANRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVLANRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableVLANRequest.relationships.peer.objects.Item. -type PatchedWritableVLANRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVLANRequest_Relationships_Source_Objects_Item defines model for PatchedWritableVLANRequest.relationships.source.objects.Item. -type PatchedWritableVLANRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVMInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableVMInterfaceRequest struct { - // Bridge Assigned bridge interface - Bridge *openapi_types.UUID `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - MacAddress *string `json:"mac_address"` - Mode *PatchedWritableVMInterfaceRequest_Mode `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name *string `json:"name,omitempty"` - - // ParentInterface Assigned parent interface - ParentInterface *openapi_types.UUID `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *InterfaceStatusChoices `json:"status,omitempty"` - TaggedVlans *[]openapi_types.UUID `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UntaggedVlan *openapi_types.UUID `json:"untagged_vlan"` - VirtualMachine *openapi_types.UUID `json:"virtual_machine,omitempty"` -} - -// PatchedWritableVMInterfaceRequest_Mode defines model for PatchedWritableVMInterfaceRequest.Mode. -type PatchedWritableVMInterfaceRequest_Mode struct { - union json.RawMessage -} - -// PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableVMInterfaceRequest.relationships.destination.objects.Item. -type PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableVMInterfaceRequest.relationships.peer.objects.Item. -type PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item defines model for PatchedWritableVMInterfaceRequest.relationships.source.objects.Item. -type PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVRFRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableVRFRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // EnforceUnique Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - ExportTargets *[]openapi_types.UUID `json:"export_targets,omitempty"` - ImportTargets *[]openapi_types.UUID `json:"import_targets,omitempty"` - Name *string `json:"name,omitempty"` - - // Rd Unique route distinguisher (as defined in RFC 4364) - Rd *string `json:"rd"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVRFRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVRFRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVRFRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PatchedWritableVRFRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableVRFRequest.relationships.destination.objects.Item. -type PatchedWritableVRFRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVRFRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableVRFRequest.relationships.peer.objects.Item. -type PatchedWritableVRFRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVRFRequest_Relationships_Source_Objects_Item defines model for PatchedWritableVRFRequest.relationships.source.objects.Item. -type PatchedWritableVRFRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableValidatedSoftwareLCMRequest REST API serializer for ValidatedSoftwareLCM records. -type PatchedWritableValidatedSoftwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRoles *[]openapi_types.UUID `json:"device_roles,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - Devices *[]openapi_types.UUID `json:"devices,omitempty"` - End *openapi_types.Date `json:"end"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Preferred *bool `json:"preferred,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Software *openapi_types.UUID `json:"software,omitempty"` - Start *openapi_types.Date `json:"start,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableValidatedSoftwareLCMRequest.relationships.destination.objects.Item. -type PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableValidatedSoftwareLCMRequest.relationships.peer.objects.Item. -type PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for PatchedWritableValidatedSoftwareLCMRequest.relationships.source.objects.Item. -type PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVirtualChassisRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableVirtualChassisRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Domain *string `json:"domain,omitempty"` - Master *openapi_types.UUID `json:"master"` - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableVirtualChassisRequest.relationships.destination.objects.Item. -type PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableVirtualChassisRequest.relationships.peer.objects.Item. -type PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item defines model for PatchedWritableVirtualChassisRequest.relationships.source.objects.Item. -type PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVirtualMachineWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PatchedWritableVirtualMachineWithConfigContextRequest struct { - Cluster *openapi_types.UUID `json:"cluster,omitempty"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Disk *int `json:"disk"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - - // LocalContextSchema Optional schema to validate the structure of the data - LocalContextSchema *openapi_types.UUID `json:"local_context_schema"` - Memory *int `json:"memory"` - Name *string `json:"name,omitempty"` - Platform *openapi_types.UUID `json:"platform"` - PrimaryIp4 *openapi_types.UUID `json:"primary_ip4"` - PrimaryIp6 *openapi_types.UUID `json:"primary_ip6"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *openapi_types.UUID `json:"role"` - Status *VirtualMachineStatusChoices `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vcpus *int `json:"vcpus"` -} - -// PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for PatchedWritableVirtualMachineWithConfigContextRequest.relationships.destination.objects.Item. -type PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for PatchedWritableVirtualMachineWithConfigContextRequest.relationships.peer.objects.Item. -type PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item defines model for PatchedWritableVirtualMachineWithConfigContextRequest.relationships.source.objects.Item. -type PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedZoneRequest Zone Serializer. -type PatchedZoneRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Interfaces *[]NestedInterfaceRequest `json:"interfaces,omitempty"` - - // Name Name of the zone (e.g. trust) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedZoneRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedZoneRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PatchedZoneRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// PatchedZoneRequest_Relationships_Destination_Objects_Item defines model for PatchedZoneRequest.relationships.destination.objects.Item. -type PatchedZoneRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedZoneRequest_Relationships_Peer_Objects_Item defines model for PatchedZoneRequest.relationships.peer.objects.Item. -type PatchedZoneRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PatchedZoneRequest_Relationships_Source_Objects_Item defines model for PatchedZoneRequest.relationships.source.objects.Item. -type PatchedZoneRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PeerEndpoint REST API serializer for PeerEndpoint records. -type PeerEndpoint struct { - AutonomousSystem *NestedAutonomousSystem `json:"autonomous_system"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Peer *NestedPeerEndpoint `json:"peer"` - PeerGroup *NestedPeerGroup `json:"peer_group"` - Peering *NestedPeering `json:"peering"` - RoutingInstance *NestedRoutingInstance `json:"routing_instance"` - Secret *NestedSecret `json:"secret"` - SourceInterface *NestedInterface `json:"source_interface"` - SourceIp *NestedIPAddress `json:"source_ip"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PeerGroup REST API serializer for PeerGroup records. -type PeerGroup struct { - AutonomousSystem *NestedAutonomousSystem `json:"autonomous_system"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ExtraAttributes *string `json:"extra_attributes,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - - // RoutingInstance Nested/brief serializer for PeerEndpoint. - RoutingInstance NestedRoutingInstance `json:"routing_instance"` - Secret *NestedSecret `json:"secret"` - SourceInterface *NestedInterface `json:"source_interface"` - SourceIp *NestedIPAddress `json:"source_ip"` - Template *NestedPeerGroupTemplate `json:"template"` - Url *string `json:"url,omitempty"` -} - -// PeerGroupTemplate REST API serializer for PeerGroup records. -type PeerGroupTemplate struct { - AutonomousSystem *NestedAutonomousSystem `json:"autonomous_system"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - Secret *NestedSecret `json:"secret"` - Url *string `json:"url,omitempty"` -} - -// Peering REST API serializer for Peering records. -type Peering struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Endpoints *[]NestedPeerEndpoint `json:"endpoints,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Status struct { - Label *PeeringStatusLabel `json:"label,omitempty"` - Value *PeeringStatusValue `json:"value,omitempty"` - } `json:"status"` - Url *string `json:"url,omitempty"` -} - -// PeeringStatusLabel defines model for Peering.Status.Label. -type PeeringStatusLabel string - -// PeeringStatusValue defines model for Peering.Status.Value. -type PeeringStatusValue string - -// PeeringRequest REST API serializer for Peering records. -type PeeringRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Status CircuitStatusChoices `json:"status"` -} - -// PeeringRole REST API serializer for PeeringRole records. -type PeeringRole struct { - Color *string `json:"color,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PeeringRoleRequest REST API serializer for PeeringRole records. -type PeeringRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Slug *string `json:"slug,omitempty"` -} - -// PhaseEnum defines model for PhaseEnum. -type PhaseEnum string - -// Platform Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Platform struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Manufacturer *NestedManufacturer `json:"manufacturer"` - Name string `json:"name"` - - // NapalmArgs Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs *map[string]interface{} `json:"napalm_args"` - - // NapalmDriver The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` -} - -// PlatformEnum defines model for PlatformEnum. -type PlatformEnum string - -// Policy Policy Serializer. -type Policy struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]PolicyDeviceM2MNested `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]PolicyDynamicGroupM2MNested `json:"assigned_dynamic_groups,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PolicyRules *[]openapi_types.UUID `json:"policy_rules,omitempty"` - Status *struct { - Label *PolicyStatusLabel `json:"label,omitempty"` - Value *PolicyStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Url *string `json:"url,omitempty"` -} - -// PolicyStatusLabel defines model for Policy.Status.Label. -type PolicyStatusLabel string - -// PolicyStatusValue defines model for Policy.Status.Value. -type PolicyStatusValue string - -// PolicyDeviceM2MNested PolicyDeviceM2M NestedSerializer. -type PolicyDeviceM2MNested struct { - Device openapi_types.UUID `json:"device"` - Weight *int `json:"weight,omitempty"` -} - -// PolicyDeviceM2MNestedRequest PolicyDeviceM2M NestedSerializer. -type PolicyDeviceM2MNestedRequest struct { - Device *openapi_types.UUID `json:"device,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PolicyDynamicGroupM2MNested PolicyDynamicGroupM2M NestedSerializer. -type PolicyDynamicGroupM2MNested struct { - DynamicGroup openapi_types.UUID `json:"dynamic_group"` - Weight *int `json:"weight,omitempty"` -} - -// PolicyDynamicGroupM2MNestedRequest PolicyDynamicGroupM2M NestedSerializer. -type PolicyDynamicGroupM2MNestedRequest struct { - DynamicGroup *openapi_types.UUID `json:"dynamic_group,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// PolicyRequest Policy Serializer. -type PolicyRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AssignedDevices *[]PolicyDeviceM2MNestedRequest `json:"assigned_devices,omitempty"` - AssignedDynamicGroups *[]PolicyDynamicGroupM2MNestedRequest `json:"assigned_dynamic_groups,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PolicyRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PolicyRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]PolicyRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// PolicyRequest_Relationships_Destination_Objects_Item defines model for PolicyRequest.relationships.destination.objects.Item. -type PolicyRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PolicyRequest_Relationships_Peer_Objects_Item defines model for PolicyRequest.relationships.peer.objects.Item. -type PolicyRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PolicyRequest_Relationships_Source_Objects_Item defines model for PolicyRequest.relationships.source.objects.Item. -type PolicyRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// PolicyRule PolicyRule Serializer. -type PolicyRule struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Action ActionEnum `json:"action"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - DestinationAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleDestinationAddressGroupsAddressObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"address_objects,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *PolicyRuleDestinationAddressGroupsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleDestinationAddressGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"destination_address_groups,omitempty"` - DestinationAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *PolicyRuleDestinationAddressesStatusLabel `json:"label,omitempty"` - Value *PolicyRuleDestinationAddressesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"destination_addresses,omitempty"` - DestinationServiceGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleDestinationServiceGroupsServiceObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"service_objects,omitempty"` - Status *struct { - Label *PolicyRuleDestinationServiceGroupsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleDestinationServiceGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"destination_service_groups,omitempty"` - DestinationServices *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol PolicyRuleDestinationServicesIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *PolicyRuleDestinationServicesStatusLabel `json:"label,omitempty"` - Value *PolicyRuleDestinationServicesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"destination_services,omitempty"` - - // DestinationZone Zone Serializer. - DestinationZone *Zone `json:"destination_zone,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Index *int `json:"index"` - LastUpdated *time.Time `json:"last_updated"` - Log *bool `json:"log,omitempty"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - RequestId *string `json:"request_id"` - SourceAddressGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - AddressObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *PolicyRuleSourceAddressGroupsAddressObjectsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleSourceAddressGroupsAddressObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"address_objects,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *PolicyRuleSourceAddressGroupsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleSourceAddressGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"source_address_groups,omitempty"` - SourceAddresses *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Fqdn Nested serializer for FQDN. - Fqdn *NestedFQDN `json:"fqdn,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpAddress Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - IpAddress *NestedIPAddress `json:"ip_address,omitempty"` - - // IpRange Nested serializer for IPRange. - IpRange *NestedIPRange `json:"ip_range,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Prefix Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Prefix *NestedPrefix `json:"prefix,omitempty"` - Status *struct { - Label *PolicyRuleSourceAddressesStatusLabel `json:"label,omitempty"` - Value *PolicyRuleSourceAddressesStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"source_addresses,omitempty"` - SourceServiceGroups *[]openapi_types.UUID `json:"source_service_groups,omitempty"` - SourceServices *[]openapi_types.UUID `json:"source_services,omitempty"` - SourceUserGroups *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *PolicyRuleSourceUserGroupsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleSourceUserGroupsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - UserObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *PolicyRuleSourceUserGroupsUserObjectsStatusLabel `json:"label,omitempty"` - Value *PolicyRuleSourceUserGroupsUserObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"user_objects,omitempty"` - } `json:"source_user_groups,omitempty"` - SourceUsers *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *PolicyRuleSourceUsersStatusLabel `json:"label,omitempty"` - Value *PolicyRuleSourceUsersStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"source_users,omitempty"` - - // SourceZone Zone Serializer. - SourceZone *Zone `json:"source_zone,omitempty"` - Status *struct { - Label *PolicyRuleStatusLabel `json:"label,omitempty"` - Value *PolicyRuleStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabel defines model for PolicyRule.DestinationAddressGroups.AddressObjects.Status.Label. -type PolicyRuleDestinationAddressGroupsAddressObjectsStatusLabel string - -// PolicyRuleDestinationAddressGroupsAddressObjectsStatusValue defines model for PolicyRule.DestinationAddressGroups.AddressObjects.Status.Value. -type PolicyRuleDestinationAddressGroupsAddressObjectsStatusValue string - -// PolicyRuleDestinationAddressGroupsStatusLabel defines model for PolicyRule.DestinationAddressGroups.Status.Label. -type PolicyRuleDestinationAddressGroupsStatusLabel string - -// PolicyRuleDestinationAddressGroupsStatusValue defines model for PolicyRule.DestinationAddressGroups.Status.Value. -type PolicyRuleDestinationAddressGroupsStatusValue string - -// PolicyRuleDestinationAddressesStatusLabel defines model for PolicyRule.DestinationAddresses.Status.Label. -type PolicyRuleDestinationAddressesStatusLabel string - -// PolicyRuleDestinationAddressesStatusValue defines model for PolicyRule.DestinationAddresses.Status.Value. -type PolicyRuleDestinationAddressesStatusValue string - -// PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PolicyRuleDestinationServiceGroupsServiceObjectsIpProtocol string - -// PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabel defines model for PolicyRule.DestinationServiceGroups.ServiceObjects.Status.Label. -type PolicyRuleDestinationServiceGroupsServiceObjectsStatusLabel string - -// PolicyRuleDestinationServiceGroupsServiceObjectsStatusValue defines model for PolicyRule.DestinationServiceGroups.ServiceObjects.Status.Value. -type PolicyRuleDestinationServiceGroupsServiceObjectsStatusValue string - -// PolicyRuleDestinationServiceGroupsStatusLabel defines model for PolicyRule.DestinationServiceGroups.Status.Label. -type PolicyRuleDestinationServiceGroupsStatusLabel string - -// PolicyRuleDestinationServiceGroupsStatusValue defines model for PolicyRule.DestinationServiceGroups.Status.Value. -type PolicyRuleDestinationServiceGroupsStatusValue string - -// PolicyRuleDestinationServicesIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type PolicyRuleDestinationServicesIpProtocol string - -// PolicyRuleDestinationServicesStatusLabel defines model for PolicyRule.DestinationServices.Status.Label. -type PolicyRuleDestinationServicesStatusLabel string - -// PolicyRuleDestinationServicesStatusValue defines model for PolicyRule.DestinationServices.Status.Value. -type PolicyRuleDestinationServicesStatusValue string - -// PolicyRuleSourceAddressGroupsAddressObjectsStatusLabel defines model for PolicyRule.SourceAddressGroups.AddressObjects.Status.Label. -type PolicyRuleSourceAddressGroupsAddressObjectsStatusLabel string - -// PolicyRuleSourceAddressGroupsAddressObjectsStatusValue defines model for PolicyRule.SourceAddressGroups.AddressObjects.Status.Value. -type PolicyRuleSourceAddressGroupsAddressObjectsStatusValue string - -// PolicyRuleSourceAddressGroupsStatusLabel defines model for PolicyRule.SourceAddressGroups.Status.Label. -type PolicyRuleSourceAddressGroupsStatusLabel string - -// PolicyRuleSourceAddressGroupsStatusValue defines model for PolicyRule.SourceAddressGroups.Status.Value. -type PolicyRuleSourceAddressGroupsStatusValue string - -// PolicyRuleSourceAddressesStatusLabel defines model for PolicyRule.SourceAddresses.Status.Label. -type PolicyRuleSourceAddressesStatusLabel string - -// PolicyRuleSourceAddressesStatusValue defines model for PolicyRule.SourceAddresses.Status.Value. -type PolicyRuleSourceAddressesStatusValue string - -// PolicyRuleSourceUserGroupsStatusLabel defines model for PolicyRule.SourceUserGroups.Status.Label. -type PolicyRuleSourceUserGroupsStatusLabel string - -// PolicyRuleSourceUserGroupsStatusValue defines model for PolicyRule.SourceUserGroups.Status.Value. -type PolicyRuleSourceUserGroupsStatusValue string - -// PolicyRuleSourceUserGroupsUserObjectsStatusLabel defines model for PolicyRule.SourceUserGroups.UserObjects.Status.Label. -type PolicyRuleSourceUserGroupsUserObjectsStatusLabel string - -// PolicyRuleSourceUserGroupsUserObjectsStatusValue defines model for PolicyRule.SourceUserGroups.UserObjects.Status.Value. -type PolicyRuleSourceUserGroupsUserObjectsStatusValue string - -// PolicyRuleSourceUsersStatusLabel defines model for PolicyRule.SourceUsers.Status.Label. -type PolicyRuleSourceUsersStatusLabel string - -// PolicyRuleSourceUsersStatusValue defines model for PolicyRule.SourceUsers.Status.Value. -type PolicyRuleSourceUsersStatusValue string - -// PolicyRuleStatusLabel defines model for PolicyRule.Status.Label. -type PolicyRuleStatusLabel string - -// PolicyRuleStatusValue defines model for PolicyRule.Status.Value. -type PolicyRuleStatusValue string - -// PortTypeChoices defines model for PortTypeChoices. -type PortTypeChoices string - -// PowerFeed Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PowerFeed struct { - Amperage *int `json:"amperage,omitempty"` - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - Comments *string `json:"comments,omitempty"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // MaxUtilization Maximum permissible draw (percentage) - MaxUtilization *int `json:"max_utilization,omitempty"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Phase *struct { - Label *PowerFeedPhaseLabel `json:"label,omitempty"` - Value *PowerFeedPhaseValue `json:"value,omitempty"` - } `json:"phase,omitempty"` - - // PowerPanel Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPanel NestedPowerPanel `json:"power_panel"` - Rack *NestedRack `json:"rack"` - Status struct { - Label *PowerFeedStatusLabel `json:"label,omitempty"` - Value *PowerFeedStatusValue `json:"value,omitempty"` - } `json:"status"` - Supply *struct { - Label *PowerFeedSupplyLabel `json:"label,omitempty"` - Value *PowerFeedSupplyValue `json:"value,omitempty"` - } `json:"supply,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type *struct { - Label *PowerFeedTypeLabel `json:"label,omitempty"` - Value *PowerFeedTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - Voltage *int `json:"voltage,omitempty"` -} - -// PowerFeedPhaseLabel defines model for PowerFeed.Phase.Label. -type PowerFeedPhaseLabel string - -// PowerFeedPhaseValue defines model for PowerFeed.Phase.Value. -type PowerFeedPhaseValue string - -// PowerFeedStatusLabel defines model for PowerFeed.Status.Label. -type PowerFeedStatusLabel string - -// PowerFeedStatusValue defines model for PowerFeed.Status.Value. -type PowerFeedStatusValue string - -// PowerFeedSupplyLabel defines model for PowerFeed.Supply.Label. -type PowerFeedSupplyLabel string - -// PowerFeedSupplyValue defines model for PowerFeed.Supply.Value. -type PowerFeedSupplyValue string - -// PowerFeedTypeLabel defines model for PowerFeed.Type.Label. -type PowerFeedTypeLabel string - -// PowerFeedTypeValue defines model for PowerFeed.Type.Value. -type PowerFeedTypeValue string - -// PowerFeedStatusChoices defines model for PowerFeedStatusChoices. -type PowerFeedStatusChoices string - -// PowerFeedTypeChoices defines model for PowerFeedTypeChoices. -type PowerFeedTypeChoices string - -// PowerOutlet Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PowerOutlet struct { - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - FeedLeg *struct { - Label *PowerOutletFeedLegLabel `json:"label,omitempty"` - Value *PowerOutletFeedLegValue `json:"value,omitempty"` - } `json:"feed_leg,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // PowerPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPort *NestedPowerPort `json:"power_port,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type *struct { - Label *PowerOutletTypeLabel `json:"label,omitempty"` - Value *PowerOutletTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PowerOutletFeedLegLabel defines model for PowerOutlet.FeedLeg.Label. -type PowerOutletFeedLegLabel string - -// PowerOutletFeedLegValue defines model for PowerOutlet.FeedLeg.Value. -type PowerOutletFeedLegValue string - -// PowerOutletTypeLabel defines model for PowerOutlet.Type.Label. -type PowerOutletTypeLabel string - -// PowerOutletTypeValue defines model for PowerOutlet.Type.Value. -type PowerOutletTypeValue string - -// PowerOutletTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PowerOutletTemplate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - FeedLeg *struct { - Label *PowerOutletTemplateFeedLegLabel `json:"label,omitempty"` - Value *PowerOutletTemplateFeedLegValue `json:"value,omitempty"` - } `json:"feed_leg,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - - // PowerPort Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - PowerPort *NestedPowerPortTemplate `json:"power_port,omitempty"` - Type *struct { - Label *PowerOutletTemplateTypeLabel `json:"label,omitempty"` - Value *PowerOutletTemplateTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PowerOutletTemplateFeedLegLabel defines model for PowerOutletTemplate.FeedLeg.Label. -type PowerOutletTemplateFeedLegLabel string - -// PowerOutletTemplateFeedLegValue defines model for PowerOutletTemplate.FeedLeg.Value. -type PowerOutletTemplateFeedLegValue string - -// PowerOutletTemplateTypeLabel defines model for PowerOutletTemplate.Type.Label. -type PowerOutletTemplateTypeLabel string - -// PowerOutletTemplateTypeValue defines model for PowerOutletTemplate.Type.Value. -type PowerOutletTemplateTypeValue string - -// PowerOutletTypeChoices defines model for PowerOutletTypeChoices. -type PowerOutletTypeChoices string - -// PowerPanel Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PowerPanel struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PowerfeedCount *int `json:"powerfeed_count,omitempty"` - RackGroup *NestedRackGroup `json:"rack_group"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSite `json:"site"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PowerPort Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PowerPort struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - ConnectedEndpoint *map[string]interface{} `json:"connected_endpoint"` - ConnectedEndpointReachable *bool `json:"connected_endpoint_reachable"` - ConnectedEndpointType *string `json:"connected_endpoint_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type *struct { - Label *PowerPortTypeLabel `json:"label,omitempty"` - Value *PowerPortTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PowerPortTypeLabel defines model for PowerPort.Type.Label. -type PowerPortTypeLabel string - -// PowerPortTypeValue defines model for PowerPort.Type.Value. -type PowerPortTypeValue string - -// PowerPortTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type PowerPortTemplate struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name string `json:"name"` - Type *struct { - Label *PowerPortTemplateTypeLabel `json:"label,omitempty"` - Value *PowerPortTemplateTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// PowerPortTemplateTypeLabel defines model for PowerPortTemplate.Type.Label. -type PowerPortTemplateTypeLabel string - -// PowerPortTemplateTypeValue defines model for PowerPortTemplate.Type.Value. -type PowerPortTemplateTypeValue string - -// PowerPortTypeChoices defines model for PowerPortTypeChoices. -type PowerPortTypeChoices string - -// Prefix Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Prefix struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Family *struct { - Label *PrefixFamilyLabel `json:"label,omitempty"` - Value *PrefixFamilyValue `json:"value,omitempty"` - } `json:"family,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IsPool All IP addresses within this prefix are considered usable - IsPool *bool `json:"is_pool,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - NotesUrl *string `json:"notes_url,omitempty"` - Prefix string `json:"prefix"` - Role *NestedRole `json:"role"` - Site *NestedSite `json:"site"` - Status struct { - Label *PrefixStatusLabel `json:"label,omitempty"` - Value *PrefixStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` - Vlan *NestedVLAN `json:"vlan"` - Vrf *NestedVRF `json:"vrf"` -} - -// PrefixFamilyLabel defines model for Prefix.Family.Label. -type PrefixFamilyLabel string - -// PrefixFamilyValue defines model for Prefix.Family.Value. -type PrefixFamilyValue int - -// PrefixStatusLabel defines model for Prefix.Status.Label. -type PrefixStatusLabel string - -// PrefixStatusValue defines model for Prefix.Status.Value. -type PrefixStatusValue string - -// PrefixLengthRequest defines model for PrefixLengthRequest. -type PrefixLengthRequest struct { - PrefixLength int `json:"prefix_length"` -} - -// PrefixStatusChoices defines model for PrefixStatusChoices. -type PrefixStatusChoices string - -// ProtocolEnum defines model for ProtocolEnum. -type ProtocolEnum string - -// ProvidedContentsEnum defines model for ProvidedContentsEnum. -type ProvidedContentsEnum string - -// Provider Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Provider struct { - Account *string `json:"account,omitempty"` - AdminContact *string `json:"admin_contact,omitempty"` - - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - CircuitCount *int `json:"circuit_count,omitempty"` - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NocContact *string `json:"noc_contact,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - PortalUrl *string `json:"portal_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ProviderLCM API serializer. -type ProviderLCM struct { - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Phone *string `json:"phone,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ProviderLCMRequest API serializer. -type ProviderLCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Name string `json:"name"` - Phone *string `json:"phone,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ProviderLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ProviderLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ProviderLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ProviderLCMRequest_Relationships_Destination_Objects_Item defines model for ProviderLCMRequest.relationships.destination.objects.Item. -type ProviderLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ProviderLCMRequest_Relationships_Peer_Objects_Item defines model for ProviderLCMRequest.relationships.peer.objects.Item. -type ProviderLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ProviderLCMRequest_Relationships_Source_Objects_Item defines model for ProviderLCMRequest.relationships.source.objects.Item. -type ProviderLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ProviderNetwork Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ProviderNetwork struct { - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Provider Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Provider NestedProvider `json:"provider"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ProviderRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type ProviderRequest struct { - Account *string `json:"account,omitempty"` - AdminContact *string `json:"admin_contact,omitempty"` - - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Name string `json:"name"` - NocContact *string `json:"noc_contact,omitempty"` - PortalUrl *string `json:"portal_url,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ProviderRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ProviderRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ProviderRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ProviderRequest_Relationships_Destination_Objects_Item defines model for ProviderRequest.relationships.destination.objects.Item. -type ProviderRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ProviderRequest_Relationships_Peer_Objects_Item defines model for ProviderRequest.relationships.peer.objects.Item. -type ProviderRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ProviderRequest_Relationships_Source_Objects_Item defines model for ProviderRequest.relationships.source.objects.Item. -type ProviderRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RIR Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RIR struct { - AggregateCount *int `json:"aggregate_count,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IsPrivate IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// RIRRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RIRRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IsPrivate IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RIRRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RIRRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RIRRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// RIRRequest_Relationships_Destination_Objects_Item defines model for RIRRequest.relationships.destination.objects.Item. -type RIRRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RIRRequest_Relationships_Peer_Objects_Item defines model for RIRRequest.relationships.peer.objects.Item. -type RIRRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RIRRequest_Relationships_Source_Objects_Item defines model for RIRRequest.relationships.source.objects.Item. -type RIRRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// Rack Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Rack struct { - // AssetTag A unique tag used to identify this rack - AssetTag *string `json:"asset_tag"` - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DescUnits Units are numbered top-to-bottom - DescUnits *bool `json:"desc_units,omitempty"` - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // FacilityId Locally-assigned identifier - FacilityId *string `json:"facility_id"` - Group *NestedRackGroup `json:"group"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // OuterDepth Outer dimension of rack (depth) - OuterDepth *int `json:"outer_depth"` - OuterUnit *struct { - Label *RackOuterUnitLabel `json:"label,omitempty"` - Value *RackOuterUnitValue `json:"value,omitempty"` - } `json:"outer_unit,omitempty"` - - // OuterWidth Outer dimension of rack (width) - OuterWidth *int `json:"outer_width"` - PowerfeedCount *int `json:"powerfeed_count,omitempty"` - Role *NestedRackRole `json:"role"` - Serial *string `json:"serial,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSite `json:"site"` - Status struct { - Label *RackStatusLabel `json:"label,omitempty"` - Value *RackStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Type *struct { - Label *RackTypeLabel `json:"label,omitempty"` - Value *RackTypeValue `json:"value,omitempty"` - } `json:"type,omitempty"` - - // UHeight Height in rack units - UHeight *int `json:"u_height,omitempty"` - Url *string `json:"url,omitempty"` - Width *struct { - Label *RackWidthLabel `json:"label,omitempty"` - Value *RackWidthValue `json:"value,omitempty"` - } `json:"width,omitempty"` -} - -// RackOuterUnitLabel defines model for Rack.OuterUnit.Label. -type RackOuterUnitLabel string - -// RackOuterUnitValue defines model for Rack.OuterUnit.Value. -type RackOuterUnitValue string - -// RackStatusLabel defines model for Rack.Status.Label. -type RackStatusLabel string - -// RackStatusValue defines model for Rack.Status.Value. -type RackStatusValue string - -// RackTypeLabel defines model for Rack.Type.Label. -type RackTypeLabel string - -// RackTypeValue defines model for Rack.Type.Value. -type RackTypeValue string - -// RackWidthLabel defines model for Rack.Width.Label. -type RackWidthLabel string - -// RackWidthValue defines model for Rack.Width.Value. -type RackWidthValue int - -// RackGroup Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RackGroup struct { - Depth *int `json:"_depth,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Parent *NestedRackGroup `json:"parent"` - RackCount *int `json:"rack_count,omitempty"` - - // Site Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Site NestedSite `json:"site"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// RackReservation Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RackReservation struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description string `json:"description"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Rack Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Rack NestedRack `json:"rack"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Units map[string]interface{} `json:"units"` - Url *string `json:"url,omitempty"` - - // User Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - User NestedUser `json:"user"` -} - -// RackRole Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RackRole struct { - Color *string `json:"color,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - RackCount *int `json:"rack_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// RackRoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RackRoleRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RackRoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RackRoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RackRoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// RackRoleRequest_Relationships_Destination_Objects_Item defines model for RackRoleRequest.relationships.destination.objects.Item. -type RackRoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RackRoleRequest_Relationships_Peer_Objects_Item defines model for RackRoleRequest.relationships.peer.objects.Item. -type RackRoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RackRoleRequest_Relationships_Source_Objects_Item defines model for RackRoleRequest.relationships.source.objects.Item. -type RackRoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RackStatusChoices defines model for RackStatusChoices. -type RackStatusChoices string - -// RackTypeChoices defines model for RackTypeChoices. -type RackTypeChoices string - -// RackUnit A rack unit is an abstraction formed by the set (rack, position, face); it does not exist as a row in the database. -type RackUnit struct { - Device *NestedDevice `json:"device,omitempty"` - Face *struct { - Label *RackUnitFaceLabel `json:"label,omitempty"` - Value *RackUnitFaceValue `json:"value,omitempty"` - } `json:"face,omitempty"` - Id *int `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Occupied *bool `json:"occupied,omitempty"` -} - -// RackUnitFaceLabel defines model for RackUnit.Face.Label. -type RackUnitFaceLabel string - -// RackUnitFaceValue defines model for RackUnit.Face.Value. -type RackUnitFaceValue string - -// RearPort Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RearPort struct { - Cable *NestedCable `json:"cable,omitempty"` - CablePeer *map[string]interface{} `json:"cable_peer"` - CablePeerType *string `json:"cable_peer_type"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Device Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Device NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Positions *int `json:"positions,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Type struct { - Label *RearPortTypeLabel `json:"label,omitempty"` - Value *RearPortTypeValue `json:"value,omitempty"` - } `json:"type"` - Url *string `json:"url,omitempty"` -} - -// RearPortTypeLabel defines model for RearPort.Type.Label. -type RearPortTypeLabel string - -// RearPortTypeValue defines model for RearPort.Type.Value. -type RearPortTypeValue string - -// RearPortTemplate Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RearPortTemplate struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DeviceType Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DeviceType NestedDeviceType `json:"device_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Positions *int `json:"positions,omitempty"` - Type struct { - Label *RearPortTemplateTypeLabel `json:"label,omitempty"` - Value *RearPortTemplateTypeValue `json:"value,omitempty"` - } `json:"type"` - Url *string `json:"url,omitempty"` -} - -// RearPortTemplateTypeLabel defines model for RearPortTemplate.Type.Label. -type RearPortTemplateTypeLabel string - -// RearPortTemplateTypeValue defines model for RearPortTemplate.Type.Value. -type RearPortTemplateTypeValue string - -// Region Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Region struct { - Depth *int `json:"_depth,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Parent *NestedRegion `json:"parent"` - SiteCount *int `json:"site_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// RegularExpressionValidationRule Serializer for `RegularExpressionValidationRule` objects. -type RegularExpressionValidationRule struct { - ContentType string `json:"content_type"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field string `json:"field"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - RegularExpression string `json:"regular_expression"` - Slug string `json:"slug"` - Url *string `json:"url,omitempty"` -} - -// RegularExpressionValidationRuleRequest Serializer for `RegularExpressionValidationRule` objects. -type RegularExpressionValidationRuleRequest struct { - ContentType string `json:"content_type"` - Enabled *bool `json:"enabled,omitempty"` - - // ErrorMessage Optional error message to display when validation fails. - ErrorMessage *string `json:"error_message"` - Field string `json:"field"` - Name string `json:"name"` - RegularExpression string `json:"regular_expression"` - Slug string `json:"slug"` -} - -// Relationship Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type Relationship struct { - Created *openapi_types.Date `json:"created"` - Description *string `json:"description,omitempty"` - - // DestinationFilter Filterset filter matching the applicable destination objects of the selected type - DestinationFilter *map[string]interface{} `json:"destination_filter"` - - // DestinationHidden Hide this relationship on the destination object. - DestinationHidden *bool `json:"destination_hidden,omitempty"` - - // DestinationLabel Label for related source objects, as displayed on the destination object. - DestinationLabel *string `json:"destination_label,omitempty"` - DestinationType string `json:"destination_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the relationship as displayed to users - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. - RequiredOn *Relationship_RequiredOn `json:"required_on,omitempty"` - - // Slug Internal relationship name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // SourceFilter Filterset filter matching the applicable source objects of the selected type - SourceFilter *map[string]interface{} `json:"source_filter"` - - // SourceHidden Hide this relationship on the source object. - SourceHidden *bool `json:"source_hidden,omitempty"` - - // SourceLabel Label for related destination objects, as displayed on the source object. - SourceLabel *string `json:"source_label,omitempty"` - SourceType string `json:"source_type"` - - // Type Cardinality of this relationship - Type *RelationshipTypeChoices `json:"type,omitempty"` - Url *string `json:"url,omitempty"` -} - -// Relationship_RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. -type Relationship_RequiredOn struct { - union json.RawMessage -} - -// RelationshipAssociation Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type RelationshipAssociation struct { - DestinationId openapi_types.UUID `json:"destination_id"` - DestinationType string `json:"destination_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Relationship Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Relationship NestedRelationship `json:"relationship"` - SourceId openapi_types.UUID `json:"source_id"` - SourceType string `json:"source_type"` - Url *string `json:"url,omitempty"` -} - -// RelationshipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type RelationshipRequest struct { - Description *string `json:"description,omitempty"` - - // DestinationFilter Filterset filter matching the applicable destination objects of the selected type - DestinationFilter *map[string]interface{} `json:"destination_filter"` - - // DestinationHidden Hide this relationship on the destination object. - DestinationHidden *bool `json:"destination_hidden,omitempty"` - - // DestinationLabel Label for related source objects, as displayed on the destination object. - DestinationLabel *string `json:"destination_label,omitempty"` - DestinationType string `json:"destination_type"` - - // Name Name of the relationship as displayed to users - Name string `json:"name"` - - // RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. - RequiredOn *RelationshipRequest_RequiredOn `json:"required_on,omitempty"` - - // Slug Internal relationship name. Please use underscores rather than dashes in this slug. - Slug *string `json:"slug,omitempty"` - - // SourceFilter Filterset filter matching the applicable source objects of the selected type - SourceFilter *map[string]interface{} `json:"source_filter"` - - // SourceHidden Hide this relationship on the source object. - SourceHidden *bool `json:"source_hidden,omitempty"` - - // SourceLabel Label for related destination objects, as displayed on the source object. - SourceLabel *string `json:"source_label,omitempty"` - SourceType string `json:"source_type"` - - // Type Cardinality of this relationship - Type *RelationshipTypeChoices `json:"type,omitempty"` -} - -// RelationshipRequest_RequiredOn Objects on the specified side MUST implement this relationship. Not permitted for symmetric relationships. -type RelationshipRequest_RequiredOn struct { - union json.RawMessage -} - -// RelationshipTypeChoices defines model for RelationshipTypeChoices. -type RelationshipTypeChoices string - -// RequiredOnEnum defines model for RequiredOnEnum. -type RequiredOnEnum string - -// Role Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Role struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PrefixCount *int `json:"prefix_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VlanCount *int `json:"vlan_count,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// RoleEnum defines model for RoleEnum. -type RoleEnum string - -// RoleRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RoleRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RoleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RoleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]RoleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// RoleRequest_Relationships_Destination_Objects_Item defines model for RoleRequest.relationships.destination.objects.Item. -type RoleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RoleRequest_Relationships_Peer_Objects_Item defines model for RoleRequest.relationships.peer.objects.Item. -type RoleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RoleRequest_Relationships_Source_Objects_Item defines model for RoleRequest.relationships.source.objects.Item. -type RoleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// RouteTarget Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type RouteTarget struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` -} - -// ScheduledJob This base serializer implements common fields and logic for all ModelSerializers. -// -// Namely, it: -// -// - defines the `display` field which exposes a human friendly value for the given object. -// - ensures that `id` field is always present on the serializer as well -// - ensures that `created` and `last_updated` fields are always present if applicable to this model and serializer. -type ScheduledJob struct { - ApprovalRequired *bool `json:"approval_required,omitempty"` - - // ApprovedAt Datetime that the schedule was approved - ApprovedAt *time.Time `json:"approved_at"` - ApprovedByUser *NestedUser `json:"approved_by_user,omitempty"` - - // Crontab Cronjob syntax string for custom scheduling - Crontab *string `json:"crontab,omitempty"` - - // DateChanged Datetime that this scheduled job was last modified - DateChanged *time.Time `json:"date_changed,omitempty"` - - // Description Detailed description about the details of this scheduled job - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Interval JobExecutionTypeIntervalChoices `json:"interval"` - - // JobClass Name of the fully qualified Nautobot Job class path - JobClass string `json:"job_class"` - JobModel *NestedJob `json:"job_model,omitempty"` - - // LastRunAt Datetime that the schedule last triggered the task to run. Reset to None if enabled is set to False. - LastRunAt *time.Time `json:"last_run_at"` - - // Name Short Description For This Task - Name string `json:"name"` - - // Queue Queue defined in CELERY_TASK_QUEUES. Leave None for default queuing. - Queue *string `json:"queue"` - - // Task The name of the Celery task that should be run. (Example: "proj.tasks.import_contacts") - Task string `json:"task"` - - // TotalRunCount Running count of how many times the schedule has triggered the task - TotalRunCount *int `json:"total_run_count,omitempty"` - Url *string `json:"url,omitempty"` - User *NestedUser `json:"user,omitempty"` -} - -// Secret Serializer for `Secret` objects. -type Secret struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Parameters *map[string]interface{} `json:"parameters,omitempty"` - Provider string `json:"provider"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// SecretRequest Serializer for `Secret` objects. -type SecretRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Parameters *map[string]interface{} `json:"parameters,omitempty"` - Provider string `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]SecretRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]SecretRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]SecretRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// SecretRequest_Relationships_Destination_Objects_Item defines model for SecretRequest.relationships.destination.objects.Item. -type SecretRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SecretRequest_Relationships_Peer_Objects_Item defines model for SecretRequest.relationships.peer.objects.Item. -type SecretRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SecretRequest_Relationships_Source_Objects_Item defines model for SecretRequest.relationships.source.objects.Item. -type SecretRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SecretTypeEnum defines model for SecretTypeEnum. -type SecretTypeEnum string - -// SecretsGroup Serializer for `SecretsGroup` objects. -type SecretsGroup struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Secrets *[]NestedSecretsGroupAssociation `json:"secrets,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// SecretsGroupAssociation Serializer for `SecretsGroupAssociation` objects. -type SecretsGroupAssociation struct { - AccessType AccessTypeEnum `json:"access_type"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group NestedSecretsGroup `json:"group"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Secret Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Secret NestedSecret `json:"secret"` - SecretType SecretTypeEnum `json:"secret_type"` - Url *string `json:"url,omitempty"` -} - -// SecretsGroupRequest Serializer for `SecretsGroup` objects. -type SecretsGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]SecretsGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]SecretsGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]SecretsGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// SecretsGroupRequest_Relationships_Destination_Objects_Item defines model for SecretsGroupRequest.relationships.destination.objects.Item. -type SecretsGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SecretsGroupRequest_Relationships_Peer_Objects_Item defines model for SecretsGroupRequest.relationships.peer.objects.Item. -type SecretsGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SecretsGroupRequest_Relationships_Source_Objects_Item defines model for SecretsGroupRequest.relationships.source.objects.Item. -type SecretsGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// Service Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Service struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *NestedDevice `json:"device"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Ipaddresses *[]struct { - Address string `json:"address"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Family *int `json:"family,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"ipaddresses,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Ports []int `json:"ports"` - Protocol *struct { - Label *ServiceProtocolLabel `json:"label,omitempty"` - Value *ServiceProtocolValue `json:"value,omitempty"` - } `json:"protocol,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - VirtualMachine *NestedVirtualMachine `json:"virtual_machine"` -} - -// ServiceProtocolLabel defines model for Service.Protocol.Label. -type ServiceProtocolLabel string - -// ServiceProtocolValue defines model for Service.Protocol.Value. -type ServiceProtocolValue string - -// ServiceObject ServiceObject Serializer. -type ServiceObject struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol IpProtocolEnum `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *ServiceObjectStatusLabel `json:"label,omitempty"` - Value *ServiceObjectStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ServiceObjectStatusLabel defines model for ServiceObject.Status.Label. -type ServiceObjectStatusLabel string - -// ServiceObjectStatusValue defines model for ServiceObject.Status.Value. -type ServiceObjectStatusValue string - -// ServiceObjectGroup ServiceObjectGroup Serializer. -type ServiceObjectGroup struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ServiceObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol ServiceObjectGroupServiceObjectsIpProtocol `json:"ip_protocol"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Status *struct { - Label *ServiceObjectGroupServiceObjectsStatusLabel `json:"label,omitempty"` - Value *ServiceObjectGroupServiceObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"service_objects,omitempty"` - Status *struct { - Label *ServiceObjectGroupStatusLabel `json:"label,omitempty"` - Value *ServiceObjectGroupStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// ServiceObjectGroupServiceObjectsIpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) -type ServiceObjectGroupServiceObjectsIpProtocol string - -// ServiceObjectGroupServiceObjectsStatusLabel defines model for ServiceObjectGroup.ServiceObjects.Status.Label. -type ServiceObjectGroupServiceObjectsStatusLabel string - -// ServiceObjectGroupServiceObjectsStatusValue defines model for ServiceObjectGroup.ServiceObjects.Status.Value. -type ServiceObjectGroupServiceObjectsStatusValue string - -// ServiceObjectGroupStatusLabel defines model for ServiceObjectGroup.Status.Label. -type ServiceObjectGroupStatusLabel string - -// ServiceObjectGroupStatusValue defines model for ServiceObjectGroup.Status.Value. -type ServiceObjectGroupStatusValue string - -// ServiceObjectRequest ServiceObject Serializer. -type ServiceObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol IpProtocolEnum `json:"ip_protocol"` - - // Name Name of the service (e.g. HTTP) - Name string `json:"name"` - - // Port The port or port range to tie to a service (e.g. HTTP would be port 80) - Port *string `json:"port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ServiceObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ServiceObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ServiceObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ServiceObjectRequest_Relationships_Destination_Objects_Item defines model for ServiceObjectRequest.relationships.destination.objects.Item. -type ServiceObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ServiceObjectRequest_Relationships_Peer_Objects_Item defines model for ServiceObjectRequest.relationships.peer.objects.Item. -type ServiceObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ServiceObjectRequest_Relationships_Source_Objects_Item defines model for ServiceObjectRequest.relationships.source.objects.Item. -type ServiceObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SeverityEnum defines model for SeverityEnum. -type SeverityEnum string - -// Site Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Site struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - CircuitCount *int `json:"circuit_count,omitempty"` - Comments *string `json:"comments,omitempty"` - ContactEmail *openapi_types.Email `json:"contact_email,omitempty"` - ContactName *string `json:"contact_name,omitempty"` - ContactPhone *string `json:"contact_phone,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Facility Local facility ID or description - Facility *string `json:"facility,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Latitude GPS coordinate (latitude) - Latitude *string `json:"latitude"` - - // Longitude GPS coordinate (longitude) - Longitude *string `json:"longitude"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PhysicalAddress *string `json:"physical_address,omitempty"` - PrefixCount *int `json:"prefix_count,omitempty"` - RackCount *int `json:"rack_count,omitempty"` - Region *NestedRegion `json:"region"` - ShippingAddress *string `json:"shipping_address,omitempty"` - Slug *string `json:"slug,omitempty"` - Status struct { - Label *SiteStatusLabel `json:"label,omitempty"` - Value *SiteStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - TimeZone *string `json:"time_zone"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` - VlanCount *int `json:"vlan_count,omitempty"` -} - -// SiteStatusLabel defines model for Site.Status.Label. -type SiteStatusLabel string - -// SiteStatusValue defines model for Site.Status.Value. -type SiteStatusValue string - -// SoftwareImageLCM REST API serializer for SoftwareImageLCM records. -type SoftwareImageLCM struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName string `json:"image_file_name"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - - // Software Nested/brief serializer for SoftwareLCM. - Software NestedSoftwareLCM `json:"software"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// SoftwareLCM REST API serializer for SoftwareLCM records. -type SoftwareLCM struct { - Alias *string `json:"alias"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DevicePlatform Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - DevicePlatform NestedPlatform `json:"device_platform"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - LongTermSupport *bool `json:"long_term_support,omitempty"` - PreRelease *bool `json:"pre_release,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - SoftwareImages *[]struct { - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName string `json:"image_file_name"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"software_images,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - Version string `json:"version"` -} - -// Status Serializer for `Status` objects. -type Status struct { - Color *string `json:"color,omitempty"` - ContentTypes []string `json:"content_types"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` -} - -// Status2a0Enum defines model for Status2a0Enum. -type Status2a0Enum string - -// Status4f5Enum defines model for Status4f5Enum. -type Status4f5Enum = string - -// Status8f7Enum defines model for Status8f7Enum. -type Status8f7Enum string - -// StatusD95Enum defines model for StatusD95Enum. -type StatusD95Enum string - -// StatusRequest Serializer for `Status` objects. -type StatusRequest struct { - Color *string `json:"color,omitempty"` - ContentTypes []string `json:"content_types"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]StatusRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]StatusRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]StatusRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// StatusRequest_Relationships_Destination_Objects_Item defines model for StatusRequest.relationships.destination.objects.Item. -type StatusRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// StatusRequest_Relationships_Peer_Objects_Item defines model for StatusRequest.relationships.peer.objects.Item. -type StatusRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// StatusRequest_Relationships_Source_Objects_Item defines model for StatusRequest.relationships.source.objects.Item. -type StatusRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SubdeviceRoleEnum defines model for SubdeviceRoleEnum. -type SubdeviceRoleEnum string - -// SupplyEnum defines model for SupplyEnum. -type SupplyEnum string - -// TagSerializerField NestedSerializer field for `Tag` object fields. -type TagSerializerField struct { - Color *string `json:"color,omitempty"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - Slug string `json:"slug"` - Url *string `json:"url,omitempty"` -} - -// TagSerializerFieldRequest NestedSerializer field for `Tag` object fields. -type TagSerializerFieldRequest struct { - Color *string `json:"color,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// TagSerializerVersion13 Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type TagSerializerVersion13 struct { - Color *string `json:"color,omitempty"` - ContentTypes []string `json:"content_types"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Slug string `json:"slug"` - TaggedItems *int `json:"tagged_items,omitempty"` - Url *string `json:"url,omitempty"` -} - -// TagSerializerVersion13Request Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type TagSerializerVersion13Request struct { - Color *string `json:"color,omitempty"` - ContentTypes []string `json:"content_types"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]TagSerializerVersion13Request_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]TagSerializerVersion13Request_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]TagSerializerVersion13Request_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug string `json:"slug"` -} - -// TagSerializerVersion13Request_Relationships_Destination_Objects_Item defines model for TagSerializerVersion13Request.relationships.destination.objects.Item. -type TagSerializerVersion13Request_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// TagSerializerVersion13Request_Relationships_Peer_Objects_Item defines model for TagSerializerVersion13Request.relationships.peer.objects.Item. -type TagSerializerVersion13Request_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// TagSerializerVersion13Request_Relationships_Source_Objects_Item defines model for TagSerializerVersion13Request.relationships.source.objects.Item. -type TagSerializerVersion13Request_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// Tenant Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type Tenant struct { - CircuitCount *int `json:"circuit_count,omitempty"` - ClusterCount *int `json:"cluster_count,omitempty"` - Comments *string `json:"comments,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceCount *int `json:"device_count,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // Group Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Group *NestedTenantGroup `json:"group,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - IpaddressCount *int `json:"ipaddress_count,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PrefixCount *int `json:"prefix_count,omitempty"` - RackCount *int `json:"rack_count,omitempty"` - SiteCount *int `json:"site_count,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - VirtualmachineCount *int `json:"virtualmachine_count,omitempty"` - VlanCount *int `json:"vlan_count,omitempty"` - VrfCount *int `json:"vrf_count,omitempty"` -} - -// TenantGroup Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type TenantGroup struct { - Depth *int `json:"_depth,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Parent *NestedTenantGroup `json:"parent"` - Slug *string `json:"slug,omitempty"` - TenantCount *int `json:"tenant_count,omitempty"` - Url *string `json:"url,omitempty"` -} - -// TermSideEnum defines model for TermSideEnum. -type TermSideEnum string - -// Token Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type Token struct { - Created *time.Time `json:"created,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Expires *time.Time `json:"expires"` - Id *openapi_types.UUID `json:"id,omitempty"` - Key *string `json:"key,omitempty"` - Url *string `json:"url,omitempty"` - - // WriteEnabled Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` -} - -// TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type TokenRequest struct { - Description *string `json:"description,omitempty"` - Expires *time.Time `json:"expires"` - Key *string `json:"key,omitempty"` - - // WriteEnabled Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` -} - -// User Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type User struct { - DateJoined *time.Time `json:"date_joined,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - FirstName *string `json:"first_name,omitempty"` - Groups *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *int `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - } `json:"groups,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // IsActive Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - - // IsStaff Designates whether the user can log into this admin site. - IsStaff *bool `json:"is_staff,omitempty"` - LastName *string `json:"last_name,omitempty"` - Url *string `json:"url,omitempty"` - - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` -} - -// UserObject UserObject Serializer. -type UserObject struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *UserObjectStatusLabel `json:"label,omitempty"` - Value *UserObjectStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` -} - -// UserObjectStatusLabel defines model for UserObject.Status.Label. -type UserObjectStatusLabel string - -// UserObjectStatusValue defines model for UserObject.Status.Value. -type UserObjectStatusValue string - -// UserObjectGroup UserObjectGroup Serializer. -type UserObjectGroup struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *UserObjectGroupStatusLabel `json:"label,omitempty"` - Value *UserObjectGroupStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - UserObjects *[]struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *UserObjectGroupUserObjectsStatusLabel `json:"label,omitempty"` - Value *UserObjectGroupUserObjectsStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` - } `json:"user_objects,omitempty"` -} - -// UserObjectGroupStatusLabel defines model for UserObjectGroup.Status.Label. -type UserObjectGroupStatusLabel string - -// UserObjectGroupStatusValue defines model for UserObjectGroup.Status.Value. -type UserObjectGroupStatusValue string - -// UserObjectGroupUserObjectsStatusLabel defines model for UserObjectGroup.UserObjects.Status.Label. -type UserObjectGroupUserObjectsStatusLabel string - -// UserObjectGroupUserObjectsStatusValue defines model for UserObjectGroup.UserObjects.Status.Value. -type UserObjectGroupUserObjectsStatusValue string - -// UserObjectRequest UserObject Serializer. -type UserObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Name Signifies the name of the user, commonly first & last name (e.g. John Smith) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]UserObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]UserObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]UserObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Username Signifies the username in identify provider (e.g. john.smith) - Username string `json:"username"` -} - -// UserObjectRequest_Relationships_Destination_Objects_Item defines model for UserObjectRequest.relationships.destination.objects.Item. -type UserObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// UserObjectRequest_Relationships_Peer_Objects_Item defines model for UserObjectRequest.relationships.peer.objects.Item. -type UserObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// UserObjectRequest_Relationships_Source_Objects_Item defines model for UserObjectRequest.relationships.source.objects.Item. -type UserObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// VLAN Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type VLAN struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Group *NestedVLANGroup `json:"group"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PrefixCount *int `json:"prefix_count,omitempty"` - Role *NestedRole `json:"role"` - Site *NestedSite `json:"site"` - Status struct { - Label *VLANStatusLabel `json:"label,omitempty"` - Value *VLANStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` - Vid int `json:"vid"` -} - -// VLANStatusLabel defines model for VLAN.Status.Label. -type VLANStatusLabel string - -// VLANStatusValue defines model for VLAN.Status.Value. -type VLANStatusValue string - -// VLANGroup Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type VLANGroup struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Location *NestedLocation `json:"location"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Site *NestedSite `json:"site"` - Slug *string `json:"slug,omitempty"` - Url *string `json:"url,omitempty"` - VlanCount *int `json:"vlan_count,omitempty"` -} - -// VLANStatusChoices defines model for VLANStatusChoices. -type VLANStatusChoices string - -// VMInterfaceSerializerVersion12 Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type VMInterfaceSerializerVersion12 struct { - Bridge *NestedVMInterface `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - MacAddress *string `json:"mac_address"` - Mode *struct { - Label *VMInterfaceSerializerVersion12ModeLabel `json:"label,omitempty"` - Value *VMInterfaceSerializerVersion12ModeValue `json:"value,omitempty"` - } `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - ParentInterface *NestedVMInterface `json:"parent_interface"` - TaggedVlans *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name string `json:"name"` - Url *string `json:"url,omitempty"` - Vid int `json:"vid"` - } `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - UntaggedVlan *NestedVLAN `json:"untagged_vlan"` - Url *string `json:"url,omitempty"` - - // VirtualMachine Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - VirtualMachine NestedVirtualMachine `json:"virtual_machine"` -} - -// VMInterfaceSerializerVersion12ModeLabel defines model for VMInterfaceSerializerVersion12.Mode.Label. -type VMInterfaceSerializerVersion12ModeLabel string - -// VMInterfaceSerializerVersion12ModeValue defines model for VMInterfaceSerializerVersion12.Mode.Value. -type VMInterfaceSerializerVersion12ModeValue string - -// VRF Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type VRF struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // EnforceUnique Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - ExportTargets *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Url *string `json:"url,omitempty"` - } `json:"export_targets,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - ImportTargets *[]struct { - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Url *string `json:"url,omitempty"` - } `json:"import_targets,omitempty"` - IpaddressCount *int `json:"ipaddress_count,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - PrefixCount *int `json:"prefix_count,omitempty"` - - // Rd Unique route distinguisher (as defined in RFC 4364) - Rd *string `json:"rd"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` -} - -// ValidatedSoftwareLCM REST API serializer for ValidatedSoftwareLCM records. -type ValidatedSoftwareLCM struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRoles *[]openapi_types.UUID `json:"device_roles,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - Devices *[]openapi_types.UUID `json:"devices,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - End *openapi_types.Date `json:"end"` - Id *openapi_types.UUID `json:"id,omitempty"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Preferred *bool `json:"preferred,omitempty"` - - // Software Nested/brief serializer for SoftwareLCM. - Software NestedSoftwareLCM `json:"software"` - Start openapi_types.Date `json:"start"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - Valid *string `json:"valid,omitempty"` -} - -// VirtualChassis Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type VirtualChassis struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Domain *string `json:"domain,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Master *NestedDevice `json:"master"` - MemberCount *int `json:"member_count,omitempty"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// VirtualMachineStatusChoices defines model for VirtualMachineStatusChoices. -type VirtualMachineStatusChoices string - -// VirtualMachineWithConfigContext Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type VirtualMachineWithConfigContext struct { - // Cluster Returns a nested representation of an object on read, but accepts either the nested representation or the - // primary key value on write operations. - Cluster NestedCluster `json:"cluster"` - Comments *string `json:"comments,omitempty"` - ConfigContext *map[string]interface{} `json:"config_context,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Disk *int `json:"disk"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - LocalContextSchema *NestedConfigContextSchema `json:"local_context_schema"` - Location *NestedLocation `json:"location"` - Memory *int `json:"memory"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Platform *NestedPlatform `json:"platform"` - PrimaryIp *NestedIPAddress `json:"primary_ip,omitempty"` - PrimaryIp4 *NestedIPAddress `json:"primary_ip4"` - PrimaryIp6 *NestedIPAddress `json:"primary_ip6"` - Role *NestedDeviceRole `json:"role"` - Site *NestedSite `json:"site,omitempty"` - Status struct { - Label *VirtualMachineWithConfigContextStatusLabel `json:"label,omitempty"` - Value *VirtualMachineWithConfigContextStatusValue `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Tenant *NestedTenant `json:"tenant"` - Url *string `json:"url,omitempty"` - Vcpus *int `json:"vcpus"` -} - -// VirtualMachineWithConfigContextStatusLabel defines model for VirtualMachineWithConfigContext.Status.Label. -type VirtualMachineWithConfigContextStatusLabel string - -// VirtualMachineWithConfigContextStatusValue defines model for VirtualMachineWithConfigContext.Status.Value. -type VirtualMachineWithConfigContextStatusValue string - -// VulnerabilityLCM REST API serializer for VulnerabilityLCM records. -type VulnerabilityLCM struct { - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Cve *NestedCVELCM `json:"cve,omitempty"` - Device *NestedDevice `json:"device,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - InventoryItem *NestedInventoryItem `json:"inventory_item,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Software *NestedSoftwareLCM `json:"software,omitempty"` - Status struct { - Label *string `json:"label,omitempty"` - Value *string `json:"value,omitempty"` - } `json:"status"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` -} - -// VulnerabilityLCMRequest REST API serializer for VulnerabilityLCM records. -type VulnerabilityLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]VulnerabilityLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]VulnerabilityLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]VulnerabilityLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status Status4f5Enum `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// VulnerabilityLCMRequest_Relationships_Destination_Objects_Item defines model for VulnerabilityLCMRequest.relationships.destination.objects.Item. -type VulnerabilityLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// VulnerabilityLCMRequest_Relationships_Peer_Objects_Item defines model for VulnerabilityLCMRequest.relationships.peer.objects.Item. -type VulnerabilityLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// VulnerabilityLCMRequest_Relationships_Source_Objects_Item defines model for VulnerabilityLCMRequest.relationships.source.objects.Item. -type VulnerabilityLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// Webhook Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type Webhook struct { - // AdditionalHeaders User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value. Jinja2 template processing is support with the same context as the request body (below). - AdditionalHeaders *string `json:"additional_headers,omitempty"` - - // BodyTemplate Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. - BodyTemplate *string `json:"body_template,omitempty"` - - // CaFilePath The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath *string `json:"ca_file_path"` - ContentTypes []string `json:"content_types"` - Created *openapi_types.Date `json:"created"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - - // HttpContentType The complete list of official content types is available here. - HttpContentType *string `json:"http_content_type,omitempty"` - HttpMethod *HttpMethodEnum `json:"http_method,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - - // PayloadUrl A POST will be sent to this URL when the webhook is called. - PayloadUrl string `json:"payload_url"` - - // Secret When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. - Secret *string `json:"secret,omitempty"` - - // SslVerification Enable SSL certificate verification. Disable with caution! - SslVerification *bool `json:"ssl_verification,omitempty"` - - // TypeCreate Call this webhook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this webhook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this webhook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - Url *string `json:"url,omitempty"` -} - -// WebhookRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type WebhookRequest struct { - // AdditionalHeaders User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value. Jinja2 template processing is support with the same context as the request body (below). - AdditionalHeaders *string `json:"additional_headers,omitempty"` - - // BodyTemplate Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. - BodyTemplate *string `json:"body_template,omitempty"` - - // CaFilePath The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath *string `json:"ca_file_path"` - ContentTypes []string `json:"content_types"` - - // HttpContentType The complete list of official content types is available here. - HttpContentType *string `json:"http_content_type,omitempty"` - HttpMethod *HttpMethodEnum `json:"http_method,omitempty"` - Name string `json:"name"` - - // PayloadUrl A POST will be sent to this URL when the webhook is called. - PayloadUrl string `json:"payload_url"` - - // Secret When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. - Secret *string `json:"secret,omitempty"` - - // SslVerification Enable SSL certificate verification. Disable with caution! - SslVerification *bool `json:"ssl_verification,omitempty"` - - // TypeCreate Call this webhook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - - // TypeDelete Call this webhook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - - // TypeUpdate Call this webhook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` -} - -// WidthEnum defines model for WidthEnum. -type WidthEnum int - -// WritableAddressFamilyRequest REST API serializer for AddressFamily records. -type WritableAddressFamilyRequest struct { - AfiSafi AfiSafiEnum `json:"afi_safi"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - RoutingInstance openapi_types.UUID `json:"routing_instance"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// WritableAddressObjectGroupRequest AddressObjectGroup Serializer. -type WritableAddressObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Name descriptor for a group address objects. - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item defines model for WritableAddressObjectGroupRequest.relationships.destination.objects.Item. -type WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item defines model for WritableAddressObjectGroupRequest.relationships.peer.objects.Item. -type WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item defines model for WritableAddressObjectGroupRequest.relationships.source.objects.Item. -type WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAddressObjectRequest AddressObject Serializer. -type WritableAddressObjectRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Fqdn *openapi_types.UUID `json:"fqdn"` - IpAddress *openapi_types.UUID `json:"ip_address"` - IpRange *openapi_types.UUID `json:"ip_range"` - - // Name Name descriptor for an address object type. - Name string `json:"name"` - Prefix *openapi_types.UUID `json:"prefix"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAddressObjectRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAddressObjectRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAddressObjectRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableAddressObjectRequest_Relationships_Destination_Objects_Item defines model for WritableAddressObjectRequest.relationships.destination.objects.Item. -type WritableAddressObjectRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAddressObjectRequest_Relationships_Peer_Objects_Item defines model for WritableAddressObjectRequest.relationships.peer.objects.Item. -type WritableAddressObjectRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAddressObjectRequest_Relationships_Source_Objects_Item defines model for WritableAddressObjectRequest.relationships.source.objects.Item. -type WritableAddressObjectRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAggregateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableAggregateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DateAdded *openapi_types.Date `json:"date_added"` - Description *string `json:"description,omitempty"` - Prefix string `json:"prefix"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAggregateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAggregateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableAggregateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Rir openapi_types.UUID `json:"rir"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// WritableAggregateRequest_Relationships_Destination_Objects_Item defines model for WritableAggregateRequest.relationships.destination.objects.Item. -type WritableAggregateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAggregateRequest_Relationships_Peer_Objects_Item defines model for WritableAggregateRequest.relationships.peer.objects.Item. -type WritableAggregateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAggregateRequest_Relationships_Source_Objects_Item defines model for WritableAggregateRequest.relationships.source.objects.Item. -type WritableAggregateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableAutonomousSystemRequest REST API serializer for AutonomousSystem records. -type WritableAutonomousSystemRequest struct { - // Asn 32-bit autonomous system number - Asn int64 `json:"asn"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Provider *openapi_types.UUID `json:"provider"` - Status Status2a0Enum `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableBGPRoutingInstanceRequest REST API serializer for Peering records. -type WritableBGPRoutingInstanceRequest struct { - AutonomousSystem openapi_types.UUID `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - RouterId *openapi_types.UUID `json:"router_id"` -} - -// WritableCVELCMRequest REST API serializer for CVELCM records. -type WritableCVELCMRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Cvss *float64 `json:"cvss"` - CvssV2 *float64 `json:"cvss_v2"` - CvssV3 *float64 `json:"cvss_v3"` - Description *string `json:"description"` - Fix *string `json:"fix"` - Link string `json:"link"` - Name string `json:"name"` - PublishedDate openapi_types.Date `json:"published_date"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCVELCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCVELCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCVELCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Severity *SeverityEnum `json:"severity,omitempty"` - Status *Status4f5Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableCVELCMRequest_Relationships_Destination_Objects_Item defines model for WritableCVELCMRequest.relationships.destination.objects.Item. -type WritableCVELCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCVELCMRequest_Relationships_Peer_Objects_Item defines model for WritableCVELCMRequest.relationships.peer.objects.Item. -type WritableCVELCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCVELCMRequest_Relationships_Source_Objects_Item defines model for WritableCVELCMRequest.relationships.source.objects.Item. -type WritableCVELCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCableRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableCableRequest struct { - Color *string `json:"color,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Label *string `json:"label,omitempty"` - Length *int `json:"length"` - LengthUnit *WritableCableRequest_LengthUnit `json:"length_unit,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCableRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCableRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCableRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status CableStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - TerminationAId openapi_types.UUID `json:"termination_a_id"` - TerminationAType string `json:"termination_a_type"` - TerminationBId openapi_types.UUID `json:"termination_b_id"` - TerminationBType string `json:"termination_b_type"` - Type *WritableCableRequest_Type `json:"type,omitempty"` -} - -// WritableCableRequest_LengthUnit defines model for WritableCableRequest.LengthUnit. -type WritableCableRequest_LengthUnit struct { - union json.RawMessage -} - -// WritableCableRequest_Relationships_Destination_Objects_Item defines model for WritableCableRequest.relationships.destination.objects.Item. -type WritableCableRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCableRequest_Relationships_Peer_Objects_Item defines model for WritableCableRequest.relationships.peer.objects.Item. -type WritableCableRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCableRequest_Relationships_Source_Objects_Item defines model for WritableCableRequest.relationships.source.objects.Item. -type WritableCableRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCableRequest_Type defines model for WritableCableRequest.Type. -type WritableCableRequest_Type struct { - union json.RawMessage -} - -// WritableCircuitRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableCircuitRequest struct { - Cid string `json:"cid"` - Comments *string `json:"comments,omitempty"` - CommitRate *int `json:"commit_rate"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - InstallDate *openapi_types.Date `json:"install_date"` - Provider openapi_types.UUID `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCircuitRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCircuitRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCircuitRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status CircuitStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Type openapi_types.UUID `json:"type"` -} - -// WritableCircuitRequest_Relationships_Destination_Objects_Item defines model for WritableCircuitRequest.relationships.destination.objects.Item. -type WritableCircuitRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCircuitRequest_Relationships_Peer_Objects_Item defines model for WritableCircuitRequest.relationships.peer.objects.Item. -type WritableCircuitRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCircuitRequest_Relationships_Source_Objects_Item defines model for WritableCircuitRequest.relationships.source.objects.Item. -type WritableCircuitRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCircuitTerminationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableCircuitTerminationRequest struct { - Circuit openapi_types.UUID `json:"circuit"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Location *openapi_types.UUID `json:"location"` - PortSpeed *int `json:"port_speed"` - PpInfo *string `json:"pp_info,omitempty"` - ProviderNetwork *openapi_types.UUID `json:"provider_network"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableCircuitTerminationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - TermSide TermSideEnum `json:"term_side"` - - // UpstreamSpeed Upstream speed, if different from port speed - UpstreamSpeed *int `json:"upstream_speed"` - XconnectId *string `json:"xconnect_id,omitempty"` -} - -// WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item defines model for WritableCircuitTerminationRequest.relationships.destination.objects.Item. -type WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item defines model for WritableCircuitTerminationRequest.relationships.peer.objects.Item. -type WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCircuitTerminationRequest_Relationships_Source_Objects_Item defines model for WritableCircuitTerminationRequest.relationships.source.objects.Item. -type WritableCircuitTerminationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableClusterRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableClusterRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Group *openapi_types.UUID `json:"group"` - Location *openapi_types.UUID `json:"location"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableClusterRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableClusterRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableClusterRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Type openapi_types.UUID `json:"type"` -} - -// WritableClusterRequest_Relationships_Destination_Objects_Item defines model for WritableClusterRequest.relationships.destination.objects.Item. -type WritableClusterRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableClusterRequest_Relationships_Peer_Objects_Item defines model for WritableClusterRequest.relationships.peer.objects.Item. -type WritableClusterRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableClusterRequest_Relationships_Source_Objects_Item defines model for WritableClusterRequest.relationships.source.objects.Item. -type WritableClusterRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type WritableConfigContextRequest struct { - ClusterGroups *[]openapi_types.UUID `json:"cluster_groups,omitempty"` - Clusters *[]openapi_types.UUID `json:"clusters,omitempty"` - Data map[string]interface{} `json:"data"` - Description *string `json:"description,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Locations *[]openapi_types.UUID `json:"locations,omitempty"` - Name string `json:"name"` - OwnerContentType *string `json:"owner_content_type"` - OwnerObjectId *openapi_types.UUID `json:"owner_object_id"` - Platforms *[]openapi_types.UUID `json:"platforms,omitempty"` - Regions *[]openapi_types.UUID `json:"regions,omitempty"` - Roles *[]openapi_types.UUID `json:"roles,omitempty"` - - // Schema Optional schema to validate the structure of the data - Schema *openapi_types.UUID `json:"schema"` - Sites *[]openapi_types.UUID `json:"sites,omitempty"` - Tags *[]string `json:"tags,omitempty"` - TenantGroups *[]openapi_types.UUID `json:"tenant_groups,omitempty"` - Tenants *[]openapi_types.UUID `json:"tenants,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// WritableConsolePortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableConsolePortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsolePortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsolePortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsolePortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *WritableConsolePortRequest_Type `json:"type,omitempty"` -} - -// WritableConsolePortRequest_Relationships_Destination_Objects_Item defines model for WritableConsolePortRequest.relationships.destination.objects.Item. -type WritableConsolePortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsolePortRequest_Relationships_Peer_Objects_Item defines model for WritableConsolePortRequest.relationships.peer.objects.Item. -type WritableConsolePortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsolePortRequest_Relationships_Source_Objects_Item defines model for WritableConsolePortRequest.relationships.source.objects.Item. -type WritableConsolePortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsolePortRequest_Type Physical port type -type WritableConsolePortRequest_Type struct { - union json.RawMessage -} - -// WritableConsolePortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableConsolePortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *WritableConsolePortTemplateRequest_Type `json:"type,omitempty"` -} - -// WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item defines model for WritableConsolePortTemplateRequest.relationships.destination.objects.Item. -type WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item defines model for WritableConsolePortTemplateRequest.relationships.peer.objects.Item. -type WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item defines model for WritableConsolePortTemplateRequest.relationships.source.objects.Item. -type WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsolePortTemplateRequest_Type defines model for WritableConsolePortTemplateRequest.Type. -type WritableConsolePortTemplateRequest_Type struct { - union json.RawMessage -} - -// WritableConsoleServerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableConsoleServerPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsoleServerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *WritableConsoleServerPortRequest_Type `json:"type,omitempty"` -} - -// WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item defines model for WritableConsoleServerPortRequest.relationships.destination.objects.Item. -type WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item defines model for WritableConsoleServerPortRequest.relationships.peer.objects.Item. -type WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsoleServerPortRequest_Relationships_Source_Objects_Item defines model for WritableConsoleServerPortRequest.relationships.source.objects.Item. -type WritableConsoleServerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsoleServerPortRequest_Type Physical port type -type WritableConsoleServerPortRequest_Type struct { - union json.RawMessage -} - -// WritableConsoleServerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableConsoleServerPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *WritableConsoleServerPortTemplateRequest_Type `json:"type,omitempty"` -} - -// WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for WritableConsoleServerPortTemplateRequest.relationships.destination.objects.Item. -type WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for WritableConsoleServerPortTemplateRequest.relationships.peer.objects.Item. -type WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item defines model for WritableConsoleServerPortTemplateRequest.relationships.source.objects.Item. -type WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableConsoleServerPortTemplateRequest_Type defines model for WritableConsoleServerPortTemplateRequest.Type. -type WritableConsoleServerPortTemplateRequest_Type struct { - union json.RawMessage -} - -// WritableContactLCMRequest API serializer. -type WritableContactLCMRequest struct { - Address *string `json:"address,omitempty"` - Comments *string `json:"comments,omitempty"` - Contract *openapi_types.UUID `json:"contract"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - Name *string `json:"name"` - Phone *string `json:"phone,omitempty"` - Priority *int `json:"priority,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableContactLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableContactLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableContactLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableContactLCMRequest_Relationships_Destination_Objects_Item defines model for WritableContactLCMRequest.relationships.destination.objects.Item. -type WritableContactLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableContactLCMRequest_Relationships_Peer_Objects_Item defines model for WritableContactLCMRequest.relationships.peer.objects.Item. -type WritableContactLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableContactLCMRequest_Relationships_Source_Objects_Item defines model for WritableContactLCMRequest.relationships.source.objects.Item. -type WritableContactLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableContractLCMRequest API serializer. -type WritableContractLCMRequest struct { - ContractType *string `json:"contract_type"` - Cost *string `json:"cost"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - End *openapi_types.Date `json:"end"` - Name string `json:"name"` - Provider *openapi_types.UUID `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableContractLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableContractLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableContractLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Start *openapi_types.Date `json:"start"` - SupportLevel *string `json:"support_level"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableContractLCMRequest_Relationships_Destination_Objects_Item defines model for WritableContractLCMRequest.relationships.destination.objects.Item. -type WritableContractLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableContractLCMRequest_Relationships_Peer_Objects_Item defines model for WritableContractLCMRequest.relationships.peer.objects.Item. -type WritableContractLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableContractLCMRequest_Relationships_Source_Objects_Item defines model for WritableContractLCMRequest.relationships.source.objects.Item. -type WritableContractLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableCustomFieldChoiceRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type WritableCustomFieldChoiceRequest struct { - Field openapi_types.UUID `json:"field"` - Value string `json:"value"` - - // Weight Higher weights appear later in the list - Weight *int `json:"weight,omitempty"` -} - -// WritableDeviceBayRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableDeviceBayRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - InstalledDevice *openapi_types.UUID `json:"installed_device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceBayRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceBayRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceBayRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableDeviceBayRequest_Relationships_Destination_Objects_Item defines model for WritableDeviceBayRequest.relationships.destination.objects.Item. -type WritableDeviceBayRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceBayRequest_Relationships_Peer_Objects_Item defines model for WritableDeviceBayRequest.relationships.peer.objects.Item. -type WritableDeviceBayRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceBayRequest_Relationships_Source_Objects_Item defines model for WritableDeviceBayRequest.relationships.source.objects.Item. -type WritableDeviceBayRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceBayTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableDeviceBayTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` -} - -// WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item defines model for WritableDeviceBayTemplateRequest.relationships.destination.objects.Item. -type WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item defines model for WritableDeviceBayTemplateRequest.relationships.peer.objects.Item. -type WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item defines model for WritableDeviceBayTemplateRequest.relationships.source.objects.Item. -type WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceRedundancyGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableDeviceRedundancyGroupRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - FailoverStrategy *WritableDeviceRedundancyGroupRequest_FailoverStrategy `json:"failover_strategy,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Status LocationStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableDeviceRedundancyGroupRequest_FailoverStrategy defines model for WritableDeviceRedundancyGroupRequest.FailoverStrategy. -type WritableDeviceRedundancyGroupRequest_FailoverStrategy struct { - union json.RawMessage -} - -// WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item defines model for WritableDeviceRedundancyGroupRequest.relationships.destination.objects.Item. -type WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item defines model for WritableDeviceRedundancyGroupRequest.relationships.peer.objects.Item. -type WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item defines model for WritableDeviceRedundancyGroupRequest.relationships.source.objects.Item. -type WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableDeviceTypeRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - FrontImage *openapi_types.File `json:"front_image,omitempty"` - - // IsFullDepth Device consumes both front and rear rack faces - IsFullDepth *bool `json:"is_full_depth,omitempty"` - Manufacturer openapi_types.UUID `json:"manufacturer"` - Model string `json:"model"` - - // PartNumber Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - RearImage *openapi_types.File `json:"rear_image,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - - // SubdeviceRole Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. - SubdeviceRole *WritableDeviceTypeRequest_SubdeviceRole `json:"subdevice_role,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UHeight *int `json:"u_height,omitempty"` -} - -// WritableDeviceTypeRequest_Relationships_Destination_Objects_Item defines model for WritableDeviceTypeRequest.relationships.destination.objects.Item. -type WritableDeviceTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceTypeRequest_Relationships_Peer_Objects_Item defines model for WritableDeviceTypeRequest.relationships.peer.objects.Item. -type WritableDeviceTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceTypeRequest_Relationships_Source_Objects_Item defines model for WritableDeviceTypeRequest.relationships.source.objects.Item. -type WritableDeviceTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceTypeRequest_SubdeviceRole Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. -type WritableDeviceTypeRequest_SubdeviceRole struct { - union json.RawMessage -} - -// WritableDeviceWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableDeviceWithConfigContextRequest struct { - // AssetTag A unique tag used to identify this device - AssetTag *string `json:"asset_tag"` - Cluster *openapi_types.UUID `json:"cluster"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRedundancyGroup *openapi_types.UUID `json:"device_redundancy_group"` - - // DeviceRedundancyGroupPriority The priority the device has in the device redundancy group. - DeviceRedundancyGroupPriority *int `json:"device_redundancy_group_priority"` - DeviceRole openapi_types.UUID `json:"device_role"` - DeviceType openapi_types.UUID `json:"device_type"` - Face *WritableDeviceWithConfigContextRequest_Face `json:"face,omitempty"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - - // LocalContextSchema Optional schema to validate the structure of the data - LocalContextSchema *openapi_types.UUID `json:"local_context_schema"` - Location *openapi_types.UUID `json:"location"` - Name *string `json:"name"` - Platform *openapi_types.UUID `json:"platform"` - - // Position The lowest-numbered unit occupied by the device - Position *int `json:"position"` - PrimaryIp4 *openapi_types.UUID `json:"primary_ip4"` - PrimaryIp6 *openapi_types.UUID `json:"primary_ip6"` - Rack *openapi_types.UUID `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Serial *string `json:"serial,omitempty"` - Site openapi_types.UUID `json:"site"` - Status DeviceStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - VcPosition *int `json:"vc_position"` - VcPriority *int `json:"vc_priority"` - VirtualChassis *openapi_types.UUID `json:"virtual_chassis"` -} - -// WritableDeviceWithConfigContextRequest_Face defines model for WritableDeviceWithConfigContextRequest.Face. -type WritableDeviceWithConfigContextRequest_Face struct { - union json.RawMessage -} - -// WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for WritableDeviceWithConfigContextRequest.relationships.destination.objects.Item. -type WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for WritableDeviceWithConfigContextRequest.relationships.peer.objects.Item. -type WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item defines model for WritableDeviceWithConfigContextRequest.relationships.source.objects.Item. -type WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableDynamicGroupMembershipRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type WritableDynamicGroupMembershipRequest struct { - Group openapi_types.UUID `json:"group"` - Operator OperatorEnum `json:"operator"` - ParentGroup openapi_types.UUID `json:"parent_group"` - Weight int `json:"weight"` -} - -// WritableFQDNRequest FQDN Serializer. -type WritableFQDNRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Resolvable fully qualified domain name (e.g. networktocode.com) - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFQDNRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFQDNRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFQDNRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableFQDNRequest_Relationships_Destination_Objects_Item defines model for WritableFQDNRequest.relationships.destination.objects.Item. -type WritableFQDNRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFQDNRequest_Relationships_Peer_Objects_Item defines model for WritableFQDNRequest.relationships.peer.objects.Item. -type WritableFQDNRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFQDNRequest_Relationships_Source_Objects_Item defines model for WritableFQDNRequest.relationships.source.objects.Item. -type WritableFQDNRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFrontPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableFrontPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - RearPort openapi_types.UUID `json:"rear_port"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFrontPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFrontPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFrontPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// WritableFrontPortRequest_Relationships_Destination_Objects_Item defines model for WritableFrontPortRequest.relationships.destination.objects.Item. -type WritableFrontPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFrontPortRequest_Relationships_Peer_Objects_Item defines model for WritableFrontPortRequest.relationships.peer.objects.Item. -type WritableFrontPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFrontPortRequest_Relationships_Source_Objects_Item defines model for WritableFrontPortRequest.relationships.source.objects.Item. -type WritableFrontPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFrontPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableFrontPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - RearPort openapi_types.UUID `json:"rear_port"` - RearPortPosition *int `json:"rear_port_position,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item defines model for WritableFrontPortTemplateRequest.relationships.destination.objects.Item. -type WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item defines model for WritableFrontPortTemplateRequest.relationships.peer.objects.Item. -type WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item defines model for WritableFrontPortTemplateRequest.relationships.source.objects.Item. -type WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableGitRepositoryRequest Git repositories defined as a data source. -type WritableGitRepositoryRequest struct { - Branch *string `json:"branch,omitempty"` - - // CurrentHead Commit hash of the most recent fetch from the selected branch. Used for syncing between workers. - CurrentHead *string `json:"current_head,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Name string `json:"name"` - ProvidedContents *[]WritableGitRepositoryRequest_ProvidedContents_Item `json:"provided_contents,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableGitRepositoryRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableGitRepositoryRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableGitRepositoryRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // RemoteUrl Only HTTP and HTTPS URLs are presently supported - RemoteUrl string `json:"remote_url"` - SecretsGroup *openapi_types.UUID `json:"secrets_group"` - Slug *string `json:"slug,omitempty"` - Token *string `json:"token,omitempty"` - Username *string `json:"username,omitempty"` -} - -// WritableGitRepositoryRequest_ProvidedContents_Item defines model for WritableGitRepositoryRequest.provided_contents.Item. -type WritableGitRepositoryRequest_ProvidedContents_Item struct { - union json.RawMessage -} - -// WritableGitRepositoryRequest_Relationships_Destination_Objects_Item defines model for WritableGitRepositoryRequest.relationships.destination.objects.Item. -type WritableGitRepositoryRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableGitRepositoryRequest_Relationships_Peer_Objects_Item defines model for WritableGitRepositoryRequest.relationships.peer.objects.Item. -type WritableGitRepositoryRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableGitRepositoryRequest_Relationships_Source_Objects_Item defines model for WritableGitRepositoryRequest.relationships.source.objects.Item. -type WritableGitRepositoryRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableGoldenConfigSettingRequest Serializer for GoldenConfigSetting object. -type WritableGoldenConfigSettingRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - - // BackupPathTemplate The Jinja path representation of where the backup file will be found. The variable `obj` is available as the device instance object of a given device, as is the case for all Jinja templates. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - BackupPathTemplate *string `json:"backup_path_template,omitempty"` - BackupRepository *openapi_types.UUID `json:"backup_repository"` - - // BackupTestConnectivity Whether or not to pretest the connectivity of the device by verifying there is a resolvable IP that can connect to port 22. - BackupTestConnectivity *bool `json:"backup_test_connectivity,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DynamicGroup openapi_types.UUID `json:"dynamic_group"` - - // IntendedPathTemplate The Jinja path representation of where the generated file will be places. e.g. `{{obj.site.slug}}/{{obj.name}}.cfg` - IntendedPathTemplate *string `json:"intended_path_template,omitempty"` - IntendedRepository *openapi_types.UUID `json:"intended_repository"` - - // JinjaPathTemplate The Jinja path representation of where the Jinja template can be found. e.g. `{{obj.platform.slug}}.j2` - JinjaPathTemplate *string `json:"jinja_path_template,omitempty"` - JinjaRepository *openapi_types.UUID `json:"jinja_repository"` - Name string `json:"name"` - Scope *map[string]interface{} `json:"scope,omitempty"` - Slug string `json:"slug"` - SotAggQuery *openapi_types.UUID `json:"sot_agg_query"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Weight *int `json:"weight,omitempty"` -} - -// WritableHardwareLCMRequest API serializer. -type WritableHardwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceType *openapi_types.UUID `json:"device_type"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSale *openapi_types.Date `json:"end_of_sale"` - EndOfSecurityPatches *openapi_types.Date `json:"end_of_security_patches"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - EndOfSwReleases *openapi_types.Date `json:"end_of_sw_releases"` - InventoryItem *string `json:"inventory_item"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableHardwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableHardwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableHardwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableHardwareLCMRequest_Relationships_Destination_Objects_Item defines model for WritableHardwareLCMRequest.relationships.destination.objects.Item. -type WritableHardwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableHardwareLCMRequest_Relationships_Peer_Objects_Item defines model for WritableHardwareLCMRequest.relationships.peer.objects.Item. -type WritableHardwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableHardwareLCMRequest_Relationships_Source_Objects_Item defines model for WritableHardwareLCMRequest.relationships.source.objects.Item. -type WritableHardwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableIPAddressRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableIPAddressRequest struct { - Address string `json:"address"` - AssignedObjectId *openapi_types.UUID `json:"assigned_object_id"` - AssignedObjectType *string `json:"assigned_object_type"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // DnsName Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - - // NatInside The IP Addresses for which this address is the "outside" IP - NatInside *openapi_types.UUID `json:"nat_inside"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableIPAddressRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableIPAddressRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableIPAddressRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Role The functional role of this IP - Role *WritableIPAddressRequest_Role `json:"role,omitempty"` - Status IPAddressStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// WritableIPAddressRequest_Relationships_Destination_Objects_Item defines model for WritableIPAddressRequest.relationships.destination.objects.Item. -type WritableIPAddressRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableIPAddressRequest_Relationships_Peer_Objects_Item defines model for WritableIPAddressRequest.relationships.peer.objects.Item. -type WritableIPAddressRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableIPAddressRequest_Relationships_Source_Objects_Item defines model for WritableIPAddressRequest.relationships.source.objects.Item. -type WritableIPAddressRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableIPAddressRequest_Role The functional role of this IP -type WritableIPAddressRequest_Role struct { - union json.RawMessage -} - -// WritableInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableInterfaceRequest struct { - // Bridge Assigned bridge interface - Bridge *openapi_types.UUID `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - Enabled *bool `json:"enabled,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // Lag Assigned LAG interface - Lag *openapi_types.UUID `json:"lag"` - MacAddress *string `json:"mac_address"` - - // MgmtOnly This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Mode *WritableInterfaceRequest_Mode `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name string `json:"name"` - - // ParentInterface Assigned parent interface - ParentInterface *openapi_types.UUID `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status InterfaceStatusChoices `json:"status"` - TaggedVlans *[]openapi_types.UUID `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type InterfaceTypeChoices `json:"type"` - UntaggedVlan *openapi_types.UUID `json:"untagged_vlan"` -} - -// WritableInterfaceRequest_Mode defines model for WritableInterfaceRequest.Mode. -type WritableInterfaceRequest_Mode struct { - union json.RawMessage -} - -// WritableInterfaceRequest_Relationships_Destination_Objects_Item defines model for WritableInterfaceRequest.relationships.destination.objects.Item. -type WritableInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInterfaceRequest_Relationships_Peer_Objects_Item defines model for WritableInterfaceRequest.relationships.peer.objects.Item. -type WritableInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInterfaceRequest_Relationships_Source_Objects_Item defines model for WritableInterfaceRequest.relationships.source.objects.Item. -type WritableInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInterfaceTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableInterfaceTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // Label Physical label - Label *string `json:"label,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type InterfaceTypeChoices `json:"type"` -} - -// WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item defines model for WritableInterfaceTemplateRequest.relationships.destination.objects.Item. -type WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item defines model for WritableInterfaceTemplateRequest.relationships.peer.objects.Item. -type WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item defines model for WritableInterfaceTemplateRequest.relationships.source.objects.Item. -type WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInventoryItemRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableInventoryItemRequest struct { - // AssetTag A unique tag used to identify this item - AssetTag *string `json:"asset_tag"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - - // Discovered This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Manufacturer *openapi_types.UUID `json:"manufacturer"` - Name string `json:"name"` - Parent *openapi_types.UUID `json:"parent"` - - // PartId Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInventoryItemRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInventoryItemRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableInventoryItemRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Serial *string `json:"serial,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableInventoryItemRequest_Relationships_Destination_Objects_Item defines model for WritableInventoryItemRequest.relationships.destination.objects.Item. -type WritableInventoryItemRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInventoryItemRequest_Relationships_Peer_Objects_Item defines model for WritableInventoryItemRequest.relationships.peer.objects.Item. -type WritableInventoryItemRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableInventoryItemRequest_Relationships_Source_Objects_Item defines model for WritableInventoryItemRequest.relationships.source.objects.Item. -type WritableInventoryItemRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableLocationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableLocationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - LocationType openapi_types.UUID `json:"location_type"` - Name string `json:"name"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableLocationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableLocationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableLocationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - Slug *string `json:"slug,omitempty"` - Status LocationStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// WritableLocationRequest_Relationships_Destination_Objects_Item defines model for WritableLocationRequest.relationships.destination.objects.Item. -type WritableLocationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableLocationRequest_Relationships_Peer_Objects_Item defines model for WritableLocationRequest.relationships.peer.objects.Item. -type WritableLocationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableLocationRequest_Relationships_Source_Objects_Item defines model for WritableLocationRequest.relationships.source.objects.Item. -type WritableLocationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableLocationTypeRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableLocationTypeRequest struct { - ContentTypes *[]string `json:"content_types,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - - // Nestable Allow Locations of this type to be parents/children of other Locations of this same type - Nestable *bool `json:"nestable,omitempty"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableLocationTypeRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableLocationTypeRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableLocationTypeRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// WritableLocationTypeRequest_Relationships_Destination_Objects_Item defines model for WritableLocationTypeRequest.relationships.destination.objects.Item. -type WritableLocationTypeRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableLocationTypeRequest_Relationships_Peer_Objects_Item defines model for WritableLocationTypeRequest.relationships.peer.objects.Item. -type WritableLocationTypeRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableLocationTypeRequest_Relationships_Source_Objects_Item defines model for WritableLocationTypeRequest.relationships.source.objects.Item. -type WritableLocationTypeRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableNATPolicyRuleRequest PolicyRule Serializer. -type WritableNATPolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Remark *bool `json:"remark,omitempty"` - RequestId *string `json:"request_id"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item defines model for WritableNATPolicyRuleRequest.relationships.destination.objects.Item. -type WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item defines model for WritableNATPolicyRuleRequest.relationships.peer.objects.Item. -type WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item defines model for WritableNATPolicyRuleRequest.relationships.source.objects.Item. -type WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type WritableObjectPermissionRequest struct { - // Actions The list of actions granted by this permission - Actions map[string]interface{} `json:"actions"` - - // Constraints Queryset filter matching the applicable objects of the selected type(s) - Constraints *map[string]interface{} `json:"constraints"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Groups *[]int `json:"groups,omitempty"` - Name string `json:"name"` - ObjectTypes []string `json:"object_types"` - Users *[]openapi_types.UUID `json:"users,omitempty"` -} - -// WritablePeerEndpointRequest REST API serializer for PeerEndpoint records. -type WritablePeerEndpointRequest struct { - AutonomousSystem *openapi_types.UUID `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - Peer *openapi_types.UUID `json:"peer"` - PeerGroup *openapi_types.UUID `json:"peer_group"` - Peering openapi_types.UUID `json:"peering"` - RoutingInstance *openapi_types.UUID `json:"routing_instance"` - Secret *openapi_types.UUID `json:"secret"` - SourceInterface *openapi_types.UUID `json:"source_interface"` - SourceIp *openapi_types.UUID `json:"source_ip"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritablePeerGroupRequest REST API serializer for PeerGroup records. -type WritablePeerGroupRequest struct { - AutonomousSystem *openapi_types.UUID `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - RoutingInstance openapi_types.UUID `json:"routing_instance"` - Secret *openapi_types.UUID `json:"secret"` - SourceInterface *openapi_types.UUID `json:"source_interface"` - SourceIp *openapi_types.UUID `json:"source_ip"` - Template *openapi_types.UUID `json:"template"` -} - -// WritablePeerGroupTemplateRequest REST API serializer for PeerGroup records. -type WritablePeerGroupTemplateRequest struct { - AutonomousSystem *openapi_types.UUID `json:"autonomous_system"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - ExportPolicy *string `json:"export_policy,omitempty"` - ImportPolicy *string `json:"import_policy,omitempty"` - Name string `json:"name"` - Role *openapi_types.UUID `json:"role"` - Secret *openapi_types.UUID `json:"secret"` -} - -// WritablePlatformRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePlatformRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Manufacturer Optionally limit this platform to devices of a certain manufacturer - Manufacturer *openapi_types.UUID `json:"manufacturer"` - Name string `json:"name"` - - // NapalmArgs Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs *map[string]interface{} `json:"napalm_args"` - - // NapalmDriver The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePlatformRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePlatformRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePlatformRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// WritablePlatformRequest_Relationships_Destination_Objects_Item defines model for WritablePlatformRequest.relationships.destination.objects.Item. -type WritablePlatformRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePlatformRequest_Relationships_Peer_Objects_Item defines model for WritablePlatformRequest.relationships.peer.objects.Item. -type WritablePlatformRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePlatformRequest_Relationships_Source_Objects_Item defines model for WritablePlatformRequest.relationships.source.objects.Item. -type WritablePlatformRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePolicyRuleRequest PolicyRule Serializer. -type WritablePolicyRuleRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Action ActionEnum `json:"action"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description"` - - // DestinationZone Zone Serializer. - DestinationZone *ZoneRequest `json:"destination_zone,omitempty"` - Index *int `json:"index"` - Log *bool `json:"log,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePolicyRuleRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePolicyRuleRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePolicyRuleRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - RequestId *string `json:"request_id"` - - // SourceZone Zone Serializer. - SourceZone *ZoneRequest `json:"source_zone,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritablePolicyRuleRequest_Relationships_Destination_Objects_Item defines model for WritablePolicyRuleRequest.relationships.destination.objects.Item. -type WritablePolicyRuleRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePolicyRuleRequest_Relationships_Peer_Objects_Item defines model for WritablePolicyRuleRequest.relationships.peer.objects.Item. -type WritablePolicyRuleRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePolicyRuleRequest_Relationships_Source_Objects_Item defines model for WritablePolicyRuleRequest.relationships.source.objects.Item. -type WritablePolicyRuleRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerFeedRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePowerFeedRequest struct { - Amperage *int `json:"amperage,omitempty"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // MaxUtilization Maximum permissible draw (percentage) - MaxUtilization *int `json:"max_utilization,omitempty"` - Name string `json:"name"` - Phase *PhaseEnum `json:"phase,omitempty"` - PowerPanel openapi_types.UUID `json:"power_panel"` - Rack *openapi_types.UUID `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerFeedRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerFeedRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerFeedRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status PowerFeedStatusChoices `json:"status"` - Supply *SupplyEnum `json:"supply,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type *PowerFeedTypeChoices `json:"type,omitempty"` - Voltage *int `json:"voltage,omitempty"` -} - -// WritablePowerFeedRequest_Relationships_Destination_Objects_Item defines model for WritablePowerFeedRequest.relationships.destination.objects.Item. -type WritablePowerFeedRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerFeedRequest_Relationships_Peer_Objects_Item defines model for WritablePowerFeedRequest.relationships.peer.objects.Item. -type WritablePowerFeedRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerFeedRequest_Relationships_Source_Objects_Item defines model for WritablePowerFeedRequest.relationships.source.objects.Item. -type WritablePowerFeedRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerOutletRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePowerOutletRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - - // FeedLeg Phase (for three-phase feeds) - FeedLeg *WritablePowerOutletRequest_FeedLeg `json:"feed_leg,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - PowerPort *openapi_types.UUID `json:"power_port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerOutletRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerOutletRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerOutletRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *WritablePowerOutletRequest_Type `json:"type,omitempty"` -} - -// WritablePowerOutletRequest_FeedLeg Phase (for three-phase feeds) -type WritablePowerOutletRequest_FeedLeg struct { - union json.RawMessage -} - -// WritablePowerOutletRequest_Relationships_Destination_Objects_Item defines model for WritablePowerOutletRequest.relationships.destination.objects.Item. -type WritablePowerOutletRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerOutletRequest_Relationships_Peer_Objects_Item defines model for WritablePowerOutletRequest.relationships.peer.objects.Item. -type WritablePowerOutletRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerOutletRequest_Relationships_Source_Objects_Item defines model for WritablePowerOutletRequest.relationships.source.objects.Item. -type WritablePowerOutletRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerOutletRequest_Type Physical port type -type WritablePowerOutletRequest_Type struct { - union json.RawMessage -} - -// WritablePowerOutletTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePowerOutletTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // FeedLeg Phase (for three-phase feeds) - FeedLeg *WritablePowerOutletTemplateRequest_FeedLeg `json:"feed_leg,omitempty"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - PowerPort *openapi_types.UUID `json:"power_port"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *WritablePowerOutletTemplateRequest_Type `json:"type,omitempty"` -} - -// WritablePowerOutletTemplateRequest_FeedLeg Phase (for three-phase feeds) -type WritablePowerOutletTemplateRequest_FeedLeg struct { - union json.RawMessage -} - -// WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item defines model for WritablePowerOutletTemplateRequest.relationships.destination.objects.Item. -type WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item defines model for WritablePowerOutletTemplateRequest.relationships.peer.objects.Item. -type WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item defines model for WritablePowerOutletTemplateRequest.relationships.source.objects.Item. -type WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerOutletTemplateRequest_Type defines model for WritablePowerOutletTemplateRequest.Type. -type WritablePowerOutletTemplateRequest_Type struct { - union json.RawMessage -} - -// WritablePowerPanelRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePowerPanelRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Location *openapi_types.UUID `json:"location"` - Name string `json:"name"` - RackGroup *openapi_types.UUID `json:"rack_group"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPanelRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPanelRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPanelRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site openapi_types.UUID `json:"site"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritablePowerPanelRequest_Relationships_Destination_Objects_Item defines model for WritablePowerPanelRequest.relationships.destination.objects.Item. -type WritablePowerPanelRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPanelRequest_Relationships_Peer_Objects_Item defines model for WritablePowerPanelRequest.relationships.peer.objects.Item. -type WritablePowerPanelRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPanelRequest_Relationships_Source_Objects_Item defines model for WritablePowerPanelRequest.relationships.source.objects.Item. -type WritablePowerPanelRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePowerPortRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - - // Type Physical port type - Type *WritablePowerPortRequest_Type `json:"type,omitempty"` -} - -// WritablePowerPortRequest_Relationships_Destination_Objects_Item defines model for WritablePowerPortRequest.relationships.destination.objects.Item. -type WritablePowerPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPortRequest_Relationships_Peer_Objects_Item defines model for WritablePowerPortRequest.relationships.peer.objects.Item. -type WritablePowerPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPortRequest_Relationships_Source_Objects_Item defines model for WritablePowerPortRequest.relationships.source.objects.Item. -type WritablePowerPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPortRequest_Type Physical port type -type WritablePowerPortRequest_Type struct { - union json.RawMessage -} - -// WritablePowerPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePowerPortTemplateRequest struct { - // AllocatedDraw Allocated power draw (watts) - AllocatedDraw *int `json:"allocated_draw"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // Label Physical label - Label *string `json:"label,omitempty"` - - // MaximumDraw Maximum power draw (watts) - MaximumDraw *int `json:"maximum_draw"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type *WritablePowerPortTemplateRequest_Type `json:"type,omitempty"` -} - -// WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item defines model for WritablePowerPortTemplateRequest.relationships.destination.objects.Item. -type WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item defines model for WritablePowerPortTemplateRequest.relationships.peer.objects.Item. -type WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item defines model for WritablePowerPortTemplateRequest.relationships.source.objects.Item. -type WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePowerPortTemplateRequest_Type defines model for WritablePowerPortTemplateRequest.Type. -type WritablePowerPortTemplateRequest_Type struct { - union json.RawMessage -} - -// WritablePrefixRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritablePrefixRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // IsPool All IP addresses within this prefix are considered usable - IsPool *bool `json:"is_pool,omitempty"` - Location *openapi_types.UUID `json:"location"` - Prefix string `json:"prefix"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePrefixRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePrefixRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritablePrefixRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Role The primary function of this prefix - Role *openapi_types.UUID `json:"role"` - Site *openapi_types.UUID `json:"site"` - Status PrefixStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vlan *openapi_types.UUID `json:"vlan"` - Vrf *openapi_types.UUID `json:"vrf"` -} - -// WritablePrefixRequest_Relationships_Destination_Objects_Item defines model for WritablePrefixRequest.relationships.destination.objects.Item. -type WritablePrefixRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePrefixRequest_Relationships_Peer_Objects_Item defines model for WritablePrefixRequest.relationships.peer.objects.Item. -type WritablePrefixRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritablePrefixRequest_Relationships_Source_Objects_Item defines model for WritablePrefixRequest.relationships.source.objects.Item. -type WritablePrefixRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableProviderNetworkRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableProviderNetworkRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Provider openapi_types.UUID `json:"provider"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableProviderNetworkRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableProviderNetworkRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableProviderNetworkRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableProviderNetworkRequest_Relationships_Destination_Objects_Item defines model for WritableProviderNetworkRequest.relationships.destination.objects.Item. -type WritableProviderNetworkRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableProviderNetworkRequest_Relationships_Peer_Objects_Item defines model for WritableProviderNetworkRequest.relationships.peer.objects.Item. -type WritableProviderNetworkRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableProviderNetworkRequest_Relationships_Source_Objects_Item defines model for WritableProviderNetworkRequest.relationships.source.objects.Item. -type WritableProviderNetworkRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableRackGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Location *openapi_types.UUID `json:"location"` - Name string `json:"name"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site openapi_types.UUID `json:"site"` - Slug *string `json:"slug,omitempty"` -} - -// WritableRackGroupRequest_Relationships_Destination_Objects_Item defines model for WritableRackGroupRequest.relationships.destination.objects.Item. -type WritableRackGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackGroupRequest_Relationships_Peer_Objects_Item defines model for WritableRackGroupRequest.relationships.peer.objects.Item. -type WritableRackGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackGroupRequest_Relationships_Source_Objects_Item defines model for WritableRackGroupRequest.relationships.source.objects.Item. -type WritableRackGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableRackRequest struct { - // AssetTag A unique tag used to identify this rack - AssetTag *string `json:"asset_tag"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - - // DescUnits Units are numbered top-to-bottom - DescUnits *bool `json:"desc_units,omitempty"` - - // FacilityId Locally-assigned identifier - FacilityId *string `json:"facility_id"` - - // Group Assigned group - Group *openapi_types.UUID `json:"group"` - Location *openapi_types.UUID `json:"location"` - Name string `json:"name"` - - // OuterDepth Outer dimension of rack (depth) - OuterDepth *int `json:"outer_depth"` - OuterUnit *WritableRackRequest_OuterUnit `json:"outer_unit,omitempty"` - - // OuterWidth Outer dimension of rack (width) - OuterWidth *int `json:"outer_width"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - - // Role Functional role - Role *openapi_types.UUID `json:"role"` - Serial *string `json:"serial,omitempty"` - Site openapi_types.UUID `json:"site"` - Status RackStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Type *WritableRackRequest_Type `json:"type,omitempty"` - - // UHeight Height in rack units - UHeight *int `json:"u_height,omitempty"` - - // Width Rail-to-rail width - Width *WidthEnum `json:"width,omitempty"` -} - -// WritableRackRequest_OuterUnit defines model for WritableRackRequest.OuterUnit. -type WritableRackRequest_OuterUnit struct { - union json.RawMessage -} - -// WritableRackRequest_Relationships_Destination_Objects_Item defines model for WritableRackRequest.relationships.destination.objects.Item. -type WritableRackRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackRequest_Relationships_Peer_Objects_Item defines model for WritableRackRequest.relationships.peer.objects.Item. -type WritableRackRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackRequest_Relationships_Source_Objects_Item defines model for WritableRackRequest.relationships.source.objects.Item. -type WritableRackRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackRequest_Type defines model for WritableRackRequest.Type. -type WritableRackRequest_Type struct { - union json.RawMessage -} - -// WritableRackReservationRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableRackReservationRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description string `json:"description"` - Rack openapi_types.UUID `json:"rack"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackReservationRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackReservationRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRackReservationRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Units map[string]interface{} `json:"units"` - User openapi_types.UUID `json:"user"` -} - -// WritableRackReservationRequest_Relationships_Destination_Objects_Item defines model for WritableRackReservationRequest.relationships.destination.objects.Item. -type WritableRackReservationRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackReservationRequest_Relationships_Peer_Objects_Item defines model for WritableRackReservationRequest.relationships.peer.objects.Item. -type WritableRackReservationRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRackReservationRequest_Relationships_Source_Objects_Item defines model for WritableRackReservationRequest.relationships.source.objects.Item. -type WritableRackReservationRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRearPortRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableRearPortRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device openapi_types.UUID `json:"device"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRearPortRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRearPortRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRearPortRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// WritableRearPortRequest_Relationships_Destination_Objects_Item defines model for WritableRearPortRequest.relationships.destination.objects.Item. -type WritableRearPortRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRearPortRequest_Relationships_Peer_Objects_Item defines model for WritableRearPortRequest.relationships.peer.objects.Item. -type WritableRearPortRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRearPortRequest_Relationships_Source_Objects_Item defines model for WritableRearPortRequest.relationships.source.objects.Item. -type WritableRearPortRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRearPortTemplateRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableRearPortTemplateRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - DeviceType openapi_types.UUID `json:"device_type"` - - // Label Physical label - Label *string `json:"label,omitempty"` - Name string `json:"name"` - Positions *int `json:"positions,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRearPortTemplateRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Type PortTypeChoices `json:"type"` -} - -// WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item defines model for WritableRearPortTemplateRequest.relationships.destination.objects.Item. -type WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item defines model for WritableRearPortTemplateRequest.relationships.peer.objects.Item. -type WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRearPortTemplateRequest_Relationships_Source_Objects_Item defines model for WritableRearPortTemplateRequest.relationships.source.objects.Item. -type WritableRearPortTemplateRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRegionRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableRegionRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRegionRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRegionRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRegionRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// WritableRegionRequest_Relationships_Destination_Objects_Item defines model for WritableRegionRequest.relationships.destination.objects.Item. -type WritableRegionRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRegionRequest_Relationships_Peer_Objects_Item defines model for WritableRegionRequest.relationships.peer.objects.Item. -type WritableRegionRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRegionRequest_Relationships_Source_Objects_Item defines model for WritableRegionRequest.relationships.source.objects.Item. -type WritableRegionRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRelationshipAssociationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type WritableRelationshipAssociationRequest struct { - DestinationId openapi_types.UUID `json:"destination_id"` - DestinationType string `json:"destination_type"` - Relationship openapi_types.UUID `json:"relationship"` - SourceId openapi_types.UUID `json:"source_id"` - SourceType string `json:"source_type"` -} - -// WritableRouteTargetRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableRouteTargetRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Name Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRouteTargetRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRouteTargetRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableRouteTargetRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// WritableRouteTargetRequest_Relationships_Destination_Objects_Item defines model for WritableRouteTargetRequest.relationships.destination.objects.Item. -type WritableRouteTargetRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRouteTargetRequest_Relationships_Peer_Objects_Item defines model for WritableRouteTargetRequest.relationships.peer.objects.Item. -type WritableRouteTargetRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableRouteTargetRequest_Relationships_Source_Objects_Item defines model for WritableRouteTargetRequest.relationships.source.objects.Item. -type WritableRouteTargetRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSecretsGroupAssociationRequest Serializer for `SecretsGroupAssociation` objects. -type WritableSecretsGroupAssociationRequest struct { - AccessType AccessTypeEnum `json:"access_type"` - Group openapi_types.UUID `json:"group"` - Secret openapi_types.UUID `json:"secret"` - SecretType SecretTypeEnum `json:"secret_type"` -} - -// WritableServiceObjectGroupRequest ServiceObjectGroup Serializer. -type WritableServiceObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item defines model for WritableServiceObjectGroupRequest.relationships.destination.objects.Item. -type WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item defines model for WritableServiceObjectGroupRequest.relationships.peer.objects.Item. -type WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item defines model for WritableServiceObjectGroupRequest.relationships.source.objects.Item. -type WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableServiceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableServiceRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Device *openapi_types.UUID `json:"device"` - Ipaddresses *[]openapi_types.UUID `json:"ipaddresses,omitempty"` - Name string `json:"name"` - Ports []int `json:"ports"` - Protocol ProtocolEnum `json:"protocol"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableServiceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableServiceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableServiceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - VirtualMachine *openapi_types.UUID `json:"virtual_machine"` -} - -// WritableServiceRequest_Relationships_Destination_Objects_Item defines model for WritableServiceRequest.relationships.destination.objects.Item. -type WritableServiceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableServiceRequest_Relationships_Peer_Objects_Item defines model for WritableServiceRequest.relationships.peer.objects.Item. -type WritableServiceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableServiceRequest_Relationships_Source_Objects_Item defines model for WritableServiceRequest.relationships.source.objects.Item. -type WritableServiceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSiteRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableSiteRequest struct { - // Asn 32-bit autonomous system number - Asn *int64 `json:"asn"` - Comments *string `json:"comments,omitempty"` - ContactEmail *openapi_types.Email `json:"contact_email,omitempty"` - ContactName *string `json:"contact_name,omitempty"` - ContactPhone *string `json:"contact_phone,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Facility Local facility ID or description - Facility *string `json:"facility,omitempty"` - - // Latitude GPS coordinate (latitude) - Latitude *string `json:"latitude"` - - // Longitude GPS coordinate (longitude) - Longitude *string `json:"longitude"` - Name string `json:"name"` - PhysicalAddress *string `json:"physical_address,omitempty"` - Region *openapi_types.UUID `json:"region"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSiteRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSiteRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSiteRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ShippingAddress *string `json:"shipping_address,omitempty"` - Slug *string `json:"slug,omitempty"` - Status LocationStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - TimeZone *string `json:"time_zone"` -} - -// WritableSiteRequest_Relationships_Destination_Objects_Item defines model for WritableSiteRequest.relationships.destination.objects.Item. -type WritableSiteRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSiteRequest_Relationships_Peer_Objects_Item defines model for WritableSiteRequest.relationships.peer.objects.Item. -type WritableSiteRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSiteRequest_Relationships_Source_Objects_Item defines model for WritableSiteRequest.relationships.source.objects.Item. -type WritableSiteRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSoftwareImageLCMRequest REST API serializer for SoftwareImageLCM records. -type WritableSoftwareImageLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DefaultImage *bool `json:"default_image,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - DownloadUrl *string `json:"download_url,omitempty"` - ImageFileChecksum *string `json:"image_file_checksum,omitempty"` - ImageFileName string `json:"image_file_name"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Software openapi_types.UUID `json:"software"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item defines model for WritableSoftwareImageLCMRequest.relationships.destination.objects.Item. -type WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item defines model for WritableSoftwareImageLCMRequest.relationships.peer.objects.Item. -type WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item defines model for WritableSoftwareImageLCMRequest.relationships.source.objects.Item. -type WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSoftwareLCMRequest REST API serializer for SoftwareLCM records. -type WritableSoftwareLCMRequest struct { - Alias *string `json:"alias"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DevicePlatform openapi_types.UUID `json:"device_platform"` - DocumentationUrl *string `json:"documentation_url,omitempty"` - EndOfSupport *openapi_types.Date `json:"end_of_support"` - LongTermSupport *bool `json:"long_term_support,omitempty"` - PreRelease *bool `json:"pre_release,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - ReleaseDate *openapi_types.Date `json:"release_date"` - SoftwareImages []openapi_types.UUID `json:"software_images"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Version string `json:"version"` -} - -// WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for WritableSoftwareLCMRequest.relationships.destination.objects.Item. -type WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for WritableSoftwareLCMRequest.relationships.peer.objects.Item. -type WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for WritableSoftwareLCMRequest.relationships.source.objects.Item. -type WritableSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableTenantGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableTenantGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Parent *openapi_types.UUID `json:"parent"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableTenantGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableTenantGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableTenantGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` -} - -// WritableTenantGroupRequest_Relationships_Destination_Objects_Item defines model for WritableTenantGroupRequest.relationships.destination.objects.Item. -type WritableTenantGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableTenantGroupRequest_Relationships_Peer_Objects_Item defines model for WritableTenantGroupRequest.relationships.peer.objects.Item. -type WritableTenantGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableTenantGroupRequest_Relationships_Source_Objects_Item defines model for WritableTenantGroupRequest.relationships.source.objects.Item. -type WritableTenantGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableTenantRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableTenantRequest struct { - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Group *openapi_types.UUID `json:"group"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableTenantRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableTenantRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableTenantRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Slug *string `json:"slug,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableTenantRequest_Relationships_Destination_Objects_Item defines model for WritableTenantRequest.relationships.destination.objects.Item. -type WritableTenantRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableTenantRequest_Relationships_Peer_Objects_Item defines model for WritableTenantRequest.relationships.peer.objects.Item. -type WritableTenantRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableTenantRequest_Relationships_Source_Objects_Item defines model for WritableTenantRequest.relationships.source.objects.Item. -type WritableTenantRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableUserObjectGroupRequest UserObjectGroup Serializer. -type WritableUserObjectGroupRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableUserObjectGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item defines model for WritableUserObjectGroupRequest.relationships.destination.objects.Item. -type WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item defines model for WritableUserObjectGroupRequest.relationships.peer.objects.Item. -type WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableUserObjectGroupRequest_Relationships_Source_Objects_Item defines model for WritableUserObjectGroupRequest.relationships.source.objects.Item. -type WritableUserObjectGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during -// validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) -type WritableUserRequest struct { - DateJoined *time.Time `json:"date_joined,omitempty"` - Email *openapi_types.Email `json:"email,omitempty"` - FirstName *string `json:"first_name,omitempty"` - - // Groups The groups this user belongs to. A user will get all permissions granted to each of their groups. - Groups *[]int `json:"groups,omitempty"` - - // IsActive Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - - // IsStaff Designates whether the user can log into this admin site. - IsStaff *bool `json:"is_staff,omitempty"` - LastName *string `json:"last_name,omitempty"` - Password *string `json:"password,omitempty"` - - // Username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` -} - -// WritableVLANGroupRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableVLANGroupRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Location *openapi_types.UUID `json:"location"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVLANGroupRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVLANGroupRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVLANGroupRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Site *openapi_types.UUID `json:"site"` - Slug *string `json:"slug,omitempty"` -} - -// WritableVLANGroupRequest_Relationships_Destination_Objects_Item defines model for WritableVLANGroupRequest.relationships.destination.objects.Item. -type WritableVLANGroupRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVLANGroupRequest_Relationships_Peer_Objects_Item defines model for WritableVLANGroupRequest.relationships.peer.objects.Item. -type WritableVLANGroupRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVLANGroupRequest_Relationships_Source_Objects_Item defines model for WritableVLANGroupRequest.relationships.source.objects.Item. -type WritableVLANGroupRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVLANRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableVLANRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Group *openapi_types.UUID `json:"group"` - Location *openapi_types.UUID `json:"location"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVLANRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVLANRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVLANRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *openapi_types.UUID `json:"role"` - Site *openapi_types.UUID `json:"site"` - Status VLANStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vid int `json:"vid"` -} - -// WritableVLANRequest_Relationships_Destination_Objects_Item defines model for WritableVLANRequest.relationships.destination.objects.Item. -type WritableVLANRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVLANRequest_Relationships_Peer_Objects_Item defines model for WritableVLANRequest.relationships.peer.objects.Item. -type WritableVLANRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVLANRequest_Relationships_Source_Objects_Item defines model for WritableVLANRequest.relationships.source.objects.Item. -type WritableVLANRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVMInterfaceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableVMInterfaceRequest struct { - // Bridge Assigned bridge interface - Bridge *openapi_types.UUID `json:"bridge"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - MacAddress *string `json:"mac_address"` - Mode *WritableVMInterfaceRequest_Mode `json:"mode,omitempty"` - Mtu *int `json:"mtu"` - Name string `json:"name"` - - // ParentInterface Assigned parent interface - ParentInterface *openapi_types.UUID `json:"parent_interface"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVMInterfaceRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVMInterfaceRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVMInterfaceRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status InterfaceStatusChoices `json:"status"` - TaggedVlans *[]openapi_types.UUID `json:"tagged_vlans,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - UntaggedVlan *openapi_types.UUID `json:"untagged_vlan"` - VirtualMachine openapi_types.UUID `json:"virtual_machine"` -} - -// WritableVMInterfaceRequest_Mode defines model for WritableVMInterfaceRequest.Mode. -type WritableVMInterfaceRequest_Mode struct { - union json.RawMessage -} - -// WritableVMInterfaceRequest_Relationships_Destination_Objects_Item defines model for WritableVMInterfaceRequest.relationships.destination.objects.Item. -type WritableVMInterfaceRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVMInterfaceRequest_Relationships_Peer_Objects_Item defines model for WritableVMInterfaceRequest.relationships.peer.objects.Item. -type WritableVMInterfaceRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVMInterfaceRequest_Relationships_Source_Objects_Item defines model for WritableVMInterfaceRequest.relationships.source.objects.Item. -type WritableVMInterfaceRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVRFRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableVRFRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // EnforceUnique Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - ExportTargets *[]openapi_types.UUID `json:"export_targets,omitempty"` - ImportTargets *[]openapi_types.UUID `json:"import_targets,omitempty"` - Name string `json:"name"` - - // Rd Unique route distinguisher (as defined in RFC 4364) - Rd *string `json:"rd"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVRFRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVRFRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVRFRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` -} - -// WritableVRFRequest_Relationships_Destination_Objects_Item defines model for WritableVRFRequest.relationships.destination.objects.Item. -type WritableVRFRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVRFRequest_Relationships_Peer_Objects_Item defines model for WritableVRFRequest.relationships.peer.objects.Item. -type WritableVRFRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVRFRequest_Relationships_Source_Objects_Item defines model for WritableVRFRequest.relationships.source.objects.Item. -type WritableVRFRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableValidatedSoftwareLCMRequest REST API serializer for ValidatedSoftwareLCM records. -type WritableValidatedSoftwareLCMRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - DeviceRoles *[]openapi_types.UUID `json:"device_roles,omitempty"` - DeviceTypes *[]openapi_types.UUID `json:"device_types,omitempty"` - Devices *[]openapi_types.UUID `json:"devices,omitempty"` - End *openapi_types.Date `json:"end"` - InventoryItems *[]openapi_types.UUID `json:"inventory_items,omitempty"` - ObjectTags *[]openapi_types.UUID `json:"object_tags,omitempty"` - Preferred *bool `json:"preferred,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Software openapi_types.UUID `json:"software"` - Start openapi_types.Date `json:"start"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item defines model for WritableValidatedSoftwareLCMRequest.relationships.destination.objects.Item. -type WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item defines model for WritableValidatedSoftwareLCMRequest.relationships.peer.objects.Item. -type WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item defines model for WritableValidatedSoftwareLCMRequest.relationships.source.objects.Item. -type WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVirtualChassisRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableVirtualChassisRequest struct { - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Domain *string `json:"domain,omitempty"` - Master *openapi_types.UUID `json:"master"` - Name string `json:"name"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVirtualChassisRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVirtualChassisRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVirtualChassisRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// WritableVirtualChassisRequest_Relationships_Destination_Objects_Item defines model for WritableVirtualChassisRequest.relationships.destination.objects.Item. -type WritableVirtualChassisRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVirtualChassisRequest_Relationships_Peer_Objects_Item defines model for WritableVirtualChassisRequest.relationships.peer.objects.Item. -type WritableVirtualChassisRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVirtualChassisRequest_Relationships_Source_Objects_Item defines model for WritableVirtualChassisRequest.relationships.source.objects.Item. -type WritableVirtualChassisRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVirtualMachineWithConfigContextRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. -// -// Can also be used for models derived from BaseModel, so long as they support custom fields and relationships. -type WritableVirtualMachineWithConfigContextRequest struct { - Cluster openapi_types.UUID `json:"cluster"` - Comments *string `json:"comments,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Disk *int `json:"disk"` - LocalContextData *map[string]interface{} `json:"local_context_data"` - - // LocalContextSchema Optional schema to validate the structure of the data - LocalContextSchema *openapi_types.UUID `json:"local_context_schema"` - Memory *int `json:"memory"` - Name string `json:"name"` - Platform *openapi_types.UUID `json:"platform"` - PrimaryIp4 *openapi_types.UUID `json:"primary_ip4"` - PrimaryIp6 *openapi_types.UUID `json:"primary_ip6"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Role *openapi_types.UUID `json:"role"` - Status VirtualMachineStatusChoices `json:"status"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` - Tenant *openapi_types.UUID `json:"tenant"` - Vcpus *int `json:"vcpus"` -} - -// WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item defines model for WritableVirtualMachineWithConfigContextRequest.relationships.destination.objects.Item. -type WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item defines model for WritableVirtualMachineWithConfigContextRequest.relationships.peer.objects.Item. -type WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item defines model for WritableVirtualMachineWithConfigContextRequest.relationships.source.objects.Item. -type WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// Zone Zone Serializer. -type Zone struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - Created *openapi_types.Date `json:"created"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - - // Display Human friendly display value - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Interfaces *[]NestedInterface `json:"interfaces,omitempty"` - LastUpdated *time.Time `json:"last_updated"` - - // Name Name of the zone (e.g. trust) - Name string `json:"name"` - NotesUrl *string `json:"notes_url,omitempty"` - Status *struct { - Label *ZoneStatusLabel `json:"label,omitempty"` - Value *ZoneStatusValue `json:"value,omitempty"` - } `json:"status,omitempty"` - Tags *[]TagSerializerField `json:"tags,omitempty"` - Url *string `json:"url,omitempty"` - Vrfs *[]openapi_types.UUID `json:"vrfs,omitempty"` -} - -// ZoneStatusLabel defines model for Zone.Status.Label. -type ZoneStatusLabel string - -// ZoneStatusValue defines model for Zone.Status.Value. -type ZoneStatusValue string - -// ZoneRequest Zone Serializer. -type ZoneRequest struct { - CustomFieldData *map[string]interface{} `json:"_custom_field_data,omitempty"` - CustomFields *map[string]interface{} `json:"custom_fields,omitempty"` - Description *string `json:"description,omitempty"` - Interfaces *[]NestedInterfaceRequest `json:"interfaces,omitempty"` - - // Name Name of the zone (e.g. trust) - Name *string `json:"name,omitempty"` - Relationships *struct { - Destination *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ZoneRequest_Relationships_Destination_Objects_Item `json:"objects,omitempty"` - } `json:"destination,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Peer *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ZoneRequest_Relationships_Peer_Objects_Item `json:"objects,omitempty"` - } `json:"peer,omitempty"` - Source *struct { - Label *string `json:"label,omitempty"` - ObjectType *string `json:"object_type,omitempty"` - Objects *[]ZoneRequest_Relationships_Source_Objects_Item `json:"objects,omitempty"` - } `json:"source,omitempty"` - Type *string `json:"type,omitempty"` - Url *string `json:"url,omitempty"` - } `json:"relationships,omitempty"` - Status *Status8f7Enum `json:"status,omitempty"` - Tags *[]TagSerializerFieldRequest `json:"tags,omitempty"` -} - -// ZoneRequest_Relationships_Destination_Objects_Item defines model for ZoneRequest.relationships.destination.objects.Item. -type ZoneRequest_Relationships_Destination_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ZoneRequest_Relationships_Peer_Objects_Item defines model for ZoneRequest.relationships.peer.objects.Item. -type ZoneRequest_Relationships_Peer_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ZoneRequest_Relationships_Source_Objects_Item defines model for ZoneRequest.relationships.source.objects.Item. -type ZoneRequest_Relationships_Source_Objects_Item struct { - Display *string `json:"display,omitempty"` - Id *openapi_types.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// CircuitsCircuitTerminationsBulkDestroyJSONBody defines parameters for CircuitsCircuitTerminationsBulkDestroy. -type CircuitsCircuitTerminationsBulkDestroyJSONBody = []BulkOperationRequest - -// CircuitsCircuitTerminationsListParams defines parameters for CircuitsCircuitTerminationsList. -type CircuitsCircuitTerminationsListParams struct { - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - - // CircuitId Circuit - CircuitId *[]openapi_types.UUID `form:"circuit_id,omitempty" json:"circuit_id,omitempty"` - - // CircuitIdN Circuit - CircuitIdN *[]openapi_types.UUID `form:"circuit_id__n,omitempty" json:"circuit_id__n,omitempty"` - - // Connected Connected status (bool) - Connected *bool `form:"connected,omitempty" json:"connected,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PortSpeed *[]int `form:"port_speed,omitempty" json:"port_speed,omitempty"` - PortSpeedGt *[]int `form:"port_speed__gt,omitempty" json:"port_speed__gt,omitempty"` - PortSpeedGte *[]int `form:"port_speed__gte,omitempty" json:"port_speed__gte,omitempty"` - PortSpeedLt *[]int `form:"port_speed__lt,omitempty" json:"port_speed__lt,omitempty"` - PortSpeedLte *[]int `form:"port_speed__lte,omitempty" json:"port_speed__lte,omitempty"` - PortSpeedN *[]int `form:"port_speed__n,omitempty" json:"port_speed__n,omitempty"` - - // ProviderNetworkId Provider Network (ID) - ProviderNetworkId *[]openapi_types.UUID `form:"provider_network_id,omitempty" json:"provider_network_id,omitempty"` - - // ProviderNetworkIdN Provider Network (ID) - ProviderNetworkIdN *[]openapi_types.UUID `form:"provider_network_id__n,omitempty" json:"provider_network_id__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - TermSide *string `form:"term_side,omitempty" json:"term_side,omitempty"` - TermSideN *string `form:"term_side__n,omitempty" json:"term_side__n,omitempty"` - UpstreamSpeed *[]int `form:"upstream_speed,omitempty" json:"upstream_speed,omitempty"` - UpstreamSpeedGt *[]int `form:"upstream_speed__gt,omitempty" json:"upstream_speed__gt,omitempty"` - UpstreamSpeedGte *[]int `form:"upstream_speed__gte,omitempty" json:"upstream_speed__gte,omitempty"` - UpstreamSpeedLt *[]int `form:"upstream_speed__lt,omitempty" json:"upstream_speed__lt,omitempty"` - UpstreamSpeedLte *[]int `form:"upstream_speed__lte,omitempty" json:"upstream_speed__lte,omitempty"` - UpstreamSpeedN *[]int `form:"upstream_speed__n,omitempty" json:"upstream_speed__n,omitempty"` - XconnectId *[]string `form:"xconnect_id,omitempty" json:"xconnect_id,omitempty"` - XconnectIdIc *[]string `form:"xconnect_id__ic,omitempty" json:"xconnect_id__ic,omitempty"` - XconnectIdIe *[]string `form:"xconnect_id__ie,omitempty" json:"xconnect_id__ie,omitempty"` - XconnectIdIew *[]string `form:"xconnect_id__iew,omitempty" json:"xconnect_id__iew,omitempty"` - XconnectIdIre *[]string `form:"xconnect_id__ire,omitempty" json:"xconnect_id__ire,omitempty"` - XconnectIdIsw *[]string `form:"xconnect_id__isw,omitempty" json:"xconnect_id__isw,omitempty"` - XconnectIdN *[]string `form:"xconnect_id__n,omitempty" json:"xconnect_id__n,omitempty"` - XconnectIdNic *[]string `form:"xconnect_id__nic,omitempty" json:"xconnect_id__nic,omitempty"` - XconnectIdNie *[]string `form:"xconnect_id__nie,omitempty" json:"xconnect_id__nie,omitempty"` - XconnectIdNiew *[]string `form:"xconnect_id__niew,omitempty" json:"xconnect_id__niew,omitempty"` - XconnectIdNire *[]string `form:"xconnect_id__nire,omitempty" json:"xconnect_id__nire,omitempty"` - XconnectIdNisw *[]string `form:"xconnect_id__nisw,omitempty" json:"xconnect_id__nisw,omitempty"` - XconnectIdNre *[]string `form:"xconnect_id__nre,omitempty" json:"xconnect_id__nre,omitempty"` - XconnectIdRe *[]string `form:"xconnect_id__re,omitempty" json:"xconnect_id__re,omitempty"` -} - -// CircuitsCircuitTerminationsBulkPartialUpdateJSONBody defines parameters for CircuitsCircuitTerminationsBulkPartialUpdate. -type CircuitsCircuitTerminationsBulkPartialUpdateJSONBody = []PatchedBulkWritableCircuitTerminationRequest - -// CircuitsCircuitTerminationsBulkUpdateJSONBody defines parameters for CircuitsCircuitTerminationsBulkUpdate. -type CircuitsCircuitTerminationsBulkUpdateJSONBody = []BulkWritableCircuitTerminationRequest - -// CircuitsCircuitTerminationsNotesListParams defines parameters for CircuitsCircuitTerminationsNotesList. -type CircuitsCircuitTerminationsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// CircuitsCircuitTypesBulkDestroyJSONBody defines parameters for CircuitsCircuitTypesBulkDestroy. -type CircuitsCircuitTypesBulkDestroyJSONBody = []BulkOperationRequest - -// CircuitsCircuitTypesListParams defines parameters for CircuitsCircuitTypesList. -type CircuitsCircuitTypesListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// CircuitsCircuitTypesBulkPartialUpdateJSONBody defines parameters for CircuitsCircuitTypesBulkPartialUpdate. -type CircuitsCircuitTypesBulkPartialUpdateJSONBody = []PatchedBulkWritableCircuitTypeRequest - -// CircuitsCircuitTypesBulkUpdateJSONBody defines parameters for CircuitsCircuitTypesBulkUpdate. -type CircuitsCircuitTypesBulkUpdateJSONBody = []BulkWritableCircuitTypeRequest - -// CircuitsCircuitTypesNotesListParams defines parameters for CircuitsCircuitTypesNotesList. -type CircuitsCircuitTypesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// CircuitsCircuitsBulkDestroyJSONBody defines parameters for CircuitsCircuitsBulkDestroy. -type CircuitsCircuitsBulkDestroyJSONBody = []BulkOperationRequest - -// CircuitsCircuitsListParams defines parameters for CircuitsCircuitsList. -type CircuitsCircuitsListParams struct { - Cid *[]string `form:"cid,omitempty" json:"cid,omitempty"` - CidIc *[]string `form:"cid__ic,omitempty" json:"cid__ic,omitempty"` - CidIe *[]string `form:"cid__ie,omitempty" json:"cid__ie,omitempty"` - CidIew *[]string `form:"cid__iew,omitempty" json:"cid__iew,omitempty"` - CidIre *[]string `form:"cid__ire,omitempty" json:"cid__ire,omitempty"` - CidIsw *[]string `form:"cid__isw,omitempty" json:"cid__isw,omitempty"` - CidN *[]string `form:"cid__n,omitempty" json:"cid__n,omitempty"` - CidNic *[]string `form:"cid__nic,omitempty" json:"cid__nic,omitempty"` - CidNie *[]string `form:"cid__nie,omitempty" json:"cid__nie,omitempty"` - CidNiew *[]string `form:"cid__niew,omitempty" json:"cid__niew,omitempty"` - CidNire *[]string `form:"cid__nire,omitempty" json:"cid__nire,omitempty"` - CidNisw *[]string `form:"cid__nisw,omitempty" json:"cid__nisw,omitempty"` - CidNre *[]string `form:"cid__nre,omitempty" json:"cid__nre,omitempty"` - CidRe *[]string `form:"cid__re,omitempty" json:"cid__re,omitempty"` - CommitRate *[]int `form:"commit_rate,omitempty" json:"commit_rate,omitempty"` - CommitRateGt *[]int `form:"commit_rate__gt,omitempty" json:"commit_rate__gt,omitempty"` - CommitRateGte *[]int `form:"commit_rate__gte,omitempty" json:"commit_rate__gte,omitempty"` - CommitRateLt *[]int `form:"commit_rate__lt,omitempty" json:"commit_rate__lt,omitempty"` - CommitRateLte *[]int `form:"commit_rate__lte,omitempty" json:"commit_rate__lte,omitempty"` - CommitRateN *[]int `form:"commit_rate__n,omitempty" json:"commit_rate__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - InstallDate *[]openapi_types.Date `form:"install_date,omitempty" json:"install_date,omitempty"` - InstallDateGt *[]openapi_types.Date `form:"install_date__gt,omitempty" json:"install_date__gt,omitempty"` - InstallDateGte *[]openapi_types.Date `form:"install_date__gte,omitempty" json:"install_date__gte,omitempty"` - InstallDateLt *[]openapi_types.Date `form:"install_date__lt,omitempty" json:"install_date__lt,omitempty"` - InstallDateLte *[]openapi_types.Date `form:"install_date__lte,omitempty" json:"install_date__lte,omitempty"` - InstallDateN *[]openapi_types.Date `form:"install_date__n,omitempty" json:"install_date__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]string `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]string `form:"location__n,omitempty" json:"location__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Provider Provider (slug) - Provider *[]string `form:"provider,omitempty" json:"provider,omitempty"` - - // ProviderN Provider (slug) - ProviderN *[]string `form:"provider__n,omitempty" json:"provider__n,omitempty"` - - // ProviderId Provider (ID) - ProviderId *[]openapi_types.UUID `form:"provider_id,omitempty" json:"provider_id,omitempty"` - - // ProviderIdN Provider (ID) - ProviderIdN *[]openapi_types.UUID `form:"provider_id__n,omitempty" json:"provider_id__n,omitempty"` - - // ProviderNetworkId Provider Network (ID) - ProviderNetworkId *[]openapi_types.UUID `form:"provider_network_id,omitempty" json:"provider_network_id,omitempty"` - - // ProviderNetworkIdN Provider Network (ID) - ProviderNetworkIdN *[]openapi_types.UUID `form:"provider_network_id__n,omitempty" json:"provider_network_id__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // Type Circuit type (slug) - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - - // TypeN Circuit type (slug) - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` - - // TypeId Circuit type (ID) - TypeId *[]openapi_types.UUID `form:"type_id,omitempty" json:"type_id,omitempty"` - - // TypeIdN Circuit type (ID) - TypeIdN *[]openapi_types.UUID `form:"type_id__n,omitempty" json:"type_id__n,omitempty"` -} - -// CircuitsCircuitsBulkPartialUpdateJSONBody defines parameters for CircuitsCircuitsBulkPartialUpdate. -type CircuitsCircuitsBulkPartialUpdateJSONBody = []PatchedBulkWritableCircuitRequest - -// CircuitsCircuitsBulkUpdateJSONBody defines parameters for CircuitsCircuitsBulkUpdate. -type CircuitsCircuitsBulkUpdateJSONBody = []BulkWritableCircuitRequest - -// CircuitsCircuitsNotesListParams defines parameters for CircuitsCircuitsNotesList. -type CircuitsCircuitsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// CircuitsProviderNetworksBulkDestroyJSONBody defines parameters for CircuitsProviderNetworksBulkDestroy. -type CircuitsProviderNetworksBulkDestroyJSONBody = []BulkOperationRequest - -// CircuitsProviderNetworksListParams defines parameters for CircuitsProviderNetworksList. -type CircuitsProviderNetworksListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Provider Provider (slug) - Provider *[]string `form:"provider,omitempty" json:"provider,omitempty"` - - // ProviderN Provider (slug) - ProviderN *[]string `form:"provider__n,omitempty" json:"provider__n,omitempty"` - - // ProviderId Provider (ID) - ProviderId *[]openapi_types.UUID `form:"provider_id,omitempty" json:"provider_id,omitempty"` - - // ProviderIdN Provider (ID) - ProviderIdN *[]openapi_types.UUID `form:"provider_id__n,omitempty" json:"provider_id__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// CircuitsProviderNetworksBulkPartialUpdateJSONBody defines parameters for CircuitsProviderNetworksBulkPartialUpdate. -type CircuitsProviderNetworksBulkPartialUpdateJSONBody = []PatchedBulkWritableProviderNetworkRequest - -// CircuitsProviderNetworksBulkUpdateJSONBody defines parameters for CircuitsProviderNetworksBulkUpdate. -type CircuitsProviderNetworksBulkUpdateJSONBody = []BulkWritableProviderNetworkRequest - -// CircuitsProviderNetworksNotesListParams defines parameters for CircuitsProviderNetworksNotesList. -type CircuitsProviderNetworksNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// CircuitsProvidersBulkDestroyJSONBody defines parameters for CircuitsProvidersBulkDestroy. -type CircuitsProvidersBulkDestroyJSONBody = []BulkOperationRequest - -// CircuitsProvidersListParams defines parameters for CircuitsProvidersList. -type CircuitsProvidersListParams struct { - Account *[]string `form:"account,omitempty" json:"account,omitempty"` - AccountIc *[]string `form:"account__ic,omitempty" json:"account__ic,omitempty"` - AccountIe *[]string `form:"account__ie,omitempty" json:"account__ie,omitempty"` - AccountIew *[]string `form:"account__iew,omitempty" json:"account__iew,omitempty"` - AccountIre *[]string `form:"account__ire,omitempty" json:"account__ire,omitempty"` - AccountIsw *[]string `form:"account__isw,omitempty" json:"account__isw,omitempty"` - AccountN *[]string `form:"account__n,omitempty" json:"account__n,omitempty"` - AccountNic *[]string `form:"account__nic,omitempty" json:"account__nic,omitempty"` - AccountNie *[]string `form:"account__nie,omitempty" json:"account__nie,omitempty"` - AccountNiew *[]string `form:"account__niew,omitempty" json:"account__niew,omitempty"` - AccountNire *[]string `form:"account__nire,omitempty" json:"account__nire,omitempty"` - AccountNisw *[]string `form:"account__nisw,omitempty" json:"account__nisw,omitempty"` - AccountNre *[]string `form:"account__nre,omitempty" json:"account__nre,omitempty"` - AccountRe *[]string `form:"account__re,omitempty" json:"account__re,omitempty"` - Asn *[]int `form:"asn,omitempty" json:"asn,omitempty"` - AsnGt *[]int `form:"asn__gt,omitempty" json:"asn__gt,omitempty"` - AsnGte *[]int `form:"asn__gte,omitempty" json:"asn__gte,omitempty"` - AsnLt *[]int `form:"asn__lt,omitempty" json:"asn__lt,omitempty"` - AsnLte *[]int `form:"asn__lte,omitempty" json:"asn__lte,omitempty"` - AsnN *[]int `form:"asn__n,omitempty" json:"asn__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]string `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]string `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// CircuitsProvidersBulkPartialUpdateJSONBody defines parameters for CircuitsProvidersBulkPartialUpdate. -type CircuitsProvidersBulkPartialUpdateJSONBody = []PatchedBulkWritableProviderRequest - -// CircuitsProvidersBulkUpdateJSONBody defines parameters for CircuitsProvidersBulkUpdate. -type CircuitsProvidersBulkUpdateJSONBody = []BulkWritableProviderRequest - -// CircuitsProvidersNotesListParams defines parameters for CircuitsProvidersNotesList. -type CircuitsProvidersNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimCablesBulkDestroyJSONBody defines parameters for DcimCablesBulkDestroy. -type DcimCablesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimCablesListParams defines parameters for DcimCablesList. -type DcimCablesListParams struct { - Color *[]string `form:"color,omitempty" json:"color,omitempty"` - ColorIc *[]string `form:"color__ic,omitempty" json:"color__ic,omitempty"` - ColorIe *[]string `form:"color__ie,omitempty" json:"color__ie,omitempty"` - ColorIew *[]string `form:"color__iew,omitempty" json:"color__iew,omitempty"` - ColorIre *[]string `form:"color__ire,omitempty" json:"color__ire,omitempty"` - ColorIsw *[]string `form:"color__isw,omitempty" json:"color__isw,omitempty"` - ColorN *[]string `form:"color__n,omitempty" json:"color__n,omitempty"` - ColorNic *[]string `form:"color__nic,omitempty" json:"color__nic,omitempty"` - ColorNie *[]string `form:"color__nie,omitempty" json:"color__nie,omitempty"` - ColorNiew *[]string `form:"color__niew,omitempty" json:"color__niew,omitempty"` - ColorNire *[]string `form:"color__nire,omitempty" json:"color__nire,omitempty"` - ColorNisw *[]string `form:"color__nisw,omitempty" json:"color__nisw,omitempty"` - ColorNre *[]string `form:"color__nre,omitempty" json:"color__nre,omitempty"` - ColorRe *[]string `form:"color__re,omitempty" json:"color__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - Length *[]int `form:"length,omitempty" json:"length,omitempty"` - LengthGt *[]int `form:"length__gt,omitempty" json:"length__gt,omitempty"` - LengthGte *[]int `form:"length__gte,omitempty" json:"length__gte,omitempty"` - LengthLt *[]int `form:"length__lt,omitempty" json:"length__lt,omitempty"` - LengthLte *[]int `form:"length__lte,omitempty" json:"length__lte,omitempty"` - LengthN *[]int `form:"length__n,omitempty" json:"length__n,omitempty"` - LengthUnit *string `form:"length_unit,omitempty" json:"length_unit,omitempty"` - LengthUnitN *string `form:"length_unit__n,omitempty" json:"length_unit__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Rack Rack (name) - Rack *[]string `form:"rack,omitempty" json:"rack,omitempty"` - - // RackId Rack (ID) - RackId *[]openapi_types.UUID `form:"rack_id,omitempty" json:"rack_id,omitempty"` - - // Region Region (name) - Region *[]string `form:"region,omitempty" json:"region,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // Site Site (name) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (name) - Tenant *[]string `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantId Tenant (ID) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - TerminationAId *[]openapi_types.UUID `form:"termination_a_id,omitempty" json:"termination_a_id,omitempty"` - TerminationAIdIc *[]openapi_types.UUID `form:"termination_a_id__ic,omitempty" json:"termination_a_id__ic,omitempty"` - TerminationAIdIe *[]openapi_types.UUID `form:"termination_a_id__ie,omitempty" json:"termination_a_id__ie,omitempty"` - TerminationAIdIew *[]openapi_types.UUID `form:"termination_a_id__iew,omitempty" json:"termination_a_id__iew,omitempty"` - TerminationAIdIre *[]openapi_types.UUID `form:"termination_a_id__ire,omitempty" json:"termination_a_id__ire,omitempty"` - TerminationAIdIsw *[]openapi_types.UUID `form:"termination_a_id__isw,omitempty" json:"termination_a_id__isw,omitempty"` - TerminationAIdN *[]openapi_types.UUID `form:"termination_a_id__n,omitempty" json:"termination_a_id__n,omitempty"` - TerminationAIdNic *[]openapi_types.UUID `form:"termination_a_id__nic,omitempty" json:"termination_a_id__nic,omitempty"` - TerminationAIdNie *[]openapi_types.UUID `form:"termination_a_id__nie,omitempty" json:"termination_a_id__nie,omitempty"` - TerminationAIdNiew *[]openapi_types.UUID `form:"termination_a_id__niew,omitempty" json:"termination_a_id__niew,omitempty"` - TerminationAIdNire *[]openapi_types.UUID `form:"termination_a_id__nire,omitempty" json:"termination_a_id__nire,omitempty"` - TerminationAIdNisw *[]openapi_types.UUID `form:"termination_a_id__nisw,omitempty" json:"termination_a_id__nisw,omitempty"` - TerminationAIdNre *[]openapi_types.UUID `form:"termination_a_id__nre,omitempty" json:"termination_a_id__nre,omitempty"` - TerminationAIdRe *[]openapi_types.UUID `form:"termination_a_id__re,omitempty" json:"termination_a_id__re,omitempty"` - TerminationAType *[]int `form:"termination_a_type,omitempty" json:"termination_a_type,omitempty"` - TerminationATypeN *[]int `form:"termination_a_type__n,omitempty" json:"termination_a_type__n,omitempty"` - TerminationBId *[]openapi_types.UUID `form:"termination_b_id,omitempty" json:"termination_b_id,omitempty"` - TerminationBIdIc *[]openapi_types.UUID `form:"termination_b_id__ic,omitempty" json:"termination_b_id__ic,omitempty"` - TerminationBIdIe *[]openapi_types.UUID `form:"termination_b_id__ie,omitempty" json:"termination_b_id__ie,omitempty"` - TerminationBIdIew *[]openapi_types.UUID `form:"termination_b_id__iew,omitempty" json:"termination_b_id__iew,omitempty"` - TerminationBIdIre *[]openapi_types.UUID `form:"termination_b_id__ire,omitempty" json:"termination_b_id__ire,omitempty"` - TerminationBIdIsw *[]openapi_types.UUID `form:"termination_b_id__isw,omitempty" json:"termination_b_id__isw,omitempty"` - TerminationBIdN *[]openapi_types.UUID `form:"termination_b_id__n,omitempty" json:"termination_b_id__n,omitempty"` - TerminationBIdNic *[]openapi_types.UUID `form:"termination_b_id__nic,omitempty" json:"termination_b_id__nic,omitempty"` - TerminationBIdNie *[]openapi_types.UUID `form:"termination_b_id__nie,omitempty" json:"termination_b_id__nie,omitempty"` - TerminationBIdNiew *[]openapi_types.UUID `form:"termination_b_id__niew,omitempty" json:"termination_b_id__niew,omitempty"` - TerminationBIdNire *[]openapi_types.UUID `form:"termination_b_id__nire,omitempty" json:"termination_b_id__nire,omitempty"` - TerminationBIdNisw *[]openapi_types.UUID `form:"termination_b_id__nisw,omitempty" json:"termination_b_id__nisw,omitempty"` - TerminationBIdNre *[]openapi_types.UUID `form:"termination_b_id__nre,omitempty" json:"termination_b_id__nre,omitempty"` - TerminationBIdRe *[]openapi_types.UUID `form:"termination_b_id__re,omitempty" json:"termination_b_id__re,omitempty"` - TerminationBType *[]int `form:"termination_b_type,omitempty" json:"termination_b_type,omitempty"` - TerminationBTypeN *[]int `form:"termination_b_type__n,omitempty" json:"termination_b_type__n,omitempty"` - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimCablesBulkPartialUpdateJSONBody defines parameters for DcimCablesBulkPartialUpdate. -type DcimCablesBulkPartialUpdateJSONBody = []PatchedBulkWritableCableRequest - -// DcimCablesBulkUpdateJSONBody defines parameters for DcimCablesBulkUpdate. -type DcimCablesBulkUpdateJSONBody = []BulkWritableCableRequest - -// DcimCablesNotesListParams defines parameters for DcimCablesNotesList. -type DcimCablesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimConnectedDeviceListParams defines parameters for DcimConnectedDeviceList. -type DcimConnectedDeviceListParams struct { - // PeerDevice The name of the peer device - PeerDevice string `form:"peer_device" json:"peer_device"` - - // PeerInterface The name of the peer interface - PeerInterface string `form:"peer_interface" json:"peer_interface"` -} - -// DcimConsoleConnectionsListParams defines parameters for DcimConsoleConnectionsList. -type DcimConsoleConnectionsListParams struct { - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Site Site (slug) - Site *string `form:"site,omitempty" json:"site,omitempty"` -} - -// DcimConsolePortTemplatesBulkDestroyJSONBody defines parameters for DcimConsolePortTemplatesBulkDestroy. -type DcimConsolePortTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimConsolePortTemplatesListParams defines parameters for DcimConsolePortTemplatesList. -type DcimConsolePortTemplatesListParams struct { - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimConsolePortTemplatesBulkPartialUpdateJSONBody defines parameters for DcimConsolePortTemplatesBulkPartialUpdate. -type DcimConsolePortTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritableConsolePortTemplateRequest - -// DcimConsolePortTemplatesBulkUpdateJSONBody defines parameters for DcimConsolePortTemplatesBulkUpdate. -type DcimConsolePortTemplatesBulkUpdateJSONBody = []BulkWritableConsolePortTemplateRequest - -// DcimConsolePortTemplatesNotesListParams defines parameters for DcimConsolePortTemplatesNotesList. -type DcimConsolePortTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimConsolePortsBulkDestroyJSONBody defines parameters for DcimConsolePortsBulkDestroy. -type DcimConsolePortsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimConsolePortsListParams defines parameters for DcimConsolePortsList. -type DcimConsolePortsListParams struct { - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - - // Connected Connected status (bool) - Connected *bool `form:"connected,omitempty" json:"connected,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Type Physical port type - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - - // TypeN Physical port type - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimConsolePortsBulkPartialUpdateJSONBody defines parameters for DcimConsolePortsBulkPartialUpdate. -type DcimConsolePortsBulkPartialUpdateJSONBody = []PatchedBulkWritableConsolePortRequest - -// DcimConsolePortsBulkUpdateJSONBody defines parameters for DcimConsolePortsBulkUpdate. -type DcimConsolePortsBulkUpdateJSONBody = []BulkWritableConsolePortRequest - -// DcimConsolePortsNotesListParams defines parameters for DcimConsolePortsNotesList. -type DcimConsolePortsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimConsoleServerPortTemplatesBulkDestroyJSONBody defines parameters for DcimConsoleServerPortTemplatesBulkDestroy. -type DcimConsoleServerPortTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimConsoleServerPortTemplatesListParams defines parameters for DcimConsoleServerPortTemplatesList. -type DcimConsoleServerPortTemplatesListParams struct { - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimConsoleServerPortTemplatesBulkPartialUpdateJSONBody defines parameters for DcimConsoleServerPortTemplatesBulkPartialUpdate. -type DcimConsoleServerPortTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritableConsoleServerPortTemplateRequest - -// DcimConsoleServerPortTemplatesBulkUpdateJSONBody defines parameters for DcimConsoleServerPortTemplatesBulkUpdate. -type DcimConsoleServerPortTemplatesBulkUpdateJSONBody = []BulkWritableConsoleServerPortTemplateRequest - -// DcimConsoleServerPortTemplatesNotesListParams defines parameters for DcimConsoleServerPortTemplatesNotesList. -type DcimConsoleServerPortTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimConsoleServerPortsBulkDestroyJSONBody defines parameters for DcimConsoleServerPortsBulkDestroy. -type DcimConsoleServerPortsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimConsoleServerPortsListParams defines parameters for DcimConsoleServerPortsList. -type DcimConsoleServerPortsListParams struct { - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - - // Connected Connected status (bool) - Connected *bool `form:"connected,omitempty" json:"connected,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Type Physical port type - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - - // TypeN Physical port type - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimConsoleServerPortsBulkPartialUpdateJSONBody defines parameters for DcimConsoleServerPortsBulkPartialUpdate. -type DcimConsoleServerPortsBulkPartialUpdateJSONBody = []PatchedBulkWritableConsoleServerPortRequest - -// DcimConsoleServerPortsBulkUpdateJSONBody defines parameters for DcimConsoleServerPortsBulkUpdate. -type DcimConsoleServerPortsBulkUpdateJSONBody = []BulkWritableConsoleServerPortRequest - -// DcimConsoleServerPortsNotesListParams defines parameters for DcimConsoleServerPortsNotesList. -type DcimConsoleServerPortsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimDeviceBayTemplatesBulkDestroyJSONBody defines parameters for DcimDeviceBayTemplatesBulkDestroy. -type DcimDeviceBayTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimDeviceBayTemplatesListParams defines parameters for DcimDeviceBayTemplatesList. -type DcimDeviceBayTemplatesListParams struct { - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// DcimDeviceBayTemplatesBulkPartialUpdateJSONBody defines parameters for DcimDeviceBayTemplatesBulkPartialUpdate. -type DcimDeviceBayTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritableDeviceBayTemplateRequest - -// DcimDeviceBayTemplatesBulkUpdateJSONBody defines parameters for DcimDeviceBayTemplatesBulkUpdate. -type DcimDeviceBayTemplatesBulkUpdateJSONBody = []BulkWritableDeviceBayTemplateRequest - -// DcimDeviceBayTemplatesNotesListParams defines parameters for DcimDeviceBayTemplatesNotesList. -type DcimDeviceBayTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimDeviceBaysBulkDestroyJSONBody defines parameters for DcimDeviceBaysBulkDestroy. -type DcimDeviceBaysBulkDestroyJSONBody = []BulkOperationRequest - -// DcimDeviceBaysListParams defines parameters for DcimDeviceBaysList. -type DcimDeviceBaysListParams struct { - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // InstalledDevice Installed device (name or ID) - InstalledDevice *[]openapi_types.UUID `form:"installed_device,omitempty" json:"installed_device,omitempty"` - - // InstalledDeviceN Installed device (name or ID) - InstalledDeviceN *[]openapi_types.UUID `form:"installed_device__n,omitempty" json:"installed_device__n,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// DcimDeviceBaysBulkPartialUpdateJSONBody defines parameters for DcimDeviceBaysBulkPartialUpdate. -type DcimDeviceBaysBulkPartialUpdateJSONBody = []PatchedBulkWritableDeviceBayRequest - -// DcimDeviceBaysBulkUpdateJSONBody defines parameters for DcimDeviceBaysBulkUpdate. -type DcimDeviceBaysBulkUpdateJSONBody = []BulkWritableDeviceBayRequest - -// DcimDeviceBaysNotesListParams defines parameters for DcimDeviceBaysNotesList. -type DcimDeviceBaysNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimDeviceRedundancyGroupsBulkDestroyJSONBody defines parameters for DcimDeviceRedundancyGroupsBulkDestroy. -type DcimDeviceRedundancyGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimDeviceRedundancyGroupsListParams defines parameters for DcimDeviceRedundancyGroupsList. -type DcimDeviceRedundancyGroupsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - FailoverStrategy *string `form:"failover_strategy,omitempty" json:"failover_strategy,omitempty"` - FailoverStrategyN *string `form:"failover_strategy__n,omitempty" json:"failover_strategy__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // SecretsGroup Secrets group - SecretsGroup *[]openapi_types.UUID `form:"secrets_group,omitempty" json:"secrets_group,omitempty"` - - // SecretsGroupN Secrets group - SecretsGroupN *[]openapi_types.UUID `form:"secrets_group__n,omitempty" json:"secrets_group__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// DcimDeviceRedundancyGroupsBulkPartialUpdateJSONBody defines parameters for DcimDeviceRedundancyGroupsBulkPartialUpdate. -type DcimDeviceRedundancyGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableDeviceRedundancyGroupRequest - -// DcimDeviceRedundancyGroupsBulkUpdateJSONBody defines parameters for DcimDeviceRedundancyGroupsBulkUpdate. -type DcimDeviceRedundancyGroupsBulkUpdateJSONBody = []BulkWritableDeviceRedundancyGroupRequest - -// DcimDeviceRedundancyGroupsNotesListParams defines parameters for DcimDeviceRedundancyGroupsNotesList. -type DcimDeviceRedundancyGroupsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimDeviceRolesBulkDestroyJSONBody defines parameters for DcimDeviceRolesBulkDestroy. -type DcimDeviceRolesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimDeviceRolesListParams defines parameters for DcimDeviceRolesList. -type DcimDeviceRolesListParams struct { - Color *[]string `form:"color,omitempty" json:"color,omitempty"` - ColorIc *[]string `form:"color__ic,omitempty" json:"color__ic,omitempty"` - ColorIe *[]string `form:"color__ie,omitempty" json:"color__ie,omitempty"` - ColorIew *[]string `form:"color__iew,omitempty" json:"color__iew,omitempty"` - ColorIre *[]string `form:"color__ire,omitempty" json:"color__ire,omitempty"` - ColorIsw *[]string `form:"color__isw,omitempty" json:"color__isw,omitempty"` - ColorN *[]string `form:"color__n,omitempty" json:"color__n,omitempty"` - ColorNic *[]string `form:"color__nic,omitempty" json:"color__nic,omitempty"` - ColorNie *[]string `form:"color__nie,omitempty" json:"color__nie,omitempty"` - ColorNiew *[]string `form:"color__niew,omitempty" json:"color__niew,omitempty"` - ColorNire *[]string `form:"color__nire,omitempty" json:"color__nire,omitempty"` - ColorNisw *[]string `form:"color__nisw,omitempty" json:"color__nisw,omitempty"` - ColorNre *[]string `form:"color__nre,omitempty" json:"color__nre,omitempty"` - ColorRe *[]string `form:"color__re,omitempty" json:"color__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Devices *[]openapi_types.UUID `form:"devices,omitempty" json:"devices,omitempty"` - DevicesN *[]openapi_types.UUID `form:"devices__n,omitempty" json:"devices__n,omitempty"` - - // HasDevices Has devices - HasDevices *bool `form:"has_devices,omitempty" json:"has_devices,omitempty"` - - // HasVirtualMachines Has virtual machines - HasVirtualMachines *bool `form:"has_virtual_machines,omitempty" json:"has_virtual_machines,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - VirtualMachines *[]openapi_types.UUID `form:"virtual_machines,omitempty" json:"virtual_machines,omitempty"` - VirtualMachinesN *[]openapi_types.UUID `form:"virtual_machines__n,omitempty" json:"virtual_machines__n,omitempty"` - VmRole *bool `form:"vm_role,omitempty" json:"vm_role,omitempty"` -} - -// DcimDeviceRolesBulkPartialUpdateJSONBody defines parameters for DcimDeviceRolesBulkPartialUpdate. -type DcimDeviceRolesBulkPartialUpdateJSONBody = []PatchedBulkWritableDeviceRoleRequest - -// DcimDeviceRolesBulkUpdateJSONBody defines parameters for DcimDeviceRolesBulkUpdate. -type DcimDeviceRolesBulkUpdateJSONBody = []BulkWritableDeviceRoleRequest - -// DcimDeviceRolesNotesListParams defines parameters for DcimDeviceRolesNotesList. -type DcimDeviceRolesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimDeviceTypesBulkDestroyJSONBody defines parameters for DcimDeviceTypesBulkDestroy. -type DcimDeviceTypesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimDeviceTypesListParams defines parameters for DcimDeviceTypesList. -type DcimDeviceTypesListParams struct { - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - - // ConsolePortTemplates Console port templates (name or ID) - ConsolePortTemplates *[]openapi_types.UUID `form:"console_port_templates,omitempty" json:"console_port_templates,omitempty"` - - // ConsolePortTemplatesN Console port templates (name or ID) - ConsolePortTemplatesN *[]openapi_types.UUID `form:"console_port_templates__n,omitempty" json:"console_port_templates__n,omitempty"` - - // ConsolePorts Has console ports - ConsolePorts *bool `form:"console_ports,omitempty" json:"console_ports,omitempty"` - - // ConsoleServerPortTemplates Console server port templates (name or ID) - ConsoleServerPortTemplates *[]openapi_types.UUID `form:"console_server_port_templates,omitempty" json:"console_server_port_templates,omitempty"` - - // ConsoleServerPortTemplatesN Console server port templates (name or ID) - ConsoleServerPortTemplatesN *[]openapi_types.UUID `form:"console_server_port_templates__n,omitempty" json:"console_server_port_templates__n,omitempty"` - - // ConsoleServerPorts Has console server ports - ConsoleServerPorts *bool `form:"console_server_ports,omitempty" json:"console_server_ports,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // DeviceBayTemplates Device bay templates - DeviceBayTemplates *[]openapi_types.UUID `form:"device_bay_templates,omitempty" json:"device_bay_templates,omitempty"` - - // DeviceBayTemplatesN Device bay templates - DeviceBayTemplatesN *[]openapi_types.UUID `form:"device_bay_templates__n,omitempty" json:"device_bay_templates__n,omitempty"` - - // DeviceBays Has device bays - DeviceBays *bool `form:"device_bays,omitempty" json:"device_bays,omitempty"` - - // FrontPortTemplates Front port templates (name or ID) - FrontPortTemplates *[]openapi_types.UUID `form:"front_port_templates,omitempty" json:"front_port_templates,omitempty"` - - // FrontPortTemplatesN Front port templates (name or ID) - FrontPortTemplatesN *[]openapi_types.UUID `form:"front_port_templates__n,omitempty" json:"front_port_templates__n,omitempty"` - - // HasConsolePortTemplates Has console port templates - HasConsolePortTemplates *bool `form:"has_console_port_templates,omitempty" json:"has_console_port_templates,omitempty"` - - // HasConsoleServerPortTemplates Has console server port templates - HasConsoleServerPortTemplates *bool `form:"has_console_server_port_templates,omitempty" json:"has_console_server_port_templates,omitempty"` - - // HasDeviceBayTemplates Has device bay templates - HasDeviceBayTemplates *bool `form:"has_device_bay_templates,omitempty" json:"has_device_bay_templates,omitempty"` - - // HasFrontPortTemplates Has front port templates - HasFrontPortTemplates *bool `form:"has_front_port_templates,omitempty" json:"has_front_port_templates,omitempty"` - - // HasInstances Has instances - HasInstances *bool `form:"has_instances,omitempty" json:"has_instances,omitempty"` - - // HasInterfaceTemplates Has interface templates - HasInterfaceTemplates *bool `form:"has_interface_templates,omitempty" json:"has_interface_templates,omitempty"` - - // HasPowerOutletTemplates Has power outlet templates - HasPowerOutletTemplates *bool `form:"has_power_outlet_templates,omitempty" json:"has_power_outlet_templates,omitempty"` - - // HasPowerPortTemplates Has power port templates - HasPowerPortTemplates *bool `form:"has_power_port_templates,omitempty" json:"has_power_port_templates,omitempty"` - - // HasRearPortTemplates Has rear port templates - HasRearPortTemplates *bool `form:"has_rear_port_templates,omitempty" json:"has_rear_port_templates,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Instances *[]openapi_types.UUID `form:"instances,omitempty" json:"instances,omitempty"` - InstancesN *[]openapi_types.UUID `form:"instances__n,omitempty" json:"instances__n,omitempty"` - - // InterfaceTemplates Interface templates (name or ID) - InterfaceTemplates *[]openapi_types.UUID `form:"interface_templates,omitempty" json:"interface_templates,omitempty"` - - // InterfaceTemplatesN Interface templates (name or ID) - InterfaceTemplatesN *[]openapi_types.UUID `form:"interface_templates__n,omitempty" json:"interface_templates__n,omitempty"` - - // Interfaces Has interfaces - Interfaces *bool `form:"interfaces,omitempty" json:"interfaces,omitempty"` - IsFullDepth *bool `form:"is_full_depth,omitempty" json:"is_full_depth,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Manufacturer Manufacturer (slug) - Manufacturer *[]string `form:"manufacturer,omitempty" json:"manufacturer,omitempty"` - - // ManufacturerN Manufacturer (slug) - ManufacturerN *[]string `form:"manufacturer__n,omitempty" json:"manufacturer__n,omitempty"` - - // ManufacturerId Manufacturer (ID) - ManufacturerId *[]openapi_types.UUID `form:"manufacturer_id,omitempty" json:"manufacturer_id,omitempty"` - - // ManufacturerIdN Manufacturer (ID) - ManufacturerIdN *[]openapi_types.UUID `form:"manufacturer_id__n,omitempty" json:"manufacturer_id__n,omitempty"` - Model *[]string `form:"model,omitempty" json:"model,omitempty"` - ModelIc *[]string `form:"model__ic,omitempty" json:"model__ic,omitempty"` - ModelIe *[]string `form:"model__ie,omitempty" json:"model__ie,omitempty"` - ModelIew *[]string `form:"model__iew,omitempty" json:"model__iew,omitempty"` - ModelIre *[]string `form:"model__ire,omitempty" json:"model__ire,omitempty"` - ModelIsw *[]string `form:"model__isw,omitempty" json:"model__isw,omitempty"` - ModelN *[]string `form:"model__n,omitempty" json:"model__n,omitempty"` - ModelNic *[]string `form:"model__nic,omitempty" json:"model__nic,omitempty"` - ModelNie *[]string `form:"model__nie,omitempty" json:"model__nie,omitempty"` - ModelNiew *[]string `form:"model__niew,omitempty" json:"model__niew,omitempty"` - ModelNire *[]string `form:"model__nire,omitempty" json:"model__nire,omitempty"` - ModelNisw *[]string `form:"model__nisw,omitempty" json:"model__nisw,omitempty"` - ModelNre *[]string `form:"model__nre,omitempty" json:"model__nre,omitempty"` - ModelRe *[]string `form:"model__re,omitempty" json:"model__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PartNumber *[]string `form:"part_number,omitempty" json:"part_number,omitempty"` - PartNumberIc *[]string `form:"part_number__ic,omitempty" json:"part_number__ic,omitempty"` - PartNumberIe *[]string `form:"part_number__ie,omitempty" json:"part_number__ie,omitempty"` - PartNumberIew *[]string `form:"part_number__iew,omitempty" json:"part_number__iew,omitempty"` - PartNumberIre *[]string `form:"part_number__ire,omitempty" json:"part_number__ire,omitempty"` - PartNumberIsw *[]string `form:"part_number__isw,omitempty" json:"part_number__isw,omitempty"` - PartNumberN *[]string `form:"part_number__n,omitempty" json:"part_number__n,omitempty"` - PartNumberNic *[]string `form:"part_number__nic,omitempty" json:"part_number__nic,omitempty"` - PartNumberNie *[]string `form:"part_number__nie,omitempty" json:"part_number__nie,omitempty"` - PartNumberNiew *[]string `form:"part_number__niew,omitempty" json:"part_number__niew,omitempty"` - PartNumberNire *[]string `form:"part_number__nire,omitempty" json:"part_number__nire,omitempty"` - PartNumberNisw *[]string `form:"part_number__nisw,omitempty" json:"part_number__nisw,omitempty"` - PartNumberNre *[]string `form:"part_number__nre,omitempty" json:"part_number__nre,omitempty"` - PartNumberRe *[]string `form:"part_number__re,omitempty" json:"part_number__re,omitempty"` - - // PassThroughPorts Has pass-through ports - PassThroughPorts *bool `form:"pass_through_ports,omitempty" json:"pass_through_ports,omitempty"` - - // PowerOutletTemplates Power outlet templates (name or ID) - PowerOutletTemplates *[]openapi_types.UUID `form:"power_outlet_templates,omitempty" json:"power_outlet_templates,omitempty"` - - // PowerOutletTemplatesN Power outlet templates (name or ID) - PowerOutletTemplatesN *[]openapi_types.UUID `form:"power_outlet_templates__n,omitempty" json:"power_outlet_templates__n,omitempty"` - - // PowerOutlets Has power outlets - PowerOutlets *bool `form:"power_outlets,omitempty" json:"power_outlets,omitempty"` - - // PowerPortTemplates Power port templates (name or ID) - PowerPortTemplates *[]openapi_types.UUID `form:"power_port_templates,omitempty" json:"power_port_templates,omitempty"` - - // PowerPortTemplatesN Power port templates (name or ID) - PowerPortTemplatesN *[]openapi_types.UUID `form:"power_port_templates__n,omitempty" json:"power_port_templates__n,omitempty"` - - // PowerPorts Has power ports - PowerPorts *bool `form:"power_ports,omitempty" json:"power_ports,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // RearPortTemplates Rear port templates (name or ID) - RearPortTemplates *[]openapi_types.UUID `form:"rear_port_templates,omitempty" json:"rear_port_templates,omitempty"` - - // RearPortTemplatesN Rear port templates (name or ID) - RearPortTemplatesN *[]openapi_types.UUID `form:"rear_port_templates__n,omitempty" json:"rear_port_templates__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - - // SubdeviceRole Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. - SubdeviceRole *string `form:"subdevice_role,omitempty" json:"subdevice_role,omitempty"` - - // SubdeviceRoleN Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. - SubdeviceRoleN *string `form:"subdevice_role__n,omitempty" json:"subdevice_role__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - UHeight *[]int `form:"u_height,omitempty" json:"u_height,omitempty"` - UHeightGt *[]int `form:"u_height__gt,omitempty" json:"u_height__gt,omitempty"` - UHeightGte *[]int `form:"u_height__gte,omitempty" json:"u_height__gte,omitempty"` - UHeightLt *[]int `form:"u_height__lt,omitempty" json:"u_height__lt,omitempty"` - UHeightLte *[]int `form:"u_height__lte,omitempty" json:"u_height__lte,omitempty"` - UHeightN *[]int `form:"u_height__n,omitempty" json:"u_height__n,omitempty"` -} - -// DcimDeviceTypesBulkPartialUpdateJSONBody defines parameters for DcimDeviceTypesBulkPartialUpdate. -type DcimDeviceTypesBulkPartialUpdateJSONBody = []PatchedBulkWritableDeviceTypeRequest - -// DcimDeviceTypesBulkUpdateJSONBody defines parameters for DcimDeviceTypesBulkUpdate. -type DcimDeviceTypesBulkUpdateJSONBody = []BulkWritableDeviceTypeRequest - -// DcimDeviceTypesNotesListParams defines parameters for DcimDeviceTypesNotesList. -type DcimDeviceTypesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimDevicesBulkDestroyJSONBody defines parameters for DcimDevicesBulkDestroy. -type DcimDevicesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimDevicesListParams defines parameters for DcimDevicesList. -type DcimDevicesListParams struct { - // AssetTag asset_tag - AssetTag *string `form:"asset_tag,omitempty" json:"asset_tag,omitempty"` - - // AssetTagIc asset_tag__ic - AssetTagIc *string `form:"asset_tag__ic,omitempty" json:"asset_tag__ic,omitempty"` - - // AssetTagIe asset_tag__ie - AssetTagIe *string `form:"asset_tag__ie,omitempty" json:"asset_tag__ie,omitempty"` - - // AssetTagIew asset_tag__iew - AssetTagIew *string `form:"asset_tag__iew,omitempty" json:"asset_tag__iew,omitempty"` - - // AssetTagIre asset_tag__ire - AssetTagIre *string `form:"asset_tag__ire,omitempty" json:"asset_tag__ire,omitempty"` - - // AssetTagIsw asset_tag__isw - AssetTagIsw *string `form:"asset_tag__isw,omitempty" json:"asset_tag__isw,omitempty"` - - // AssetTagN asset_tag__n - AssetTagN *string `form:"asset_tag__n,omitempty" json:"asset_tag__n,omitempty"` - - // AssetTagNic asset_tag__nic - AssetTagNic *string `form:"asset_tag__nic,omitempty" json:"asset_tag__nic,omitempty"` - - // AssetTagNie asset_tag__nie - AssetTagNie *string `form:"asset_tag__nie,omitempty" json:"asset_tag__nie,omitempty"` - - // AssetTagNiew asset_tag__niew - AssetTagNiew *string `form:"asset_tag__niew,omitempty" json:"asset_tag__niew,omitempty"` - - // AssetTagNire asset_tag__nire - AssetTagNire *string `form:"asset_tag__nire,omitempty" json:"asset_tag__nire,omitempty"` - - // AssetTagNisw asset_tag__nisw - AssetTagNisw *string `form:"asset_tag__nisw,omitempty" json:"asset_tag__nisw,omitempty"` - - // AssetTagNre asset_tag__nre - AssetTagNre *string `form:"asset_tag__nre,omitempty" json:"asset_tag__nre,omitempty"` - - // AssetTagRe asset_tag__re - AssetTagRe *string `form:"asset_tag__re,omitempty" json:"asset_tag__re,omitempty"` - - // ClusterId VM cluster (ID) - ClusterId *string `form:"cluster_id,omitempty" json:"cluster_id,omitempty"` - - // ClusterIdN VM cluster (ID) - ClusterIdN *string `form:"cluster_id__n,omitempty" json:"cluster_id__n,omitempty"` - - // ConsolePorts Has console ports - ConsolePorts *string `form:"console_ports,omitempty" json:"console_ports,omitempty"` - - // ConsoleServerPorts Has console server ports - ConsoleServerPorts *string `form:"console_server_ports,omitempty" json:"console_server_ports,omitempty"` - - // Created created - Created *string `form:"created,omitempty" json:"created,omitempty"` - - // CreatedGte created__gte - CreatedGte *string `form:"created__gte,omitempty" json:"created__gte,omitempty"` - - // CreatedLte created__lte - CreatedLte *string `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // DeviceBays Has device bays - DeviceBays *string `form:"device_bays,omitempty" json:"device_bays,omitempty"` - - // DeviceRedundancyGroup Device Redundancy Groups (slug or ID) - DeviceRedundancyGroup *string `form:"device_redundancy_group,omitempty" json:"device_redundancy_group,omitempty"` - - // DeviceRedundancyGroupN Device Redundancy Groups (slug or ID) - DeviceRedundancyGroupN *string `form:"device_redundancy_group__n,omitempty" json:"device_redundancy_group__n,omitempty"` - - // DeviceRedundancyGroupPriority device_redundancy_group_priority - DeviceRedundancyGroupPriority *string `form:"device_redundancy_group_priority,omitempty" json:"device_redundancy_group_priority,omitempty"` - - // DeviceRedundancyGroupPriorityGt device_redundancy_group_priority__gt - DeviceRedundancyGroupPriorityGt *string `form:"device_redundancy_group_priority__gt,omitempty" json:"device_redundancy_group_priority__gt,omitempty"` - - // DeviceRedundancyGroupPriorityGte device_redundancy_group_priority__gte - DeviceRedundancyGroupPriorityGte *string `form:"device_redundancy_group_priority__gte,omitempty" json:"device_redundancy_group_priority__gte,omitempty"` - - // DeviceRedundancyGroupPriorityLt device_redundancy_group_priority__lt - DeviceRedundancyGroupPriorityLt *string `form:"device_redundancy_group_priority__lt,omitempty" json:"device_redundancy_group_priority__lt,omitempty"` - - // DeviceRedundancyGroupPriorityLte device_redundancy_group_priority__lte - DeviceRedundancyGroupPriorityLte *string `form:"device_redundancy_group_priority__lte,omitempty" json:"device_redundancy_group_priority__lte,omitempty"` - - // DeviceRedundancyGroupPriorityN device_redundancy_group_priority__n - DeviceRedundancyGroupPriorityN *string `form:"device_redundancy_group_priority__n,omitempty" json:"device_redundancy_group_priority__n,omitempty"` - - // DeviceTypeId Device type (ID) - DeviceTypeId *string `form:"device_type_id,omitempty" json:"device_type_id,omitempty"` - - // DeviceTypeIdN Device type (ID) - DeviceTypeIdN *string `form:"device_type_id__n,omitempty" json:"device_type_id__n,omitempty"` - - // Face face - Face *DcimDevicesListParamsFace `form:"face,omitempty" json:"face,omitempty"` - - // FaceN face__n - FaceN *DcimDevicesListParamsFaceN `form:"face__n,omitempty" json:"face__n,omitempty"` - - // HasConsolePorts Has console ports - HasConsolePorts *string `form:"has_console_ports,omitempty" json:"has_console_ports,omitempty"` - - // HasConsoleServerPorts Has console server ports - HasConsoleServerPorts *string `form:"has_console_server_ports,omitempty" json:"has_console_server_ports,omitempty"` - - // HasDeviceBays Has device bays - HasDeviceBays *string `form:"has_device_bays,omitempty" json:"has_device_bays,omitempty"` - - // HasFrontPorts Has front ports - HasFrontPorts *string `form:"has_front_ports,omitempty" json:"has_front_ports,omitempty"` - - // HasInterfaces Has interfaces - HasInterfaces *string `form:"has_interfaces,omitempty" json:"has_interfaces,omitempty"` - - // HasPowerOutlets Has power outlets - HasPowerOutlets *string `form:"has_power_outlets,omitempty" json:"has_power_outlets,omitempty"` - - // HasPowerPorts Has power ports - HasPowerPorts *string `form:"has_power_ports,omitempty" json:"has_power_ports,omitempty"` - - // HasPrimaryIp Has a primary IP - HasPrimaryIp *string `form:"has_primary_ip,omitempty" json:"has_primary_ip,omitempty"` - - // HasRearPorts Has rear ports - HasRearPorts *string `form:"has_rear_ports,omitempty" json:"has_rear_ports,omitempty"` - - // Id id - Id *string `form:"id,omitempty" json:"id,omitempty"` - - // IdIc id__ic - IdIc *string `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe id__ie - IdIe *string `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew id__iew - IdIew *string `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre id__ire - IdIre *string `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw id__isw - IdIsw *string `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN id__n - IdN *string `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic id__nic - IdNic *string `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie id__nie - IdNie *string `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew id__niew - IdNiew *string `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire id__nire - IdNire *string `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw id__nisw - IdNisw *string `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre id__nre - IdNre *string `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe id__re - IdRe *string `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Interfaces Has interfaces - Interfaces *string `form:"interfaces,omitempty" json:"interfaces,omitempty"` - - // IsFullDepth Is full depth - IsFullDepth *string `form:"is_full_depth,omitempty" json:"is_full_depth,omitempty"` - - // IsVirtualChassisMember Is a virtual chassis member - IsVirtualChassisMember *string `form:"is_virtual_chassis_member,omitempty" json:"is_virtual_chassis_member,omitempty"` - - // LastUpdated last_updated - LastUpdated *string `form:"last_updated,omitempty" json:"last_updated,omitempty"` - - // LastUpdatedGte last_updated__gte - LastUpdatedGte *string `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - - // LastUpdatedLte last_updated__lte - LastUpdatedLte *string `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // LocalContextData Has local config context data - LocalContextData *string `form:"local_context_data,omitempty" json:"local_context_data,omitempty"` - - // LocalContextSchema Schema (slug) - LocalContextSchema *string `form:"local_context_schema,omitempty" json:"local_context_schema,omitempty"` - - // LocalContextSchemaN Schema (slug) - LocalContextSchemaN *string `form:"local_context_schema__n,omitempty" json:"local_context_schema__n,omitempty"` - - // LocalContextSchemaId Schema (ID) - LocalContextSchemaId *string `form:"local_context_schema_id,omitempty" json:"local_context_schema_id,omitempty"` - - // LocalContextSchemaIdN Schema (ID) - LocalContextSchemaIdN *string `form:"local_context_schema_id__n,omitempty" json:"local_context_schema_id__n,omitempty"` - - // Location Location (slug or ID) - Location *string `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *string `form:"location__n,omitempty" json:"location__n,omitempty"` - - // MacAddress MAC address - MacAddress *string `form:"mac_address,omitempty" json:"mac_address,omitempty"` - - // MacAddressIc MAC address - MacAddressIc *string `form:"mac_address__ic,omitempty" json:"mac_address__ic,omitempty"` - - // MacAddressIe MAC address - MacAddressIe *string `form:"mac_address__ie,omitempty" json:"mac_address__ie,omitempty"` - - // MacAddressIew MAC address - MacAddressIew *string `form:"mac_address__iew,omitempty" json:"mac_address__iew,omitempty"` - - // MacAddressIre MAC address - MacAddressIre *string `form:"mac_address__ire,omitempty" json:"mac_address__ire,omitempty"` - - // MacAddressIsw MAC address - MacAddressIsw *string `form:"mac_address__isw,omitempty" json:"mac_address__isw,omitempty"` - - // MacAddressN MAC address - MacAddressN *string `form:"mac_address__n,omitempty" json:"mac_address__n,omitempty"` - - // MacAddressNic MAC address - MacAddressNic *string `form:"mac_address__nic,omitempty" json:"mac_address__nic,omitempty"` - - // MacAddressNie MAC address - MacAddressNie *string `form:"mac_address__nie,omitempty" json:"mac_address__nie,omitempty"` - - // MacAddressNiew MAC address - MacAddressNiew *string `form:"mac_address__niew,omitempty" json:"mac_address__niew,omitempty"` - - // MacAddressNire MAC address - MacAddressNire *string `form:"mac_address__nire,omitempty" json:"mac_address__nire,omitempty"` - - // MacAddressNisw MAC address - MacAddressNisw *string `form:"mac_address__nisw,omitempty" json:"mac_address__nisw,omitempty"` - - // MacAddressNre MAC address - MacAddressNre *string `form:"mac_address__nre,omitempty" json:"mac_address__nre,omitempty"` - - // MacAddressRe MAC address - MacAddressRe *string `form:"mac_address__re,omitempty" json:"mac_address__re,omitempty"` - - // Manufacturer Manufacturer (slug) - Manufacturer *string `form:"manufacturer,omitempty" json:"manufacturer,omitempty"` - - // ManufacturerN Manufacturer (slug) - ManufacturerN *string `form:"manufacturer__n,omitempty" json:"manufacturer__n,omitempty"` - - // ManufacturerId Manufacturer (ID) - ManufacturerId *string `form:"manufacturer_id,omitempty" json:"manufacturer_id,omitempty"` - - // ManufacturerIdN Manufacturer (ID) - ManufacturerIdN *string `form:"manufacturer_id__n,omitempty" json:"manufacturer_id__n,omitempty"` - - // Model Device model (slug) - Model *string `form:"model,omitempty" json:"model,omitempty"` - - // ModelN Device model (slug) - ModelN *string `form:"model__n,omitempty" json:"model__n,omitempty"` - - // Name name - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc name__ic - NameIc *string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe name__ie - NameIe *string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew name__iew - NameIew *string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre name__ire - NameIre *string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw name__isw - NameIsw *string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN name__n - NameN *string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic name__nic - NameNic *string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie name__nie - NameNie *string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew name__niew - NameNiew *string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire name__nire - NameNire *string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw name__nisw - NameNisw *string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre name__nre - NameNre *string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe name__re - NameRe *string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // PassThroughPorts Has pass-through ports - PassThroughPorts *string `form:"pass_through_ports,omitempty" json:"pass_through_ports,omitempty"` - - // Platform Platform (slug) - Platform *string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformN Platform (slug) - PlatformN *string `form:"platform__n,omitempty" json:"platform__n,omitempty"` - - // PlatformId Platform (ID) - PlatformId *string `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // PlatformIdN Platform (ID) - PlatformIdN *string `form:"platform_id__n,omitempty" json:"platform_id__n,omitempty"` - - // Position position - Position *string `form:"position,omitempty" json:"position,omitempty"` - - // PositionGt position__gt - PositionGt *string `form:"position__gt,omitempty" json:"position__gt,omitempty"` - - // PositionGte position__gte - PositionGte *string `form:"position__gte,omitempty" json:"position__gte,omitempty"` - - // PositionLt position__lt - PositionLt *string `form:"position__lt,omitempty" json:"position__lt,omitempty"` - - // PositionLte position__lte - PositionLte *string `form:"position__lte,omitempty" json:"position__lte,omitempty"` - - // PositionN position__n - PositionN *string `form:"position__n,omitempty" json:"position__n,omitempty"` - - // PowerOutlets Has power outlets - PowerOutlets *string `form:"power_outlets,omitempty" json:"power_outlets,omitempty"` - - // PowerPorts Has power ports - PowerPorts *string `form:"power_ports,omitempty" json:"power_ports,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // RackGroupId Rack group (ID) - RackGroupId *string `form:"rack_group_id,omitempty" json:"rack_group_id,omitempty"` - - // RackGroupIdN Rack group (ID) - RackGroupIdN *string `form:"rack_group_id__n,omitempty" json:"rack_group_id__n,omitempty"` - - // RackId Rack (ID) - RackId *string `form:"rack_id,omitempty" json:"rack_id,omitempty"` - - // RackIdN Rack (ID) - RackIdN *string `form:"rack_id__n,omitempty" json:"rack_id__n,omitempty"` - - // Region Region (slug or ID) - Region *string `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *string `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *string `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *string `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Role Role (slug) - Role *string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Role (slug) - RoleN *string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoleId Role (ID) - RoleId *string `form:"role_id,omitempty" json:"role_id,omitempty"` - - // RoleIdN Role (ID) - RoleIdN *string `form:"role_id__n,omitempty" json:"role_id__n,omitempty"` - - // SecretsGroup Secrets group (slug) - SecretsGroup *string `form:"secrets_group,omitempty" json:"secrets_group,omitempty"` - - // SecretsGroupN Secrets group (slug) - SecretsGroupN *string `form:"secrets_group__n,omitempty" json:"secrets_group__n,omitempty"` - - // SecretsGroupId Secrets group (ID) - SecretsGroupId *string `form:"secrets_group_id,omitempty" json:"secrets_group_id,omitempty"` - - // SecretsGroupIdN Secrets group (ID) - SecretsGroupIdN *string `form:"secrets_group_id__n,omitempty" json:"secrets_group_id__n,omitempty"` - - // Serial serial - Serial *string `form:"serial,omitempty" json:"serial,omitempty"` - - // Site Site (slug or ID) - Site *string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *string `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *string `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - - // Status status - Status *string `form:"status,omitempty" json:"status,omitempty"` - - // StatusN status__n - StatusN *string `form:"status__n,omitempty" json:"status__n,omitempty"` - - // Tag tag - Tag *string `form:"tag,omitempty" json:"tag,omitempty"` - - // TagN tag__n - TagN *string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *string `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *string `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *string `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *string `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *string `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *string `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *string `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *string `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // VcPosition vc_position - VcPosition *string `form:"vc_position,omitempty" json:"vc_position,omitempty"` - - // VcPositionGt vc_position__gt - VcPositionGt *string `form:"vc_position__gt,omitempty" json:"vc_position__gt,omitempty"` - - // VcPositionGte vc_position__gte - VcPositionGte *string `form:"vc_position__gte,omitempty" json:"vc_position__gte,omitempty"` - - // VcPositionLt vc_position__lt - VcPositionLt *string `form:"vc_position__lt,omitempty" json:"vc_position__lt,omitempty"` - - // VcPositionLte vc_position__lte - VcPositionLte *string `form:"vc_position__lte,omitempty" json:"vc_position__lte,omitempty"` - - // VcPositionN vc_position__n - VcPositionN *string `form:"vc_position__n,omitempty" json:"vc_position__n,omitempty"` - - // VcPriority vc_priority - VcPriority *string `form:"vc_priority,omitempty" json:"vc_priority,omitempty"` - - // VcPriorityGt vc_priority__gt - VcPriorityGt *string `form:"vc_priority__gt,omitempty" json:"vc_priority__gt,omitempty"` - - // VcPriorityGte vc_priority__gte - VcPriorityGte *string `form:"vc_priority__gte,omitempty" json:"vc_priority__gte,omitempty"` - - // VcPriorityLt vc_priority__lt - VcPriorityLt *string `form:"vc_priority__lt,omitempty" json:"vc_priority__lt,omitempty"` - - // VcPriorityLte vc_priority__lte - VcPriorityLte *string `form:"vc_priority__lte,omitempty" json:"vc_priority__lte,omitempty"` - - // VcPriorityN vc_priority__n - VcPriorityN *string `form:"vc_priority__n,omitempty" json:"vc_priority__n,omitempty"` - - // VirtualChassisId Virtual chassis (ID) - VirtualChassisId *string `form:"virtual_chassis_id,omitempty" json:"virtual_chassis_id,omitempty"` - - // VirtualChassisIdN Virtual chassis (ID) - VirtualChassisIdN *string `form:"virtual_chassis_id__n,omitempty" json:"virtual_chassis_id__n,omitempty"` - - // VirtualChassisMember Is a virtual chassis member - VirtualChassisMember *string `form:"virtual_chassis_member,omitempty" json:"virtual_chassis_member,omitempty"` -} - -// DcimDevicesListParamsFace defines parameters for DcimDevicesList. -type DcimDevicesListParamsFace string - -// DcimDevicesListParamsFaceN defines parameters for DcimDevicesList. -type DcimDevicesListParamsFaceN string - -// DcimDevicesBulkPartialUpdateJSONBody defines parameters for DcimDevicesBulkPartialUpdate. -type DcimDevicesBulkPartialUpdateJSONBody = []PatchedBulkWritableDeviceWithConfigContextRequest - -// DcimDevicesBulkUpdateJSONBody defines parameters for DcimDevicesBulkUpdate. -type DcimDevicesBulkUpdateJSONBody = []BulkWritableDeviceWithConfigContextRequest - -// DcimDevicesNapalmRetrieveParams defines parameters for DcimDevicesNapalmRetrieve. -type DcimDevicesNapalmRetrieveParams struct { - Method string `form:"method" json:"method"` -} - -// DcimDevicesNotesListParams defines parameters for DcimDevicesNotesList. -type DcimDevicesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimFrontPortTemplatesBulkDestroyJSONBody defines parameters for DcimFrontPortTemplatesBulkDestroy. -type DcimFrontPortTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimFrontPortTemplatesListParams defines parameters for DcimFrontPortTemplatesList. -type DcimFrontPortTemplatesListParams struct { - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - RearPortPosition *[]int `form:"rear_port_position,omitempty" json:"rear_port_position,omitempty"` - RearPortPositionGt *[]int `form:"rear_port_position__gt,omitempty" json:"rear_port_position__gt,omitempty"` - RearPortPositionGte *[]int `form:"rear_port_position__gte,omitempty" json:"rear_port_position__gte,omitempty"` - RearPortPositionLt *[]int `form:"rear_port_position__lt,omitempty" json:"rear_port_position__lt,omitempty"` - RearPortPositionLte *[]int `form:"rear_port_position__lte,omitempty" json:"rear_port_position__lte,omitempty"` - RearPortPositionN *[]int `form:"rear_port_position__n,omitempty" json:"rear_port_position__n,omitempty"` - - // RearPortTemplate Rear port template - RearPortTemplate *[]openapi_types.UUID `form:"rear_port_template,omitempty" json:"rear_port_template,omitempty"` - - // RearPortTemplateN Rear port template - RearPortTemplateN *[]openapi_types.UUID `form:"rear_port_template__n,omitempty" json:"rear_port_template__n,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimFrontPortTemplatesBulkPartialUpdateJSONBody defines parameters for DcimFrontPortTemplatesBulkPartialUpdate. -type DcimFrontPortTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritableFrontPortTemplateRequest - -// DcimFrontPortTemplatesBulkUpdateJSONBody defines parameters for DcimFrontPortTemplatesBulkUpdate. -type DcimFrontPortTemplatesBulkUpdateJSONBody = []BulkWritableFrontPortTemplateRequest - -// DcimFrontPortTemplatesNotesListParams defines parameters for DcimFrontPortTemplatesNotesList. -type DcimFrontPortTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimFrontPortsBulkDestroyJSONBody defines parameters for DcimFrontPortsBulkDestroy. -type DcimFrontPortsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimFrontPortsListParams defines parameters for DcimFrontPortsList. -type DcimFrontPortsListParams struct { - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // RearPort Rear port (name or ID) - RearPort *[]openapi_types.UUID `form:"rear_port,omitempty" json:"rear_port,omitempty"` - - // RearPortN Rear port (name or ID) - RearPortN *[]openapi_types.UUID `form:"rear_port__n,omitempty" json:"rear_port__n,omitempty"` - RearPortPosition *[]int `form:"rear_port_position,omitempty" json:"rear_port_position,omitempty"` - RearPortPositionGt *[]int `form:"rear_port_position__gt,omitempty" json:"rear_port_position__gt,omitempty"` - RearPortPositionGte *[]int `form:"rear_port_position__gte,omitempty" json:"rear_port_position__gte,omitempty"` - RearPortPositionLt *[]int `form:"rear_port_position__lt,omitempty" json:"rear_port_position__lt,omitempty"` - RearPortPositionLte *[]int `form:"rear_port_position__lte,omitempty" json:"rear_port_position__lte,omitempty"` - RearPortPositionN *[]int `form:"rear_port_position__n,omitempty" json:"rear_port_position__n,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimFrontPortsBulkPartialUpdateJSONBody defines parameters for DcimFrontPortsBulkPartialUpdate. -type DcimFrontPortsBulkPartialUpdateJSONBody = []PatchedBulkWritableFrontPortRequest - -// DcimFrontPortsBulkUpdateJSONBody defines parameters for DcimFrontPortsBulkUpdate. -type DcimFrontPortsBulkUpdateJSONBody = []BulkWritableFrontPortRequest - -// DcimFrontPortsNotesListParams defines parameters for DcimFrontPortsNotesList. -type DcimFrontPortsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimInterfaceConnectionsListParams defines parameters for DcimInterfaceConnectionsList. -type DcimInterfaceConnectionsListParams struct { - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Site Site (slug) - Site *string `form:"site,omitempty" json:"site,omitempty"` -} - -// DcimInterfaceTemplatesBulkDestroyJSONBody defines parameters for DcimInterfaceTemplatesBulkDestroy. -type DcimInterfaceTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimInterfaceTemplatesListParams defines parameters for DcimInterfaceTemplatesList. -type DcimInterfaceTemplatesListParams struct { - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - MgmtOnly *bool `form:"mgmt_only,omitempty" json:"mgmt_only,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimInterfaceTemplatesBulkPartialUpdateJSONBody defines parameters for DcimInterfaceTemplatesBulkPartialUpdate. -type DcimInterfaceTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritableInterfaceTemplateRequest - -// DcimInterfaceTemplatesBulkUpdateJSONBody defines parameters for DcimInterfaceTemplatesBulkUpdate. -type DcimInterfaceTemplatesBulkUpdateJSONBody = []BulkWritableInterfaceTemplateRequest - -// DcimInterfaceTemplatesNotesListParams defines parameters for DcimInterfaceTemplatesNotesList. -type DcimInterfaceTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimInterfacesBulkDestroyJSONBody defines parameters for DcimInterfacesBulkDestroy. -type DcimInterfacesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimInterfacesListParams defines parameters for DcimInterfacesList. -type DcimInterfacesListParams struct { - // Bridge Bridge interface (name or ID) - Bridge *[]openapi_types.UUID `form:"bridge,omitempty" json:"bridge,omitempty"` - - // BridgeN Bridge interface (name or ID) - BridgeN *[]openapi_types.UUID `form:"bridge__n,omitempty" json:"bridge__n,omitempty"` - - // BridgedInterfaces Bridged interfaces (name or ID) - BridgedInterfaces *[]openapi_types.UUID `form:"bridged_interfaces,omitempty" json:"bridged_interfaces,omitempty"` - - // BridgedInterfacesN Bridged interfaces (name or ID) - BridgedInterfacesN *[]openapi_types.UUID `form:"bridged_interfaces__n,omitempty" json:"bridged_interfaces__n,omitempty"` - - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - - // ChildInterfaces Child interfaces (name or ID) - ChildInterfaces *[]openapi_types.UUID `form:"child_interfaces,omitempty" json:"child_interfaces,omitempty"` - - // ChildInterfacesN Child interfaces (name or ID) - ChildInterfacesN *[]openapi_types.UUID `form:"child_interfaces__n,omitempty" json:"child_interfaces__n,omitempty"` - - // Connected Connected status (bool) - Connected *bool `form:"connected,omitempty" json:"connected,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceWithCommonVc Virtual Chassis member Device (ID) - DeviceWithCommonVc *openapi_types.UUID `form:"device_with_common_vc,omitempty" json:"device_with_common_vc,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - - // HasBridgedInterfaces Has bridged interfaces - HasBridgedInterfaces *bool `form:"has_bridged_interfaces,omitempty" json:"has_bridged_interfaces,omitempty"` - - // HasChildInterfaces Has child interfaces - HasChildInterfaces *bool `form:"has_child_interfaces,omitempty" json:"has_child_interfaces,omitempty"` - - // HasMemberInterfaces Has member interfaces - HasMemberInterfaces *bool `form:"has_member_interfaces,omitempty" json:"has_member_interfaces,omitempty"` - - // HasTaggedVlans Has tagged VLANs - HasTaggedVlans *bool `form:"has_tagged_vlans,omitempty" json:"has_tagged_vlans,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Kind Kind of interface - Kind *string `form:"kind,omitempty" json:"kind,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Lag LAG interface (name or ID) - Lag *[]openapi_types.UUID `form:"lag,omitempty" json:"lag,omitempty"` - - // LagN LAG interface (name or ID) - LagN *[]openapi_types.UUID `form:"lag__n,omitempty" json:"lag__n,omitempty"` - - // LagId LAG interface (ID) - LagId *[]openapi_types.UUID `form:"lag_id,omitempty" json:"lag_id,omitempty"` - - // LagIdN LAG interface (ID) - LagIdN *[]openapi_types.UUID `form:"lag_id__n,omitempty" json:"lag_id__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - MacAddress *[]string `form:"mac_address,omitempty" json:"mac_address,omitempty"` - MacAddressIc *[]string `form:"mac_address__ic,omitempty" json:"mac_address__ic,omitempty"` - MacAddressIe *[]string `form:"mac_address__ie,omitempty" json:"mac_address__ie,omitempty"` - MacAddressIew *[]string `form:"mac_address__iew,omitempty" json:"mac_address__iew,omitempty"` - MacAddressIre *[]string `form:"mac_address__ire,omitempty" json:"mac_address__ire,omitempty"` - MacAddressIsw *[]string `form:"mac_address__isw,omitempty" json:"mac_address__isw,omitempty"` - MacAddressN *[]string `form:"mac_address__n,omitempty" json:"mac_address__n,omitempty"` - MacAddressNic *[]string `form:"mac_address__nic,omitempty" json:"mac_address__nic,omitempty"` - MacAddressNie *[]string `form:"mac_address__nie,omitempty" json:"mac_address__nie,omitempty"` - MacAddressNiew *[]string `form:"mac_address__niew,omitempty" json:"mac_address__niew,omitempty"` - MacAddressNire *[]string `form:"mac_address__nire,omitempty" json:"mac_address__nire,omitempty"` - MacAddressNisw *[]string `form:"mac_address__nisw,omitempty" json:"mac_address__nisw,omitempty"` - MacAddressNre *[]string `form:"mac_address__nre,omitempty" json:"mac_address__nre,omitempty"` - MacAddressRe *[]string `form:"mac_address__re,omitempty" json:"mac_address__re,omitempty"` - - // MemberInterfaces Member interfaces (name or ID) - MemberInterfaces *[]openapi_types.UUID `form:"member_interfaces,omitempty" json:"member_interfaces,omitempty"` - - // MemberInterfacesN Member interfaces (name or ID) - MemberInterfacesN *[]openapi_types.UUID `form:"member_interfaces__n,omitempty" json:"member_interfaces__n,omitempty"` - MgmtOnly *bool `form:"mgmt_only,omitempty" json:"mgmt_only,omitempty"` - Mode *string `form:"mode,omitempty" json:"mode,omitempty"` - ModeN *string `form:"mode__n,omitempty" json:"mode__n,omitempty"` - Mtu *[]int `form:"mtu,omitempty" json:"mtu,omitempty"` - MtuGt *[]int `form:"mtu__gt,omitempty" json:"mtu__gt,omitempty"` - MtuGte *[]int `form:"mtu__gte,omitempty" json:"mtu__gte,omitempty"` - MtuLt *[]int `form:"mtu__lt,omitempty" json:"mtu__lt,omitempty"` - MtuLte *[]int `form:"mtu__lte,omitempty" json:"mtu__lte,omitempty"` - MtuN *[]int `form:"mtu__n,omitempty" json:"mtu__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // NautobotBgpModelsInterfacesBgpRoutingInstance Routing Instance UUID - NautobotBgpModelsInterfacesBgpRoutingInstance *[]string `form:"nautobot_bgp_models_interfaces_bgp_routing_instance,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceIc *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__ic,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__ic,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceIe *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__ie,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__ie,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceIew *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__iew,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__iew,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceIre *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__ire,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__ire,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceIsw *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__isw,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__isw,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceN *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__n,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__n,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceNic *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__nic,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__nic,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceNie *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__nie,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__nie,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceNiew *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__niew,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__niew,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceNire *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__nire,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__nire,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceNisw *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__nisw,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__nisw,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceNre *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__nre,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__nre,omitempty"` - NautobotBgpModelsInterfacesBgpRoutingInstanceRe *[]openapi_types.UUID `form:"nautobot_bgp_models_interfaces_bgp_routing_instance__re,omitempty" json:"nautobot_bgp_models_interfaces_bgp_routing_instance__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // ParentInterface Parent interface (name or ID) - ParentInterface *[]openapi_types.UUID `form:"parent_interface,omitempty" json:"parent_interface,omitempty"` - - // ParentInterfaceN Parent interface (name or ID) - ParentInterfaceN *[]openapi_types.UUID `form:"parent_interface__n,omitempty" json:"parent_interface__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // TaggedVlans Tagged VLANs (VID or ID) - TaggedVlans *[]openapi_types.UUID `form:"tagged_vlans,omitempty" json:"tagged_vlans,omitempty"` - - // TaggedVlansN Tagged VLANs (VID or ID) - TaggedVlansN *[]openapi_types.UUID `form:"tagged_vlans__n,omitempty" json:"tagged_vlans__n,omitempty"` - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` - - // UntaggedVlan Untagged VLAN (VID or ID) - UntaggedVlan *[]openapi_types.UUID `form:"untagged_vlan,omitempty" json:"untagged_vlan,omitempty"` - - // UntaggedVlanN Untagged VLAN (VID or ID) - UntaggedVlanN *[]openapi_types.UUID `form:"untagged_vlan__n,omitempty" json:"untagged_vlan__n,omitempty"` - - // Vlan Assigned VID - Vlan *float32 `form:"vlan,omitempty" json:"vlan,omitempty"` - - // VlanId Assigned VLAN - VlanId *string `form:"vlan_id,omitempty" json:"vlan_id,omitempty"` -} - -// DcimInterfacesBulkPartialUpdateJSONBody defines parameters for DcimInterfacesBulkPartialUpdate. -type DcimInterfacesBulkPartialUpdateJSONBody = []PatchedBulkWritableInterfaceRequest - -// DcimInterfacesBulkUpdateJSONBody defines parameters for DcimInterfacesBulkUpdate. -type DcimInterfacesBulkUpdateJSONBody = []BulkWritableInterfaceRequest - -// DcimInterfacesNotesListParams defines parameters for DcimInterfacesNotesList. -type DcimInterfacesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimInventoryItemsBulkDestroyJSONBody defines parameters for DcimInventoryItemsBulkDestroy. -type DcimInventoryItemsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimInventoryItemsListParams defines parameters for DcimInventoryItemsList. -type DcimInventoryItemsListParams struct { - AssetTag *[]string `form:"asset_tag,omitempty" json:"asset_tag,omitempty"` - AssetTagIc *[]string `form:"asset_tag__ic,omitempty" json:"asset_tag__ic,omitempty"` - AssetTagIe *[]string `form:"asset_tag__ie,omitempty" json:"asset_tag__ie,omitempty"` - AssetTagIew *[]string `form:"asset_tag__iew,omitempty" json:"asset_tag__iew,omitempty"` - AssetTagIre *[]string `form:"asset_tag__ire,omitempty" json:"asset_tag__ire,omitempty"` - AssetTagIsw *[]string `form:"asset_tag__isw,omitempty" json:"asset_tag__isw,omitempty"` - AssetTagN *[]string `form:"asset_tag__n,omitempty" json:"asset_tag__n,omitempty"` - AssetTagNic *[]string `form:"asset_tag__nic,omitempty" json:"asset_tag__nic,omitempty"` - AssetTagNie *[]string `form:"asset_tag__nie,omitempty" json:"asset_tag__nie,omitempty"` - AssetTagNiew *[]string `form:"asset_tag__niew,omitempty" json:"asset_tag__niew,omitempty"` - AssetTagNire *[]string `form:"asset_tag__nire,omitempty" json:"asset_tag__nire,omitempty"` - AssetTagNisw *[]string `form:"asset_tag__nisw,omitempty" json:"asset_tag__nisw,omitempty"` - AssetTagNre *[]string `form:"asset_tag__nre,omitempty" json:"asset_tag__nre,omitempty"` - AssetTagRe *[]string `form:"asset_tag__re,omitempty" json:"asset_tag__re,omitempty"` - - // ChildItems Child items (name or ID) - ChildItems *[]openapi_types.UUID `form:"child_items,omitempty" json:"child_items,omitempty"` - - // ChildItemsN Child items (name or ID) - ChildItemsN *[]openapi_types.UUID `form:"child_items__n,omitempty" json:"child_items__n,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *openapi_types.UUID `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *openapi_types.UUID `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Discovered *bool `form:"discovered,omitempty" json:"discovered,omitempty"` - - // HasChildItems Has child items - HasChildItems *bool `form:"has_child_items,omitempty" json:"has_child_items,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Manufacturer Manufacturer (slug) - Manufacturer *[]string `form:"manufacturer,omitempty" json:"manufacturer,omitempty"` - - // ManufacturerN Manufacturer (slug) - ManufacturerN *[]string `form:"manufacturer__n,omitempty" json:"manufacturer__n,omitempty"` - - // ManufacturerId Manufacturer (ID) - ManufacturerId *[]openapi_types.UUID `form:"manufacturer_id,omitempty" json:"manufacturer_id,omitempty"` - - // ManufacturerIdN Manufacturer (ID) - ManufacturerIdN *[]openapi_types.UUID `form:"manufacturer_id__n,omitempty" json:"manufacturer_id__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Parent Parent (name or ID) - Parent *[]openapi_types.UUID `form:"parent,omitempty" json:"parent,omitempty"` - - // ParentN Parent (name or ID) - ParentN *[]openapi_types.UUID `form:"parent__n,omitempty" json:"parent__n,omitempty"` - - // ParentId Parent inventory item (ID) - ParentId *[]openapi_types.UUID `form:"parent_id,omitempty" json:"parent_id,omitempty"` - - // ParentIdN Parent inventory item (ID) - ParentIdN *[]openapi_types.UUID `form:"parent_id__n,omitempty" json:"parent_id__n,omitempty"` - PartId *[]string `form:"part_id,omitempty" json:"part_id,omitempty"` - PartIdIc *[]string `form:"part_id__ic,omitempty" json:"part_id__ic,omitempty"` - PartIdIe *[]string `form:"part_id__ie,omitempty" json:"part_id__ie,omitempty"` - PartIdIew *[]string `form:"part_id__iew,omitempty" json:"part_id__iew,omitempty"` - PartIdIre *[]string `form:"part_id__ire,omitempty" json:"part_id__ire,omitempty"` - PartIdIsw *[]string `form:"part_id__isw,omitempty" json:"part_id__isw,omitempty"` - PartIdN *[]string `form:"part_id__n,omitempty" json:"part_id__n,omitempty"` - PartIdNic *[]string `form:"part_id__nic,omitempty" json:"part_id__nic,omitempty"` - PartIdNie *[]string `form:"part_id__nie,omitempty" json:"part_id__nie,omitempty"` - PartIdNiew *[]string `form:"part_id__niew,omitempty" json:"part_id__niew,omitempty"` - PartIdNire *[]string `form:"part_id__nire,omitempty" json:"part_id__nire,omitempty"` - PartIdNisw *[]string `form:"part_id__nisw,omitempty" json:"part_id__nisw,omitempty"` - PartIdNre *[]string `form:"part_id__nre,omitempty" json:"part_id__nre,omitempty"` - PartIdRe *[]string `form:"part_id__re,omitempty" json:"part_id__re,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - Serial *string `form:"serial,omitempty" json:"serial,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// DcimInventoryItemsBulkPartialUpdateJSONBody defines parameters for DcimInventoryItemsBulkPartialUpdate. -type DcimInventoryItemsBulkPartialUpdateJSONBody = []PatchedBulkWritableInventoryItemRequest - -// DcimInventoryItemsBulkUpdateJSONBody defines parameters for DcimInventoryItemsBulkUpdate. -type DcimInventoryItemsBulkUpdateJSONBody = []BulkWritableInventoryItemRequest - -// DcimInventoryItemsNotesListParams defines parameters for DcimInventoryItemsNotesList. -type DcimInventoryItemsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimLocationTypesBulkDestroyJSONBody defines parameters for DcimLocationTypesBulkDestroy. -type DcimLocationTypesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimLocationTypesListParams defines parameters for DcimLocationTypesList. -type DcimLocationTypesListParams struct { - ContentTypes *[]int `form:"content_types,omitempty" json:"content_types,omitempty"` - ContentTypesN *[]int `form:"content_types__n,omitempty" json:"content_types__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - Nestable *bool `form:"nestable,omitempty" json:"nestable,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Parent Parent location type (slug or ID) - Parent *[]openapi_types.UUID `form:"parent,omitempty" json:"parent,omitempty"` - - // ParentN Parent location type (slug or ID) - ParentN *[]openapi_types.UUID `form:"parent__n,omitempty" json:"parent__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// DcimLocationTypesBulkPartialUpdateJSONBody defines parameters for DcimLocationTypesBulkPartialUpdate. -type DcimLocationTypesBulkPartialUpdateJSONBody = []PatchedBulkWritableLocationTypeRequest - -// DcimLocationTypesBulkUpdateJSONBody defines parameters for DcimLocationTypesBulkUpdate. -type DcimLocationTypesBulkUpdateJSONBody = []BulkWritableLocationTypeRequest - -// DcimLocationTypesNotesListParams defines parameters for DcimLocationTypesNotesList. -type DcimLocationTypesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimLocationsBulkDestroyJSONBody defines parameters for DcimLocationsBulkDestroy. -type DcimLocationsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimLocationsListParams defines parameters for DcimLocationsList. -type DcimLocationsListParams struct { - // BaseSite Base location's site (slug or ID) - BaseSite *[]string `form:"base_site,omitempty" json:"base_site,omitempty"` - - // ChildLocationType Child location type (slug or ID) - ChildLocationType *[]string `form:"child_location_type,omitempty" json:"child_location_type,omitempty"` - ContentType *[]int `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *[]int `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // LocationType Location type (slug or ID) - LocationType *[]openapi_types.UUID `form:"location_type,omitempty" json:"location_type,omitempty"` - - // LocationTypeN Location type (slug or ID) - LocationTypeN *[]openapi_types.UUID `form:"location_type__n,omitempty" json:"location_type__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Parent Parent location (slug or ID) - Parent *[]openapi_types.UUID `form:"parent,omitempty" json:"parent,omitempty"` - - // ParentN Parent location (slug or ID) - ParentN *[]openapi_types.UUID `form:"parent__n,omitempty" json:"parent__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - - // Subtree Location(s) and descendants thereof (slug or ID) - Subtree *[]string `form:"subtree,omitempty" json:"subtree,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` -} - -// DcimLocationsBulkPartialUpdateJSONBody defines parameters for DcimLocationsBulkPartialUpdate. -type DcimLocationsBulkPartialUpdateJSONBody = []PatchedBulkWritableLocationRequest - -// DcimLocationsBulkUpdateJSONBody defines parameters for DcimLocationsBulkUpdate. -type DcimLocationsBulkUpdateJSONBody = []BulkWritableLocationRequest - -// DcimLocationsNotesListParams defines parameters for DcimLocationsNotesList. -type DcimLocationsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimManufacturersBulkDestroyJSONBody defines parameters for DcimManufacturersBulkDestroy. -type DcimManufacturersBulkDestroyJSONBody = []BulkOperationRequest - -// DcimManufacturersListParams defines parameters for DcimManufacturersList. -type DcimManufacturersListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceTypes Device types (slug or ID) - DeviceTypes *[]openapi_types.UUID `form:"device_types,omitempty" json:"device_types,omitempty"` - - // DeviceTypesN Device types (slug or ID) - DeviceTypesN *[]openapi_types.UUID `form:"device_types__n,omitempty" json:"device_types__n,omitempty"` - - // HasDeviceTypes Has device types - HasDeviceTypes *bool `form:"has_device_types,omitempty" json:"has_device_types,omitempty"` - - // HasInventoryItems Has inventory items - HasInventoryItems *bool `form:"has_inventory_items,omitempty" json:"has_inventory_items,omitempty"` - - // HasPlatforms Has platforms - HasPlatforms *bool `form:"has_platforms,omitempty" json:"has_platforms,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // InventoryItems Inventory items (name or ID) - InventoryItems *[]openapi_types.UUID `form:"inventory_items,omitempty" json:"inventory_items,omitempty"` - - // InventoryItemsN Inventory items (name or ID) - InventoryItemsN *[]openapi_types.UUID `form:"inventory_items__n,omitempty" json:"inventory_items__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platforms Platforms (slug or ID) - Platforms *[]openapi_types.UUID `form:"platforms,omitempty" json:"platforms,omitempty"` - - // PlatformsN Platforms (slug or ID) - PlatformsN *[]openapi_types.UUID `form:"platforms__n,omitempty" json:"platforms__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// DcimManufacturersBulkPartialUpdateJSONBody defines parameters for DcimManufacturersBulkPartialUpdate. -type DcimManufacturersBulkPartialUpdateJSONBody = []PatchedBulkWritableManufacturerRequest - -// DcimManufacturersBulkUpdateJSONBody defines parameters for DcimManufacturersBulkUpdate. -type DcimManufacturersBulkUpdateJSONBody = []BulkWritableManufacturerRequest - -// DcimManufacturersNotesListParams defines parameters for DcimManufacturersNotesList. -type DcimManufacturersNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimPlatformsBulkDestroyJSONBody defines parameters for DcimPlatformsBulkDestroy. -type DcimPlatformsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimPlatformsListParams defines parameters for DcimPlatformsList. -type DcimPlatformsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Devices *[]openapi_types.UUID `form:"devices,omitempty" json:"devices,omitempty"` - DevicesN *[]openapi_types.UUID `form:"devices__n,omitempty" json:"devices__n,omitempty"` - - // HasDevices Has devices - HasDevices *bool `form:"has_devices,omitempty" json:"has_devices,omitempty"` - - // HasVirtualMachines Has virtual machines - HasVirtualMachines *bool `form:"has_virtual_machines,omitempty" json:"has_virtual_machines,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Manufacturer Manufacturer (slug) - Manufacturer *[]string `form:"manufacturer,omitempty" json:"manufacturer,omitempty"` - - // ManufacturerN Manufacturer (slug) - ManufacturerN *[]string `form:"manufacturer__n,omitempty" json:"manufacturer__n,omitempty"` - - // ManufacturerId Manufacturer (ID) - ManufacturerId *[]openapi_types.UUID `form:"manufacturer_id,omitempty" json:"manufacturer_id,omitempty"` - - // ManufacturerIdN Manufacturer (ID) - ManufacturerIdN *[]openapi_types.UUID `form:"manufacturer_id__n,omitempty" json:"manufacturer_id__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - NapalmArgs *[]string `form:"napalm_args,omitempty" json:"napalm_args,omitempty"` - NapalmDriver *[]string `form:"napalm_driver,omitempty" json:"napalm_driver,omitempty"` - NapalmDriverIc *[]string `form:"napalm_driver__ic,omitempty" json:"napalm_driver__ic,omitempty"` - NapalmDriverIe *[]string `form:"napalm_driver__ie,omitempty" json:"napalm_driver__ie,omitempty"` - NapalmDriverIew *[]string `form:"napalm_driver__iew,omitempty" json:"napalm_driver__iew,omitempty"` - NapalmDriverIre *[]string `form:"napalm_driver__ire,omitempty" json:"napalm_driver__ire,omitempty"` - NapalmDriverIsw *[]string `form:"napalm_driver__isw,omitempty" json:"napalm_driver__isw,omitempty"` - NapalmDriverN *[]string `form:"napalm_driver__n,omitempty" json:"napalm_driver__n,omitempty"` - NapalmDriverNic *[]string `form:"napalm_driver__nic,omitempty" json:"napalm_driver__nic,omitempty"` - NapalmDriverNie *[]string `form:"napalm_driver__nie,omitempty" json:"napalm_driver__nie,omitempty"` - NapalmDriverNiew *[]string `form:"napalm_driver__niew,omitempty" json:"napalm_driver__niew,omitempty"` - NapalmDriverNire *[]string `form:"napalm_driver__nire,omitempty" json:"napalm_driver__nire,omitempty"` - NapalmDriverNisw *[]string `form:"napalm_driver__nisw,omitempty" json:"napalm_driver__nisw,omitempty"` - NapalmDriverNre *[]string `form:"napalm_driver__nre,omitempty" json:"napalm_driver__nre,omitempty"` - NapalmDriverRe *[]string `form:"napalm_driver__re,omitempty" json:"napalm_driver__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - VirtualMachines *[]openapi_types.UUID `form:"virtual_machines,omitempty" json:"virtual_machines,omitempty"` - VirtualMachinesN *[]openapi_types.UUID `form:"virtual_machines__n,omitempty" json:"virtual_machines__n,omitempty"` -} - -// DcimPlatformsBulkPartialUpdateJSONBody defines parameters for DcimPlatformsBulkPartialUpdate. -type DcimPlatformsBulkPartialUpdateJSONBody = []PatchedBulkWritablePlatformRequest - -// DcimPlatformsBulkUpdateJSONBody defines parameters for DcimPlatformsBulkUpdate. -type DcimPlatformsBulkUpdateJSONBody = []BulkWritablePlatformRequest - -// DcimPlatformsNotesListParams defines parameters for DcimPlatformsNotesList. -type DcimPlatformsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimPowerConnectionsListParams defines parameters for DcimPowerConnectionsList. -type DcimPowerConnectionsListParams struct { - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Site Site (slug) - Site *string `form:"site,omitempty" json:"site,omitempty"` -} - -// DcimPowerFeedsBulkDestroyJSONBody defines parameters for DcimPowerFeedsBulkDestroy. -type DcimPowerFeedsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimPowerFeedsListParams defines parameters for DcimPowerFeedsList. -type DcimPowerFeedsListParams struct { - Amperage *[]int `form:"amperage,omitempty" json:"amperage,omitempty"` - AmperageGt *[]int `form:"amperage__gt,omitempty" json:"amperage__gt,omitempty"` - AmperageGte *[]int `form:"amperage__gte,omitempty" json:"amperage__gte,omitempty"` - AmperageLt *[]int `form:"amperage__lt,omitempty" json:"amperage__lt,omitempty"` - AmperageLte *[]int `form:"amperage__lte,omitempty" json:"amperage__lte,omitempty"` - AmperageN *[]int `form:"amperage__n,omitempty" json:"amperage__n,omitempty"` - AvailablePower *[]int `form:"available_power,omitempty" json:"available_power,omitempty"` - AvailablePowerGt *[]int `form:"available_power__gt,omitempty" json:"available_power__gt,omitempty"` - AvailablePowerGte *[]int `form:"available_power__gte,omitempty" json:"available_power__gte,omitempty"` - AvailablePowerLt *[]int `form:"available_power__lt,omitempty" json:"available_power__lt,omitempty"` - AvailablePowerLte *[]int `form:"available_power__lte,omitempty" json:"available_power__lte,omitempty"` - AvailablePowerN *[]int `form:"available_power__n,omitempty" json:"available_power__n,omitempty"` - - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - - // Connected Connected status (bool) - Connected *bool `form:"connected,omitempty" json:"connected,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - MaxUtilization *[]int `form:"max_utilization,omitempty" json:"max_utilization,omitempty"` - MaxUtilizationGt *[]int `form:"max_utilization__gt,omitempty" json:"max_utilization__gt,omitempty"` - MaxUtilizationGte *[]int `form:"max_utilization__gte,omitempty" json:"max_utilization__gte,omitempty"` - MaxUtilizationLt *[]int `form:"max_utilization__lt,omitempty" json:"max_utilization__lt,omitempty"` - MaxUtilizationLte *[]int `form:"max_utilization__lte,omitempty" json:"max_utilization__lte,omitempty"` - MaxUtilizationN *[]int `form:"max_utilization__n,omitempty" json:"max_utilization__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Phase *string `form:"phase,omitempty" json:"phase,omitempty"` - PhaseN *string `form:"phase__n,omitempty" json:"phase__n,omitempty"` - - // PowerPanel Power panel (name or ID) - PowerPanel *[]openapi_types.UUID `form:"power_panel,omitempty" json:"power_panel,omitempty"` - - // PowerPanelN Power panel (name or ID) - PowerPanelN *[]openapi_types.UUID `form:"power_panel__n,omitempty" json:"power_panel__n,omitempty"` - - // PowerPanelId Power panel (ID) - PowerPanelId *[]openapi_types.UUID `form:"power_panel_id,omitempty" json:"power_panel_id,omitempty"` - - // PowerPanelIdN Power panel (ID) - PowerPanelIdN *[]openapi_types.UUID `form:"power_panel_id__n,omitempty" json:"power_panel_id__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Rack Rack (name or ID) - Rack *[]openapi_types.UUID `form:"rack,omitempty" json:"rack,omitempty"` - - // RackN Rack (name or ID) - RackN *[]openapi_types.UUID `form:"rack__n,omitempty" json:"rack__n,omitempty"` - - // RackId Rack (ID) - RackId *[]openapi_types.UUID `form:"rack_id,omitempty" json:"rack_id,omitempty"` - - // RackIdN Rack (ID) - RackIdN *[]openapi_types.UUID `form:"rack_id__n,omitempty" json:"rack_id__n,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Supply *string `form:"supply,omitempty" json:"supply,omitempty"` - SupplyN *string `form:"supply__n,omitempty" json:"supply__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` - Voltage *[]int `form:"voltage,omitempty" json:"voltage,omitempty"` - VoltageGt *[]int `form:"voltage__gt,omitempty" json:"voltage__gt,omitempty"` - VoltageGte *[]int `form:"voltage__gte,omitempty" json:"voltage__gte,omitempty"` - VoltageLt *[]int `form:"voltage__lt,omitempty" json:"voltage__lt,omitempty"` - VoltageLte *[]int `form:"voltage__lte,omitempty" json:"voltage__lte,omitempty"` - VoltageN *[]int `form:"voltage__n,omitempty" json:"voltage__n,omitempty"` -} - -// DcimPowerFeedsBulkPartialUpdateJSONBody defines parameters for DcimPowerFeedsBulkPartialUpdate. -type DcimPowerFeedsBulkPartialUpdateJSONBody = []PatchedBulkWritablePowerFeedRequest - -// DcimPowerFeedsBulkUpdateJSONBody defines parameters for DcimPowerFeedsBulkUpdate. -type DcimPowerFeedsBulkUpdateJSONBody = []BulkWritablePowerFeedRequest - -// DcimPowerFeedsNotesListParams defines parameters for DcimPowerFeedsNotesList. -type DcimPowerFeedsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimPowerOutletTemplatesBulkDestroyJSONBody defines parameters for DcimPowerOutletTemplatesBulkDestroy. -type DcimPowerOutletTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimPowerOutletTemplatesListParams defines parameters for DcimPowerOutletTemplatesList. -type DcimPowerOutletTemplatesListParams struct { - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // FeedLeg Phase (for three-phase feeds) - FeedLeg *string `form:"feed_leg,omitempty" json:"feed_leg,omitempty"` - - // FeedLegN Phase (for three-phase feeds) - FeedLegN *string `form:"feed_leg__n,omitempty" json:"feed_leg__n,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // PowerPortTemplate Power port template (name or ID) - PowerPortTemplate *[]openapi_types.UUID `form:"power_port_template,omitempty" json:"power_port_template,omitempty"` - - // PowerPortTemplateN Power port template (name or ID) - PowerPortTemplateN *[]openapi_types.UUID `form:"power_port_template__n,omitempty" json:"power_port_template__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimPowerOutletTemplatesBulkPartialUpdateJSONBody defines parameters for DcimPowerOutletTemplatesBulkPartialUpdate. -type DcimPowerOutletTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritablePowerOutletTemplateRequest - -// DcimPowerOutletTemplatesBulkUpdateJSONBody defines parameters for DcimPowerOutletTemplatesBulkUpdate. -type DcimPowerOutletTemplatesBulkUpdateJSONBody = []BulkWritablePowerOutletTemplateRequest - -// DcimPowerOutletTemplatesNotesListParams defines parameters for DcimPowerOutletTemplatesNotesList. -type DcimPowerOutletTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimPowerOutletsBulkDestroyJSONBody defines parameters for DcimPowerOutletsBulkDestroy. -type DcimPowerOutletsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimPowerOutletsListParams defines parameters for DcimPowerOutletsList. -type DcimPowerOutletsListParams struct { - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - - // Connected Connected status (bool) - Connected *bool `form:"connected,omitempty" json:"connected,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - - // FeedLeg Phase (for three-phase feeds) - FeedLeg *string `form:"feed_leg,omitempty" json:"feed_leg,omitempty"` - - // FeedLegN Phase (for three-phase feeds) - FeedLegN *string `form:"feed_leg__n,omitempty" json:"feed_leg__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // PowerPort Power port - PowerPort *[]openapi_types.UUID `form:"power_port,omitempty" json:"power_port,omitempty"` - - // PowerPortN Power port - PowerPortN *[]openapi_types.UUID `form:"power_port__n,omitempty" json:"power_port__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Type Physical port type - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - - // TypeN Physical port type - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimPowerOutletsBulkPartialUpdateJSONBody defines parameters for DcimPowerOutletsBulkPartialUpdate. -type DcimPowerOutletsBulkPartialUpdateJSONBody = []PatchedBulkWritablePowerOutletRequest - -// DcimPowerOutletsBulkUpdateJSONBody defines parameters for DcimPowerOutletsBulkUpdate. -type DcimPowerOutletsBulkUpdateJSONBody = []BulkWritablePowerOutletRequest - -// DcimPowerOutletsNotesListParams defines parameters for DcimPowerOutletsNotesList. -type DcimPowerOutletsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimPowerPanelsBulkDestroyJSONBody defines parameters for DcimPowerPanelsBulkDestroy. -type DcimPowerPanelsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimPowerPanelsListParams defines parameters for DcimPowerPanelsList. -type DcimPowerPanelsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // HasPowerFeeds Has power feeds - HasPowerFeeds *bool `form:"has_power_feeds,omitempty" json:"has_power_feeds,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // PowerFeeds Power feeds (name or ID) - PowerFeeds *[]openapi_types.UUID `form:"power_feeds,omitempty" json:"power_feeds,omitempty"` - - // PowerFeedsN Power feeds (name or ID) - PowerFeedsN *[]openapi_types.UUID `form:"power_feeds__n,omitempty" json:"power_feeds__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // RackGroup Rack group (slug or ID) - RackGroup *[]openapi_types.UUID `form:"rack_group,omitempty" json:"rack_group,omitempty"` - - // RackGroupN Rack group (slug or ID) - RackGroupN *[]openapi_types.UUID `form:"rack_group__n,omitempty" json:"rack_group__n,omitempty"` - - // RackGroupId Rack group (ID) - RackGroupId *[]openapi_types.UUID `form:"rack_group_id,omitempty" json:"rack_group_id,omitempty"` - - // RackGroupIdN Rack group (ID) - RackGroupIdN *[]openapi_types.UUID `form:"rack_group_id__n,omitempty" json:"rack_group_id__n,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// DcimPowerPanelsBulkPartialUpdateJSONBody defines parameters for DcimPowerPanelsBulkPartialUpdate. -type DcimPowerPanelsBulkPartialUpdateJSONBody = []PatchedBulkWritablePowerPanelRequest - -// DcimPowerPanelsBulkUpdateJSONBody defines parameters for DcimPowerPanelsBulkUpdate. -type DcimPowerPanelsBulkUpdateJSONBody = []BulkWritablePowerPanelRequest - -// DcimPowerPanelsNotesListParams defines parameters for DcimPowerPanelsNotesList. -type DcimPowerPanelsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimPowerPortTemplatesBulkDestroyJSONBody defines parameters for DcimPowerPortTemplatesBulkDestroy. -type DcimPowerPortTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimPowerPortTemplatesListParams defines parameters for DcimPowerPortTemplatesList. -type DcimPowerPortTemplatesListParams struct { - AllocatedDraw *[]int `form:"allocated_draw,omitempty" json:"allocated_draw,omitempty"` - AllocatedDrawGt *[]int `form:"allocated_draw__gt,omitempty" json:"allocated_draw__gt,omitempty"` - AllocatedDrawGte *[]int `form:"allocated_draw__gte,omitempty" json:"allocated_draw__gte,omitempty"` - AllocatedDrawLt *[]int `form:"allocated_draw__lt,omitempty" json:"allocated_draw__lt,omitempty"` - AllocatedDrawLte *[]int `form:"allocated_draw__lte,omitempty" json:"allocated_draw__lte,omitempty"` - AllocatedDrawN *[]int `form:"allocated_draw__n,omitempty" json:"allocated_draw__n,omitempty"` - - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // HasPowerOutletTemplates Has power outlet templates - HasPowerOutletTemplates *bool `form:"has_power_outlet_templates,omitempty" json:"has_power_outlet_templates,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - MaximumDraw *[]int `form:"maximum_draw,omitempty" json:"maximum_draw,omitempty"` - MaximumDrawGt *[]int `form:"maximum_draw__gt,omitempty" json:"maximum_draw__gt,omitempty"` - MaximumDrawGte *[]int `form:"maximum_draw__gte,omitempty" json:"maximum_draw__gte,omitempty"` - MaximumDrawLt *[]int `form:"maximum_draw__lt,omitempty" json:"maximum_draw__lt,omitempty"` - MaximumDrawLte *[]int `form:"maximum_draw__lte,omitempty" json:"maximum_draw__lte,omitempty"` - MaximumDrawN *[]int `form:"maximum_draw__n,omitempty" json:"maximum_draw__n,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // PowerOutletTemplates Power outlet templates (name or ID) - PowerOutletTemplates *[]openapi_types.UUID `form:"power_outlet_templates,omitempty" json:"power_outlet_templates,omitempty"` - - // PowerOutletTemplatesN Power outlet templates (name or ID) - PowerOutletTemplatesN *[]openapi_types.UUID `form:"power_outlet_templates__n,omitempty" json:"power_outlet_templates__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimPowerPortTemplatesBulkPartialUpdateJSONBody defines parameters for DcimPowerPortTemplatesBulkPartialUpdate. -type DcimPowerPortTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritablePowerPortTemplateRequest - -// DcimPowerPortTemplatesBulkUpdateJSONBody defines parameters for DcimPowerPortTemplatesBulkUpdate. -type DcimPowerPortTemplatesBulkUpdateJSONBody = []BulkWritablePowerPortTemplateRequest - -// DcimPowerPortTemplatesNotesListParams defines parameters for DcimPowerPortTemplatesNotesList. -type DcimPowerPortTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimPowerPortsBulkDestroyJSONBody defines parameters for DcimPowerPortsBulkDestroy. -type DcimPowerPortsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimPowerPortsListParams defines parameters for DcimPowerPortsList. -type DcimPowerPortsListParams struct { - AllocatedDraw *[]int `form:"allocated_draw,omitempty" json:"allocated_draw,omitempty"` - AllocatedDrawGt *[]int `form:"allocated_draw__gt,omitempty" json:"allocated_draw__gt,omitempty"` - AllocatedDrawGte *[]int `form:"allocated_draw__gte,omitempty" json:"allocated_draw__gte,omitempty"` - AllocatedDrawLt *[]int `form:"allocated_draw__lt,omitempty" json:"allocated_draw__lt,omitempty"` - AllocatedDrawLte *[]int `form:"allocated_draw__lte,omitempty" json:"allocated_draw__lte,omitempty"` - AllocatedDrawN *[]int `form:"allocated_draw__n,omitempty" json:"allocated_draw__n,omitempty"` - - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - - // Connected Connected status (bool) - Connected *bool `form:"connected,omitempty" json:"connected,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - - // HasPowerOutlets Has power outlets - HasPowerOutlets *bool `form:"has_power_outlets,omitempty" json:"has_power_outlets,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - MaximumDraw *[]int `form:"maximum_draw,omitempty" json:"maximum_draw,omitempty"` - MaximumDrawGt *[]int `form:"maximum_draw__gt,omitempty" json:"maximum_draw__gt,omitempty"` - MaximumDrawGte *[]int `form:"maximum_draw__gte,omitempty" json:"maximum_draw__gte,omitempty"` - MaximumDrawLt *[]int `form:"maximum_draw__lt,omitempty" json:"maximum_draw__lt,omitempty"` - MaximumDrawLte *[]int `form:"maximum_draw__lte,omitempty" json:"maximum_draw__lte,omitempty"` - MaximumDrawN *[]int `form:"maximum_draw__n,omitempty" json:"maximum_draw__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // PowerOutlets Power outlets (name or ID) - PowerOutlets *[]openapi_types.UUID `form:"power_outlets,omitempty" json:"power_outlets,omitempty"` - - // PowerOutletsN Power outlets (name or ID) - PowerOutletsN *[]openapi_types.UUID `form:"power_outlets__n,omitempty" json:"power_outlets__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Type Physical port type - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - - // TypeN Physical port type - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimPowerPortsBulkPartialUpdateJSONBody defines parameters for DcimPowerPortsBulkPartialUpdate. -type DcimPowerPortsBulkPartialUpdateJSONBody = []PatchedBulkWritablePowerPortRequest - -// DcimPowerPortsBulkUpdateJSONBody defines parameters for DcimPowerPortsBulkUpdate. -type DcimPowerPortsBulkUpdateJSONBody = []BulkWritablePowerPortRequest - -// DcimPowerPortsNotesListParams defines parameters for DcimPowerPortsNotesList. -type DcimPowerPortsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimRackGroupsBulkDestroyJSONBody defines parameters for DcimRackGroupsBulkDestroy. -type DcimRackGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimRackGroupsListParams defines parameters for DcimRackGroupsList. -type DcimRackGroupsListParams struct { - // Children Children (slug or ID) - Children *[]openapi_types.UUID `form:"children,omitempty" json:"children,omitempty"` - - // ChildrenN Children (slug or ID) - ChildrenN *[]openapi_types.UUID `form:"children__n,omitempty" json:"children__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // HasChildren Has children - HasChildren *bool `form:"has_children,omitempty" json:"has_children,omitempty"` - - // HasPowerPanels Has power panels - HasPowerPanels *bool `form:"has_power_panels,omitempty" json:"has_power_panels,omitempty"` - - // HasRacks Has racks - HasRacks *bool `form:"has_racks,omitempty" json:"has_racks,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Parent Parent (slug) - Parent *[]string `form:"parent,omitempty" json:"parent,omitempty"` - - // ParentN Parent (slug) - ParentN *[]string `form:"parent__n,omitempty" json:"parent__n,omitempty"` - - // ParentId Parent (ID) - ParentId *[]openapi_types.UUID `form:"parent_id,omitempty" json:"parent_id,omitempty"` - - // ParentIdN Parent (ID) - ParentIdN *[]openapi_types.UUID `form:"parent_id__n,omitempty" json:"parent_id__n,omitempty"` - - // PowerPanels Power panels (name or ID) - PowerPanels *[]openapi_types.UUID `form:"power_panels,omitempty" json:"power_panels,omitempty"` - - // PowerPanelsN Power panels (name or ID) - PowerPanelsN *[]openapi_types.UUID `form:"power_panels__n,omitempty" json:"power_panels__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Racks *[]openapi_types.UUID `form:"racks,omitempty" json:"racks,omitempty"` - RacksN *[]openapi_types.UUID `form:"racks__n,omitempty" json:"racks__n,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// DcimRackGroupsBulkPartialUpdateJSONBody defines parameters for DcimRackGroupsBulkPartialUpdate. -type DcimRackGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableRackGroupRequest - -// DcimRackGroupsBulkUpdateJSONBody defines parameters for DcimRackGroupsBulkUpdate. -type DcimRackGroupsBulkUpdateJSONBody = []BulkWritableRackGroupRequest - -// DcimRackGroupsNotesListParams defines parameters for DcimRackGroupsNotesList. -type DcimRackGroupsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimRackReservationsBulkDestroyJSONBody defines parameters for DcimRackReservationsBulkDestroy. -type DcimRackReservationsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimRackReservationsListParams defines parameters for DcimRackReservationsList. -type DcimRackReservationsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Group Rack group (slug) - Group *[]openapi_types.UUID `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Rack group (slug) - GroupN *[]openapi_types.UUID `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Rack group (ID) - GroupId *[]openapi_types.UUID `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Rack group (ID) - GroupIdN *[]openapi_types.UUID `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Rack Rack (name or ID) - Rack *[]openapi_types.UUID `form:"rack,omitempty" json:"rack,omitempty"` - - // RackN Rack (name or ID) - RackN *[]openapi_types.UUID `form:"rack__n,omitempty" json:"rack__n,omitempty"` - - // RackId Rack (ID) - RackId *[]openapi_types.UUID `form:"rack_id,omitempty" json:"rack_id,omitempty"` - - // RackIdN Rack (ID) - RackIdN *[]openapi_types.UUID `form:"rack_id__n,omitempty" json:"rack_id__n,omitempty"` - - // Site Site (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // User User (name) - User *[]string `form:"user,omitempty" json:"user,omitempty"` - - // UserN User (name) - UserN *[]string `form:"user__n,omitempty" json:"user__n,omitempty"` - - // UserId User (ID) - UserId *[]openapi_types.UUID `form:"user_id,omitempty" json:"user_id,omitempty"` - - // UserIdN User (ID) - UserIdN *[]openapi_types.UUID `form:"user_id__n,omitempty" json:"user_id__n,omitempty"` -} - -// DcimRackReservationsBulkPartialUpdateJSONBody defines parameters for DcimRackReservationsBulkPartialUpdate. -type DcimRackReservationsBulkPartialUpdateJSONBody = []PatchedBulkWritableRackReservationRequest - -// DcimRackReservationsBulkUpdateJSONBody defines parameters for DcimRackReservationsBulkUpdate. -type DcimRackReservationsBulkUpdateJSONBody = []BulkWritableRackReservationRequest - -// DcimRackReservationsNotesListParams defines parameters for DcimRackReservationsNotesList. -type DcimRackReservationsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimRackRolesBulkDestroyJSONBody defines parameters for DcimRackRolesBulkDestroy. -type DcimRackRolesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimRackRolesListParams defines parameters for DcimRackRolesList. -type DcimRackRolesListParams struct { - Color *[]string `form:"color,omitempty" json:"color,omitempty"` - ColorIc *[]string `form:"color__ic,omitempty" json:"color__ic,omitempty"` - ColorIe *[]string `form:"color__ie,omitempty" json:"color__ie,omitempty"` - ColorIew *[]string `form:"color__iew,omitempty" json:"color__iew,omitempty"` - ColorIre *[]string `form:"color__ire,omitempty" json:"color__ire,omitempty"` - ColorIsw *[]string `form:"color__isw,omitempty" json:"color__isw,omitempty"` - ColorN *[]string `form:"color__n,omitempty" json:"color__n,omitempty"` - ColorNic *[]string `form:"color__nic,omitempty" json:"color__nic,omitempty"` - ColorNie *[]string `form:"color__nie,omitempty" json:"color__nie,omitempty"` - ColorNiew *[]string `form:"color__niew,omitempty" json:"color__niew,omitempty"` - ColorNire *[]string `form:"color__nire,omitempty" json:"color__nire,omitempty"` - ColorNisw *[]string `form:"color__nisw,omitempty" json:"color__nisw,omitempty"` - ColorNre *[]string `form:"color__nre,omitempty" json:"color__nre,omitempty"` - ColorRe *[]string `form:"color__re,omitempty" json:"color__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // HasRacks Has racks - HasRacks *bool `form:"has_racks,omitempty" json:"has_racks,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Racks *[]openapi_types.UUID `form:"racks,omitempty" json:"racks,omitempty"` - RacksN *[]openapi_types.UUID `form:"racks__n,omitempty" json:"racks__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// DcimRackRolesBulkPartialUpdateJSONBody defines parameters for DcimRackRolesBulkPartialUpdate. -type DcimRackRolesBulkPartialUpdateJSONBody = []PatchedBulkWritableRackRoleRequest - -// DcimRackRolesBulkUpdateJSONBody defines parameters for DcimRackRolesBulkUpdate. -type DcimRackRolesBulkUpdateJSONBody = []BulkWritableRackRoleRequest - -// DcimRackRolesNotesListParams defines parameters for DcimRackRolesNotesList. -type DcimRackRolesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimRacksBulkDestroyJSONBody defines parameters for DcimRacksBulkDestroy. -type DcimRacksBulkDestroyJSONBody = []BulkOperationRequest - -// DcimRacksListParams defines parameters for DcimRacksList. -type DcimRacksListParams struct { - AssetTag *[]string `form:"asset_tag,omitempty" json:"asset_tag,omitempty"` - AssetTagIc *[]string `form:"asset_tag__ic,omitempty" json:"asset_tag__ic,omitempty"` - AssetTagIe *[]string `form:"asset_tag__ie,omitempty" json:"asset_tag__ie,omitempty"` - AssetTagIew *[]string `form:"asset_tag__iew,omitempty" json:"asset_tag__iew,omitempty"` - AssetTagIre *[]string `form:"asset_tag__ire,omitempty" json:"asset_tag__ire,omitempty"` - AssetTagIsw *[]string `form:"asset_tag__isw,omitempty" json:"asset_tag__isw,omitempty"` - AssetTagN *[]string `form:"asset_tag__n,omitempty" json:"asset_tag__n,omitempty"` - AssetTagNic *[]string `form:"asset_tag__nic,omitempty" json:"asset_tag__nic,omitempty"` - AssetTagNie *[]string `form:"asset_tag__nie,omitempty" json:"asset_tag__nie,omitempty"` - AssetTagNiew *[]string `form:"asset_tag__niew,omitempty" json:"asset_tag__niew,omitempty"` - AssetTagNire *[]string `form:"asset_tag__nire,omitempty" json:"asset_tag__nire,omitempty"` - AssetTagNisw *[]string `form:"asset_tag__nisw,omitempty" json:"asset_tag__nisw,omitempty"` - AssetTagNre *[]string `form:"asset_tag__nre,omitempty" json:"asset_tag__nre,omitempty"` - AssetTagRe *[]string `form:"asset_tag__re,omitempty" json:"asset_tag__re,omitempty"` - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - DescUnits *bool `form:"desc_units,omitempty" json:"desc_units,omitempty"` - Devices *[]openapi_types.UUID `form:"devices,omitempty" json:"devices,omitempty"` - DevicesN *[]openapi_types.UUID `form:"devices__n,omitempty" json:"devices__n,omitempty"` - FacilityId *[]string `form:"facility_id,omitempty" json:"facility_id,omitempty"` - FacilityIdIc *[]string `form:"facility_id__ic,omitempty" json:"facility_id__ic,omitempty"` - FacilityIdIe *[]string `form:"facility_id__ie,omitempty" json:"facility_id__ie,omitempty"` - FacilityIdIew *[]string `form:"facility_id__iew,omitempty" json:"facility_id__iew,omitempty"` - FacilityIdIre *[]string `form:"facility_id__ire,omitempty" json:"facility_id__ire,omitempty"` - FacilityIdIsw *[]string `form:"facility_id__isw,omitempty" json:"facility_id__isw,omitempty"` - FacilityIdN *[]string `form:"facility_id__n,omitempty" json:"facility_id__n,omitempty"` - FacilityIdNic *[]string `form:"facility_id__nic,omitempty" json:"facility_id__nic,omitempty"` - FacilityIdNie *[]string `form:"facility_id__nie,omitempty" json:"facility_id__nie,omitempty"` - FacilityIdNiew *[]string `form:"facility_id__niew,omitempty" json:"facility_id__niew,omitempty"` - FacilityIdNire *[]string `form:"facility_id__nire,omitempty" json:"facility_id__nire,omitempty"` - FacilityIdNisw *[]string `form:"facility_id__nisw,omitempty" json:"facility_id__nisw,omitempty"` - FacilityIdNre *[]string `form:"facility_id__nre,omitempty" json:"facility_id__nre,omitempty"` - FacilityIdRe *[]string `form:"facility_id__re,omitempty" json:"facility_id__re,omitempty"` - - // Group Rack group (slug) - Group *[]openapi_types.UUID `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Rack group (slug) - GroupN *[]openapi_types.UUID `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Rack group (ID) - GroupId *[]openapi_types.UUID `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Rack group (ID) - GroupIdN *[]openapi_types.UUID `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - - // HasDevices Has devices - HasDevices *bool `form:"has_devices,omitempty" json:"has_devices,omitempty"` - - // HasPowerFeeds Has power feeds - HasPowerFeeds *bool `form:"has_power_feeds,omitempty" json:"has_power_feeds,omitempty"` - - // HasReservations Has reservations - HasReservations *bool `form:"has_reservations,omitempty" json:"has_reservations,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - OuterDepth *[]int `form:"outer_depth,omitempty" json:"outer_depth,omitempty"` - OuterDepthGt *[]int `form:"outer_depth__gt,omitempty" json:"outer_depth__gt,omitempty"` - OuterDepthGte *[]int `form:"outer_depth__gte,omitempty" json:"outer_depth__gte,omitempty"` - OuterDepthLt *[]int `form:"outer_depth__lt,omitempty" json:"outer_depth__lt,omitempty"` - OuterDepthLte *[]int `form:"outer_depth__lte,omitempty" json:"outer_depth__lte,omitempty"` - OuterDepthN *[]int `form:"outer_depth__n,omitempty" json:"outer_depth__n,omitempty"` - OuterUnit *string `form:"outer_unit,omitempty" json:"outer_unit,omitempty"` - OuterUnitN *string `form:"outer_unit__n,omitempty" json:"outer_unit__n,omitempty"` - OuterWidth *[]int `form:"outer_width,omitempty" json:"outer_width,omitempty"` - OuterWidthGt *[]int `form:"outer_width__gt,omitempty" json:"outer_width__gt,omitempty"` - OuterWidthGte *[]int `form:"outer_width__gte,omitempty" json:"outer_width__gte,omitempty"` - OuterWidthLt *[]int `form:"outer_width__lt,omitempty" json:"outer_width__lt,omitempty"` - OuterWidthLte *[]int `form:"outer_width__lte,omitempty" json:"outer_width__lte,omitempty"` - OuterWidthN *[]int `form:"outer_width__n,omitempty" json:"outer_width__n,omitempty"` - - // PowerFeeds Power feeds (name or ID) - PowerFeeds *[]openapi_types.UUID `form:"power_feeds,omitempty" json:"power_feeds,omitempty"` - - // PowerFeedsN Power feeds (name or ID) - PowerFeedsN *[]openapi_types.UUID `form:"power_feeds__n,omitempty" json:"power_feeds__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - Reservations *[]openapi_types.UUID `form:"reservations,omitempty" json:"reservations,omitempty"` - ReservationsN *[]openapi_types.UUID `form:"reservations__n,omitempty" json:"reservations__n,omitempty"` - - // Role Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Role (slug) - RoleN *[]string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoleId Role (ID) - RoleId *[]openapi_types.UUID `form:"role_id,omitempty" json:"role_id,omitempty"` - - // RoleIdN Role (ID) - RoleIdN *[]openapi_types.UUID `form:"role_id__n,omitempty" json:"role_id__n,omitempty"` - Serial *string `form:"serial,omitempty" json:"serial,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` - UHeight *[]int `form:"u_height,omitempty" json:"u_height,omitempty"` - UHeightGt *[]int `form:"u_height__gt,omitempty" json:"u_height__gt,omitempty"` - UHeightGte *[]int `form:"u_height__gte,omitempty" json:"u_height__gte,omitempty"` - UHeightLt *[]int `form:"u_height__lt,omitempty" json:"u_height__lt,omitempty"` - UHeightLte *[]int `form:"u_height__lte,omitempty" json:"u_height__lte,omitempty"` - UHeightN *[]int `form:"u_height__n,omitempty" json:"u_height__n,omitempty"` - - // Width Rail-to-rail width - Width *[]int `form:"width,omitempty" json:"width,omitempty"` - - // WidthN Rail-to-rail width - WidthN *[]int `form:"width__n,omitempty" json:"width__n,omitempty"` -} - -// DcimRacksBulkPartialUpdateJSONBody defines parameters for DcimRacksBulkPartialUpdate. -type DcimRacksBulkPartialUpdateJSONBody = []PatchedBulkWritableRackRequest - -// DcimRacksBulkUpdateJSONBody defines parameters for DcimRacksBulkUpdate. -type DcimRacksBulkUpdateJSONBody = []BulkWritableRackRequest - -// DcimRacksElevationListParams defines parameters for DcimRacksElevationList. -type DcimRacksElevationListParams struct { - AssetTag *[]string `form:"asset_tag,omitempty" json:"asset_tag,omitempty"` - AssetTagIc *[]string `form:"asset_tag__ic,omitempty" json:"asset_tag__ic,omitempty"` - AssetTagIe *[]string `form:"asset_tag__ie,omitempty" json:"asset_tag__ie,omitempty"` - AssetTagIew *[]string `form:"asset_tag__iew,omitempty" json:"asset_tag__iew,omitempty"` - AssetTagIre *[]string `form:"asset_tag__ire,omitempty" json:"asset_tag__ire,omitempty"` - AssetTagIsw *[]string `form:"asset_tag__isw,omitempty" json:"asset_tag__isw,omitempty"` - AssetTagN *[]string `form:"asset_tag__n,omitempty" json:"asset_tag__n,omitempty"` - AssetTagNic *[]string `form:"asset_tag__nic,omitempty" json:"asset_tag__nic,omitempty"` - AssetTagNie *[]string `form:"asset_tag__nie,omitempty" json:"asset_tag__nie,omitempty"` - AssetTagNiew *[]string `form:"asset_tag__niew,omitempty" json:"asset_tag__niew,omitempty"` - AssetTagNire *[]string `form:"asset_tag__nire,omitempty" json:"asset_tag__nire,omitempty"` - AssetTagNisw *[]string `form:"asset_tag__nisw,omitempty" json:"asset_tag__nisw,omitempty"` - AssetTagNre *[]string `form:"asset_tag__nre,omitempty" json:"asset_tag__nre,omitempty"` - AssetTagRe *[]string `form:"asset_tag__re,omitempty" json:"asset_tag__re,omitempty"` - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - DescUnits *bool `form:"desc_units,omitempty" json:"desc_units,omitempty"` - Devices *[]openapi_types.UUID `form:"devices,omitempty" json:"devices,omitempty"` - DevicesN *[]openapi_types.UUID `form:"devices__n,omitempty" json:"devices__n,omitempty"` - DisplayFullname *bool `form:"display_fullname,omitempty" json:"display_fullname,omitempty"` - Exclude *openapi_types.UUID `form:"exclude,omitempty" json:"exclude,omitempty"` - ExpandDevices *bool `form:"expand_devices,omitempty" json:"expand_devices,omitempty"` - Face *DcimRacksElevationListParamsFace `form:"face,omitempty" json:"face,omitempty"` - FacilityId *[]string `form:"facility_id,omitempty" json:"facility_id,omitempty"` - FacilityIdIc *[]string `form:"facility_id__ic,omitempty" json:"facility_id__ic,omitempty"` - FacilityIdIe *[]string `form:"facility_id__ie,omitempty" json:"facility_id__ie,omitempty"` - FacilityIdIew *[]string `form:"facility_id__iew,omitempty" json:"facility_id__iew,omitempty"` - FacilityIdIre *[]string `form:"facility_id__ire,omitempty" json:"facility_id__ire,omitempty"` - FacilityIdIsw *[]string `form:"facility_id__isw,omitempty" json:"facility_id__isw,omitempty"` - FacilityIdN *[]string `form:"facility_id__n,omitempty" json:"facility_id__n,omitempty"` - FacilityIdNic *[]string `form:"facility_id__nic,omitempty" json:"facility_id__nic,omitempty"` - FacilityIdNie *[]string `form:"facility_id__nie,omitempty" json:"facility_id__nie,omitempty"` - FacilityIdNiew *[]string `form:"facility_id__niew,omitempty" json:"facility_id__niew,omitempty"` - FacilityIdNire *[]string `form:"facility_id__nire,omitempty" json:"facility_id__nire,omitempty"` - FacilityIdNisw *[]string `form:"facility_id__nisw,omitempty" json:"facility_id__nisw,omitempty"` - FacilityIdNre *[]string `form:"facility_id__nre,omitempty" json:"facility_id__nre,omitempty"` - FacilityIdRe *[]string `form:"facility_id__re,omitempty" json:"facility_id__re,omitempty"` - - // Group Rack group (slug) - Group *[]openapi_types.UUID `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Rack group (slug) - GroupN *[]openapi_types.UUID `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Rack group (ID) - GroupId *[]openapi_types.UUID `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Rack group (ID) - GroupIdN *[]openapi_types.UUID `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - - // HasDevices Has devices - HasDevices *bool `form:"has_devices,omitempty" json:"has_devices,omitempty"` - - // HasPowerFeeds Has power feeds - HasPowerFeeds *bool `form:"has_power_feeds,omitempty" json:"has_power_feeds,omitempty"` - - // HasReservations Has reservations - HasReservations *bool `form:"has_reservations,omitempty" json:"has_reservations,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - IncludeImages *bool `form:"include_images,omitempty" json:"include_images,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - LegendWidth *int `form:"legend_width,omitempty" json:"legend_width,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - OuterDepth *[]int `form:"outer_depth,omitempty" json:"outer_depth,omitempty"` - OuterDepthGt *[]int `form:"outer_depth__gt,omitempty" json:"outer_depth__gt,omitempty"` - OuterDepthGte *[]int `form:"outer_depth__gte,omitempty" json:"outer_depth__gte,omitempty"` - OuterDepthLt *[]int `form:"outer_depth__lt,omitempty" json:"outer_depth__lt,omitempty"` - OuterDepthLte *[]int `form:"outer_depth__lte,omitempty" json:"outer_depth__lte,omitempty"` - OuterDepthN *[]int `form:"outer_depth__n,omitempty" json:"outer_depth__n,omitempty"` - OuterUnit *string `form:"outer_unit,omitempty" json:"outer_unit,omitempty"` - OuterUnitN *string `form:"outer_unit__n,omitempty" json:"outer_unit__n,omitempty"` - OuterWidth *[]int `form:"outer_width,omitempty" json:"outer_width,omitempty"` - OuterWidthGt *[]int `form:"outer_width__gt,omitempty" json:"outer_width__gt,omitempty"` - OuterWidthGte *[]int `form:"outer_width__gte,omitempty" json:"outer_width__gte,omitempty"` - OuterWidthLt *[]int `form:"outer_width__lt,omitempty" json:"outer_width__lt,omitempty"` - OuterWidthLte *[]int `form:"outer_width__lte,omitempty" json:"outer_width__lte,omitempty"` - OuterWidthN *[]int `form:"outer_width__n,omitempty" json:"outer_width__n,omitempty"` - - // PowerFeeds Power feeds (name or ID) - PowerFeeds *[]openapi_types.UUID `form:"power_feeds,omitempty" json:"power_feeds,omitempty"` - - // PowerFeedsN Power feeds (name or ID) - PowerFeedsN *[]openapi_types.UUID `form:"power_feeds__n,omitempty" json:"power_feeds__n,omitempty"` - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - Render *DcimRacksElevationListParamsRender `form:"render,omitempty" json:"render,omitempty"` - Reservations *[]openapi_types.UUID `form:"reservations,omitempty" json:"reservations,omitempty"` - ReservationsN *[]openapi_types.UUID `form:"reservations__n,omitempty" json:"reservations__n,omitempty"` - - // Role Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Role (slug) - RoleN *[]string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoleId Role (ID) - RoleId *[]openapi_types.UUID `form:"role_id,omitempty" json:"role_id,omitempty"` - - // RoleIdN Role (ID) - RoleIdN *[]openapi_types.UUID `form:"role_id__n,omitempty" json:"role_id__n,omitempty"` - Serial *string `form:"serial,omitempty" json:"serial,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` - UHeight *[]int `form:"u_height,omitempty" json:"u_height,omitempty"` - UHeightGt *[]int `form:"u_height__gt,omitempty" json:"u_height__gt,omitempty"` - UHeightGte *[]int `form:"u_height__gte,omitempty" json:"u_height__gte,omitempty"` - UHeightLt *[]int `form:"u_height__lt,omitempty" json:"u_height__lt,omitempty"` - UHeightLte *[]int `form:"u_height__lte,omitempty" json:"u_height__lte,omitempty"` - UHeightN *[]int `form:"u_height__n,omitempty" json:"u_height__n,omitempty"` - UnitHeight *int `form:"unit_height,omitempty" json:"unit_height,omitempty"` - UnitWidth *int `form:"unit_width,omitempty" json:"unit_width,omitempty"` - - // Width Rail-to-rail width - Width *[]int `form:"width,omitempty" json:"width,omitempty"` - - // WidthN Rail-to-rail width - WidthN *[]int `form:"width__n,omitempty" json:"width__n,omitempty"` -} - -// DcimRacksElevationListParamsFace defines parameters for DcimRacksElevationList. -type DcimRacksElevationListParamsFace string - -// DcimRacksElevationListParamsRender defines parameters for DcimRacksElevationList. -type DcimRacksElevationListParamsRender string - -// DcimRacksNotesListParams defines parameters for DcimRacksNotesList. -type DcimRacksNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimRearPortTemplatesBulkDestroyJSONBody defines parameters for DcimRearPortTemplatesBulkDestroy. -type DcimRearPortTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimRearPortTemplatesListParams defines parameters for DcimRearPortTemplatesList. -type DcimRearPortTemplatesListParams struct { - // Description Description - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - - // DescriptionIc Description - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - - // DescriptionIe Description - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - - // DescriptionIew Description - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - - // DescriptionIre Description - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - - // DescriptionIsw Description - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - - // DescriptionN Description - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - - // DescriptionNic Description - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - - // DescriptionNie Description - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - - // DescriptionNiew Description - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - - // DescriptionNire Description - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - - // DescriptionNisw Description - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - - // DescriptionNre Description - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - - // DescriptionRe Description - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // DeviceType Device type (slug or ID) - DeviceType *[]openapi_types.UUID `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device type (slug or ID) - DeviceTypeN *[]openapi_types.UUID `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DevicetypeId Device type (ID) - DevicetypeId *[]openapi_types.UUID `form:"devicetype_id,omitempty" json:"devicetype_id,omitempty"` - - // DevicetypeIdN Device type (ID) - DevicetypeIdN *[]openapi_types.UUID `form:"devicetype_id__n,omitempty" json:"devicetype_id__n,omitempty"` - - // FrontPortTemplates Front port templates - FrontPortTemplates *[]openapi_types.UUID `form:"front_port_templates,omitempty" json:"front_port_templates,omitempty"` - - // FrontPortTemplatesN Front port templates - FrontPortTemplatesN *[]openapi_types.UUID `form:"front_port_templates__n,omitempty" json:"front_port_templates__n,omitempty"` - - // HasFrontPortTemplates Has front port templates - HasFrontPortTemplates *bool `form:"has_front_port_templates,omitempty" json:"has_front_port_templates,omitempty"` - - // Id ID - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // IdIc ID - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe ID - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew ID - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre ID - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw ID - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN ID - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic ID - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie ID - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew ID - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire ID - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw ID - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre ID - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe ID - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Label Label - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - - // LabelIc Label - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - - // LabelIe Label - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - - // LabelIew Label - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - - // LabelIre Label - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - - // LabelIsw Label - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - - // LabelN Label - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - - // LabelNic Label - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - - // LabelNie Label - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - - // LabelNiew Label - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - - // LabelNire Label - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - - // LabelNisw Label - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - - // LabelNre Label - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - - // LabelRe Label - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Name Name - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc Name - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe Name - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew Name - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre Name - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw Name - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN Name - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic Name - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie Name - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew Name - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire Name - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw Name - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre Name - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe Name - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Positions *[]int `form:"positions,omitempty" json:"positions,omitempty"` - PositionsGt *[]int `form:"positions__gt,omitempty" json:"positions__gt,omitempty"` - PositionsGte *[]int `form:"positions__gte,omitempty" json:"positions__gte,omitempty"` - PositionsLt *[]int `form:"positions__lt,omitempty" json:"positions__lt,omitempty"` - PositionsLte *[]int `form:"positions__lte,omitempty" json:"positions__lte,omitempty"` - PositionsN *[]int `form:"positions__n,omitempty" json:"positions__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimRearPortTemplatesBulkPartialUpdateJSONBody defines parameters for DcimRearPortTemplatesBulkPartialUpdate. -type DcimRearPortTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritableRearPortTemplateRequest - -// DcimRearPortTemplatesBulkUpdateJSONBody defines parameters for DcimRearPortTemplatesBulkUpdate. -type DcimRearPortTemplatesBulkUpdateJSONBody = []BulkWritableRearPortTemplateRequest - -// DcimRearPortTemplatesNotesListParams defines parameters for DcimRearPortTemplatesNotesList. -type DcimRearPortTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimRearPortsBulkDestroyJSONBody defines parameters for DcimRearPortsBulkDestroy. -type DcimRearPortsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimRearPortsListParams defines parameters for DcimRearPortsList. -type DcimRearPortsListParams struct { - // Cable Cable - Cable *[]openapi_types.UUID `form:"cable,omitempty" json:"cable,omitempty"` - - // CableN Cable - CableN *[]openapi_types.UUID `form:"cable__n,omitempty" json:"cable__n,omitempty"` - Cabled *bool `form:"cabled,omitempty" json:"cabled,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - - // FrontPorts Front ports (name or ID) - FrontPorts *[]openapi_types.UUID `form:"front_ports,omitempty" json:"front_ports,omitempty"` - - // FrontPortsN Front ports (name or ID) - FrontPortsN *[]openapi_types.UUID `form:"front_ports__n,omitempty" json:"front_ports__n,omitempty"` - - // HasFrontPorts Has front ports - HasFrontPorts *bool `form:"has_front_ports,omitempty" json:"has_front_ports,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Label *[]string `form:"label,omitempty" json:"label,omitempty"` - LabelIc *[]string `form:"label__ic,omitempty" json:"label__ic,omitempty"` - LabelIe *[]string `form:"label__ie,omitempty" json:"label__ie,omitempty"` - LabelIew *[]string `form:"label__iew,omitempty" json:"label__iew,omitempty"` - LabelIre *[]string `form:"label__ire,omitempty" json:"label__ire,omitempty"` - LabelIsw *[]string `form:"label__isw,omitempty" json:"label__isw,omitempty"` - LabelN *[]string `form:"label__n,omitempty" json:"label__n,omitempty"` - LabelNic *[]string `form:"label__nic,omitempty" json:"label__nic,omitempty"` - LabelNie *[]string `form:"label__nie,omitempty" json:"label__nie,omitempty"` - LabelNiew *[]string `form:"label__niew,omitempty" json:"label__niew,omitempty"` - LabelNire *[]string `form:"label__nire,omitempty" json:"label__nire,omitempty"` - LabelNisw *[]string `form:"label__nisw,omitempty" json:"label__nisw,omitempty"` - LabelNre *[]string `form:"label__nre,omitempty" json:"label__nre,omitempty"` - LabelRe *[]string `form:"label__re,omitempty" json:"label__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Positions *[]int `form:"positions,omitempty" json:"positions,omitempty"` - PositionsGt *[]int `form:"positions__gt,omitempty" json:"positions__gt,omitempty"` - PositionsGte *[]int `form:"positions__gte,omitempty" json:"positions__gte,omitempty"` - PositionsLt *[]int `form:"positions__lt,omitempty" json:"positions__lt,omitempty"` - PositionsLte *[]int `form:"positions__lte,omitempty" json:"positions__lte,omitempty"` - PositionsN *[]int `form:"positions__n,omitempty" json:"positions__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - Type *string `form:"type,omitempty" json:"type,omitempty"` - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// DcimRearPortsBulkPartialUpdateJSONBody defines parameters for DcimRearPortsBulkPartialUpdate. -type DcimRearPortsBulkPartialUpdateJSONBody = []PatchedBulkWritableRearPortRequest - -// DcimRearPortsBulkUpdateJSONBody defines parameters for DcimRearPortsBulkUpdate. -type DcimRearPortsBulkUpdateJSONBody = []BulkWritableRearPortRequest - -// DcimRearPortsNotesListParams defines parameters for DcimRearPortsNotesList. -type DcimRearPortsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimRegionsBulkDestroyJSONBody defines parameters for DcimRegionsBulkDestroy. -type DcimRegionsBulkDestroyJSONBody = []BulkOperationRequest - -// DcimRegionsListParams defines parameters for DcimRegionsList. -type DcimRegionsListParams struct { - // Children Children (slug or ID) - Children *[]openapi_types.UUID `form:"children,omitempty" json:"children,omitempty"` - - // ChildrenN Children (slug or ID) - ChildrenN *[]openapi_types.UUID `form:"children__n,omitempty" json:"children__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // HasChildren Has children - HasChildren *bool `form:"has_children,omitempty" json:"has_children,omitempty"` - - // HasSites Has sites - HasSites *bool `form:"has_sites,omitempty" json:"has_sites,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Parent Parent region (slug) - Parent *[]string `form:"parent,omitempty" json:"parent,omitempty"` - - // ParentN Parent region (slug) - ParentN *[]string `form:"parent__n,omitempty" json:"parent__n,omitempty"` - - // ParentId Parent region (ID) - ParentId *[]openapi_types.UUID `form:"parent_id,omitempty" json:"parent_id,omitempty"` - - // ParentIdN Parent region (ID) - ParentIdN *[]openapi_types.UUID `form:"parent_id__n,omitempty" json:"parent_id__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Sites Sites (slug or ID) - Sites *[]openapi_types.UUID `form:"sites,omitempty" json:"sites,omitempty"` - - // SitesN Sites (slug or ID) - SitesN *[]openapi_types.UUID `form:"sites__n,omitempty" json:"sites__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// DcimRegionsBulkPartialUpdateJSONBody defines parameters for DcimRegionsBulkPartialUpdate. -type DcimRegionsBulkPartialUpdateJSONBody = []PatchedBulkWritableRegionRequest - -// DcimRegionsBulkUpdateJSONBody defines parameters for DcimRegionsBulkUpdate. -type DcimRegionsBulkUpdateJSONBody = []BulkWritableRegionRequest - -// DcimRegionsNotesListParams defines parameters for DcimRegionsNotesList. -type DcimRegionsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimSitesBulkDestroyJSONBody defines parameters for DcimSitesBulkDestroy. -type DcimSitesBulkDestroyJSONBody = []BulkOperationRequest - -// DcimSitesListParams defines parameters for DcimSitesList. -type DcimSitesListParams struct { - Asn *[]int `form:"asn,omitempty" json:"asn,omitempty"` - AsnGt *[]int `form:"asn__gt,omitempty" json:"asn__gt,omitempty"` - AsnGte *[]int `form:"asn__gte,omitempty" json:"asn__gte,omitempty"` - AsnLt *[]int `form:"asn__lt,omitempty" json:"asn__lt,omitempty"` - AsnLte *[]int `form:"asn__lte,omitempty" json:"asn__lte,omitempty"` - AsnN *[]int `form:"asn__n,omitempty" json:"asn__n,omitempty"` - CircuitTerminations *[]openapi_types.UUID `form:"circuit_terminations,omitempty" json:"circuit_terminations,omitempty"` - CircuitTerminationsN *[]openapi_types.UUID `form:"circuit_terminations__n,omitempty" json:"circuit_terminations__n,omitempty"` - Clusters *[]openapi_types.UUID `form:"clusters,omitempty" json:"clusters,omitempty"` - ClustersN *[]openapi_types.UUID `form:"clusters__n,omitempty" json:"clusters__n,omitempty"` - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - ContactEmail *[]string `form:"contact_email,omitempty" json:"contact_email,omitempty"` - ContactEmailIc *[]string `form:"contact_email__ic,omitempty" json:"contact_email__ic,omitempty"` - ContactEmailIe *[]string `form:"contact_email__ie,omitempty" json:"contact_email__ie,omitempty"` - ContactEmailIew *[]string `form:"contact_email__iew,omitempty" json:"contact_email__iew,omitempty"` - ContactEmailIre *[]string `form:"contact_email__ire,omitempty" json:"contact_email__ire,omitempty"` - ContactEmailIsw *[]string `form:"contact_email__isw,omitempty" json:"contact_email__isw,omitempty"` - ContactEmailN *[]string `form:"contact_email__n,omitempty" json:"contact_email__n,omitempty"` - ContactEmailNic *[]string `form:"contact_email__nic,omitempty" json:"contact_email__nic,omitempty"` - ContactEmailNie *[]string `form:"contact_email__nie,omitempty" json:"contact_email__nie,omitempty"` - ContactEmailNiew *[]string `form:"contact_email__niew,omitempty" json:"contact_email__niew,omitempty"` - ContactEmailNire *[]string `form:"contact_email__nire,omitempty" json:"contact_email__nire,omitempty"` - ContactEmailNisw *[]string `form:"contact_email__nisw,omitempty" json:"contact_email__nisw,omitempty"` - ContactEmailNre *[]string `form:"contact_email__nre,omitempty" json:"contact_email__nre,omitempty"` - ContactEmailRe *[]string `form:"contact_email__re,omitempty" json:"contact_email__re,omitempty"` - ContactName *[]string `form:"contact_name,omitempty" json:"contact_name,omitempty"` - ContactNameIc *[]string `form:"contact_name__ic,omitempty" json:"contact_name__ic,omitempty"` - ContactNameIe *[]string `form:"contact_name__ie,omitempty" json:"contact_name__ie,omitempty"` - ContactNameIew *[]string `form:"contact_name__iew,omitempty" json:"contact_name__iew,omitempty"` - ContactNameIre *[]string `form:"contact_name__ire,omitempty" json:"contact_name__ire,omitempty"` - ContactNameIsw *[]string `form:"contact_name__isw,omitempty" json:"contact_name__isw,omitempty"` - ContactNameN *[]string `form:"contact_name__n,omitempty" json:"contact_name__n,omitempty"` - ContactNameNic *[]string `form:"contact_name__nic,omitempty" json:"contact_name__nic,omitempty"` - ContactNameNie *[]string `form:"contact_name__nie,omitempty" json:"contact_name__nie,omitempty"` - ContactNameNiew *[]string `form:"contact_name__niew,omitempty" json:"contact_name__niew,omitempty"` - ContactNameNire *[]string `form:"contact_name__nire,omitempty" json:"contact_name__nire,omitempty"` - ContactNameNisw *[]string `form:"contact_name__nisw,omitempty" json:"contact_name__nisw,omitempty"` - ContactNameNre *[]string `form:"contact_name__nre,omitempty" json:"contact_name__nre,omitempty"` - ContactNameRe *[]string `form:"contact_name__re,omitempty" json:"contact_name__re,omitempty"` - ContactPhone *[]string `form:"contact_phone,omitempty" json:"contact_phone,omitempty"` - ContactPhoneIc *[]string `form:"contact_phone__ic,omitempty" json:"contact_phone__ic,omitempty"` - ContactPhoneIe *[]string `form:"contact_phone__ie,omitempty" json:"contact_phone__ie,omitempty"` - ContactPhoneIew *[]string `form:"contact_phone__iew,omitempty" json:"contact_phone__iew,omitempty"` - ContactPhoneIre *[]string `form:"contact_phone__ire,omitempty" json:"contact_phone__ire,omitempty"` - ContactPhoneIsw *[]string `form:"contact_phone__isw,omitempty" json:"contact_phone__isw,omitempty"` - ContactPhoneN *[]string `form:"contact_phone__n,omitempty" json:"contact_phone__n,omitempty"` - ContactPhoneNic *[]string `form:"contact_phone__nic,omitempty" json:"contact_phone__nic,omitempty"` - ContactPhoneNie *[]string `form:"contact_phone__nie,omitempty" json:"contact_phone__nie,omitempty"` - ContactPhoneNiew *[]string `form:"contact_phone__niew,omitempty" json:"contact_phone__niew,omitempty"` - ContactPhoneNire *[]string `form:"contact_phone__nire,omitempty" json:"contact_phone__nire,omitempty"` - ContactPhoneNisw *[]string `form:"contact_phone__nisw,omitempty" json:"contact_phone__nisw,omitempty"` - ContactPhoneNre *[]string `form:"contact_phone__nre,omitempty" json:"contact_phone__nre,omitempty"` - ContactPhoneRe *[]string `form:"contact_phone__re,omitempty" json:"contact_phone__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // Devices Devices (name or ID) - Devices *[]openapi_types.UUID `form:"devices,omitempty" json:"devices,omitempty"` - - // DevicesN Devices (name or ID) - DevicesN *[]openapi_types.UUID `form:"devices__n,omitempty" json:"devices__n,omitempty"` - Facility *[]string `form:"facility,omitempty" json:"facility,omitempty"` - FacilityIc *[]string `form:"facility__ic,omitempty" json:"facility__ic,omitempty"` - FacilityIe *[]string `form:"facility__ie,omitempty" json:"facility__ie,omitempty"` - FacilityIew *[]string `form:"facility__iew,omitempty" json:"facility__iew,omitempty"` - FacilityIre *[]string `form:"facility__ire,omitempty" json:"facility__ire,omitempty"` - FacilityIsw *[]string `form:"facility__isw,omitempty" json:"facility__isw,omitempty"` - FacilityN *[]string `form:"facility__n,omitempty" json:"facility__n,omitempty"` - FacilityNic *[]string `form:"facility__nic,omitempty" json:"facility__nic,omitempty"` - FacilityNie *[]string `form:"facility__nie,omitempty" json:"facility__nie,omitempty"` - FacilityNiew *[]string `form:"facility__niew,omitempty" json:"facility__niew,omitempty"` - FacilityNire *[]string `form:"facility__nire,omitempty" json:"facility__nire,omitempty"` - FacilityNisw *[]string `form:"facility__nisw,omitempty" json:"facility__nisw,omitempty"` - FacilityNre *[]string `form:"facility__nre,omitempty" json:"facility__nre,omitempty"` - FacilityRe *[]string `form:"facility__re,omitempty" json:"facility__re,omitempty"` - - // HasCircuitTerminations Has circuit terminations - HasCircuitTerminations *bool `form:"has_circuit_terminations,omitempty" json:"has_circuit_terminations,omitempty"` - - // HasClusters Has clusters - HasClusters *bool `form:"has_clusters,omitempty" json:"has_clusters,omitempty"` - - // HasDevices Has devices - HasDevices *bool `form:"has_devices,omitempty" json:"has_devices,omitempty"` - - // HasLocations Has locations - HasLocations *bool `form:"has_locations,omitempty" json:"has_locations,omitempty"` - - // HasPowerPanels Has power panels - HasPowerPanels *bool `form:"has_power_panels,omitempty" json:"has_power_panels,omitempty"` - - // HasPrefixes Has prefixes - HasPrefixes *bool `form:"has_prefixes,omitempty" json:"has_prefixes,omitempty"` - - // HasRackGroups Has rack groups - HasRackGroups *bool `form:"has_rack_groups,omitempty" json:"has_rack_groups,omitempty"` - - // HasRacks Has racks - HasRacks *bool `form:"has_racks,omitempty" json:"has_racks,omitempty"` - - // HasVlanGroups Has vlan groups - HasVlanGroups *bool `form:"has_vlan_groups,omitempty" json:"has_vlan_groups,omitempty"` - - // HasVlans Has vlans - HasVlans *bool `form:"has_vlans,omitempty" json:"has_vlans,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - Latitude *[]float32 `form:"latitude,omitempty" json:"latitude,omitempty"` - LatitudeGt *[]float32 `form:"latitude__gt,omitempty" json:"latitude__gt,omitempty"` - LatitudeGte *[]float32 `form:"latitude__gte,omitempty" json:"latitude__gte,omitempty"` - LatitudeLt *[]float32 `form:"latitude__lt,omitempty" json:"latitude__lt,omitempty"` - LatitudeLte *[]float32 `form:"latitude__lte,omitempty" json:"latitude__lte,omitempty"` - LatitudeN *[]float32 `form:"latitude__n,omitempty" json:"latitude__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Locations Locations within this Site (slugs or IDs) - Locations *[]openapi_types.UUID `form:"locations,omitempty" json:"locations,omitempty"` - - // LocationsN Locations within this Site (slugs or IDs) - LocationsN *[]openapi_types.UUID `form:"locations__n,omitempty" json:"locations__n,omitempty"` - Longitude *[]float32 `form:"longitude,omitempty" json:"longitude,omitempty"` - LongitudeGt *[]float32 `form:"longitude__gt,omitempty" json:"longitude__gt,omitempty"` - LongitudeGte *[]float32 `form:"longitude__gte,omitempty" json:"longitude__gte,omitempty"` - LongitudeLt *[]float32 `form:"longitude__lt,omitempty" json:"longitude__lt,omitempty"` - LongitudeLte *[]float32 `form:"longitude__lte,omitempty" json:"longitude__lte,omitempty"` - LongitudeN *[]float32 `form:"longitude__n,omitempty" json:"longitude__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PhysicalAddress *[]string `form:"physical_address,omitempty" json:"physical_address,omitempty"` - PhysicalAddressIc *[]string `form:"physical_address__ic,omitempty" json:"physical_address__ic,omitempty"` - PhysicalAddressIe *[]string `form:"physical_address__ie,omitempty" json:"physical_address__ie,omitempty"` - PhysicalAddressIew *[]string `form:"physical_address__iew,omitempty" json:"physical_address__iew,omitempty"` - PhysicalAddressIre *[]string `form:"physical_address__ire,omitempty" json:"physical_address__ire,omitempty"` - PhysicalAddressIsw *[]string `form:"physical_address__isw,omitempty" json:"physical_address__isw,omitempty"` - PhysicalAddressN *[]string `form:"physical_address__n,omitempty" json:"physical_address__n,omitempty"` - PhysicalAddressNic *[]string `form:"physical_address__nic,omitempty" json:"physical_address__nic,omitempty"` - PhysicalAddressNie *[]string `form:"physical_address__nie,omitempty" json:"physical_address__nie,omitempty"` - PhysicalAddressNiew *[]string `form:"physical_address__niew,omitempty" json:"physical_address__niew,omitempty"` - PhysicalAddressNire *[]string `form:"physical_address__nire,omitempty" json:"physical_address__nire,omitempty"` - PhysicalAddressNisw *[]string `form:"physical_address__nisw,omitempty" json:"physical_address__nisw,omitempty"` - PhysicalAddressNre *[]string `form:"physical_address__nre,omitempty" json:"physical_address__nre,omitempty"` - PhysicalAddressRe *[]string `form:"physical_address__re,omitempty" json:"physical_address__re,omitempty"` - - // PowerPanels Power panels (name or ID) - PowerPanels *[]openapi_types.UUID `form:"power_panels,omitempty" json:"power_panels,omitempty"` - - // PowerPanelsN Power panels (name or ID) - PowerPanelsN *[]openapi_types.UUID `form:"power_panels__n,omitempty" json:"power_panels__n,omitempty"` - Prefixes *[]openapi_types.UUID `form:"prefixes,omitempty" json:"prefixes,omitempty"` - PrefixesN *[]openapi_types.UUID `form:"prefixes__n,omitempty" json:"prefixes__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // RackGroups Rack groups (slug or ID) - RackGroups *[]openapi_types.UUID `form:"rack_groups,omitempty" json:"rack_groups,omitempty"` - - // RackGroupsN Rack groups (slug or ID) - RackGroupsN *[]openapi_types.UUID `form:"rack_groups__n,omitempty" json:"rack_groups__n,omitempty"` - Racks *[]openapi_types.UUID `form:"racks,omitempty" json:"racks,omitempty"` - RacksN *[]openapi_types.UUID `form:"racks__n,omitempty" json:"racks__n,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - ShippingAddress *[]string `form:"shipping_address,omitempty" json:"shipping_address,omitempty"` - ShippingAddressIc *[]string `form:"shipping_address__ic,omitempty" json:"shipping_address__ic,omitempty"` - ShippingAddressIe *[]string `form:"shipping_address__ie,omitempty" json:"shipping_address__ie,omitempty"` - ShippingAddressIew *[]string `form:"shipping_address__iew,omitempty" json:"shipping_address__iew,omitempty"` - ShippingAddressIre *[]string `form:"shipping_address__ire,omitempty" json:"shipping_address__ire,omitempty"` - ShippingAddressIsw *[]string `form:"shipping_address__isw,omitempty" json:"shipping_address__isw,omitempty"` - ShippingAddressN *[]string `form:"shipping_address__n,omitempty" json:"shipping_address__n,omitempty"` - ShippingAddressNic *[]string `form:"shipping_address__nic,omitempty" json:"shipping_address__nic,omitempty"` - ShippingAddressNie *[]string `form:"shipping_address__nie,omitempty" json:"shipping_address__nie,omitempty"` - ShippingAddressNiew *[]string `form:"shipping_address__niew,omitempty" json:"shipping_address__niew,omitempty"` - ShippingAddressNire *[]string `form:"shipping_address__nire,omitempty" json:"shipping_address__nire,omitempty"` - ShippingAddressNisw *[]string `form:"shipping_address__nisw,omitempty" json:"shipping_address__nisw,omitempty"` - ShippingAddressNre *[]string `form:"shipping_address__nre,omitempty" json:"shipping_address__nre,omitempty"` - ShippingAddressRe *[]string `form:"shipping_address__re,omitempty" json:"shipping_address__re,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // TimeZone Time zone - TimeZone *[]interface{} `form:"time_zone,omitempty" json:"time_zone,omitempty"` - - // TimeZoneN Time zone - TimeZoneN *[]interface{} `form:"time_zone__n,omitempty" json:"time_zone__n,omitempty"` - - // VlanGroups Vlan groups (slug or ID) - VlanGroups *[]openapi_types.UUID `form:"vlan_groups,omitempty" json:"vlan_groups,omitempty"` - - // VlanGroupsN Vlan groups (slug or ID) - VlanGroupsN *[]openapi_types.UUID `form:"vlan_groups__n,omitempty" json:"vlan_groups__n,omitempty"` - Vlans *[]openapi_types.UUID `form:"vlans,omitempty" json:"vlans,omitempty"` - VlansN *[]openapi_types.UUID `form:"vlans__n,omitempty" json:"vlans__n,omitempty"` -} - -// DcimSitesBulkPartialUpdateJSONBody defines parameters for DcimSitesBulkPartialUpdate. -type DcimSitesBulkPartialUpdateJSONBody = []PatchedBulkWritableSiteRequest - -// DcimSitesBulkUpdateJSONBody defines parameters for DcimSitesBulkUpdate. -type DcimSitesBulkUpdateJSONBody = []BulkWritableSiteRequest - -// DcimSitesNotesListParams defines parameters for DcimSitesNotesList. -type DcimSitesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// DcimVirtualChassisBulkDestroyJSONBody defines parameters for DcimVirtualChassisBulkDestroy. -type DcimVirtualChassisBulkDestroyJSONBody = []BulkOperationRequest - -// DcimVirtualChassisListParams defines parameters for DcimVirtualChassisList. -type DcimVirtualChassisListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Domain *[]string `form:"domain,omitempty" json:"domain,omitempty"` - DomainIc *[]string `form:"domain__ic,omitempty" json:"domain__ic,omitempty"` - DomainIe *[]string `form:"domain__ie,omitempty" json:"domain__ie,omitempty"` - DomainIew *[]string `form:"domain__iew,omitempty" json:"domain__iew,omitempty"` - DomainIre *[]string `form:"domain__ire,omitempty" json:"domain__ire,omitempty"` - DomainIsw *[]string `form:"domain__isw,omitempty" json:"domain__isw,omitempty"` - DomainN *[]string `form:"domain__n,omitempty" json:"domain__n,omitempty"` - DomainNic *[]string `form:"domain__nic,omitempty" json:"domain__nic,omitempty"` - DomainNie *[]string `form:"domain__nie,omitempty" json:"domain__nie,omitempty"` - DomainNiew *[]string `form:"domain__niew,omitempty" json:"domain__niew,omitempty"` - DomainNire *[]string `form:"domain__nire,omitempty" json:"domain__nire,omitempty"` - DomainNisw *[]string `form:"domain__nisw,omitempty" json:"domain__nisw,omitempty"` - DomainNre *[]string `form:"domain__nre,omitempty" json:"domain__nre,omitempty"` - DomainRe *[]string `form:"domain__re,omitempty" json:"domain__re,omitempty"` - - // HasMembers Has device members - HasMembers *bool `form:"has_members,omitempty" json:"has_members,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Master Master (name) - Master *[]string `form:"master,omitempty" json:"master,omitempty"` - - // MasterN Master (name) - MasterN *[]string `form:"master__n,omitempty" json:"master__n,omitempty"` - - // MasterId Master (ID) - MasterId *[]openapi_types.UUID `form:"master_id,omitempty" json:"master_id,omitempty"` - - // MasterIdN Master (ID) - MasterIdN *[]openapi_types.UUID `form:"master_id__n,omitempty" json:"master_id__n,omitempty"` - - // Members Device members (name or ID) - Members *[]openapi_types.UUID `form:"members,omitempty" json:"members,omitempty"` - - // MembersN Device members (name or ID) - MembersN *[]openapi_types.UUID `form:"members__n,omitempty" json:"members__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site name (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug) - Tenant *[]string `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug) - TenantN *[]string `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantId Tenant (ID) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` -} - -// DcimVirtualChassisBulkPartialUpdateJSONBody defines parameters for DcimVirtualChassisBulkPartialUpdate. -type DcimVirtualChassisBulkPartialUpdateJSONBody = []PatchedBulkWritableVirtualChassisRequest - -// DcimVirtualChassisBulkUpdateJSONBody defines parameters for DcimVirtualChassisBulkUpdate. -type DcimVirtualChassisBulkUpdateJSONBody = []BulkWritableVirtualChassisRequest - -// DcimVirtualChassisNotesListParams defines parameters for DcimVirtualChassisNotesList. -type DcimVirtualChassisNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasComputedFieldsBulkDestroyJSONBody defines parameters for ExtrasComputedFieldsBulkDestroy. -type ExtrasComputedFieldsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasComputedFieldsListParams defines parameters for ExtrasComputedFieldsList. -type ExtrasComputedFieldsListParams struct { - ContentType *string `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *string `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - FallbackValue *[]string `form:"fallback_value,omitempty" json:"fallback_value,omitempty"` - FallbackValueIc *[]string `form:"fallback_value__ic,omitempty" json:"fallback_value__ic,omitempty"` - FallbackValueIe *[]string `form:"fallback_value__ie,omitempty" json:"fallback_value__ie,omitempty"` - FallbackValueIew *[]string `form:"fallback_value__iew,omitempty" json:"fallback_value__iew,omitempty"` - FallbackValueIre *[]string `form:"fallback_value__ire,omitempty" json:"fallback_value__ire,omitempty"` - FallbackValueIsw *[]string `form:"fallback_value__isw,omitempty" json:"fallback_value__isw,omitempty"` - FallbackValueN *[]string `form:"fallback_value__n,omitempty" json:"fallback_value__n,omitempty"` - FallbackValueNic *[]string `form:"fallback_value__nic,omitempty" json:"fallback_value__nic,omitempty"` - FallbackValueNie *[]string `form:"fallback_value__nie,omitempty" json:"fallback_value__nie,omitempty"` - FallbackValueNiew *[]string `form:"fallback_value__niew,omitempty" json:"fallback_value__niew,omitempty"` - FallbackValueNire *[]string `form:"fallback_value__nire,omitempty" json:"fallback_value__nire,omitempty"` - FallbackValueNisw *[]string `form:"fallback_value__nisw,omitempty" json:"fallback_value__nisw,omitempty"` - FallbackValueNre *[]string `form:"fallback_value__nre,omitempty" json:"fallback_value__nre,omitempty"` - FallbackValueRe *[]string `form:"fallback_value__re,omitempty" json:"fallback_value__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Template *[]string `form:"template,omitempty" json:"template,omitempty"` - TemplateIc *[]string `form:"template__ic,omitempty" json:"template__ic,omitempty"` - TemplateIe *[]string `form:"template__ie,omitempty" json:"template__ie,omitempty"` - TemplateIew *[]string `form:"template__iew,omitempty" json:"template__iew,omitempty"` - TemplateIre *[]string `form:"template__ire,omitempty" json:"template__ire,omitempty"` - TemplateIsw *[]string `form:"template__isw,omitempty" json:"template__isw,omitempty"` - TemplateN *[]string `form:"template__n,omitempty" json:"template__n,omitempty"` - TemplateNic *[]string `form:"template__nic,omitempty" json:"template__nic,omitempty"` - TemplateNie *[]string `form:"template__nie,omitempty" json:"template__nie,omitempty"` - TemplateNiew *[]string `form:"template__niew,omitempty" json:"template__niew,omitempty"` - TemplateNire *[]string `form:"template__nire,omitempty" json:"template__nire,omitempty"` - TemplateNisw *[]string `form:"template__nisw,omitempty" json:"template__nisw,omitempty"` - TemplateNre *[]string `form:"template__nre,omitempty" json:"template__nre,omitempty"` - TemplateRe *[]string `form:"template__re,omitempty" json:"template__re,omitempty"` - Weight *[]int `form:"weight,omitempty" json:"weight,omitempty"` - WeightGt *[]int `form:"weight__gt,omitempty" json:"weight__gt,omitempty"` - WeightGte *[]int `form:"weight__gte,omitempty" json:"weight__gte,omitempty"` - WeightLt *[]int `form:"weight__lt,omitempty" json:"weight__lt,omitempty"` - WeightLte *[]int `form:"weight__lte,omitempty" json:"weight__lte,omitempty"` - WeightN *[]int `form:"weight__n,omitempty" json:"weight__n,omitempty"` -} - -// ExtrasComputedFieldsBulkPartialUpdateJSONBody defines parameters for ExtrasComputedFieldsBulkPartialUpdate. -type ExtrasComputedFieldsBulkPartialUpdateJSONBody = []PatchedBulkWritableComputedFieldRequest - -// ExtrasComputedFieldsBulkUpdateJSONBody defines parameters for ExtrasComputedFieldsBulkUpdate. -type ExtrasComputedFieldsBulkUpdateJSONBody = []BulkWritableComputedFieldRequest - -// ExtrasComputedFieldsNotesListParams defines parameters for ExtrasComputedFieldsNotesList. -type ExtrasComputedFieldsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasConfigContextSchemasBulkDestroyJSONBody defines parameters for ExtrasConfigContextSchemasBulkDestroy. -type ExtrasConfigContextSchemasBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasConfigContextSchemasListParams defines parameters for ExtrasConfigContextSchemasList. -type ExtrasConfigContextSchemasListParams struct { - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - OwnerContentType *string `form:"owner_content_type,omitempty" json:"owner_content_type,omitempty"` - OwnerContentTypeN *string `form:"owner_content_type__n,omitempty" json:"owner_content_type__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// ExtrasConfigContextSchemasBulkPartialUpdateJSONBody defines parameters for ExtrasConfigContextSchemasBulkPartialUpdate. -type ExtrasConfigContextSchemasBulkPartialUpdateJSONBody = []PatchedBulkWritableConfigContextSchemaRequest - -// ExtrasConfigContextSchemasBulkUpdateJSONBody defines parameters for ExtrasConfigContextSchemasBulkUpdate. -type ExtrasConfigContextSchemasBulkUpdateJSONBody = []BulkWritableConfigContextSchemaRequest - -// ExtrasConfigContextSchemasNotesListParams defines parameters for ExtrasConfigContextSchemasNotesList. -type ExtrasConfigContextSchemasNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasConfigContextsBulkDestroyJSONBody defines parameters for ExtrasConfigContextsBulkDestroy. -type ExtrasConfigContextsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasConfigContextsListParams defines parameters for ExtrasConfigContextsList. -type ExtrasConfigContextsListParams struct { - // ClusterGroup Cluster group (slug) - ClusterGroup *[]string `form:"cluster_group,omitempty" json:"cluster_group,omitempty"` - - // ClusterGroupN Cluster group (slug) - ClusterGroupN *[]string `form:"cluster_group__n,omitempty" json:"cluster_group__n,omitempty"` - - // ClusterGroupId Cluster group - ClusterGroupId *[]openapi_types.UUID `form:"cluster_group_id,omitempty" json:"cluster_group_id,omitempty"` - - // ClusterGroupIdN Cluster group - ClusterGroupIdN *[]openapi_types.UUID `form:"cluster_group_id__n,omitempty" json:"cluster_group_id__n,omitempty"` - - // ClusterId Cluster - ClusterId *[]openapi_types.UUID `form:"cluster_id,omitempty" json:"cluster_id,omitempty"` - - // ClusterIdN Cluster - ClusterIdN *[]openapi_types.UUID `form:"cluster_id__n,omitempty" json:"cluster_id__n,omitempty"` - - // DeviceRedundancyGroup Device Redundancy Group (slug or PK) - DeviceRedundancyGroup *[]openapi_types.UUID `form:"device_redundancy_group,omitempty" json:"device_redundancy_group,omitempty"` - - // DeviceRedundancyGroupN Device Redundancy Group (slug or PK) - DeviceRedundancyGroupN *[]openapi_types.UUID `form:"device_redundancy_group__n,omitempty" json:"device_redundancy_group__n,omitempty"` - - // DeviceType Device Type (slug) - DeviceType *[]string `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device Type (slug) - DeviceTypeN *[]string `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DeviceTypeId Device Type - DeviceTypeId *[]openapi_types.UUID `form:"device_type_id,omitempty" json:"device_type_id,omitempty"` - - // DeviceTypeIdN Device Type - DeviceTypeIdN *[]openapi_types.UUID `form:"device_type_id__n,omitempty" json:"device_type_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - IsActive *bool `form:"is_active,omitempty" json:"is_active,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug) - Location *[]string `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug) - LocationN *[]string `form:"location__n,omitempty" json:"location__n,omitempty"` - - // LocationId Location (ID) - LocationId *[]openapi_types.UUID `form:"location_id,omitempty" json:"location_id,omitempty"` - - // LocationIdN Location (ID) - LocationIdN *[]openapi_types.UUID `form:"location_id__n,omitempty" json:"location_id__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - OwnerContentType *string `form:"owner_content_type,omitempty" json:"owner_content_type,omitempty"` - OwnerContentTypeN *string `form:"owner_content_type__n,omitempty" json:"owner_content_type__n,omitempty"` - OwnerObjectId *[]openapi_types.UUID `form:"owner_object_id,omitempty" json:"owner_object_id,omitempty"` - OwnerObjectIdIc *[]openapi_types.UUID `form:"owner_object_id__ic,omitempty" json:"owner_object_id__ic,omitempty"` - OwnerObjectIdIe *[]openapi_types.UUID `form:"owner_object_id__ie,omitempty" json:"owner_object_id__ie,omitempty"` - OwnerObjectIdIew *[]openapi_types.UUID `form:"owner_object_id__iew,omitempty" json:"owner_object_id__iew,omitempty"` - OwnerObjectIdIre *[]openapi_types.UUID `form:"owner_object_id__ire,omitempty" json:"owner_object_id__ire,omitempty"` - OwnerObjectIdIsw *[]openapi_types.UUID `form:"owner_object_id__isw,omitempty" json:"owner_object_id__isw,omitempty"` - OwnerObjectIdN *[]openapi_types.UUID `form:"owner_object_id__n,omitempty" json:"owner_object_id__n,omitempty"` - OwnerObjectIdNic *[]openapi_types.UUID `form:"owner_object_id__nic,omitempty" json:"owner_object_id__nic,omitempty"` - OwnerObjectIdNie *[]openapi_types.UUID `form:"owner_object_id__nie,omitempty" json:"owner_object_id__nie,omitempty"` - OwnerObjectIdNiew *[]openapi_types.UUID `form:"owner_object_id__niew,omitempty" json:"owner_object_id__niew,omitempty"` - OwnerObjectIdNire *[]openapi_types.UUID `form:"owner_object_id__nire,omitempty" json:"owner_object_id__nire,omitempty"` - OwnerObjectIdNisw *[]openapi_types.UUID `form:"owner_object_id__nisw,omitempty" json:"owner_object_id__nisw,omitempty"` - OwnerObjectIdNre *[]openapi_types.UUID `form:"owner_object_id__nre,omitempty" json:"owner_object_id__nre,omitempty"` - OwnerObjectIdRe *[]openapi_types.UUID `form:"owner_object_id__re,omitempty" json:"owner_object_id__re,omitempty"` - - // Platform Platform (slug) - Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformN Platform (slug) - PlatformN *[]string `form:"platform__n,omitempty" json:"platform__n,omitempty"` - - // PlatformId Platform - PlatformId *[]openapi_types.UUID `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // PlatformIdN Platform - PlatformIdN *[]openapi_types.UUID `form:"platform_id__n,omitempty" json:"platform_id__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *[]string `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *[]string `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Role Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Role (slug) - RoleN *[]string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoleId Role - RoleId *[]openapi_types.UUID `form:"role_id,omitempty" json:"role_id,omitempty"` - - // RoleIdN Role - RoleIdN *[]openapi_types.UUID `form:"role_id__n,omitempty" json:"role_id__n,omitempty"` - - // Schema Schema (slug or PK) - Schema *[]openapi_types.UUID `form:"schema,omitempty" json:"schema,omitempty"` - - // SchemaN Schema (slug or PK) - SchemaN *[]openapi_types.UUID `form:"schema__n,omitempty" json:"schema__n,omitempty"` - - // Site Site (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug) - SiteN *[]string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - - // Tag Tag (slug) - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - - // TagN Tag (slug) - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug) - Tenant *[]string `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug) - TenantN *[]string `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant group (slug) - TenantGroup *[]string `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant group (slug) - TenantGroupN *[]string `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant group - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant group - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` -} - -// ExtrasConfigContextsBulkPartialUpdateJSONBody defines parameters for ExtrasConfigContextsBulkPartialUpdate. -type ExtrasConfigContextsBulkPartialUpdateJSONBody = []PatchedBulkWritableConfigContextRequest - -// ExtrasConfigContextsBulkUpdateJSONBody defines parameters for ExtrasConfigContextsBulkUpdate. -type ExtrasConfigContextsBulkUpdateJSONBody = []BulkWritableConfigContextRequest - -// ExtrasConfigContextsNotesListParams defines parameters for ExtrasConfigContextsNotesList. -type ExtrasConfigContextsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasContentTypesListParams defines parameters for ExtrasContentTypesList. -type ExtrasContentTypesListParams struct { - AppLabel *[]string `form:"app_label,omitempty" json:"app_label,omitempty"` - AppLabelIc *[]string `form:"app_label__ic,omitempty" json:"app_label__ic,omitempty"` - AppLabelIe *[]string `form:"app_label__ie,omitempty" json:"app_label__ie,omitempty"` - AppLabelIew *[]string `form:"app_label__iew,omitempty" json:"app_label__iew,omitempty"` - AppLabelIre *[]string `form:"app_label__ire,omitempty" json:"app_label__ire,omitempty"` - AppLabelIsw *[]string `form:"app_label__isw,omitempty" json:"app_label__isw,omitempty"` - AppLabelN *[]string `form:"app_label__n,omitempty" json:"app_label__n,omitempty"` - AppLabelNic *[]string `form:"app_label__nic,omitempty" json:"app_label__nic,omitempty"` - AppLabelNie *[]string `form:"app_label__nie,omitempty" json:"app_label__nie,omitempty"` - AppLabelNiew *[]string `form:"app_label__niew,omitempty" json:"app_label__niew,omitempty"` - AppLabelNire *[]string `form:"app_label__nire,omitempty" json:"app_label__nire,omitempty"` - AppLabelNisw *[]string `form:"app_label__nisw,omitempty" json:"app_label__nisw,omitempty"` - AppLabelNre *[]string `form:"app_label__nre,omitempty" json:"app_label__nre,omitempty"` - AppLabelRe *[]string `form:"app_label__re,omitempty" json:"app_label__re,omitempty"` - Id *[]int `form:"id,omitempty" json:"id,omitempty"` - IdGt *[]int `form:"id__gt,omitempty" json:"id__gt,omitempty"` - IdGte *[]int `form:"id__gte,omitempty" json:"id__gte,omitempty"` - IdLt *[]int `form:"id__lt,omitempty" json:"id__lt,omitempty"` - IdLte *[]int `form:"id__lte,omitempty" json:"id__lte,omitempty"` - IdN *[]int `form:"id__n,omitempty" json:"id__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Model *[]string `form:"model,omitempty" json:"model,omitempty"` - ModelIc *[]string `form:"model__ic,omitempty" json:"model__ic,omitempty"` - ModelIe *[]string `form:"model__ie,omitempty" json:"model__ie,omitempty"` - ModelIew *[]string `form:"model__iew,omitempty" json:"model__iew,omitempty"` - ModelIre *[]string `form:"model__ire,omitempty" json:"model__ire,omitempty"` - ModelIsw *[]string `form:"model__isw,omitempty" json:"model__isw,omitempty"` - ModelN *[]string `form:"model__n,omitempty" json:"model__n,omitempty"` - ModelNic *[]string `form:"model__nic,omitempty" json:"model__nic,omitempty"` - ModelNie *[]string `form:"model__nie,omitempty" json:"model__nie,omitempty"` - ModelNiew *[]string `form:"model__niew,omitempty" json:"model__niew,omitempty"` - ModelNire *[]string `form:"model__nire,omitempty" json:"model__nire,omitempty"` - ModelNisw *[]string `form:"model__nisw,omitempty" json:"model__nisw,omitempty"` - ModelNre *[]string `form:"model__nre,omitempty" json:"model__nre,omitempty"` - ModelRe *[]string `form:"model__re,omitempty" json:"model__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// ExtrasCustomFieldChoicesBulkDestroyJSONBody defines parameters for ExtrasCustomFieldChoicesBulkDestroy. -type ExtrasCustomFieldChoicesBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasCustomFieldChoicesListParams defines parameters for ExtrasCustomFieldChoicesList. -type ExtrasCustomFieldChoicesListParams struct { - // Field Field (name) - Field *[]string `form:"field,omitempty" json:"field,omitempty"` - - // FieldN Field (name) - FieldN *[]string `form:"field__n,omitempty" json:"field__n,omitempty"` - - // FieldId Field - FieldId *[]openapi_types.UUID `form:"field_id,omitempty" json:"field_id,omitempty"` - - // FieldIdN Field - FieldIdN *[]openapi_types.UUID `form:"field_id__n,omitempty" json:"field_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Value *[]string `form:"value,omitempty" json:"value,omitempty"` - ValueIc *[]string `form:"value__ic,omitempty" json:"value__ic,omitempty"` - ValueIe *[]string `form:"value__ie,omitempty" json:"value__ie,omitempty"` - ValueIew *[]string `form:"value__iew,omitempty" json:"value__iew,omitempty"` - ValueIre *[]string `form:"value__ire,omitempty" json:"value__ire,omitempty"` - ValueIsw *[]string `form:"value__isw,omitempty" json:"value__isw,omitempty"` - ValueN *[]string `form:"value__n,omitempty" json:"value__n,omitempty"` - ValueNic *[]string `form:"value__nic,omitempty" json:"value__nic,omitempty"` - ValueNie *[]string `form:"value__nie,omitempty" json:"value__nie,omitempty"` - ValueNiew *[]string `form:"value__niew,omitempty" json:"value__niew,omitempty"` - ValueNire *[]string `form:"value__nire,omitempty" json:"value__nire,omitempty"` - ValueNisw *[]string `form:"value__nisw,omitempty" json:"value__nisw,omitempty"` - ValueNre *[]string `form:"value__nre,omitempty" json:"value__nre,omitempty"` - ValueRe *[]string `form:"value__re,omitempty" json:"value__re,omitempty"` - Weight *[]int `form:"weight,omitempty" json:"weight,omitempty"` - WeightGt *[]int `form:"weight__gt,omitempty" json:"weight__gt,omitempty"` - WeightGte *[]int `form:"weight__gte,omitempty" json:"weight__gte,omitempty"` - WeightLt *[]int `form:"weight__lt,omitempty" json:"weight__lt,omitempty"` - WeightLte *[]int `form:"weight__lte,omitempty" json:"weight__lte,omitempty"` - WeightN *[]int `form:"weight__n,omitempty" json:"weight__n,omitempty"` -} - -// ExtrasCustomFieldChoicesBulkPartialUpdateJSONBody defines parameters for ExtrasCustomFieldChoicesBulkPartialUpdate. -type ExtrasCustomFieldChoicesBulkPartialUpdateJSONBody = []PatchedBulkWritableCustomFieldChoiceRequest - -// ExtrasCustomFieldChoicesBulkUpdateJSONBody defines parameters for ExtrasCustomFieldChoicesBulkUpdate. -type ExtrasCustomFieldChoicesBulkUpdateJSONBody = []BulkWritableCustomFieldChoiceRequest - -// ExtrasCustomFieldsBulkDestroyJSONBody defines parameters for ExtrasCustomFieldsBulkDestroy. -type ExtrasCustomFieldsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasCustomFieldsListParams defines parameters for ExtrasCustomFieldsList. -type ExtrasCustomFieldsListParams struct { - ContentTypes *[]int `form:"content_types,omitempty" json:"content_types,omitempty"` - ContentTypesN *[]int `form:"content_types__n,omitempty" json:"content_types__n,omitempty"` - - // FilterLogic Loose matches any instance of a given string; Exact matches the entire field. - FilterLogic *string `form:"filter_logic,omitempty" json:"filter_logic,omitempty"` - - // FilterLogicN Loose matches any instance of a given string; Exact matches the entire field. - FilterLogicN *string `form:"filter_logic__n,omitempty" json:"filter_logic__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Required *bool `form:"required,omitempty" json:"required,omitempty"` - Weight *[]int `form:"weight,omitempty" json:"weight,omitempty"` - WeightGt *[]int `form:"weight__gt,omitempty" json:"weight__gt,omitempty"` - WeightGte *[]int `form:"weight__gte,omitempty" json:"weight__gte,omitempty"` - WeightLt *[]int `form:"weight__lt,omitempty" json:"weight__lt,omitempty"` - WeightLte *[]int `form:"weight__lte,omitempty" json:"weight__lte,omitempty"` - WeightN *[]int `form:"weight__n,omitempty" json:"weight__n,omitempty"` -} - -// ExtrasCustomFieldsBulkPartialUpdateJSONBody defines parameters for ExtrasCustomFieldsBulkPartialUpdate. -type ExtrasCustomFieldsBulkPartialUpdateJSONBody = []CustomFieldSerializerVersion12Request - -// ExtrasCustomFieldsBulkUpdateJSONBody defines parameters for ExtrasCustomFieldsBulkUpdate. -type ExtrasCustomFieldsBulkUpdateJSONBody = []CustomFieldSerializerVersion12Request - -// ExtrasCustomFieldsNotesListParams defines parameters for ExtrasCustomFieldsNotesList. -type ExtrasCustomFieldsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasCustomLinksBulkDestroyJSONBody defines parameters for ExtrasCustomLinksBulkDestroy. -type ExtrasCustomLinksBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasCustomLinksListParams defines parameters for ExtrasCustomLinksList. -type ExtrasCustomLinksListParams struct { - // ButtonClass The class of the first link in a group will be used for the dropdown button - ButtonClass *string `form:"button_class,omitempty" json:"button_class,omitempty"` - - // ButtonClassN The class of the first link in a group will be used for the dropdown button - ButtonClassN *string `form:"button_class__n,omitempty" json:"button_class__n,omitempty"` - ContentType *string `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *string `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - GroupName *[]string `form:"group_name,omitempty" json:"group_name,omitempty"` - GroupNameIc *[]string `form:"group_name__ic,omitempty" json:"group_name__ic,omitempty"` - GroupNameIe *[]string `form:"group_name__ie,omitempty" json:"group_name__ie,omitempty"` - GroupNameIew *[]string `form:"group_name__iew,omitempty" json:"group_name__iew,omitempty"` - GroupNameIre *[]string `form:"group_name__ire,omitempty" json:"group_name__ire,omitempty"` - GroupNameIsw *[]string `form:"group_name__isw,omitempty" json:"group_name__isw,omitempty"` - GroupNameN *[]string `form:"group_name__n,omitempty" json:"group_name__n,omitempty"` - GroupNameNic *[]string `form:"group_name__nic,omitempty" json:"group_name__nic,omitempty"` - GroupNameNie *[]string `form:"group_name__nie,omitempty" json:"group_name__nie,omitempty"` - GroupNameNiew *[]string `form:"group_name__niew,omitempty" json:"group_name__niew,omitempty"` - GroupNameNire *[]string `form:"group_name__nire,omitempty" json:"group_name__nire,omitempty"` - GroupNameNisw *[]string `form:"group_name__nisw,omitempty" json:"group_name__nisw,omitempty"` - GroupNameNre *[]string `form:"group_name__nre,omitempty" json:"group_name__nre,omitempty"` - GroupNameRe *[]string `form:"group_name__re,omitempty" json:"group_name__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - NewWindow *bool `form:"new_window,omitempty" json:"new_window,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - TargetUrl *[]string `form:"target_url,omitempty" json:"target_url,omitempty"` - TargetUrlIc *[]string `form:"target_url__ic,omitempty" json:"target_url__ic,omitempty"` - TargetUrlIe *[]string `form:"target_url__ie,omitempty" json:"target_url__ie,omitempty"` - TargetUrlIew *[]string `form:"target_url__iew,omitempty" json:"target_url__iew,omitempty"` - TargetUrlIre *[]string `form:"target_url__ire,omitempty" json:"target_url__ire,omitempty"` - TargetUrlIsw *[]string `form:"target_url__isw,omitempty" json:"target_url__isw,omitempty"` - TargetUrlN *[]string `form:"target_url__n,omitempty" json:"target_url__n,omitempty"` - TargetUrlNic *[]string `form:"target_url__nic,omitempty" json:"target_url__nic,omitempty"` - TargetUrlNie *[]string `form:"target_url__nie,omitempty" json:"target_url__nie,omitempty"` - TargetUrlNiew *[]string `form:"target_url__niew,omitempty" json:"target_url__niew,omitempty"` - TargetUrlNire *[]string `form:"target_url__nire,omitempty" json:"target_url__nire,omitempty"` - TargetUrlNisw *[]string `form:"target_url__nisw,omitempty" json:"target_url__nisw,omitempty"` - TargetUrlNre *[]string `form:"target_url__nre,omitempty" json:"target_url__nre,omitempty"` - TargetUrlRe *[]string `form:"target_url__re,omitempty" json:"target_url__re,omitempty"` - Text *[]string `form:"text,omitempty" json:"text,omitempty"` - TextIc *[]string `form:"text__ic,omitempty" json:"text__ic,omitempty"` - TextIe *[]string `form:"text__ie,omitempty" json:"text__ie,omitempty"` - TextIew *[]string `form:"text__iew,omitempty" json:"text__iew,omitempty"` - TextIre *[]string `form:"text__ire,omitempty" json:"text__ire,omitempty"` - TextIsw *[]string `form:"text__isw,omitempty" json:"text__isw,omitempty"` - TextN *[]string `form:"text__n,omitempty" json:"text__n,omitempty"` - TextNic *[]string `form:"text__nic,omitempty" json:"text__nic,omitempty"` - TextNie *[]string `form:"text__nie,omitempty" json:"text__nie,omitempty"` - TextNiew *[]string `form:"text__niew,omitempty" json:"text__niew,omitempty"` - TextNire *[]string `form:"text__nire,omitempty" json:"text__nire,omitempty"` - TextNisw *[]string `form:"text__nisw,omitempty" json:"text__nisw,omitempty"` - TextNre *[]string `form:"text__nre,omitempty" json:"text__nre,omitempty"` - TextRe *[]string `form:"text__re,omitempty" json:"text__re,omitempty"` - Weight *[]int `form:"weight,omitempty" json:"weight,omitempty"` - WeightGt *[]int `form:"weight__gt,omitempty" json:"weight__gt,omitempty"` - WeightGte *[]int `form:"weight__gte,omitempty" json:"weight__gte,omitempty"` - WeightLt *[]int `form:"weight__lt,omitempty" json:"weight__lt,omitempty"` - WeightLte *[]int `form:"weight__lte,omitempty" json:"weight__lte,omitempty"` - WeightN *[]int `form:"weight__n,omitempty" json:"weight__n,omitempty"` -} - -// ExtrasCustomLinksBulkPartialUpdateJSONBody defines parameters for ExtrasCustomLinksBulkPartialUpdate. -type ExtrasCustomLinksBulkPartialUpdateJSONBody = []PatchedBulkWritableCustomLinkRequest - -// ExtrasCustomLinksBulkUpdateJSONBody defines parameters for ExtrasCustomLinksBulkUpdate. -type ExtrasCustomLinksBulkUpdateJSONBody = []BulkWritableCustomLinkRequest - -// ExtrasCustomLinksNotesListParams defines parameters for ExtrasCustomLinksNotesList. -type ExtrasCustomLinksNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasDynamicGroupMembershipsBulkDestroyJSONBody defines parameters for ExtrasDynamicGroupMembershipsBulkDestroy. -type ExtrasDynamicGroupMembershipsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasDynamicGroupMembershipsListParams defines parameters for ExtrasDynamicGroupMembershipsList. -type ExtrasDynamicGroupMembershipsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Group Group (slug or ID) - Group *[]openapi_types.UUID `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Group (slug or ID) - GroupN *[]openapi_types.UUID `form:"group__n,omitempty" json:"group__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Operator *ExtrasDynamicGroupMembershipsListParamsOperator `form:"operator,omitempty" json:"operator,omitempty"` - OperatorN *ExtrasDynamicGroupMembershipsListParamsOperatorN `form:"operator__n,omitempty" json:"operator__n,omitempty"` - - // ParentGroup Parent Group (slug or ID) - ParentGroup *[]openapi_types.UUID `form:"parent_group,omitempty" json:"parent_group,omitempty"` - - // ParentGroupN Parent Group (slug or ID) - ParentGroupN *[]openapi_types.UUID `form:"parent_group__n,omitempty" json:"parent_group__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Weight *[]int `form:"weight,omitempty" json:"weight,omitempty"` - WeightGt *[]int `form:"weight__gt,omitempty" json:"weight__gt,omitempty"` - WeightGte *[]int `form:"weight__gte,omitempty" json:"weight__gte,omitempty"` - WeightLt *[]int `form:"weight__lt,omitempty" json:"weight__lt,omitempty"` - WeightLte *[]int `form:"weight__lte,omitempty" json:"weight__lte,omitempty"` - WeightN *[]int `form:"weight__n,omitempty" json:"weight__n,omitempty"` -} - -// ExtrasDynamicGroupMembershipsListParamsOperator defines parameters for ExtrasDynamicGroupMembershipsList. -type ExtrasDynamicGroupMembershipsListParamsOperator string - -// ExtrasDynamicGroupMembershipsListParamsOperatorN defines parameters for ExtrasDynamicGroupMembershipsList. -type ExtrasDynamicGroupMembershipsListParamsOperatorN string - -// ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONBody defines parameters for ExtrasDynamicGroupMembershipsBulkPartialUpdate. -type ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONBody = []PatchedBulkWritableDynamicGroupMembershipRequest - -// ExtrasDynamicGroupMembershipsBulkUpdateJSONBody defines parameters for ExtrasDynamicGroupMembershipsBulkUpdate. -type ExtrasDynamicGroupMembershipsBulkUpdateJSONBody = []BulkWritableDynamicGroupMembershipRequest - -// ExtrasDynamicGroupsBulkDestroyJSONBody defines parameters for ExtrasDynamicGroupsBulkDestroy. -type ExtrasDynamicGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasDynamicGroupsListParams defines parameters for ExtrasDynamicGroupsList. -type ExtrasDynamicGroupsListParams struct { - ContentType *[]int `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *[]int `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// ExtrasDynamicGroupsBulkPartialUpdateJSONBody defines parameters for ExtrasDynamicGroupsBulkPartialUpdate. -type ExtrasDynamicGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableDynamicGroupRequest - -// ExtrasDynamicGroupsBulkUpdateJSONBody defines parameters for ExtrasDynamicGroupsBulkUpdate. -type ExtrasDynamicGroupsBulkUpdateJSONBody = []BulkWritableDynamicGroupRequest - -// ExtrasDynamicGroupsNotesListParams defines parameters for ExtrasDynamicGroupsNotesList. -type ExtrasDynamicGroupsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasExportTemplatesBulkDestroyJSONBody defines parameters for ExtrasExportTemplatesBulkDestroy. -type ExtrasExportTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasExportTemplatesListParams defines parameters for ExtrasExportTemplatesList. -type ExtrasExportTemplatesListParams struct { - ContentType *int `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *int `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - OwnerContentType *string `form:"owner_content_type,omitempty" json:"owner_content_type,omitempty"` - OwnerContentTypeN *string `form:"owner_content_type__n,omitempty" json:"owner_content_type__n,omitempty"` - OwnerObjectId *[]openapi_types.UUID `form:"owner_object_id,omitempty" json:"owner_object_id,omitempty"` - OwnerObjectIdIc *[]openapi_types.UUID `form:"owner_object_id__ic,omitempty" json:"owner_object_id__ic,omitempty"` - OwnerObjectIdIe *[]openapi_types.UUID `form:"owner_object_id__ie,omitempty" json:"owner_object_id__ie,omitempty"` - OwnerObjectIdIew *[]openapi_types.UUID `form:"owner_object_id__iew,omitempty" json:"owner_object_id__iew,omitempty"` - OwnerObjectIdIre *[]openapi_types.UUID `form:"owner_object_id__ire,omitempty" json:"owner_object_id__ire,omitempty"` - OwnerObjectIdIsw *[]openapi_types.UUID `form:"owner_object_id__isw,omitempty" json:"owner_object_id__isw,omitempty"` - OwnerObjectIdN *[]openapi_types.UUID `form:"owner_object_id__n,omitempty" json:"owner_object_id__n,omitempty"` - OwnerObjectIdNic *[]openapi_types.UUID `form:"owner_object_id__nic,omitempty" json:"owner_object_id__nic,omitempty"` - OwnerObjectIdNie *[]openapi_types.UUID `form:"owner_object_id__nie,omitempty" json:"owner_object_id__nie,omitempty"` - OwnerObjectIdNiew *[]openapi_types.UUID `form:"owner_object_id__niew,omitempty" json:"owner_object_id__niew,omitempty"` - OwnerObjectIdNire *[]openapi_types.UUID `form:"owner_object_id__nire,omitempty" json:"owner_object_id__nire,omitempty"` - OwnerObjectIdNisw *[]openapi_types.UUID `form:"owner_object_id__nisw,omitempty" json:"owner_object_id__nisw,omitempty"` - OwnerObjectIdNre *[]openapi_types.UUID `form:"owner_object_id__nre,omitempty" json:"owner_object_id__nre,omitempty"` - OwnerObjectIdRe *[]openapi_types.UUID `form:"owner_object_id__re,omitempty" json:"owner_object_id__re,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// ExtrasExportTemplatesBulkPartialUpdateJSONBody defines parameters for ExtrasExportTemplatesBulkPartialUpdate. -type ExtrasExportTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritableExportTemplateRequest - -// ExtrasExportTemplatesBulkUpdateJSONBody defines parameters for ExtrasExportTemplatesBulkUpdate. -type ExtrasExportTemplatesBulkUpdateJSONBody = []BulkWritableExportTemplateRequest - -// ExtrasExportTemplatesNotesListParams defines parameters for ExtrasExportTemplatesNotesList. -type ExtrasExportTemplatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasGitRepositoriesBulkDestroyJSONBody defines parameters for ExtrasGitRepositoriesBulkDestroy. -type ExtrasGitRepositoriesBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasGitRepositoriesListParams defines parameters for ExtrasGitRepositoriesList. -type ExtrasGitRepositoriesListParams struct { - Branch *[]string `form:"branch,omitempty" json:"branch,omitempty"` - BranchIc *[]string `form:"branch__ic,omitempty" json:"branch__ic,omitempty"` - BranchIe *[]string `form:"branch__ie,omitempty" json:"branch__ie,omitempty"` - BranchIew *[]string `form:"branch__iew,omitempty" json:"branch__iew,omitempty"` - BranchIre *[]string `form:"branch__ire,omitempty" json:"branch__ire,omitempty"` - BranchIsw *[]string `form:"branch__isw,omitempty" json:"branch__isw,omitempty"` - BranchN *[]string `form:"branch__n,omitempty" json:"branch__n,omitempty"` - BranchNic *[]string `form:"branch__nic,omitempty" json:"branch__nic,omitempty"` - BranchNie *[]string `form:"branch__nie,omitempty" json:"branch__nie,omitempty"` - BranchNiew *[]string `form:"branch__niew,omitempty" json:"branch__niew,omitempty"` - BranchNire *[]string `form:"branch__nire,omitempty" json:"branch__nire,omitempty"` - BranchNisw *[]string `form:"branch__nisw,omitempty" json:"branch__nisw,omitempty"` - BranchNre *[]string `form:"branch__nre,omitempty" json:"branch__nre,omitempty"` - BranchRe *[]string `form:"branch__re,omitempty" json:"branch__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - ProvidedContents *[]string `form:"provided_contents,omitempty" json:"provided_contents,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - RemoteUrl *[]string `form:"remote_url,omitempty" json:"remote_url,omitempty"` - RemoteUrlIc *[]string `form:"remote_url__ic,omitempty" json:"remote_url__ic,omitempty"` - RemoteUrlIe *[]string `form:"remote_url__ie,omitempty" json:"remote_url__ie,omitempty"` - RemoteUrlIew *[]string `form:"remote_url__iew,omitempty" json:"remote_url__iew,omitempty"` - RemoteUrlIre *[]string `form:"remote_url__ire,omitempty" json:"remote_url__ire,omitempty"` - RemoteUrlIsw *[]string `form:"remote_url__isw,omitempty" json:"remote_url__isw,omitempty"` - RemoteUrlN *[]string `form:"remote_url__n,omitempty" json:"remote_url__n,omitempty"` - RemoteUrlNic *[]string `form:"remote_url__nic,omitempty" json:"remote_url__nic,omitempty"` - RemoteUrlNie *[]string `form:"remote_url__nie,omitempty" json:"remote_url__nie,omitempty"` - RemoteUrlNiew *[]string `form:"remote_url__niew,omitempty" json:"remote_url__niew,omitempty"` - RemoteUrlNire *[]string `form:"remote_url__nire,omitempty" json:"remote_url__nire,omitempty"` - RemoteUrlNisw *[]string `form:"remote_url__nisw,omitempty" json:"remote_url__nisw,omitempty"` - RemoteUrlNre *[]string `form:"remote_url__nre,omitempty" json:"remote_url__nre,omitempty"` - RemoteUrlRe *[]string `form:"remote_url__re,omitempty" json:"remote_url__re,omitempty"` - - // SecretsGroup Secrets group (slug) - SecretsGroup *[]string `form:"secrets_group,omitempty" json:"secrets_group,omitempty"` - - // SecretsGroupN Secrets group (slug) - SecretsGroupN *[]string `form:"secrets_group__n,omitempty" json:"secrets_group__n,omitempty"` - - // SecretsGroupId Secrets group (ID) - SecretsGroupId *[]openapi_types.UUID `form:"secrets_group_id,omitempty" json:"secrets_group_id,omitempty"` - - // SecretsGroupIdN Secrets group (ID) - SecretsGroupIdN *[]openapi_types.UUID `form:"secrets_group_id__n,omitempty" json:"secrets_group_id__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// ExtrasGitRepositoriesBulkPartialUpdateJSONBody defines parameters for ExtrasGitRepositoriesBulkPartialUpdate. -type ExtrasGitRepositoriesBulkPartialUpdateJSONBody = []PatchedBulkWritableGitRepositoryRequest - -// ExtrasGitRepositoriesBulkUpdateJSONBody defines parameters for ExtrasGitRepositoriesBulkUpdate. -type ExtrasGitRepositoriesBulkUpdateJSONBody = []BulkWritableGitRepositoryRequest - -// ExtrasGitRepositoriesNotesListParams defines parameters for ExtrasGitRepositoriesNotesList. -type ExtrasGitRepositoriesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasGraphqlQueriesBulkDestroyJSONBody defines parameters for ExtrasGraphqlQueriesBulkDestroy. -type ExtrasGraphqlQueriesBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasGraphqlQueriesListParams defines parameters for ExtrasGraphqlQueriesList. -type ExtrasGraphqlQueriesListParams struct { - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// ExtrasGraphqlQueriesBulkPartialUpdateJSONBody defines parameters for ExtrasGraphqlQueriesBulkPartialUpdate. -type ExtrasGraphqlQueriesBulkPartialUpdateJSONBody = []PatchedBulkWritableGraphQLQueryRequest - -// ExtrasGraphqlQueriesBulkUpdateJSONBody defines parameters for ExtrasGraphqlQueriesBulkUpdate. -type ExtrasGraphqlQueriesBulkUpdateJSONBody = []BulkWritableGraphQLQueryRequest - -// ExtrasGraphqlQueriesNotesListParams defines parameters for ExtrasGraphqlQueriesNotesList. -type ExtrasGraphqlQueriesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasImageAttachmentsBulkDestroyJSONBody defines parameters for ExtrasImageAttachmentsBulkDestroy. -type ExtrasImageAttachmentsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasImageAttachmentsListParams defines parameters for ExtrasImageAttachmentsList. -type ExtrasImageAttachmentsListParams struct { - ContentType *string `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *string `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - ContentTypeId *int `form:"content_type_id,omitempty" json:"content_type_id,omitempty"` - ContentTypeIdN *int `form:"content_type_id__n,omitempty" json:"content_type_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - ObjectId *[]openapi_types.UUID `form:"object_id,omitempty" json:"object_id,omitempty"` - ObjectIdIc *[]openapi_types.UUID `form:"object_id__ic,omitempty" json:"object_id__ic,omitempty"` - ObjectIdIe *[]openapi_types.UUID `form:"object_id__ie,omitempty" json:"object_id__ie,omitempty"` - ObjectIdIew *[]openapi_types.UUID `form:"object_id__iew,omitempty" json:"object_id__iew,omitempty"` - ObjectIdIre *[]openapi_types.UUID `form:"object_id__ire,omitempty" json:"object_id__ire,omitempty"` - ObjectIdIsw *[]openapi_types.UUID `form:"object_id__isw,omitempty" json:"object_id__isw,omitempty"` - ObjectIdN *[]openapi_types.UUID `form:"object_id__n,omitempty" json:"object_id__n,omitempty"` - ObjectIdNic *[]openapi_types.UUID `form:"object_id__nic,omitempty" json:"object_id__nic,omitempty"` - ObjectIdNie *[]openapi_types.UUID `form:"object_id__nie,omitempty" json:"object_id__nie,omitempty"` - ObjectIdNiew *[]openapi_types.UUID `form:"object_id__niew,omitempty" json:"object_id__niew,omitempty"` - ObjectIdNire *[]openapi_types.UUID `form:"object_id__nire,omitempty" json:"object_id__nire,omitempty"` - ObjectIdNisw *[]openapi_types.UUID `form:"object_id__nisw,omitempty" json:"object_id__nisw,omitempty"` - ObjectIdNre *[]openapi_types.UUID `form:"object_id__nre,omitempty" json:"object_id__nre,omitempty"` - ObjectIdRe *[]openapi_types.UUID `form:"object_id__re,omitempty" json:"object_id__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasImageAttachmentsBulkPartialUpdateJSONBody defines parameters for ExtrasImageAttachmentsBulkPartialUpdate. -type ExtrasImageAttachmentsBulkPartialUpdateJSONBody = []PatchedBulkWritableImageAttachmentRequest - -// ExtrasImageAttachmentsBulkUpdateJSONBody defines parameters for ExtrasImageAttachmentsBulkUpdate. -type ExtrasImageAttachmentsBulkUpdateJSONBody = []BulkWritableImageAttachmentRequest - -// ExtrasJobHooksBulkDestroyJSONBody defines parameters for ExtrasJobHooksBulkDestroy. -type ExtrasJobHooksBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasJobHooksListParams defines parameters for ExtrasJobHooksList. -type ExtrasJobHooksListParams struct { - ContentTypes *[]int `form:"content_types,omitempty" json:"content_types,omitempty"` - ContentTypesN *[]int `form:"content_types__n,omitempty" json:"content_types__n,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Job Job (slug or ID) - Job *[]openapi_types.UUID `form:"job,omitempty" json:"job,omitempty"` - - // JobN Job (slug or ID) - JobN *[]openapi_types.UUID `form:"job__n,omitempty" json:"job__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - TypeCreate *bool `form:"type_create,omitempty" json:"type_create,omitempty"` - TypeDelete *bool `form:"type_delete,omitempty" json:"type_delete,omitempty"` - TypeUpdate *bool `form:"type_update,omitempty" json:"type_update,omitempty"` -} - -// ExtrasJobHooksBulkPartialUpdateJSONBody defines parameters for ExtrasJobHooksBulkPartialUpdate. -type ExtrasJobHooksBulkPartialUpdateJSONBody = []PatchedBulkWritableJobHookRequest - -// ExtrasJobHooksBulkUpdateJSONBody defines parameters for ExtrasJobHooksBulkUpdate. -type ExtrasJobHooksBulkUpdateJSONBody = []BulkWritableJobHookRequest - -// ExtrasJobHooksNotesListParams defines parameters for ExtrasJobHooksNotesList. -type ExtrasJobHooksNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasJobLogsListParams defines parameters for ExtrasJobLogsList. -type ExtrasJobLogsListParams struct { - AbsoluteUrl *[]string `form:"absolute_url,omitempty" json:"absolute_url,omitempty"` - AbsoluteUrlIc *[]string `form:"absolute_url__ic,omitempty" json:"absolute_url__ic,omitempty"` - AbsoluteUrlIe *[]string `form:"absolute_url__ie,omitempty" json:"absolute_url__ie,omitempty"` - AbsoluteUrlIew *[]string `form:"absolute_url__iew,omitempty" json:"absolute_url__iew,omitempty"` - AbsoluteUrlIre *[]string `form:"absolute_url__ire,omitempty" json:"absolute_url__ire,omitempty"` - AbsoluteUrlIsw *[]string `form:"absolute_url__isw,omitempty" json:"absolute_url__isw,omitempty"` - AbsoluteUrlN *[]string `form:"absolute_url__n,omitempty" json:"absolute_url__n,omitempty"` - AbsoluteUrlNic *[]string `form:"absolute_url__nic,omitempty" json:"absolute_url__nic,omitempty"` - AbsoluteUrlNie *[]string `form:"absolute_url__nie,omitempty" json:"absolute_url__nie,omitempty"` - AbsoluteUrlNiew *[]string `form:"absolute_url__niew,omitempty" json:"absolute_url__niew,omitempty"` - AbsoluteUrlNire *[]string `form:"absolute_url__nire,omitempty" json:"absolute_url__nire,omitempty"` - AbsoluteUrlNisw *[]string `form:"absolute_url__nisw,omitempty" json:"absolute_url__nisw,omitempty"` - AbsoluteUrlNre *[]string `form:"absolute_url__nre,omitempty" json:"absolute_url__nre,omitempty"` - AbsoluteUrlRe *[]string `form:"absolute_url__re,omitempty" json:"absolute_url__re,omitempty"` - Created *[]time.Time `form:"created,omitempty" json:"created,omitempty"` - CreatedGt *[]time.Time `form:"created__gt,omitempty" json:"created__gt,omitempty"` - CreatedGte *[]time.Time `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLt *[]time.Time `form:"created__lt,omitempty" json:"created__lt,omitempty"` - CreatedLte *[]time.Time `form:"created__lte,omitempty" json:"created__lte,omitempty"` - CreatedN *[]time.Time `form:"created__n,omitempty" json:"created__n,omitempty"` - Grouping *[]string `form:"grouping,omitempty" json:"grouping,omitempty"` - GroupingIc *[]string `form:"grouping__ic,omitempty" json:"grouping__ic,omitempty"` - GroupingIe *[]string `form:"grouping__ie,omitempty" json:"grouping__ie,omitempty"` - GroupingIew *[]string `form:"grouping__iew,omitempty" json:"grouping__iew,omitempty"` - GroupingIre *[]string `form:"grouping__ire,omitempty" json:"grouping__ire,omitempty"` - GroupingIsw *[]string `form:"grouping__isw,omitempty" json:"grouping__isw,omitempty"` - GroupingN *[]string `form:"grouping__n,omitempty" json:"grouping__n,omitempty"` - GroupingNic *[]string `form:"grouping__nic,omitempty" json:"grouping__nic,omitempty"` - GroupingNie *[]string `form:"grouping__nie,omitempty" json:"grouping__nie,omitempty"` - GroupingNiew *[]string `form:"grouping__niew,omitempty" json:"grouping__niew,omitempty"` - GroupingNire *[]string `form:"grouping__nire,omitempty" json:"grouping__nire,omitempty"` - GroupingNisw *[]string `form:"grouping__nisw,omitempty" json:"grouping__nisw,omitempty"` - GroupingNre *[]string `form:"grouping__nre,omitempty" json:"grouping__nre,omitempty"` - GroupingRe *[]string `form:"grouping__re,omitempty" json:"grouping__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - JobResult *openapi_types.UUID `form:"job_result,omitempty" json:"job_result,omitempty"` - JobResultN *openapi_types.UUID `form:"job_result__n,omitempty" json:"job_result__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - LogLevel *string `form:"log_level,omitempty" json:"log_level,omitempty"` - LogLevelN *string `form:"log_level__n,omitempty" json:"log_level__n,omitempty"` - LogObject *[]string `form:"log_object,omitempty" json:"log_object,omitempty"` - LogObjectIc *[]string `form:"log_object__ic,omitempty" json:"log_object__ic,omitempty"` - LogObjectIe *[]string `form:"log_object__ie,omitempty" json:"log_object__ie,omitempty"` - LogObjectIew *[]string `form:"log_object__iew,omitempty" json:"log_object__iew,omitempty"` - LogObjectIre *[]string `form:"log_object__ire,omitempty" json:"log_object__ire,omitempty"` - LogObjectIsw *[]string `form:"log_object__isw,omitempty" json:"log_object__isw,omitempty"` - LogObjectN *[]string `form:"log_object__n,omitempty" json:"log_object__n,omitempty"` - LogObjectNic *[]string `form:"log_object__nic,omitempty" json:"log_object__nic,omitempty"` - LogObjectNie *[]string `form:"log_object__nie,omitempty" json:"log_object__nie,omitempty"` - LogObjectNiew *[]string `form:"log_object__niew,omitempty" json:"log_object__niew,omitempty"` - LogObjectNire *[]string `form:"log_object__nire,omitempty" json:"log_object__nire,omitempty"` - LogObjectNisw *[]string `form:"log_object__nisw,omitempty" json:"log_object__nisw,omitempty"` - LogObjectNre *[]string `form:"log_object__nre,omitempty" json:"log_object__nre,omitempty"` - LogObjectRe *[]string `form:"log_object__re,omitempty" json:"log_object__re,omitempty"` - Message *[]string `form:"message,omitempty" json:"message,omitempty"` - MessageIc *[]string `form:"message__ic,omitempty" json:"message__ic,omitempty"` - MessageIe *[]string `form:"message__ie,omitempty" json:"message__ie,omitempty"` - MessageIew *[]string `form:"message__iew,omitempty" json:"message__iew,omitempty"` - MessageIre *[]string `form:"message__ire,omitempty" json:"message__ire,omitempty"` - MessageIsw *[]string `form:"message__isw,omitempty" json:"message__isw,omitempty"` - MessageN *[]string `form:"message__n,omitempty" json:"message__n,omitempty"` - MessageNic *[]string `form:"message__nic,omitempty" json:"message__nic,omitempty"` - MessageNie *[]string `form:"message__nie,omitempty" json:"message__nie,omitempty"` - MessageNiew *[]string `form:"message__niew,omitempty" json:"message__niew,omitempty"` - MessageNire *[]string `form:"message__nire,omitempty" json:"message__nire,omitempty"` - MessageNisw *[]string `form:"message__nisw,omitempty" json:"message__nisw,omitempty"` - MessageNre *[]string `form:"message__nre,omitempty" json:"message__nre,omitempty"` - MessageRe *[]string `form:"message__re,omitempty" json:"message__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// ExtrasJobResultsBulkDestroyJSONBody defines parameters for ExtrasJobResultsBulkDestroy. -type ExtrasJobResultsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasJobResultsListParams defines parameters for ExtrasJobResultsList. -type ExtrasJobResultsListParams struct { - Completed *time.Time `form:"completed,omitempty" json:"completed,omitempty"` - Created *time.Time `form:"created,omitempty" json:"created,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // JobModel Job (slug) - JobModel *[]string `form:"job_model,omitempty" json:"job_model,omitempty"` - - // JobModelN Job (slug) - JobModelN *[]string `form:"job_model__n,omitempty" json:"job_model__n,omitempty"` - - // JobModelId Job (ID) - JobModelId *[]openapi_types.UUID `form:"job_model_id,omitempty" json:"job_model_id,omitempty"` - - // JobModelIdN Job (ID) - JobModelIdN *[]openapi_types.UUID `form:"job_model_id__n,omitempty" json:"job_model_id__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - ObjType *string `form:"obj_type,omitempty" json:"obj_type,omitempty"` - ObjTypeN *string `form:"obj_type__n,omitempty" json:"obj_type__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` - User *openapi_types.UUID `form:"user,omitempty" json:"user,omitempty"` - UserN *openapi_types.UUID `form:"user__n,omitempty" json:"user__n,omitempty"` -} - -// ExtrasJobsBulkDestroyJSONBody defines parameters for ExtrasJobsBulkDestroy. -type ExtrasJobsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasJobsListParams defines parameters for ExtrasJobsList. -type ExtrasJobsListParams struct { - ApprovalRequired *bool `form:"approval_required,omitempty" json:"approval_required,omitempty"` - ApprovalRequiredOverride *bool `form:"approval_required_override,omitempty" json:"approval_required_override,omitempty"` - CommitDefault *bool `form:"commit_default,omitempty" json:"commit_default,omitempty"` - CommitDefaultOverride *bool `form:"commit_default_override,omitempty" json:"commit_default_override,omitempty"` - DescriptionOverride *bool `form:"description_override,omitempty" json:"description_override,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - Grouping *[]string `form:"grouping,omitempty" json:"grouping,omitempty"` - GroupingIc *[]string `form:"grouping__ic,omitempty" json:"grouping__ic,omitempty"` - GroupingIe *[]string `form:"grouping__ie,omitempty" json:"grouping__ie,omitempty"` - GroupingIew *[]string `form:"grouping__iew,omitempty" json:"grouping__iew,omitempty"` - GroupingIre *[]string `form:"grouping__ire,omitempty" json:"grouping__ire,omitempty"` - GroupingIsw *[]string `form:"grouping__isw,omitempty" json:"grouping__isw,omitempty"` - GroupingN *[]string `form:"grouping__n,omitempty" json:"grouping__n,omitempty"` - GroupingNic *[]string `form:"grouping__nic,omitempty" json:"grouping__nic,omitempty"` - GroupingNie *[]string `form:"grouping__nie,omitempty" json:"grouping__nie,omitempty"` - GroupingNiew *[]string `form:"grouping__niew,omitempty" json:"grouping__niew,omitempty"` - GroupingNire *[]string `form:"grouping__nire,omitempty" json:"grouping__nire,omitempty"` - GroupingNisw *[]string `form:"grouping__nisw,omitempty" json:"grouping__nisw,omitempty"` - GroupingNre *[]string `form:"grouping__nre,omitempty" json:"grouping__nre,omitempty"` - GroupingRe *[]string `form:"grouping__re,omitempty" json:"grouping__re,omitempty"` - GroupingOverride *bool `form:"grouping_override,omitempty" json:"grouping_override,omitempty"` - HasSensitiveVariables *bool `form:"has_sensitive_variables,omitempty" json:"has_sensitive_variables,omitempty"` - HasSensitiveVariablesOverride *bool `form:"has_sensitive_variables_override,omitempty" json:"has_sensitive_variables_override,omitempty"` - Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty"` - HiddenOverride *bool `form:"hidden_override,omitempty" json:"hidden_override,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Installed *bool `form:"installed,omitempty" json:"installed,omitempty"` - IsJobHookReceiver *bool `form:"is_job_hook_receiver,omitempty" json:"is_job_hook_receiver,omitempty"` - JobClassName *[]string `form:"job_class_name,omitempty" json:"job_class_name,omitempty"` - JobClassNameIc *[]string `form:"job_class_name__ic,omitempty" json:"job_class_name__ic,omitempty"` - JobClassNameIe *[]string `form:"job_class_name__ie,omitempty" json:"job_class_name__ie,omitempty"` - JobClassNameIew *[]string `form:"job_class_name__iew,omitempty" json:"job_class_name__iew,omitempty"` - JobClassNameIre *[]string `form:"job_class_name__ire,omitempty" json:"job_class_name__ire,omitempty"` - JobClassNameIsw *[]string `form:"job_class_name__isw,omitempty" json:"job_class_name__isw,omitempty"` - JobClassNameN *[]string `form:"job_class_name__n,omitempty" json:"job_class_name__n,omitempty"` - JobClassNameNic *[]string `form:"job_class_name__nic,omitempty" json:"job_class_name__nic,omitempty"` - JobClassNameNie *[]string `form:"job_class_name__nie,omitempty" json:"job_class_name__nie,omitempty"` - JobClassNameNiew *[]string `form:"job_class_name__niew,omitempty" json:"job_class_name__niew,omitempty"` - JobClassNameNire *[]string `form:"job_class_name__nire,omitempty" json:"job_class_name__nire,omitempty"` - JobClassNameNisw *[]string `form:"job_class_name__nisw,omitempty" json:"job_class_name__nisw,omitempty"` - JobClassNameNre *[]string `form:"job_class_name__nre,omitempty" json:"job_class_name__nre,omitempty"` - JobClassNameRe *[]string `form:"job_class_name__re,omitempty" json:"job_class_name__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - ModuleName *[]string `form:"module_name,omitempty" json:"module_name,omitempty"` - ModuleNameIc *[]string `form:"module_name__ic,omitempty" json:"module_name__ic,omitempty"` - ModuleNameIe *[]string `form:"module_name__ie,omitempty" json:"module_name__ie,omitempty"` - ModuleNameIew *[]string `form:"module_name__iew,omitempty" json:"module_name__iew,omitempty"` - ModuleNameIre *[]string `form:"module_name__ire,omitempty" json:"module_name__ire,omitempty"` - ModuleNameIsw *[]string `form:"module_name__isw,omitempty" json:"module_name__isw,omitempty"` - ModuleNameN *[]string `form:"module_name__n,omitempty" json:"module_name__n,omitempty"` - ModuleNameNic *[]string `form:"module_name__nic,omitempty" json:"module_name__nic,omitempty"` - ModuleNameNie *[]string `form:"module_name__nie,omitempty" json:"module_name__nie,omitempty"` - ModuleNameNiew *[]string `form:"module_name__niew,omitempty" json:"module_name__niew,omitempty"` - ModuleNameNire *[]string `form:"module_name__nire,omitempty" json:"module_name__nire,omitempty"` - ModuleNameNisw *[]string `form:"module_name__nisw,omitempty" json:"module_name__nisw,omitempty"` - ModuleNameNre *[]string `form:"module_name__nre,omitempty" json:"module_name__nre,omitempty"` - ModuleNameRe *[]string `form:"module_name__re,omitempty" json:"module_name__re,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - NameOverride *bool `form:"name_override,omitempty" json:"name_override,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - ReadOnly *bool `form:"read_only,omitempty" json:"read_only,omitempty"` - ReadOnlyOverride *bool `form:"read_only_override,omitempty" json:"read_only_override,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - SoftTimeLimit *[]float32 `form:"soft_time_limit,omitempty" json:"soft_time_limit,omitempty"` - SoftTimeLimitGt *[]float32 `form:"soft_time_limit__gt,omitempty" json:"soft_time_limit__gt,omitempty"` - SoftTimeLimitGte *[]float32 `form:"soft_time_limit__gte,omitempty" json:"soft_time_limit__gte,omitempty"` - SoftTimeLimitLt *[]float32 `form:"soft_time_limit__lt,omitempty" json:"soft_time_limit__lt,omitempty"` - SoftTimeLimitLte *[]float32 `form:"soft_time_limit__lte,omitempty" json:"soft_time_limit__lte,omitempty"` - SoftTimeLimitN *[]float32 `form:"soft_time_limit__n,omitempty" json:"soft_time_limit__n,omitempty"` - SoftTimeLimitOverride *bool `form:"soft_time_limit_override,omitempty" json:"soft_time_limit_override,omitempty"` - - // Source Source of the Python code for this job - local, Git repository, or plugins - Source *string `form:"source,omitempty" json:"source,omitempty"` - - // SourceN Source of the Python code for this job - local, Git repository, or plugins - SourceN *string `form:"source__n,omitempty" json:"source__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - TimeLimit *[]float32 `form:"time_limit,omitempty" json:"time_limit,omitempty"` - TimeLimitGt *[]float32 `form:"time_limit__gt,omitempty" json:"time_limit__gt,omitempty"` - TimeLimitGte *[]float32 `form:"time_limit__gte,omitempty" json:"time_limit__gte,omitempty"` - TimeLimitLt *[]float32 `form:"time_limit__lt,omitempty" json:"time_limit__lt,omitempty"` - TimeLimitLte *[]float32 `form:"time_limit__lte,omitempty" json:"time_limit__lte,omitempty"` - TimeLimitN *[]float32 `form:"time_limit__n,omitempty" json:"time_limit__n,omitempty"` - TimeLimitOverride *bool `form:"time_limit_override,omitempty" json:"time_limit_override,omitempty"` -} - -// ExtrasJobsBulkPartialUpdateJSONBody defines parameters for ExtrasJobsBulkPartialUpdate. -type ExtrasJobsBulkPartialUpdateJSONBody = []PatchedBulkWritableJobRequest - -// ExtrasJobsBulkUpdateJSONBody defines parameters for ExtrasJobsBulkUpdate. -type ExtrasJobsBulkUpdateJSONBody = []BulkWritableJobRequest - -// ExtrasJobsNotesListParams defines parameters for ExtrasJobsNotesList. -type ExtrasJobsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasJobsVariablesListParams defines parameters for ExtrasJobsVariablesList. -type ExtrasJobsVariablesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasNotesBulkDestroyJSONBody defines parameters for ExtrasNotesBulkDestroy. -type ExtrasNotesBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasNotesListParams defines parameters for ExtrasNotesList. -type ExtrasNotesListParams struct { - AssignedObjectId *[]openapi_types.UUID `form:"assigned_object_id,omitempty" json:"assigned_object_id,omitempty"` - AssignedObjectIdIc *[]openapi_types.UUID `form:"assigned_object_id__ic,omitempty" json:"assigned_object_id__ic,omitempty"` - AssignedObjectIdIe *[]openapi_types.UUID `form:"assigned_object_id__ie,omitempty" json:"assigned_object_id__ie,omitempty"` - AssignedObjectIdIew *[]openapi_types.UUID `form:"assigned_object_id__iew,omitempty" json:"assigned_object_id__iew,omitempty"` - AssignedObjectIdIre *[]openapi_types.UUID `form:"assigned_object_id__ire,omitempty" json:"assigned_object_id__ire,omitempty"` - AssignedObjectIdIsw *[]openapi_types.UUID `form:"assigned_object_id__isw,omitempty" json:"assigned_object_id__isw,omitempty"` - AssignedObjectIdN *[]openapi_types.UUID `form:"assigned_object_id__n,omitempty" json:"assigned_object_id__n,omitempty"` - AssignedObjectIdNic *[]openapi_types.UUID `form:"assigned_object_id__nic,omitempty" json:"assigned_object_id__nic,omitempty"` - AssignedObjectIdNie *[]openapi_types.UUID `form:"assigned_object_id__nie,omitempty" json:"assigned_object_id__nie,omitempty"` - AssignedObjectIdNiew *[]openapi_types.UUID `form:"assigned_object_id__niew,omitempty" json:"assigned_object_id__niew,omitempty"` - AssignedObjectIdNire *[]openapi_types.UUID `form:"assigned_object_id__nire,omitempty" json:"assigned_object_id__nire,omitempty"` - AssignedObjectIdNisw *[]openapi_types.UUID `form:"assigned_object_id__nisw,omitempty" json:"assigned_object_id__nisw,omitempty"` - AssignedObjectIdNre *[]openapi_types.UUID `form:"assigned_object_id__nre,omitempty" json:"assigned_object_id__nre,omitempty"` - AssignedObjectIdRe *[]openapi_types.UUID `form:"assigned_object_id__re,omitempty" json:"assigned_object_id__re,omitempty"` - AssignedObjectType *string `form:"assigned_object_type,omitempty" json:"assigned_object_type,omitempty"` - AssignedObjectTypeN *string `form:"assigned_object_type__n,omitempty" json:"assigned_object_type__n,omitempty"` - AssignedObjectTypeId *int `form:"assigned_object_type_id,omitempty" json:"assigned_object_type_id,omitempty"` - AssignedObjectTypeIdN *int `form:"assigned_object_type_id__n,omitempty" json:"assigned_object_type_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Note *[]string `form:"note,omitempty" json:"note,omitempty"` - NoteIc *[]string `form:"note__ic,omitempty" json:"note__ic,omitempty"` - NoteIe *[]string `form:"note__ie,omitempty" json:"note__ie,omitempty"` - NoteIew *[]string `form:"note__iew,omitempty" json:"note__iew,omitempty"` - NoteIre *[]string `form:"note__ire,omitempty" json:"note__ire,omitempty"` - NoteIsw *[]string `form:"note__isw,omitempty" json:"note__isw,omitempty"` - NoteN *[]string `form:"note__n,omitempty" json:"note__n,omitempty"` - NoteNic *[]string `form:"note__nic,omitempty" json:"note__nic,omitempty"` - NoteNie *[]string `form:"note__nie,omitempty" json:"note__nie,omitempty"` - NoteNiew *[]string `form:"note__niew,omitempty" json:"note__niew,omitempty"` - NoteNire *[]string `form:"note__nire,omitempty" json:"note__nire,omitempty"` - NoteNisw *[]string `form:"note__nisw,omitempty" json:"note__nisw,omitempty"` - NoteNre *[]string `form:"note__nre,omitempty" json:"note__nre,omitempty"` - NoteRe *[]string `form:"note__re,omitempty" json:"note__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // User User (username or ID) - User *[]openapi_types.UUID `form:"user,omitempty" json:"user,omitempty"` - - // UserN User (username or ID) - UserN *[]openapi_types.UUID `form:"user__n,omitempty" json:"user__n,omitempty"` - UserName *[]string `form:"user_name,omitempty" json:"user_name,omitempty"` - UserNameIc *[]string `form:"user_name__ic,omitempty" json:"user_name__ic,omitempty"` - UserNameIe *[]string `form:"user_name__ie,omitempty" json:"user_name__ie,omitempty"` - UserNameIew *[]string `form:"user_name__iew,omitempty" json:"user_name__iew,omitempty"` - UserNameIre *[]string `form:"user_name__ire,omitempty" json:"user_name__ire,omitempty"` - UserNameIsw *[]string `form:"user_name__isw,omitempty" json:"user_name__isw,omitempty"` - UserNameN *[]string `form:"user_name__n,omitempty" json:"user_name__n,omitempty"` - UserNameNic *[]string `form:"user_name__nic,omitempty" json:"user_name__nic,omitempty"` - UserNameNie *[]string `form:"user_name__nie,omitempty" json:"user_name__nie,omitempty"` - UserNameNiew *[]string `form:"user_name__niew,omitempty" json:"user_name__niew,omitempty"` - UserNameNire *[]string `form:"user_name__nire,omitempty" json:"user_name__nire,omitempty"` - UserNameNisw *[]string `form:"user_name__nisw,omitempty" json:"user_name__nisw,omitempty"` - UserNameNre *[]string `form:"user_name__nre,omitempty" json:"user_name__nre,omitempty"` - UserNameRe *[]string `form:"user_name__re,omitempty" json:"user_name__re,omitempty"` -} - -// ExtrasNotesBulkPartialUpdateJSONBody defines parameters for ExtrasNotesBulkPartialUpdate. -type ExtrasNotesBulkPartialUpdateJSONBody = []PatchedBulkWritableNoteRequest - -// ExtrasNotesBulkUpdateJSONBody defines parameters for ExtrasNotesBulkUpdate. -type ExtrasNotesBulkUpdateJSONBody = []BulkWritableNoteRequest - -// ExtrasObjectChangesListParams defines parameters for ExtrasObjectChangesList. -type ExtrasObjectChangesListParams struct { - Action *string `form:"action,omitempty" json:"action,omitempty"` - ActionN *string `form:"action__n,omitempty" json:"action__n,omitempty"` - ChangedObjectId *[]openapi_types.UUID `form:"changed_object_id,omitempty" json:"changed_object_id,omitempty"` - ChangedObjectIdIc *[]openapi_types.UUID `form:"changed_object_id__ic,omitempty" json:"changed_object_id__ic,omitempty"` - ChangedObjectIdIe *[]openapi_types.UUID `form:"changed_object_id__ie,omitempty" json:"changed_object_id__ie,omitempty"` - ChangedObjectIdIew *[]openapi_types.UUID `form:"changed_object_id__iew,omitempty" json:"changed_object_id__iew,omitempty"` - ChangedObjectIdIre *[]openapi_types.UUID `form:"changed_object_id__ire,omitempty" json:"changed_object_id__ire,omitempty"` - ChangedObjectIdIsw *[]openapi_types.UUID `form:"changed_object_id__isw,omitempty" json:"changed_object_id__isw,omitempty"` - ChangedObjectIdN *[]openapi_types.UUID `form:"changed_object_id__n,omitempty" json:"changed_object_id__n,omitempty"` - ChangedObjectIdNic *[]openapi_types.UUID `form:"changed_object_id__nic,omitempty" json:"changed_object_id__nic,omitempty"` - ChangedObjectIdNie *[]openapi_types.UUID `form:"changed_object_id__nie,omitempty" json:"changed_object_id__nie,omitempty"` - ChangedObjectIdNiew *[]openapi_types.UUID `form:"changed_object_id__niew,omitempty" json:"changed_object_id__niew,omitempty"` - ChangedObjectIdNire *[]openapi_types.UUID `form:"changed_object_id__nire,omitempty" json:"changed_object_id__nire,omitempty"` - ChangedObjectIdNisw *[]openapi_types.UUID `form:"changed_object_id__nisw,omitempty" json:"changed_object_id__nisw,omitempty"` - ChangedObjectIdNre *[]openapi_types.UUID `form:"changed_object_id__nre,omitempty" json:"changed_object_id__nre,omitempty"` - ChangedObjectIdRe *[]openapi_types.UUID `form:"changed_object_id__re,omitempty" json:"changed_object_id__re,omitempty"` - ChangedObjectType *string `form:"changed_object_type,omitempty" json:"changed_object_type,omitempty"` - ChangedObjectTypeN *string `form:"changed_object_type__n,omitempty" json:"changed_object_type__n,omitempty"` - ChangedObjectTypeId *int `form:"changed_object_type_id,omitempty" json:"changed_object_type_id,omitempty"` - ChangedObjectTypeIdN *int `form:"changed_object_type_id__n,omitempty" json:"changed_object_type_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - ObjectRepr *[]string `form:"object_repr,omitempty" json:"object_repr,omitempty"` - ObjectReprIc *[]string `form:"object_repr__ic,omitempty" json:"object_repr__ic,omitempty"` - ObjectReprIe *[]string `form:"object_repr__ie,omitempty" json:"object_repr__ie,omitempty"` - ObjectReprIew *[]string `form:"object_repr__iew,omitempty" json:"object_repr__iew,omitempty"` - ObjectReprIre *[]string `form:"object_repr__ire,omitempty" json:"object_repr__ire,omitempty"` - ObjectReprIsw *[]string `form:"object_repr__isw,omitempty" json:"object_repr__isw,omitempty"` - ObjectReprN *[]string `form:"object_repr__n,omitempty" json:"object_repr__n,omitempty"` - ObjectReprNic *[]string `form:"object_repr__nic,omitempty" json:"object_repr__nic,omitempty"` - ObjectReprNie *[]string `form:"object_repr__nie,omitempty" json:"object_repr__nie,omitempty"` - ObjectReprNiew *[]string `form:"object_repr__niew,omitempty" json:"object_repr__niew,omitempty"` - ObjectReprNire *[]string `form:"object_repr__nire,omitempty" json:"object_repr__nire,omitempty"` - ObjectReprNisw *[]string `form:"object_repr__nisw,omitempty" json:"object_repr__nisw,omitempty"` - ObjectReprNre *[]string `form:"object_repr__nre,omitempty" json:"object_repr__nre,omitempty"` - ObjectReprRe *[]string `form:"object_repr__re,omitempty" json:"object_repr__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - RequestId *[]openapi_types.UUID `form:"request_id,omitempty" json:"request_id,omitempty"` - RequestIdIc *[]openapi_types.UUID `form:"request_id__ic,omitempty" json:"request_id__ic,omitempty"` - RequestIdIe *[]openapi_types.UUID `form:"request_id__ie,omitempty" json:"request_id__ie,omitempty"` - RequestIdIew *[]openapi_types.UUID `form:"request_id__iew,omitempty" json:"request_id__iew,omitempty"` - RequestIdIre *[]openapi_types.UUID `form:"request_id__ire,omitempty" json:"request_id__ire,omitempty"` - RequestIdIsw *[]openapi_types.UUID `form:"request_id__isw,omitempty" json:"request_id__isw,omitempty"` - RequestIdN *[]openapi_types.UUID `form:"request_id__n,omitempty" json:"request_id__n,omitempty"` - RequestIdNic *[]openapi_types.UUID `form:"request_id__nic,omitempty" json:"request_id__nic,omitempty"` - RequestIdNie *[]openapi_types.UUID `form:"request_id__nie,omitempty" json:"request_id__nie,omitempty"` - RequestIdNiew *[]openapi_types.UUID `form:"request_id__niew,omitempty" json:"request_id__niew,omitempty"` - RequestIdNire *[]openapi_types.UUID `form:"request_id__nire,omitempty" json:"request_id__nire,omitempty"` - RequestIdNisw *[]openapi_types.UUID `form:"request_id__nisw,omitempty" json:"request_id__nisw,omitempty"` - RequestIdNre *[]openapi_types.UUID `form:"request_id__nre,omitempty" json:"request_id__nre,omitempty"` - RequestIdRe *[]openapi_types.UUID `form:"request_id__re,omitempty" json:"request_id__re,omitempty"` - Time *[]time.Time `form:"time,omitempty" json:"time,omitempty"` - TimeGt *[]time.Time `form:"time__gt,omitempty" json:"time__gt,omitempty"` - TimeGte *[]time.Time `form:"time__gte,omitempty" json:"time__gte,omitempty"` - TimeLt *[]time.Time `form:"time__lt,omitempty" json:"time__lt,omitempty"` - TimeLte *[]time.Time `form:"time__lte,omitempty" json:"time__lte,omitempty"` - TimeN *[]time.Time `form:"time__n,omitempty" json:"time__n,omitempty"` - - // User User name - User *[]string `form:"user,omitempty" json:"user,omitempty"` - - // UserN User name - UserN *[]string `form:"user__n,omitempty" json:"user__n,omitempty"` - - // UserId User (ID) - UserId *[]openapi_types.UUID `form:"user_id,omitempty" json:"user_id,omitempty"` - - // UserIdN User (ID) - UserIdN *[]openapi_types.UUID `form:"user_id__n,omitempty" json:"user_id__n,omitempty"` - UserName *[]string `form:"user_name,omitempty" json:"user_name,omitempty"` - UserNameIc *[]string `form:"user_name__ic,omitempty" json:"user_name__ic,omitempty"` - UserNameIe *[]string `form:"user_name__ie,omitempty" json:"user_name__ie,omitempty"` - UserNameIew *[]string `form:"user_name__iew,omitempty" json:"user_name__iew,omitempty"` - UserNameIre *[]string `form:"user_name__ire,omitempty" json:"user_name__ire,omitempty"` - UserNameIsw *[]string `form:"user_name__isw,omitempty" json:"user_name__isw,omitempty"` - UserNameN *[]string `form:"user_name__n,omitempty" json:"user_name__n,omitempty"` - UserNameNic *[]string `form:"user_name__nic,omitempty" json:"user_name__nic,omitempty"` - UserNameNie *[]string `form:"user_name__nie,omitempty" json:"user_name__nie,omitempty"` - UserNameNiew *[]string `form:"user_name__niew,omitempty" json:"user_name__niew,omitempty"` - UserNameNire *[]string `form:"user_name__nire,omitempty" json:"user_name__nire,omitempty"` - UserNameNisw *[]string `form:"user_name__nisw,omitempty" json:"user_name__nisw,omitempty"` - UserNameNre *[]string `form:"user_name__nre,omitempty" json:"user_name__nre,omitempty"` - UserNameRe *[]string `form:"user_name__re,omitempty" json:"user_name__re,omitempty"` -} - -// ExtrasRelationshipAssociationsBulkDestroyJSONBody defines parameters for ExtrasRelationshipAssociationsBulkDestroy. -type ExtrasRelationshipAssociationsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasRelationshipAssociationsListParams defines parameters for ExtrasRelationshipAssociationsList. -type ExtrasRelationshipAssociationsListParams struct { - DestinationId *[]openapi_types.UUID `form:"destination_id,omitempty" json:"destination_id,omitempty"` - DestinationIdIc *[]openapi_types.UUID `form:"destination_id__ic,omitempty" json:"destination_id__ic,omitempty"` - DestinationIdIe *[]openapi_types.UUID `form:"destination_id__ie,omitempty" json:"destination_id__ie,omitempty"` - DestinationIdIew *[]openapi_types.UUID `form:"destination_id__iew,omitempty" json:"destination_id__iew,omitempty"` - DestinationIdIre *[]openapi_types.UUID `form:"destination_id__ire,omitempty" json:"destination_id__ire,omitempty"` - DestinationIdIsw *[]openapi_types.UUID `form:"destination_id__isw,omitempty" json:"destination_id__isw,omitempty"` - DestinationIdN *[]openapi_types.UUID `form:"destination_id__n,omitempty" json:"destination_id__n,omitempty"` - DestinationIdNic *[]openapi_types.UUID `form:"destination_id__nic,omitempty" json:"destination_id__nic,omitempty"` - DestinationIdNie *[]openapi_types.UUID `form:"destination_id__nie,omitempty" json:"destination_id__nie,omitempty"` - DestinationIdNiew *[]openapi_types.UUID `form:"destination_id__niew,omitempty" json:"destination_id__niew,omitempty"` - DestinationIdNire *[]openapi_types.UUID `form:"destination_id__nire,omitempty" json:"destination_id__nire,omitempty"` - DestinationIdNisw *[]openapi_types.UUID `form:"destination_id__nisw,omitempty" json:"destination_id__nisw,omitempty"` - DestinationIdNre *[]openapi_types.UUID `form:"destination_id__nre,omitempty" json:"destination_id__nre,omitempty"` - DestinationIdRe *[]openapi_types.UUID `form:"destination_id__re,omitempty" json:"destination_id__re,omitempty"` - DestinationType *[]int `form:"destination_type,omitempty" json:"destination_type,omitempty"` - DestinationTypeN *[]int `form:"destination_type__n,omitempty" json:"destination_type__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PeerId *[]openapi_types.UUID `form:"peer_id,omitempty" json:"peer_id,omitempty"` - - // Relationship Relationship (slug) - Relationship *[]string `form:"relationship,omitempty" json:"relationship,omitempty"` - - // RelationshipN Relationship (slug) - RelationshipN *[]string `form:"relationship__n,omitempty" json:"relationship__n,omitempty"` - SourceId *[]openapi_types.UUID `form:"source_id,omitempty" json:"source_id,omitempty"` - SourceIdIc *[]openapi_types.UUID `form:"source_id__ic,omitempty" json:"source_id__ic,omitempty"` - SourceIdIe *[]openapi_types.UUID `form:"source_id__ie,omitempty" json:"source_id__ie,omitempty"` - SourceIdIew *[]openapi_types.UUID `form:"source_id__iew,omitempty" json:"source_id__iew,omitempty"` - SourceIdIre *[]openapi_types.UUID `form:"source_id__ire,omitempty" json:"source_id__ire,omitempty"` - SourceIdIsw *[]openapi_types.UUID `form:"source_id__isw,omitempty" json:"source_id__isw,omitempty"` - SourceIdN *[]openapi_types.UUID `form:"source_id__n,omitempty" json:"source_id__n,omitempty"` - SourceIdNic *[]openapi_types.UUID `form:"source_id__nic,omitempty" json:"source_id__nic,omitempty"` - SourceIdNie *[]openapi_types.UUID `form:"source_id__nie,omitempty" json:"source_id__nie,omitempty"` - SourceIdNiew *[]openapi_types.UUID `form:"source_id__niew,omitempty" json:"source_id__niew,omitempty"` - SourceIdNire *[]openapi_types.UUID `form:"source_id__nire,omitempty" json:"source_id__nire,omitempty"` - SourceIdNisw *[]openapi_types.UUID `form:"source_id__nisw,omitempty" json:"source_id__nisw,omitempty"` - SourceIdNre *[]openapi_types.UUID `form:"source_id__nre,omitempty" json:"source_id__nre,omitempty"` - SourceIdRe *[]openapi_types.UUID `form:"source_id__re,omitempty" json:"source_id__re,omitempty"` - SourceType *[]int `form:"source_type,omitempty" json:"source_type,omitempty"` - SourceTypeN *[]int `form:"source_type__n,omitempty" json:"source_type__n,omitempty"` -} - -// ExtrasRelationshipAssociationsBulkPartialUpdateJSONBody defines parameters for ExtrasRelationshipAssociationsBulkPartialUpdate. -type ExtrasRelationshipAssociationsBulkPartialUpdateJSONBody = []PatchedBulkWritableRelationshipAssociationRequest - -// ExtrasRelationshipAssociationsBulkUpdateJSONBody defines parameters for ExtrasRelationshipAssociationsBulkUpdate. -type ExtrasRelationshipAssociationsBulkUpdateJSONBody = []BulkWritableRelationshipAssociationRequest - -// ExtrasRelationshipsBulkDestroyJSONBody defines parameters for ExtrasRelationshipsBulkDestroy. -type ExtrasRelationshipsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasRelationshipsListParams defines parameters for ExtrasRelationshipsList. -type ExtrasRelationshipsListParams struct { - DestinationType *[]int `form:"destination_type,omitempty" json:"destination_type,omitempty"` - DestinationTypeN *[]int `form:"destination_type__n,omitempty" json:"destination_type__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - SourceType *[]int `form:"source_type,omitempty" json:"source_type,omitempty"` - SourceTypeN *[]int `form:"source_type__n,omitempty" json:"source_type__n,omitempty"` - - // Type Cardinality of this relationship - Type *string `form:"type,omitempty" json:"type,omitempty"` - - // TypeN Cardinality of this relationship - TypeN *string `form:"type__n,omitempty" json:"type__n,omitempty"` -} - -// ExtrasRelationshipsBulkPartialUpdateJSONBody defines parameters for ExtrasRelationshipsBulkPartialUpdate. -type ExtrasRelationshipsBulkPartialUpdateJSONBody = []PatchedBulkWritableRelationshipRequest - -// ExtrasRelationshipsBulkUpdateJSONBody defines parameters for ExtrasRelationshipsBulkUpdate. -type ExtrasRelationshipsBulkUpdateJSONBody = []BulkWritableRelationshipRequest - -// ExtrasRelationshipsNotesListParams defines parameters for ExtrasRelationshipsNotesList. -type ExtrasRelationshipsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasScheduledJobsListParams defines parameters for ExtrasScheduledJobsList. -type ExtrasScheduledJobsListParams struct { - FirstRun *time.Time `form:"first_run,omitempty" json:"first_run,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // JobModel Job (slug) - JobModel *[]string `form:"job_model,omitempty" json:"job_model,omitempty"` - - // JobModelN Job (slug) - JobModelN *[]string `form:"job_model__n,omitempty" json:"job_model__n,omitempty"` - - // JobModelId Job (ID) - JobModelId *[]openapi_types.UUID `form:"job_model_id,omitempty" json:"job_model_id,omitempty"` - - // JobModelIdN Job (ID) - JobModelIdN *[]openapi_types.UUID `form:"job_model_id__n,omitempty" json:"job_model_id__n,omitempty"` - LastRun *time.Time `form:"last_run,omitempty" json:"last_run,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - TotalRunCount *[]int `form:"total_run_count,omitempty" json:"total_run_count,omitempty"` - TotalRunCountGt *[]int `form:"total_run_count__gt,omitempty" json:"total_run_count__gt,omitempty"` - TotalRunCountGte *[]int `form:"total_run_count__gte,omitempty" json:"total_run_count__gte,omitempty"` - TotalRunCountLt *[]int `form:"total_run_count__lt,omitempty" json:"total_run_count__lt,omitempty"` - TotalRunCountLte *[]int `form:"total_run_count__lte,omitempty" json:"total_run_count__lte,omitempty"` - TotalRunCountN *[]int `form:"total_run_count__n,omitempty" json:"total_run_count__n,omitempty"` -} - -// ExtrasScheduledJobsApproveCreateParams defines parameters for ExtrasScheduledJobsApproveCreate. -type ExtrasScheduledJobsApproveCreateParams struct { - // Force force execution even if start time has passed - Force *bool `form:"force,omitempty" json:"force,omitempty"` -} - -// ExtrasSecretsGroupsAssociationsBulkDestroyJSONBody defines parameters for ExtrasSecretsGroupsAssociationsBulkDestroy. -type ExtrasSecretsGroupsAssociationsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasSecretsGroupsAssociationsListParams defines parameters for ExtrasSecretsGroupsAssociationsList. -type ExtrasSecretsGroupsAssociationsListParams struct { - AccessType *[]string `form:"access_type,omitempty" json:"access_type,omitempty"` - AccessTypeN *[]string `form:"access_type__n,omitempty" json:"access_type__n,omitempty"` - - // Group Group (slug) - Group *[]string `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Group (slug) - GroupN *[]string `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Group (ID) - GroupId *[]openapi_types.UUID `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Group (ID) - GroupIdN *[]openapi_types.UUID `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Secret Secret (slug) - Secret *[]string `form:"secret,omitempty" json:"secret,omitempty"` - - // SecretN Secret (slug) - SecretN *[]string `form:"secret__n,omitempty" json:"secret__n,omitempty"` - - // SecretId Secret (ID) - SecretId *[]openapi_types.UUID `form:"secret_id,omitempty" json:"secret_id,omitempty"` - - // SecretIdN Secret (ID) - SecretIdN *[]openapi_types.UUID `form:"secret_id__n,omitempty" json:"secret_id__n,omitempty"` - SecretType *[]string `form:"secret_type,omitempty" json:"secret_type,omitempty"` - SecretTypeN *[]string `form:"secret_type__n,omitempty" json:"secret_type__n,omitempty"` -} - -// ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONBody defines parameters for ExtrasSecretsGroupsAssociationsBulkPartialUpdate. -type ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONBody = []PatchedBulkWritableSecretsGroupAssociationRequest - -// ExtrasSecretsGroupsAssociationsBulkUpdateJSONBody defines parameters for ExtrasSecretsGroupsAssociationsBulkUpdate. -type ExtrasSecretsGroupsAssociationsBulkUpdateJSONBody = []BulkWritableSecretsGroupAssociationRequest - -// ExtrasSecretsGroupsBulkDestroyJSONBody defines parameters for ExtrasSecretsGroupsBulkDestroy. -type ExtrasSecretsGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasSecretsGroupsListParams defines parameters for ExtrasSecretsGroupsList. -type ExtrasSecretsGroupsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// ExtrasSecretsGroupsBulkPartialUpdateJSONBody defines parameters for ExtrasSecretsGroupsBulkPartialUpdate. -type ExtrasSecretsGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableSecretsGroupRequest - -// ExtrasSecretsGroupsBulkUpdateJSONBody defines parameters for ExtrasSecretsGroupsBulkUpdate. -type ExtrasSecretsGroupsBulkUpdateJSONBody = []BulkWritableSecretsGroupRequest - -// ExtrasSecretsGroupsNotesListParams defines parameters for ExtrasSecretsGroupsNotesList. -type ExtrasSecretsGroupsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasSecretsBulkDestroyJSONBody defines parameters for ExtrasSecretsBulkDestroy. -type ExtrasSecretsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasSecretsListParams defines parameters for ExtrasSecretsList. -type ExtrasSecretsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Provider *[]string `form:"provider,omitempty" json:"provider,omitempty"` - ProviderIc *[]string `form:"provider__ic,omitempty" json:"provider__ic,omitempty"` - ProviderIe *[]string `form:"provider__ie,omitempty" json:"provider__ie,omitempty"` - ProviderIew *[]string `form:"provider__iew,omitempty" json:"provider__iew,omitempty"` - ProviderIre *[]string `form:"provider__ire,omitempty" json:"provider__ire,omitempty"` - ProviderIsw *[]string `form:"provider__isw,omitempty" json:"provider__isw,omitempty"` - ProviderN *[]string `form:"provider__n,omitempty" json:"provider__n,omitempty"` - ProviderNic *[]string `form:"provider__nic,omitempty" json:"provider__nic,omitempty"` - ProviderNie *[]string `form:"provider__nie,omitempty" json:"provider__nie,omitempty"` - ProviderNiew *[]string `form:"provider__niew,omitempty" json:"provider__niew,omitempty"` - ProviderNire *[]string `form:"provider__nire,omitempty" json:"provider__nire,omitempty"` - ProviderNisw *[]string `form:"provider__nisw,omitempty" json:"provider__nisw,omitempty"` - ProviderNre *[]string `form:"provider__nre,omitempty" json:"provider__nre,omitempty"` - ProviderRe *[]string `form:"provider__re,omitempty" json:"provider__re,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// ExtrasSecretsBulkPartialUpdateJSONBody defines parameters for ExtrasSecretsBulkPartialUpdate. -type ExtrasSecretsBulkPartialUpdateJSONBody = []PatchedBulkWritableSecretRequest - -// ExtrasSecretsBulkUpdateJSONBody defines parameters for ExtrasSecretsBulkUpdate. -type ExtrasSecretsBulkUpdateJSONBody = []BulkWritableSecretRequest - -// ExtrasSecretsNotesListParams defines parameters for ExtrasSecretsNotesList. -type ExtrasSecretsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasStatusesBulkDestroyJSONBody defines parameters for ExtrasStatusesBulkDestroy. -type ExtrasStatusesBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasStatusesListParams defines parameters for ExtrasStatusesList. -type ExtrasStatusesListParams struct { - Color *[]string `form:"color,omitempty" json:"color,omitempty"` - ColorIc *[]string `form:"color__ic,omitempty" json:"color__ic,omitempty"` - ColorIe *[]string `form:"color__ie,omitempty" json:"color__ie,omitempty"` - ColorIew *[]string `form:"color__iew,omitempty" json:"color__iew,omitempty"` - ColorIre *[]string `form:"color__ire,omitempty" json:"color__ire,omitempty"` - ColorIsw *[]string `form:"color__isw,omitempty" json:"color__isw,omitempty"` - ColorN *[]string `form:"color__n,omitempty" json:"color__n,omitempty"` - ColorNic *[]string `form:"color__nic,omitempty" json:"color__nic,omitempty"` - ColorNie *[]string `form:"color__nie,omitempty" json:"color__nie,omitempty"` - ColorNiew *[]string `form:"color__niew,omitempty" json:"color__niew,omitempty"` - ColorNire *[]string `form:"color__nire,omitempty" json:"color__nire,omitempty"` - ColorNisw *[]string `form:"color__nisw,omitempty" json:"color__nisw,omitempty"` - ColorNre *[]string `form:"color__nre,omitempty" json:"color__nre,omitempty"` - ColorRe *[]string `form:"color__re,omitempty" json:"color__re,omitempty"` - ContentTypes *[]int `form:"content_types,omitempty" json:"content_types,omitempty"` - ContentTypesN *[]int `form:"content_types__n,omitempty" json:"content_types__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// ExtrasStatusesBulkPartialUpdateJSONBody defines parameters for ExtrasStatusesBulkPartialUpdate. -type ExtrasStatusesBulkPartialUpdateJSONBody = []PatchedBulkWritableStatusRequest - -// ExtrasStatusesBulkUpdateJSONBody defines parameters for ExtrasStatusesBulkUpdate. -type ExtrasStatusesBulkUpdateJSONBody = []BulkWritableStatusRequest - -// ExtrasStatusesNotesListParams defines parameters for ExtrasStatusesNotesList. -type ExtrasStatusesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasTagsBulkDestroyJSONBody defines parameters for ExtrasTagsBulkDestroy. -type ExtrasTagsBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasTagsListParams defines parameters for ExtrasTagsList. -type ExtrasTagsListParams struct { - Color *[]string `form:"color,omitempty" json:"color,omitempty"` - ColorIc *[]string `form:"color__ic,omitempty" json:"color__ic,omitempty"` - ColorIe *[]string `form:"color__ie,omitempty" json:"color__ie,omitempty"` - ColorIew *[]string `form:"color__iew,omitempty" json:"color__iew,omitempty"` - ColorIre *[]string `form:"color__ire,omitempty" json:"color__ire,omitempty"` - ColorIsw *[]string `form:"color__isw,omitempty" json:"color__isw,omitempty"` - ColorN *[]string `form:"color__n,omitempty" json:"color__n,omitempty"` - ColorNic *[]string `form:"color__nic,omitempty" json:"color__nic,omitempty"` - ColorNie *[]string `form:"color__nie,omitempty" json:"color__nie,omitempty"` - ColorNiew *[]string `form:"color__niew,omitempty" json:"color__niew,omitempty"` - ColorNire *[]string `form:"color__nire,omitempty" json:"color__nire,omitempty"` - ColorNisw *[]string `form:"color__nisw,omitempty" json:"color__nisw,omitempty"` - ColorNre *[]string `form:"color__nre,omitempty" json:"color__nre,omitempty"` - ColorRe *[]string `form:"color__re,omitempty" json:"color__re,omitempty"` - ContentTypes *[]int `form:"content_types,omitempty" json:"content_types,omitempty"` - ContentTypesN *[]int `form:"content_types__n,omitempty" json:"content_types__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// ExtrasTagsBulkPartialUpdateJSONBody defines parameters for ExtrasTagsBulkPartialUpdate. -type ExtrasTagsBulkPartialUpdateJSONBody = []PatchedBulkWritableTagSerializerVersion13Request - -// ExtrasTagsBulkUpdateJSONBody defines parameters for ExtrasTagsBulkUpdate. -type ExtrasTagsBulkUpdateJSONBody = []BulkWritableTagSerializerVersion13Request - -// ExtrasTagsNotesListParams defines parameters for ExtrasTagsNotesList. -type ExtrasTagsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ExtrasWebhooksBulkDestroyJSONBody defines parameters for ExtrasWebhooksBulkDestroy. -type ExtrasWebhooksBulkDestroyJSONBody = []BulkOperationRequest - -// ExtrasWebhooksListParams defines parameters for ExtrasWebhooksList. -type ExtrasWebhooksListParams struct { - ContentTypes *[]int `form:"content_types,omitempty" json:"content_types,omitempty"` - ContentTypesN *[]int `form:"content_types__n,omitempty" json:"content_types__n,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PayloadUrl *[]string `form:"payload_url,omitempty" json:"payload_url,omitempty"` - PayloadUrlIc *[]string `form:"payload_url__ic,omitempty" json:"payload_url__ic,omitempty"` - PayloadUrlIe *[]string `form:"payload_url__ie,omitempty" json:"payload_url__ie,omitempty"` - PayloadUrlIew *[]string `form:"payload_url__iew,omitempty" json:"payload_url__iew,omitempty"` - PayloadUrlIre *[]string `form:"payload_url__ire,omitempty" json:"payload_url__ire,omitempty"` - PayloadUrlIsw *[]string `form:"payload_url__isw,omitempty" json:"payload_url__isw,omitempty"` - PayloadUrlN *[]string `form:"payload_url__n,omitempty" json:"payload_url__n,omitempty"` - PayloadUrlNic *[]string `form:"payload_url__nic,omitempty" json:"payload_url__nic,omitempty"` - PayloadUrlNie *[]string `form:"payload_url__nie,omitempty" json:"payload_url__nie,omitempty"` - PayloadUrlNiew *[]string `form:"payload_url__niew,omitempty" json:"payload_url__niew,omitempty"` - PayloadUrlNire *[]string `form:"payload_url__nire,omitempty" json:"payload_url__nire,omitempty"` - PayloadUrlNisw *[]string `form:"payload_url__nisw,omitempty" json:"payload_url__nisw,omitempty"` - PayloadUrlNre *[]string `form:"payload_url__nre,omitempty" json:"payload_url__nre,omitempty"` - PayloadUrlRe *[]string `form:"payload_url__re,omitempty" json:"payload_url__re,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - TypeCreate *bool `form:"type_create,omitempty" json:"type_create,omitempty"` - TypeDelete *bool `form:"type_delete,omitempty" json:"type_delete,omitempty"` - TypeUpdate *bool `form:"type_update,omitempty" json:"type_update,omitempty"` -} - -// ExtrasWebhooksBulkPartialUpdateJSONBody defines parameters for ExtrasWebhooksBulkPartialUpdate. -type ExtrasWebhooksBulkPartialUpdateJSONBody = []PatchedBulkWritableWebhookRequest - -// ExtrasWebhooksBulkUpdateJSONBody defines parameters for ExtrasWebhooksBulkUpdate. -type ExtrasWebhooksBulkUpdateJSONBody = []BulkWritableWebhookRequest - -// ExtrasWebhooksNotesListParams defines parameters for ExtrasWebhooksNotesList. -type ExtrasWebhooksNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamAggregatesBulkDestroyJSONBody defines parameters for IpamAggregatesBulkDestroy. -type IpamAggregatesBulkDestroyJSONBody = []BulkOperationRequest - -// IpamAggregatesListParams defines parameters for IpamAggregatesList. -type IpamAggregatesListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - DateAdded *[]openapi_types.Date `form:"date_added,omitempty" json:"date_added,omitempty"` - DateAddedGt *[]openapi_types.Date `form:"date_added__gt,omitempty" json:"date_added__gt,omitempty"` - DateAddedGte *[]openapi_types.Date `form:"date_added__gte,omitempty" json:"date_added__gte,omitempty"` - DateAddedLt *[]openapi_types.Date `form:"date_added__lt,omitempty" json:"date_added__lt,omitempty"` - DateAddedLte *[]openapi_types.Date `form:"date_added__lte,omitempty" json:"date_added__lte,omitempty"` - DateAddedN *[]openapi_types.Date `form:"date_added__n,omitempty" json:"date_added__n,omitempty"` - - // Family Family - Family *float32 `form:"family,omitempty" json:"family,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Prefix Prefix - Prefix *string `form:"prefix,omitempty" json:"prefix,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Rir RIR (slug) - Rir *[]string `form:"rir,omitempty" json:"rir,omitempty"` - - // RirN RIR (slug) - RirN *[]string `form:"rir__n,omitempty" json:"rir__n,omitempty"` - - // RirId RIR (ID) - RirId *[]openapi_types.UUID `form:"rir_id,omitempty" json:"rir_id,omitempty"` - - // RirIdN RIR (ID) - RirIdN *[]openapi_types.UUID `form:"rir_id__n,omitempty" json:"rir_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` -} - -// IpamAggregatesBulkPartialUpdateJSONBody defines parameters for IpamAggregatesBulkPartialUpdate. -type IpamAggregatesBulkPartialUpdateJSONBody = []PatchedBulkWritableAggregateRequest - -// IpamAggregatesBulkUpdateJSONBody defines parameters for IpamAggregatesBulkUpdate. -type IpamAggregatesBulkUpdateJSONBody = []BulkWritableAggregateRequest - -// IpamAggregatesNotesListParams defines parameters for IpamAggregatesNotesList. -type IpamAggregatesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamIpAddressesBulkDestroyJSONBody defines parameters for IpamIpAddressesBulkDestroy. -type IpamIpAddressesBulkDestroyJSONBody = []BulkOperationRequest - -// IpamIpAddressesListParams defines parameters for IpamIpAddressesList. -type IpamIpAddressesListParams struct { - // Address Address - Address *[]string `form:"address,omitempty" json:"address,omitempty"` - - // AssignedToInterface Is assigned to an interface - AssignedToInterface *bool `form:"assigned_to_interface,omitempty" json:"assigned_to_interface,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - DnsName *[]string `form:"dns_name,omitempty" json:"dns_name,omitempty"` - DnsNameIc *[]string `form:"dns_name__ic,omitempty" json:"dns_name__ic,omitempty"` - DnsNameIe *[]string `form:"dns_name__ie,omitempty" json:"dns_name__ie,omitempty"` - DnsNameIew *[]string `form:"dns_name__iew,omitempty" json:"dns_name__iew,omitempty"` - DnsNameIre *[]string `form:"dns_name__ire,omitempty" json:"dns_name__ire,omitempty"` - DnsNameIsw *[]string `form:"dns_name__isw,omitempty" json:"dns_name__isw,omitempty"` - DnsNameN *[]string `form:"dns_name__n,omitempty" json:"dns_name__n,omitempty"` - DnsNameNic *[]string `form:"dns_name__nic,omitempty" json:"dns_name__nic,omitempty"` - DnsNameNie *[]string `form:"dns_name__nie,omitempty" json:"dns_name__nie,omitempty"` - DnsNameNiew *[]string `form:"dns_name__niew,omitempty" json:"dns_name__niew,omitempty"` - DnsNameNire *[]string `form:"dns_name__nire,omitempty" json:"dns_name__nire,omitempty"` - DnsNameNisw *[]string `form:"dns_name__nisw,omitempty" json:"dns_name__nisw,omitempty"` - DnsNameNre *[]string `form:"dns_name__nre,omitempty" json:"dns_name__nre,omitempty"` - DnsNameRe *[]string `form:"dns_name__re,omitempty" json:"dns_name__re,omitempty"` - - // Family Family - Family *float32 `form:"family,omitempty" json:"family,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Interface Interface (name) - Interface *[]string `form:"interface,omitempty" json:"interface,omitempty"` - - // InterfaceN Interface (name) - InterfaceN *[]string `form:"interface__n,omitempty" json:"interface__n,omitempty"` - - // InterfaceId Interface (ID) - InterfaceId *[]openapi_types.UUID `form:"interface_id,omitempty" json:"interface_id,omitempty"` - - // InterfaceIdN Interface (ID) - InterfaceIdN *[]openapi_types.UUID `form:"interface_id__n,omitempty" json:"interface_id__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // MaskLength Mask length - MaskLength *float32 `form:"mask_length,omitempty" json:"mask_length,omitempty"` - - // NautobotBgpModelsIpsBgpRoutingInstance Routing Instance UUID - NautobotBgpModelsIpsBgpRoutingInstance *[]string `form:"nautobot_bgp_models_ips_bgp_routing_instance,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceIc *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__ic,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__ic,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceIe *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__ie,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__ie,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceIew *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__iew,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__iew,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceIre *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__ire,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__ire,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceIsw *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__isw,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__isw,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceN *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__n,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__n,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceNic *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__nic,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__nic,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceNie *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__nie,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__nie,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceNiew *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__niew,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__niew,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceNire *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__nire,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__nire,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceNisw *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__nisw,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__nisw,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceNre *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__nre,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__nre,omitempty"` - NautobotBgpModelsIpsBgpRoutingInstanceRe *[]openapi_types.UUID `form:"nautobot_bgp_models_ips_bgp_routing_instance__re,omitempty" json:"nautobot_bgp_models_ips_bgp_routing_instance__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Parent Parent prefix - Parent *string `form:"parent,omitempty" json:"parent,omitempty"` - - // PresentInVrf VRF (RD) - PresentInVrf *string `form:"present_in_vrf,omitempty" json:"present_in_vrf,omitempty"` - - // PresentInVrfId VRF - PresentInVrfId *openapi_types.UUID `form:"present_in_vrf_id,omitempty" json:"present_in_vrf_id,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Role The functional role of this IP - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN The functional role of this IP - RoleN *[]string `form:"role__n,omitempty" json:"role__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // VirtualMachine Virtual machine (name) - VirtualMachine *[]string `form:"virtual_machine,omitempty" json:"virtual_machine,omitempty"` - - // VirtualMachineId Virtual machine (ID) - VirtualMachineId *[]openapi_types.UUID `form:"virtual_machine_id,omitempty" json:"virtual_machine_id,omitempty"` - - // Vminterface VM interface (name) - Vminterface *[]string `form:"vminterface,omitempty" json:"vminterface,omitempty"` - - // VminterfaceN VM interface (name) - VminterfaceN *[]string `form:"vminterface__n,omitempty" json:"vminterface__n,omitempty"` - - // VminterfaceId VM interface (ID) - VminterfaceId *[]openapi_types.UUID `form:"vminterface_id,omitempty" json:"vminterface_id,omitempty"` - - // VminterfaceIdN VM interface (ID) - VminterfaceIdN *[]openapi_types.UUID `form:"vminterface_id__n,omitempty" json:"vminterface_id__n,omitempty"` - - // Vrf VRF (RD) - Vrf *[]string `form:"vrf,omitempty" json:"vrf,omitempty"` - - // VrfN VRF (RD) - VrfN *[]string `form:"vrf__n,omitempty" json:"vrf__n,omitempty"` - - // VrfId VRF - VrfId *[]openapi_types.UUID `form:"vrf_id,omitempty" json:"vrf_id,omitempty"` - - // VrfIdN VRF - VrfIdN *[]openapi_types.UUID `form:"vrf_id__n,omitempty" json:"vrf_id__n,omitempty"` -} - -// IpamIpAddressesBulkPartialUpdateJSONBody defines parameters for IpamIpAddressesBulkPartialUpdate. -type IpamIpAddressesBulkPartialUpdateJSONBody = []PatchedBulkWritableIPAddressRequest - -// IpamIpAddressesBulkUpdateJSONBody defines parameters for IpamIpAddressesBulkUpdate. -type IpamIpAddressesBulkUpdateJSONBody = []BulkWritableIPAddressRequest - -// IpamIpAddressesNotesListParams defines parameters for IpamIpAddressesNotesList. -type IpamIpAddressesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamPrefixesBulkDestroyJSONBody defines parameters for IpamPrefixesBulkDestroy. -type IpamPrefixesBulkDestroyJSONBody = []BulkOperationRequest - -// IpamPrefixesListParams defines parameters for IpamPrefixesList. -type IpamPrefixesListParams struct { - // Contains Prefixes which contain this prefix or IP - Contains *string `form:"contains,omitempty" json:"contains,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Family Family - Family *float32 `form:"family,omitempty" json:"family,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - IsPool *bool `form:"is_pool,omitempty" json:"is_pool,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - - // MaskLength mask_length - MaskLength *float32 `form:"mask_length,omitempty" json:"mask_length,omitempty"` - - // MaskLengthGte mask_length__gte - MaskLengthGte *float32 `form:"mask_length__gte,omitempty" json:"mask_length__gte,omitempty"` - - // MaskLengthLte mask_length__lte - MaskLengthLte *float32 `form:"mask_length__lte,omitempty" json:"mask_length__lte,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Prefix Prefix - Prefix *string `form:"prefix,omitempty" json:"prefix,omitempty"` - - // PresentInVrf VRF (RD) - PresentInVrf *string `form:"present_in_vrf,omitempty" json:"present_in_vrf,omitempty"` - - // PresentInVrfId VRF - PresentInVrfId *openapi_types.UUID `form:"present_in_vrf_id,omitempty" json:"present_in_vrf_id,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Role Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Role (slug) - RoleN *[]string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoleId Role (ID) - RoleId *[]openapi_types.UUID `form:"role_id,omitempty" json:"role_id,omitempty"` - - // RoleIdN Role (ID) - RoleIdN *[]openapi_types.UUID `form:"role_id__n,omitempty" json:"role_id__n,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // VlanId VLAN (ID) - VlanId *[]openapi_types.UUID `form:"vlan_id,omitempty" json:"vlan_id,omitempty"` - - // VlanIdN VLAN (ID) - VlanIdN *[]openapi_types.UUID `form:"vlan_id__n,omitempty" json:"vlan_id__n,omitempty"` - - // VlanVid VLAN number (1-4095) - VlanVid *int `form:"vlan_vid,omitempty" json:"vlan_vid,omitempty"` - - // Vrf VRF (RD) - Vrf *[]string `form:"vrf,omitempty" json:"vrf,omitempty"` - - // VrfN VRF (RD) - VrfN *[]string `form:"vrf__n,omitempty" json:"vrf__n,omitempty"` - - // VrfId VRF - VrfId *[]openapi_types.UUID `form:"vrf_id,omitempty" json:"vrf_id,omitempty"` - - // VrfIdN VRF - VrfIdN *[]openapi_types.UUID `form:"vrf_id__n,omitempty" json:"vrf_id__n,omitempty"` - - // Within Within prefix - Within *string `form:"within,omitempty" json:"within,omitempty"` - - // WithinInclude Within and including prefix - WithinInclude *string `form:"within_include,omitempty" json:"within_include,omitempty"` -} - -// IpamPrefixesBulkPartialUpdateJSONBody defines parameters for IpamPrefixesBulkPartialUpdate. -type IpamPrefixesBulkPartialUpdateJSONBody = []PatchedBulkWritablePrefixRequest - -// IpamPrefixesBulkUpdateJSONBody defines parameters for IpamPrefixesBulkUpdate. -type IpamPrefixesBulkUpdateJSONBody = []BulkWritablePrefixRequest - -// IpamPrefixesAvailableIpsListParams defines parameters for IpamPrefixesAvailableIpsList. -type IpamPrefixesAvailableIpsListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamPrefixesAvailableIpsCreateParams defines parameters for IpamPrefixesAvailableIpsCreate. -type IpamPrefixesAvailableIpsCreateParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamPrefixesAvailablePrefixesListParams defines parameters for IpamPrefixesAvailablePrefixesList. -type IpamPrefixesAvailablePrefixesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamPrefixesNotesListParams defines parameters for IpamPrefixesNotesList. -type IpamPrefixesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamRirsBulkDestroyJSONBody defines parameters for IpamRirsBulkDestroy. -type IpamRirsBulkDestroyJSONBody = []BulkOperationRequest - -// IpamRirsListParams defines parameters for IpamRirsList. -type IpamRirsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - IsPrivate *bool `form:"is_private,omitempty" json:"is_private,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// IpamRirsBulkPartialUpdateJSONBody defines parameters for IpamRirsBulkPartialUpdate. -type IpamRirsBulkPartialUpdateJSONBody = []PatchedBulkWritableRIRRequest - -// IpamRirsBulkUpdateJSONBody defines parameters for IpamRirsBulkUpdate. -type IpamRirsBulkUpdateJSONBody = []BulkWritableRIRRequest - -// IpamRirsNotesListParams defines parameters for IpamRirsNotesList. -type IpamRirsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamRolesBulkDestroyJSONBody defines parameters for IpamRolesBulkDestroy. -type IpamRolesBulkDestroyJSONBody = []BulkOperationRequest - -// IpamRolesListParams defines parameters for IpamRolesList. -type IpamRolesListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// IpamRolesBulkPartialUpdateJSONBody defines parameters for IpamRolesBulkPartialUpdate. -type IpamRolesBulkPartialUpdateJSONBody = []PatchedBulkWritableRoleRequest - -// IpamRolesBulkUpdateJSONBody defines parameters for IpamRolesBulkUpdate. -type IpamRolesBulkUpdateJSONBody = []BulkWritableRoleRequest - -// IpamRolesNotesListParams defines parameters for IpamRolesNotesList. -type IpamRolesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamRouteTargetsBulkDestroyJSONBody defines parameters for IpamRouteTargetsBulkDestroy. -type IpamRouteTargetsBulkDestroyJSONBody = []BulkOperationRequest - -// IpamRouteTargetsListParams defines parameters for IpamRouteTargetsList. -type IpamRouteTargetsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // ExportingVrf Export VRF (RD) - ExportingVrf *[]string `form:"exporting_vrf,omitempty" json:"exporting_vrf,omitempty"` - - // ExportingVrfN Export VRF (RD) - ExportingVrfN *[]string `form:"exporting_vrf__n,omitempty" json:"exporting_vrf__n,omitempty"` - - // ExportingVrfId Exporting VRF - ExportingVrfId *[]openapi_types.UUID `form:"exporting_vrf_id,omitempty" json:"exporting_vrf_id,omitempty"` - - // ExportingVrfIdN Exporting VRF - ExportingVrfIdN *[]openapi_types.UUID `form:"exporting_vrf_id__n,omitempty" json:"exporting_vrf_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // ImportingVrf Import VRF (RD) - ImportingVrf *[]string `form:"importing_vrf,omitempty" json:"importing_vrf,omitempty"` - - // ImportingVrfN Import VRF (RD) - ImportingVrfN *[]string `form:"importing_vrf__n,omitempty" json:"importing_vrf__n,omitempty"` - - // ImportingVrfId Importing VRF - ImportingVrfId *[]openapi_types.UUID `form:"importing_vrf_id,omitempty" json:"importing_vrf_id,omitempty"` - - // ImportingVrfIdN Importing VRF - ImportingVrfIdN *[]openapi_types.UUID `form:"importing_vrf_id__n,omitempty" json:"importing_vrf_id__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` -} - -// IpamRouteTargetsBulkPartialUpdateJSONBody defines parameters for IpamRouteTargetsBulkPartialUpdate. -type IpamRouteTargetsBulkPartialUpdateJSONBody = []PatchedBulkWritableRouteTargetRequest - -// IpamRouteTargetsBulkUpdateJSONBody defines parameters for IpamRouteTargetsBulkUpdate. -type IpamRouteTargetsBulkUpdateJSONBody = []BulkWritableRouteTargetRequest - -// IpamRouteTargetsNotesListParams defines parameters for IpamRouteTargetsNotesList. -type IpamRouteTargetsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamServicesBulkDestroyJSONBody defines parameters for IpamServicesBulkDestroy. -type IpamServicesBulkDestroyJSONBody = []BulkOperationRequest - -// IpamServicesListParams defines parameters for IpamServicesList. -type IpamServicesListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Port *float32 `form:"port,omitempty" json:"port,omitempty"` - Protocol *string `form:"protocol,omitempty" json:"protocol,omitempty"` - ProtocolN *string `form:"protocol__n,omitempty" json:"protocol__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // VirtualMachine Virtual machine (name) - VirtualMachine *[]string `form:"virtual_machine,omitempty" json:"virtual_machine,omitempty"` - - // VirtualMachineN Virtual machine (name) - VirtualMachineN *[]string `form:"virtual_machine__n,omitempty" json:"virtual_machine__n,omitempty"` - - // VirtualMachineId Virtual machine (ID) - VirtualMachineId *[]openapi_types.UUID `form:"virtual_machine_id,omitempty" json:"virtual_machine_id,omitempty"` - - // VirtualMachineIdN Virtual machine (ID) - VirtualMachineIdN *[]openapi_types.UUID `form:"virtual_machine_id__n,omitempty" json:"virtual_machine_id__n,omitempty"` -} - -// IpamServicesBulkPartialUpdateJSONBody defines parameters for IpamServicesBulkPartialUpdate. -type IpamServicesBulkPartialUpdateJSONBody = []PatchedBulkWritableServiceRequest - -// IpamServicesBulkUpdateJSONBody defines parameters for IpamServicesBulkUpdate. -type IpamServicesBulkUpdateJSONBody = []BulkWritableServiceRequest - -// IpamServicesNotesListParams defines parameters for IpamServicesNotesList. -type IpamServicesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamVlanGroupsBulkDestroyJSONBody defines parameters for IpamVlanGroupsBulkDestroy. -type IpamVlanGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// IpamVlanGroupsListParams defines parameters for IpamVlanGroupsList. -type IpamVlanGroupsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// IpamVlanGroupsBulkPartialUpdateJSONBody defines parameters for IpamVlanGroupsBulkPartialUpdate. -type IpamVlanGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableVLANGroupRequest - -// IpamVlanGroupsBulkUpdateJSONBody defines parameters for IpamVlanGroupsBulkUpdate. -type IpamVlanGroupsBulkUpdateJSONBody = []BulkWritableVLANGroupRequest - -// IpamVlanGroupsNotesListParams defines parameters for IpamVlanGroupsNotesList. -type IpamVlanGroupsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamVlansBulkDestroyJSONBody defines parameters for IpamVlansBulkDestroy. -type IpamVlansBulkDestroyJSONBody = []BulkOperationRequest - -// IpamVlansListParams defines parameters for IpamVlansList. -type IpamVlansListParams struct { - // AvailableOnDevice Device (ID) - AvailableOnDevice *openapi_types.UUID `form:"available_on_device,omitempty" json:"available_on_device,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Group Group - Group *[]string `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Group - GroupN *[]string `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Group (ID) - GroupId *[]openapi_types.UUID `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Group (ID) - GroupIdN *[]openapi_types.UUID `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Role Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Role (slug) - RoleN *[]string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoleId Role (ID) - RoleId *[]openapi_types.UUID `form:"role_id,omitempty" json:"role_id,omitempty"` - - // RoleIdN Role (ID) - RoleIdN *[]openapi_types.UUID `form:"role_id__n,omitempty" json:"role_id__n,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - Vid *[]int `form:"vid,omitempty" json:"vid,omitempty"` - VidGt *[]int `form:"vid__gt,omitempty" json:"vid__gt,omitempty"` - VidGte *[]int `form:"vid__gte,omitempty" json:"vid__gte,omitempty"` - VidLt *[]int `form:"vid__lt,omitempty" json:"vid__lt,omitempty"` - VidLte *[]int `form:"vid__lte,omitempty" json:"vid__lte,omitempty"` - VidN *[]int `form:"vid__n,omitempty" json:"vid__n,omitempty"` -} - -// IpamVlansBulkPartialUpdateJSONBody defines parameters for IpamVlansBulkPartialUpdate. -type IpamVlansBulkPartialUpdateJSONBody = []PatchedBulkWritableVLANRequest - -// IpamVlansBulkUpdateJSONBody defines parameters for IpamVlansBulkUpdate. -type IpamVlansBulkUpdateJSONBody = []BulkWritableVLANRequest - -// IpamVlansNotesListParams defines parameters for IpamVlansNotesList. -type IpamVlansNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// IpamVrfsBulkDestroyJSONBody defines parameters for IpamVrfsBulkDestroy. -type IpamVrfsBulkDestroyJSONBody = []BulkOperationRequest - -// IpamVrfsListParams defines parameters for IpamVrfsList. -type IpamVrfsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - EnforceUnique *bool `form:"enforce_unique,omitempty" json:"enforce_unique,omitempty"` - - // ExportTarget Export target (name) - ExportTarget *[]string `form:"export_target,omitempty" json:"export_target,omitempty"` - - // ExportTargetN Export target (name) - ExportTargetN *[]string `form:"export_target__n,omitempty" json:"export_target__n,omitempty"` - - // ExportTargetId Export target - ExportTargetId *[]openapi_types.UUID `form:"export_target_id,omitempty" json:"export_target_id,omitempty"` - - // ExportTargetIdN Export target - ExportTargetIdN *[]openapi_types.UUID `form:"export_target_id__n,omitempty" json:"export_target_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // ImportTarget Import target (name) - ImportTarget *[]string `form:"import_target,omitempty" json:"import_target,omitempty"` - - // ImportTargetN Import target (name) - ImportTargetN *[]string `form:"import_target__n,omitempty" json:"import_target__n,omitempty"` - - // ImportTargetId Import target - ImportTargetId *[]openapi_types.UUID `form:"import_target_id,omitempty" json:"import_target_id,omitempty"` - - // ImportTargetIdN Import target - ImportTargetIdN *[]openapi_types.UUID `form:"import_target_id__n,omitempty" json:"import_target_id__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Rd *[]string `form:"rd,omitempty" json:"rd,omitempty"` - RdIc *[]string `form:"rd__ic,omitempty" json:"rd__ic,omitempty"` - RdIe *[]string `form:"rd__ie,omitempty" json:"rd__ie,omitempty"` - RdIew *[]string `form:"rd__iew,omitempty" json:"rd__iew,omitempty"` - RdIre *[]string `form:"rd__ire,omitempty" json:"rd__ire,omitempty"` - RdIsw *[]string `form:"rd__isw,omitempty" json:"rd__isw,omitempty"` - RdN *[]string `form:"rd__n,omitempty" json:"rd__n,omitempty"` - RdNic *[]string `form:"rd__nic,omitempty" json:"rd__nic,omitempty"` - RdNie *[]string `form:"rd__nie,omitempty" json:"rd__nie,omitempty"` - RdNiew *[]string `form:"rd__niew,omitempty" json:"rd__niew,omitempty"` - RdNire *[]string `form:"rd__nire,omitempty" json:"rd__nire,omitempty"` - RdNisw *[]string `form:"rd__nisw,omitempty" json:"rd__nisw,omitempty"` - RdNre *[]string `form:"rd__nre,omitempty" json:"rd__nre,omitempty"` - RdRe *[]string `form:"rd__re,omitempty" json:"rd__re,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` -} - -// IpamVrfsBulkPartialUpdateJSONBody defines parameters for IpamVrfsBulkPartialUpdate. -type IpamVrfsBulkPartialUpdateJSONBody = []PatchedBulkWritableVRFRequest - -// IpamVrfsBulkUpdateJSONBody defines parameters for IpamVrfsBulkUpdate. -type IpamVrfsBulkUpdateJSONBody = []BulkWritableVRFRequest - -// IpamVrfsNotesListParams defines parameters for IpamVrfsNotesList. -type IpamVrfsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsBgpAddressFamiliesBulkDestroyJSONBody defines parameters for PluginsBgpAddressFamiliesBulkDestroy. -type PluginsBgpAddressFamiliesBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpAddressFamiliesListParams defines parameters for PluginsBgpAddressFamiliesList. -type PluginsBgpAddressFamiliesListParams struct { - AfiSafi *[]string `form:"afi_safi,omitempty" json:"afi_safi,omitempty"` - AfiSafiN *[]string `form:"afi_safi__n,omitempty" json:"afi_safi__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // RoutingInstance BGP Routing Instance ID - RoutingInstance *[]openapi_types.UUID `form:"routing_instance,omitempty" json:"routing_instance,omitempty"` - - // RoutingInstanceN BGP Routing Instance ID - RoutingInstanceN *[]openapi_types.UUID `form:"routing_instance__n,omitempty" json:"routing_instance__n,omitempty"` - - // Vrf VRF (name) - Vrf *[]string `form:"vrf,omitempty" json:"vrf,omitempty"` - - // VrfN VRF (name) - VrfN *[]string `form:"vrf__n,omitempty" json:"vrf__n,omitempty"` -} - -// PluginsBgpAddressFamiliesBulkPartialUpdateJSONBody defines parameters for PluginsBgpAddressFamiliesBulkPartialUpdate. -type PluginsBgpAddressFamiliesBulkPartialUpdateJSONBody = []PatchedBulkWritableAddressFamilyRequest - -// PluginsBgpAddressFamiliesBulkUpdateJSONBody defines parameters for PluginsBgpAddressFamiliesBulkUpdate. -type PluginsBgpAddressFamiliesBulkUpdateJSONBody = []BulkWritableAddressFamilyRequest - -// PluginsBgpAddressFamiliesRetrieveParams defines parameters for PluginsBgpAddressFamiliesRetrieve. -type PluginsBgpAddressFamiliesRetrieveParams struct { - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` -} - -// PluginsBgpAutonomousSystemsBulkDestroyJSONBody defines parameters for PluginsBgpAutonomousSystemsBulkDestroy. -type PluginsBgpAutonomousSystemsBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpAutonomousSystemsListParams defines parameters for PluginsBgpAutonomousSystemsList. -type PluginsBgpAutonomousSystemsListParams struct { - Asn *[]int `form:"asn,omitempty" json:"asn,omitempty"` - AsnGt *[]int `form:"asn__gt,omitempty" json:"asn__gt,omitempty"` - AsnGte *[]int `form:"asn__gte,omitempty" json:"asn__gte,omitempty"` - AsnLt *[]int `form:"asn__lt,omitempty" json:"asn__lt,omitempty"` - AsnLte *[]int `form:"asn__lte,omitempty" json:"asn__lte,omitempty"` - AsnN *[]int `form:"asn__n,omitempty" json:"asn__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// PluginsBgpAutonomousSystemsBulkPartialUpdateJSONBody defines parameters for PluginsBgpAutonomousSystemsBulkPartialUpdate. -type PluginsBgpAutonomousSystemsBulkPartialUpdateJSONBody = []PatchedBulkWritableAutonomousSystemRequest - -// PluginsBgpAutonomousSystemsBulkUpdateJSONBody defines parameters for PluginsBgpAutonomousSystemsBulkUpdate. -type PluginsBgpAutonomousSystemsBulkUpdateJSONBody = []BulkWritableAutonomousSystemRequest - -// PluginsBgpPeerEndpointsBulkDestroyJSONBody defines parameters for PluginsBgpPeerEndpointsBulkDestroy. -type PluginsBgpPeerEndpointsBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpPeerEndpointsListParams defines parameters for PluginsBgpPeerEndpointsList. -type PluginsBgpPeerEndpointsListParams struct { - // AutonomousSystem Autonomous System Number - AutonomousSystem *string `form:"autonomous_system,omitempty" json:"autonomous_system,omitempty"` - - // AutonomousSystemN Autonomous System Number - AutonomousSystemN *string `form:"autonomous_system__n,omitempty" json:"autonomous_system__n,omitempty"` - - // Device Device (name) - Device *string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // Enabled enabled - Enabled *string `form:"enabled,omitempty" json:"enabled,omitempty"` - - // Id id - Id *string `form:"id,omitempty" json:"id,omitempty"` - - // IdIc id__ic - IdIc *string `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe id__ie - IdIe *string `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew id__iew - IdIew *string `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre id__ire - IdIre *string `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw id__isw - IdIsw *string `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN id__n - IdN *string `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic id__nic - IdNic *string `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie id__nie - IdNie *string `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew id__niew - IdNiew *string `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire id__nire - IdNire *string `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw id__nisw - IdNisw *string `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre id__nre - IdNre *string `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe id__re - IdRe *string `form:"id__re,omitempty" json:"id__re,omitempty"` - - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // PeerGroup Peer Group (id) - PeerGroup *string `form:"peer_group,omitempty" json:"peer_group,omitempty"` - - // PeerGroupN Peer Group (id) - PeerGroupN *string `form:"peer_group__n,omitempty" json:"peer_group__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// PluginsBgpPeerEndpointsBulkPartialUpdateJSONBody defines parameters for PluginsBgpPeerEndpointsBulkPartialUpdate. -type PluginsBgpPeerEndpointsBulkPartialUpdateJSONBody = []PatchedBulkWritablePeerEndpointRequest - -// PluginsBgpPeerEndpointsBulkUpdateJSONBody defines parameters for PluginsBgpPeerEndpointsBulkUpdate. -type PluginsBgpPeerEndpointsBulkUpdateJSONBody = []BulkWritablePeerEndpointRequest - -// PluginsBgpPeerEndpointsRetrieveParams defines parameters for PluginsBgpPeerEndpointsRetrieve. -type PluginsBgpPeerEndpointsRetrieveParams struct { - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` -} - -// PluginsBgpPeerGroupTemplatesBulkDestroyJSONBody defines parameters for PluginsBgpPeerGroupTemplatesBulkDestroy. -type PluginsBgpPeerGroupTemplatesBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpPeerGroupTemplatesListParams defines parameters for PluginsBgpPeerGroupTemplatesList. -type PluginsBgpPeerGroupTemplatesListParams struct { - // AutonomousSystem Autonomous System Number - AutonomousSystem *[]int64 `form:"autonomous_system,omitempty" json:"autonomous_system,omitempty"` - - // AutonomousSystemN Autonomous System Number - AutonomousSystemN *[]int64 `form:"autonomous_system__n,omitempty" json:"autonomous_system__n,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Role Peering role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Peering role (slug) - RoleN *[]string `form:"role__n,omitempty" json:"role__n,omitempty"` -} - -// PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONBody defines parameters for PluginsBgpPeerGroupTemplatesBulkPartialUpdate. -type PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONBody = []PatchedBulkWritablePeerGroupTemplateRequest - -// PluginsBgpPeerGroupTemplatesBulkUpdateJSONBody defines parameters for PluginsBgpPeerGroupTemplatesBulkUpdate. -type PluginsBgpPeerGroupTemplatesBulkUpdateJSONBody = []BulkWritablePeerGroupTemplateRequest - -// PluginsBgpPeerGroupTemplatesRetrieveParams defines parameters for PluginsBgpPeerGroupTemplatesRetrieve. -type PluginsBgpPeerGroupTemplatesRetrieveParams struct { - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` -} - -// PluginsBgpPeerGroupsBulkDestroyJSONBody defines parameters for PluginsBgpPeerGroupsBulkDestroy. -type PluginsBgpPeerGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpPeerGroupsListParams defines parameters for PluginsBgpPeerGroupsList. -type PluginsBgpPeerGroupsListParams struct { - // AutonomousSystem Autonomous System Number - AutonomousSystem *string `form:"autonomous_system,omitempty" json:"autonomous_system,omitempty"` - - // AutonomousSystemN Autonomous System Number - AutonomousSystemN *string `form:"autonomous_system__n,omitempty" json:"autonomous_system__n,omitempty"` - - // Enabled enabled - Enabled *string `form:"enabled,omitempty" json:"enabled,omitempty"` - - // Id id - Id *string `form:"id,omitempty" json:"id,omitempty"` - - // IdIc id__ic - IdIc *string `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe id__ie - IdIe *string `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew id__iew - IdIew *string `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre id__ire - IdIre *string `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw id__isw - IdIsw *string `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN id__n - IdN *string `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic id__nic - IdNic *string `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie id__nie - IdNie *string `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew id__niew - IdNiew *string `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire id__nire - IdNire *string `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw id__nisw - IdNisw *string `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre id__nre - IdNre *string `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe id__re - IdRe *string `form:"id__re,omitempty" json:"id__re,omitempty"` - - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Name name - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc name__ic - NameIc *string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe name__ie - NameIe *string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew name__iew - NameIew *string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre name__ire - NameIre *string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw name__isw - NameIsw *string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN name__n - NameN *string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic name__nic - NameNic *string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie name__nie - NameNie *string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew name__niew - NameNiew *string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire name__nire - NameNire *string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw name__nisw - NameNisw *string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre name__nre - NameNre *string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe name__re - NameRe *string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Role Peering role (slug) - Role *string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Peering role (slug) - RoleN *string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoutingInstance BGP Routing Instance ID - RoutingInstance *string `form:"routing_instance,omitempty" json:"routing_instance,omitempty"` - - // RoutingInstanceN BGP Routing Instance ID - RoutingInstanceN *string `form:"routing_instance__n,omitempty" json:"routing_instance__n,omitempty"` -} - -// PluginsBgpPeerGroupsBulkPartialUpdateJSONBody defines parameters for PluginsBgpPeerGroupsBulkPartialUpdate. -type PluginsBgpPeerGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritablePeerGroupRequest - -// PluginsBgpPeerGroupsBulkUpdateJSONBody defines parameters for PluginsBgpPeerGroupsBulkUpdate. -type PluginsBgpPeerGroupsBulkUpdateJSONBody = []BulkWritablePeerGroupRequest - -// PluginsBgpPeerGroupsRetrieveParams defines parameters for PluginsBgpPeerGroupsRetrieve. -type PluginsBgpPeerGroupsRetrieveParams struct { - // IncludeInherited Include inherited configuration values - IncludeInherited *bool `form:"include_inherited,omitempty" json:"include_inherited,omitempty"` -} - -// PluginsBgpPeeringRolesBulkDestroyJSONBody defines parameters for PluginsBgpPeeringRolesBulkDestroy. -type PluginsBgpPeeringRolesBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpPeeringRolesListParams defines parameters for PluginsBgpPeeringRolesList. -type PluginsBgpPeeringRolesListParams struct { - Color *[]string `form:"color,omitempty" json:"color,omitempty"` - ColorIc *[]string `form:"color__ic,omitempty" json:"color__ic,omitempty"` - ColorIe *[]string `form:"color__ie,omitempty" json:"color__ie,omitempty"` - ColorIew *[]string `form:"color__iew,omitempty" json:"color__iew,omitempty"` - ColorIre *[]string `form:"color__ire,omitempty" json:"color__ire,omitempty"` - ColorIsw *[]string `form:"color__isw,omitempty" json:"color__isw,omitempty"` - ColorN *[]string `form:"color__n,omitempty" json:"color__n,omitempty"` - ColorNic *[]string `form:"color__nic,omitempty" json:"color__nic,omitempty"` - ColorNie *[]string `form:"color__nie,omitempty" json:"color__nie,omitempty"` - ColorNiew *[]string `form:"color__niew,omitempty" json:"color__niew,omitempty"` - ColorNire *[]string `form:"color__nire,omitempty" json:"color__nire,omitempty"` - ColorNisw *[]string `form:"color__nisw,omitempty" json:"color__nisw,omitempty"` - ColorNre *[]string `form:"color__nre,omitempty" json:"color__nre,omitempty"` - ColorRe *[]string `form:"color__re,omitempty" json:"color__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// PluginsBgpPeeringRolesBulkPartialUpdateJSONBody defines parameters for PluginsBgpPeeringRolesBulkPartialUpdate. -type PluginsBgpPeeringRolesBulkPartialUpdateJSONBody = []PatchedBulkWritablePeeringRoleRequest - -// PluginsBgpPeeringRolesBulkUpdateJSONBody defines parameters for PluginsBgpPeeringRolesBulkUpdate. -type PluginsBgpPeeringRolesBulkUpdateJSONBody = []BulkWritablePeeringRoleRequest - -// PluginsBgpPeeringsBulkDestroyJSONBody defines parameters for PluginsBgpPeeringsBulkDestroy. -type PluginsBgpPeeringsBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpPeeringsListParams defines parameters for PluginsBgpPeeringsList. -type PluginsBgpPeeringsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsBgpPeeringsBulkPartialUpdateJSONBody defines parameters for PluginsBgpPeeringsBulkPartialUpdate. -type PluginsBgpPeeringsBulkPartialUpdateJSONBody = []PatchedBulkWritablePeeringRequest - -// PluginsBgpPeeringsBulkUpdateJSONBody defines parameters for PluginsBgpPeeringsBulkUpdate. -type PluginsBgpPeeringsBulkUpdateJSONBody = []BulkWritablePeeringRequest - -// PluginsBgpRoutingInstancesBulkDestroyJSONBody defines parameters for PluginsBgpRoutingInstancesBulkDestroy. -type PluginsBgpRoutingInstancesBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsBgpRoutingInstancesListParams defines parameters for PluginsBgpRoutingInstancesList. -type PluginsBgpRoutingInstancesListParams struct { - // AutonomousSystem Autonomous System Number - AutonomousSystem *[]int64 `form:"autonomous_system,omitempty" json:"autonomous_system,omitempty"` - - // AutonomousSystemN Autonomous System Number - AutonomousSystemN *[]int64 `form:"autonomous_system__n,omitempty" json:"autonomous_system__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Device Device (name) - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device (name) - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device (ID) - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device (ID) - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// PluginsBgpRoutingInstancesBulkPartialUpdateJSONBody defines parameters for PluginsBgpRoutingInstancesBulkPartialUpdate. -type PluginsBgpRoutingInstancesBulkPartialUpdateJSONBody = []PatchedBulkWritableBGPRoutingInstanceRequest - -// PluginsBgpRoutingInstancesBulkUpdateJSONBody defines parameters for PluginsBgpRoutingInstancesBulkUpdate. -type PluginsBgpRoutingInstancesBulkUpdateJSONBody = []BulkWritableBGPRoutingInstanceRequest - -// PluginsChatopsAccessgrantBulkDestroyJSONBody defines parameters for PluginsChatopsAccessgrantBulkDestroy. -type PluginsChatopsAccessgrantBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsChatopsAccessgrantListParams defines parameters for PluginsChatopsAccessgrantList. -type PluginsChatopsAccessgrantListParams struct { - Command *[]string `form:"command,omitempty" json:"command,omitempty"` - CommandIc *[]string `form:"command__ic,omitempty" json:"command__ic,omitempty"` - CommandIe *[]string `form:"command__ie,omitempty" json:"command__ie,omitempty"` - CommandIew *[]string `form:"command__iew,omitempty" json:"command__iew,omitempty"` - CommandIre *[]string `form:"command__ire,omitempty" json:"command__ire,omitempty"` - CommandIsw *[]string `form:"command__isw,omitempty" json:"command__isw,omitempty"` - CommandN *[]string `form:"command__n,omitempty" json:"command__n,omitempty"` - CommandNic *[]string `form:"command__nic,omitempty" json:"command__nic,omitempty"` - CommandNie *[]string `form:"command__nie,omitempty" json:"command__nie,omitempty"` - CommandNiew *[]string `form:"command__niew,omitempty" json:"command__niew,omitempty"` - CommandNire *[]string `form:"command__nire,omitempty" json:"command__nire,omitempty"` - CommandNisw *[]string `form:"command__nisw,omitempty" json:"command__nisw,omitempty"` - CommandNre *[]string `form:"command__nre,omitempty" json:"command__nre,omitempty"` - CommandRe *[]string `form:"command__re,omitempty" json:"command__re,omitempty"` - GrantType *string `form:"grant_type,omitempty" json:"grant_type,omitempty"` - GrantTypeN *string `form:"grant_type__n,omitempty" json:"grant_type__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Subcommand *[]string `form:"subcommand,omitempty" json:"subcommand,omitempty"` - SubcommandIc *[]string `form:"subcommand__ic,omitempty" json:"subcommand__ic,omitempty"` - SubcommandIe *[]string `form:"subcommand__ie,omitempty" json:"subcommand__ie,omitempty"` - SubcommandIew *[]string `form:"subcommand__iew,omitempty" json:"subcommand__iew,omitempty"` - SubcommandIre *[]string `form:"subcommand__ire,omitempty" json:"subcommand__ire,omitempty"` - SubcommandIsw *[]string `form:"subcommand__isw,omitempty" json:"subcommand__isw,omitempty"` - SubcommandN *[]string `form:"subcommand__n,omitempty" json:"subcommand__n,omitempty"` - SubcommandNic *[]string `form:"subcommand__nic,omitempty" json:"subcommand__nic,omitempty"` - SubcommandNie *[]string `form:"subcommand__nie,omitempty" json:"subcommand__nie,omitempty"` - SubcommandNiew *[]string `form:"subcommand__niew,omitempty" json:"subcommand__niew,omitempty"` - SubcommandNire *[]string `form:"subcommand__nire,omitempty" json:"subcommand__nire,omitempty"` - SubcommandNisw *[]string `form:"subcommand__nisw,omitempty" json:"subcommand__nisw,omitempty"` - SubcommandNre *[]string `form:"subcommand__nre,omitempty" json:"subcommand__nre,omitempty"` - SubcommandRe *[]string `form:"subcommand__re,omitempty" json:"subcommand__re,omitempty"` - Value *[]string `form:"value,omitempty" json:"value,omitempty"` - ValueIc *[]string `form:"value__ic,omitempty" json:"value__ic,omitempty"` - ValueIe *[]string `form:"value__ie,omitempty" json:"value__ie,omitempty"` - ValueIew *[]string `form:"value__iew,omitempty" json:"value__iew,omitempty"` - ValueIre *[]string `form:"value__ire,omitempty" json:"value__ire,omitempty"` - ValueIsw *[]string `form:"value__isw,omitempty" json:"value__isw,omitempty"` - ValueN *[]string `form:"value__n,omitempty" json:"value__n,omitempty"` - ValueNic *[]string `form:"value__nic,omitempty" json:"value__nic,omitempty"` - ValueNie *[]string `form:"value__nie,omitempty" json:"value__nie,omitempty"` - ValueNiew *[]string `form:"value__niew,omitempty" json:"value__niew,omitempty"` - ValueNire *[]string `form:"value__nire,omitempty" json:"value__nire,omitempty"` - ValueNisw *[]string `form:"value__nisw,omitempty" json:"value__nisw,omitempty"` - ValueNre *[]string `form:"value__nre,omitempty" json:"value__nre,omitempty"` - ValueRe *[]string `form:"value__re,omitempty" json:"value__re,omitempty"` -} - -// PluginsChatopsAccessgrantBulkPartialUpdateJSONBody defines parameters for PluginsChatopsAccessgrantBulkPartialUpdate. -type PluginsChatopsAccessgrantBulkPartialUpdateJSONBody = []PatchedBulkWritableAccessGrantRequest - -// PluginsChatopsAccessgrantBulkUpdateJSONBody defines parameters for PluginsChatopsAccessgrantBulkUpdate. -type PluginsChatopsAccessgrantBulkUpdateJSONBody = []BulkWritableAccessGrantRequest - -// PluginsChatopsCommandtokenBulkDestroyJSONBody defines parameters for PluginsChatopsCommandtokenBulkDestroy. -type PluginsChatopsCommandtokenBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsChatopsCommandtokenListParams defines parameters for PluginsChatopsCommandtokenList. -type PluginsChatopsCommandtokenListParams struct { - Comment *[]string `form:"comment,omitempty" json:"comment,omitempty"` - CommentIc *[]string `form:"comment__ic,omitempty" json:"comment__ic,omitempty"` - CommentIe *[]string `form:"comment__ie,omitempty" json:"comment__ie,omitempty"` - CommentIew *[]string `form:"comment__iew,omitempty" json:"comment__iew,omitempty"` - CommentIre *[]string `form:"comment__ire,omitempty" json:"comment__ire,omitempty"` - CommentIsw *[]string `form:"comment__isw,omitempty" json:"comment__isw,omitempty"` - CommentN *[]string `form:"comment__n,omitempty" json:"comment__n,omitempty"` - CommentNic *[]string `form:"comment__nic,omitempty" json:"comment__nic,omitempty"` - CommentNie *[]string `form:"comment__nie,omitempty" json:"comment__nie,omitempty"` - CommentNiew *[]string `form:"comment__niew,omitempty" json:"comment__niew,omitempty"` - CommentNire *[]string `form:"comment__nire,omitempty" json:"comment__nire,omitempty"` - CommentNisw *[]string `form:"comment__nisw,omitempty" json:"comment__nisw,omitempty"` - CommentNre *[]string `form:"comment__nre,omitempty" json:"comment__nre,omitempty"` - CommentRe *[]string `form:"comment__re,omitempty" json:"comment__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Platform *string `form:"platform,omitempty" json:"platform,omitempty"` - PlatformN *string `form:"platform__n,omitempty" json:"platform__n,omitempty"` -} - -// PluginsChatopsCommandtokenBulkPartialUpdateJSONBody defines parameters for PluginsChatopsCommandtokenBulkPartialUpdate. -type PluginsChatopsCommandtokenBulkPartialUpdateJSONBody = []PatchedBulkWritableCommandTokenRequest - -// PluginsChatopsCommandtokenBulkUpdateJSONBody defines parameters for PluginsChatopsCommandtokenBulkUpdate. -type PluginsChatopsCommandtokenBulkUpdateJSONBody = []BulkWritableCommandTokenRequest - -// PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONBody defines parameters for PluginsCircuitMaintenanceCircuitimpactBulkDestroy. -type PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsCircuitMaintenanceCircuitimpactListParams defines parameters for PluginsCircuitMaintenanceCircuitimpactList. -type PluginsCircuitMaintenanceCircuitimpactListParams struct { - Circuit *openapi_types.UUID `form:"circuit,omitempty" json:"circuit,omitempty"` - CircuitN *openapi_types.UUID `form:"circuit__n,omitempty" json:"circuit__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Impact *string `form:"impact,omitempty" json:"impact,omitempty"` - ImpactN *string `form:"impact__n,omitempty" json:"impact__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Maintenance *openapi_types.UUID `form:"maintenance,omitempty" json:"maintenance,omitempty"` - MaintenanceN *openapi_types.UUID `form:"maintenance__n,omitempty" json:"maintenance__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONBody defines parameters for PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate. -type PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONBody = []PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest - -// PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONBody defines parameters for PluginsCircuitMaintenanceCircuitimpactBulkUpdate. -type PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONBody = []BulkWritableCircuitMaintenanceCircuitImpactRequest - -// PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONBody defines parameters for PluginsCircuitMaintenanceMaintenanceBulkDestroy. -type PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsCircuitMaintenanceMaintenanceListParams defines parameters for PluginsCircuitMaintenanceMaintenanceList. -type PluginsCircuitMaintenanceMaintenanceListParams struct { - Ack *bool `form:"ack,omitempty" json:"ack,omitempty"` - - // Circuit Circuit - Circuit *[]string `form:"circuit,omitempty" json:"circuit,omitempty"` - EndTime *time.Time `form:"end_time,omitempty" json:"end_time,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Provider Provider (slug) - Provider *[]string `form:"provider,omitempty" json:"provider,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - StartTime *time.Time `form:"start_time,omitempty" json:"start_time,omitempty"` - Status *string `form:"status,omitempty" json:"status,omitempty"` - StatusN *string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONBody defines parameters for PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate. -type PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONBody = []PatchedBulkWritableCircuitMaintenanceRequest - -// PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONBody defines parameters for PluginsCircuitMaintenanceMaintenanceBulkUpdate. -type PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONBody = []BulkWritableCircuitMaintenanceRequest - -// PluginsCircuitMaintenanceNoteBulkDestroyJSONBody defines parameters for PluginsCircuitMaintenanceNoteBulkDestroy. -type PluginsCircuitMaintenanceNoteBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsCircuitMaintenanceNoteListParams defines parameters for PluginsCircuitMaintenanceNoteList. -type PluginsCircuitMaintenanceNoteListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONBody defines parameters for PluginsCircuitMaintenanceNoteBulkPartialUpdate. -type PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONBody = []PatchedBulkWritableNoteRequest - -// PluginsCircuitMaintenanceNoteBulkUpdateJSONBody defines parameters for PluginsCircuitMaintenanceNoteBulkUpdate. -type PluginsCircuitMaintenanceNoteBulkUpdateJSONBody = []BulkWritableNoteRequest - -// PluginsCircuitMaintenanceNotificationsourceListParams defines parameters for PluginsCircuitMaintenanceNotificationsourceList. -type PluginsCircuitMaintenanceNotificationsourceListParams struct { - AttachAllProviders *bool `form:"attach_all_providers,omitempty" json:"attach_all_providers,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONBody defines parameters for PluginsDataValidationEngineRulesMinMaxBulkDestroy. -type PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsDataValidationEngineRulesMinMaxListParams defines parameters for PluginsDataValidationEngineRulesMinMaxList. -type PluginsDataValidationEngineRulesMinMaxListParams struct { - ContentType *[]int `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *[]int `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - ErrorMessage *[]string `form:"error_message,omitempty" json:"error_message,omitempty"` - ErrorMessageIc *[]string `form:"error_message__ic,omitempty" json:"error_message__ic,omitempty"` - ErrorMessageIe *[]string `form:"error_message__ie,omitempty" json:"error_message__ie,omitempty"` - ErrorMessageIew *[]string `form:"error_message__iew,omitempty" json:"error_message__iew,omitempty"` - ErrorMessageIre *[]string `form:"error_message__ire,omitempty" json:"error_message__ire,omitempty"` - ErrorMessageIsw *[]string `form:"error_message__isw,omitempty" json:"error_message__isw,omitempty"` - ErrorMessageN *[]string `form:"error_message__n,omitempty" json:"error_message__n,omitempty"` - ErrorMessageNic *[]string `form:"error_message__nic,omitempty" json:"error_message__nic,omitempty"` - ErrorMessageNie *[]string `form:"error_message__nie,omitempty" json:"error_message__nie,omitempty"` - ErrorMessageNiew *[]string `form:"error_message__niew,omitempty" json:"error_message__niew,omitempty"` - ErrorMessageNire *[]string `form:"error_message__nire,omitempty" json:"error_message__nire,omitempty"` - ErrorMessageNisw *[]string `form:"error_message__nisw,omitempty" json:"error_message__nisw,omitempty"` - ErrorMessageNre *[]string `form:"error_message__nre,omitempty" json:"error_message__nre,omitempty"` - ErrorMessageRe *[]string `form:"error_message__re,omitempty" json:"error_message__re,omitempty"` - Field *[]string `form:"field,omitempty" json:"field,omitempty"` - FieldIc *[]string `form:"field__ic,omitempty" json:"field__ic,omitempty"` - FieldIe *[]string `form:"field__ie,omitempty" json:"field__ie,omitempty"` - FieldIew *[]string `form:"field__iew,omitempty" json:"field__iew,omitempty"` - FieldIre *[]string `form:"field__ire,omitempty" json:"field__ire,omitempty"` - FieldIsw *[]string `form:"field__isw,omitempty" json:"field__isw,omitempty"` - FieldN *[]string `form:"field__n,omitempty" json:"field__n,omitempty"` - FieldNic *[]string `form:"field__nic,omitempty" json:"field__nic,omitempty"` - FieldNie *[]string `form:"field__nie,omitempty" json:"field__nie,omitempty"` - FieldNiew *[]string `form:"field__niew,omitempty" json:"field__niew,omitempty"` - FieldNire *[]string `form:"field__nire,omitempty" json:"field__nire,omitempty"` - FieldNisw *[]string `form:"field__nisw,omitempty" json:"field__nisw,omitempty"` - FieldNre *[]string `form:"field__nre,omitempty" json:"field__nre,omitempty"` - FieldRe *[]string `form:"field__re,omitempty" json:"field__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Max *[]float32 `form:"max,omitempty" json:"max,omitempty"` - MaxGt *[]float32 `form:"max__gt,omitempty" json:"max__gt,omitempty"` - MaxGte *[]float32 `form:"max__gte,omitempty" json:"max__gte,omitempty"` - MaxLt *[]float32 `form:"max__lt,omitempty" json:"max__lt,omitempty"` - MaxLte *[]float32 `form:"max__lte,omitempty" json:"max__lte,omitempty"` - MaxN *[]float32 `form:"max__n,omitempty" json:"max__n,omitempty"` - Min *[]float32 `form:"min,omitempty" json:"min,omitempty"` - MinGt *[]float32 `form:"min__gt,omitempty" json:"min__gt,omitempty"` - MinGte *[]float32 `form:"min__gte,omitempty" json:"min__gte,omitempty"` - MinLt *[]float32 `form:"min__lt,omitempty" json:"min__lt,omitempty"` - MinLte *[]float32 `form:"min__lte,omitempty" json:"min__lte,omitempty"` - MinN *[]float32 `form:"min__n,omitempty" json:"min__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONBody defines parameters for PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate. -type PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONBody = []PatchedBulkWritableMinMaxValidationRuleRequest - -// PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONBody defines parameters for PluginsDataValidationEngineRulesMinMaxBulkUpdate. -type PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONBody = []BulkWritableMinMaxValidationRuleRequest - -// PluginsDataValidationEngineRulesRegexBulkDestroyJSONBody defines parameters for PluginsDataValidationEngineRulesRegexBulkDestroy. -type PluginsDataValidationEngineRulesRegexBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsDataValidationEngineRulesRegexListParams defines parameters for PluginsDataValidationEngineRulesRegexList. -type PluginsDataValidationEngineRulesRegexListParams struct { - ContentType *[]int `form:"content_type,omitempty" json:"content_type,omitempty"` - ContentTypeN *[]int `form:"content_type__n,omitempty" json:"content_type__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - ErrorMessage *[]string `form:"error_message,omitempty" json:"error_message,omitempty"` - ErrorMessageIc *[]string `form:"error_message__ic,omitempty" json:"error_message__ic,omitempty"` - ErrorMessageIe *[]string `form:"error_message__ie,omitempty" json:"error_message__ie,omitempty"` - ErrorMessageIew *[]string `form:"error_message__iew,omitempty" json:"error_message__iew,omitempty"` - ErrorMessageIre *[]string `form:"error_message__ire,omitempty" json:"error_message__ire,omitempty"` - ErrorMessageIsw *[]string `form:"error_message__isw,omitempty" json:"error_message__isw,omitempty"` - ErrorMessageN *[]string `form:"error_message__n,omitempty" json:"error_message__n,omitempty"` - ErrorMessageNic *[]string `form:"error_message__nic,omitempty" json:"error_message__nic,omitempty"` - ErrorMessageNie *[]string `form:"error_message__nie,omitempty" json:"error_message__nie,omitempty"` - ErrorMessageNiew *[]string `form:"error_message__niew,omitempty" json:"error_message__niew,omitempty"` - ErrorMessageNire *[]string `form:"error_message__nire,omitempty" json:"error_message__nire,omitempty"` - ErrorMessageNisw *[]string `form:"error_message__nisw,omitempty" json:"error_message__nisw,omitempty"` - ErrorMessageNre *[]string `form:"error_message__nre,omitempty" json:"error_message__nre,omitempty"` - ErrorMessageRe *[]string `form:"error_message__re,omitempty" json:"error_message__re,omitempty"` - Field *[]string `form:"field,omitempty" json:"field,omitempty"` - FieldIc *[]string `form:"field__ic,omitempty" json:"field__ic,omitempty"` - FieldIe *[]string `form:"field__ie,omitempty" json:"field__ie,omitempty"` - FieldIew *[]string `form:"field__iew,omitempty" json:"field__iew,omitempty"` - FieldIre *[]string `form:"field__ire,omitempty" json:"field__ire,omitempty"` - FieldIsw *[]string `form:"field__isw,omitempty" json:"field__isw,omitempty"` - FieldN *[]string `form:"field__n,omitempty" json:"field__n,omitempty"` - FieldNic *[]string `form:"field__nic,omitempty" json:"field__nic,omitempty"` - FieldNie *[]string `form:"field__nie,omitempty" json:"field__nie,omitempty"` - FieldNiew *[]string `form:"field__niew,omitempty" json:"field__niew,omitempty"` - FieldNire *[]string `form:"field__nire,omitempty" json:"field__nire,omitempty"` - FieldNisw *[]string `form:"field__nisw,omitempty" json:"field__nisw,omitempty"` - FieldNre *[]string `form:"field__nre,omitempty" json:"field__nre,omitempty"` - FieldRe *[]string `form:"field__re,omitempty" json:"field__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - RegularExpression *[]string `form:"regular_expression,omitempty" json:"regular_expression,omitempty"` - RegularExpressionIc *[]string `form:"regular_expression__ic,omitempty" json:"regular_expression__ic,omitempty"` - RegularExpressionIe *[]string `form:"regular_expression__ie,omitempty" json:"regular_expression__ie,omitempty"` - RegularExpressionIew *[]string `form:"regular_expression__iew,omitempty" json:"regular_expression__iew,omitempty"` - RegularExpressionIre *[]string `form:"regular_expression__ire,omitempty" json:"regular_expression__ire,omitempty"` - RegularExpressionIsw *[]string `form:"regular_expression__isw,omitempty" json:"regular_expression__isw,omitempty"` - RegularExpressionN *[]string `form:"regular_expression__n,omitempty" json:"regular_expression__n,omitempty"` - RegularExpressionNic *[]string `form:"regular_expression__nic,omitempty" json:"regular_expression__nic,omitempty"` - RegularExpressionNie *[]string `form:"regular_expression__nie,omitempty" json:"regular_expression__nie,omitempty"` - RegularExpressionNiew *[]string `form:"regular_expression__niew,omitempty" json:"regular_expression__niew,omitempty"` - RegularExpressionNire *[]string `form:"regular_expression__nire,omitempty" json:"regular_expression__nire,omitempty"` - RegularExpressionNisw *[]string `form:"regular_expression__nisw,omitempty" json:"regular_expression__nisw,omitempty"` - RegularExpressionNre *[]string `form:"regular_expression__nre,omitempty" json:"regular_expression__nre,omitempty"` - RegularExpressionRe *[]string `form:"regular_expression__re,omitempty" json:"regular_expression__re,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONBody defines parameters for PluginsDataValidationEngineRulesRegexBulkPartialUpdate. -type PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONBody = []PatchedBulkWritableRegularExpressionValidationRuleRequest - -// PluginsDataValidationEngineRulesRegexBulkUpdateJSONBody defines parameters for PluginsDataValidationEngineRulesRegexBulkUpdate. -type PluginsDataValidationEngineRulesRegexBulkUpdateJSONBody = []BulkWritableRegularExpressionValidationRuleRequest - -// PluginsDeviceOnboardingOnboardingListParams defines parameters for PluginsDeviceOnboardingOnboardingList. -type PluginsDeviceOnboardingOnboardingListParams struct { - // FailedReason Raison why the task failed (optional) - FailedReason *string `form:"failed_reason,omitempty" json:"failed_reason,omitempty"` - Id *openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platform Platform (slug) - Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Role Device Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // Site Site (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // Status Overall status of the task - Status *string `form:"status,omitempty" json:"status,omitempty"` -} - -// PluginsFirewallAddressObjectGroupBulkDestroyJSONBody defines parameters for PluginsFirewallAddressObjectGroupBulkDestroy. -type PluginsFirewallAddressObjectGroupBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallAddressObjectGroupListParams defines parameters for PluginsFirewallAddressObjectGroupList. -type PluginsFirewallAddressObjectGroupListParams struct { - AddressObjects *[]openapi_types.UUID `form:"address_objects,omitempty" json:"address_objects,omitempty"` - AddressObjectsN *[]openapi_types.UUID `form:"address_objects__n,omitempty" json:"address_objects__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONBody defines parameters for PluginsFirewallAddressObjectGroupBulkPartialUpdate. -type PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONBody = []PatchedBulkWritableAddressObjectGroupRequest - -// PluginsFirewallAddressObjectGroupBulkUpdateJSONBody defines parameters for PluginsFirewallAddressObjectGroupBulkUpdate. -type PluginsFirewallAddressObjectGroupBulkUpdateJSONBody = []BulkWritableAddressObjectGroupRequest - -// PluginsFirewallAddressObjectGroupNotesListParams defines parameters for PluginsFirewallAddressObjectGroupNotesList. -type PluginsFirewallAddressObjectGroupNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallAddressObjectBulkDestroyJSONBody defines parameters for PluginsFirewallAddressObjectBulkDestroy. -type PluginsFirewallAddressObjectBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallAddressObjectListParams defines parameters for PluginsFirewallAddressObjectList. -type PluginsFirewallAddressObjectListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Fqdn *openapi_types.UUID `form:"fqdn,omitempty" json:"fqdn,omitempty"` - FqdnN *openapi_types.UUID `form:"fqdn__n,omitempty" json:"fqdn__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - IpAddress *openapi_types.UUID `form:"ip_address,omitempty" json:"ip_address,omitempty"` - IpAddressN *openapi_types.UUID `form:"ip_address__n,omitempty" json:"ip_address__n,omitempty"` - IpRange *openapi_types.UUID `form:"ip_range,omitempty" json:"ip_range,omitempty"` - IpRangeN *openapi_types.UUID `form:"ip_range__n,omitempty" json:"ip_range__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Prefix *openapi_types.UUID `form:"prefix,omitempty" json:"prefix,omitempty"` - PrefixN *openapi_types.UUID `form:"prefix__n,omitempty" json:"prefix__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsFirewallAddressObjectBulkPartialUpdateJSONBody defines parameters for PluginsFirewallAddressObjectBulkPartialUpdate. -type PluginsFirewallAddressObjectBulkPartialUpdateJSONBody = []PatchedBulkWritableAddressObjectRequest - -// PluginsFirewallAddressObjectBulkUpdateJSONBody defines parameters for PluginsFirewallAddressObjectBulkUpdate. -type PluginsFirewallAddressObjectBulkUpdateJSONBody = []BulkWritableAddressObjectRequest - -// PluginsFirewallAddressObjectNotesListParams defines parameters for PluginsFirewallAddressObjectNotesList. -type PluginsFirewallAddressObjectNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallCapircaPolicyBulkDestroyJSONBody defines parameters for PluginsFirewallCapircaPolicyBulkDestroy. -type PluginsFirewallCapircaPolicyBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallCapircaPolicyListParams defines parameters for PluginsFirewallCapircaPolicyList. -type PluginsFirewallCapircaPolicyListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Device Device Name - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceN Device Name - DeviceN *[]string `form:"device__n,omitempty" json:"device__n,omitempty"` - - // DeviceId Device ID - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceIdN Device ID - DeviceIdN *[]openapi_types.UUID `form:"device_id__n,omitempty" json:"device_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallCapircaPolicyBulkPartialUpdateJSONBody defines parameters for PluginsFirewallCapircaPolicyBulkPartialUpdate. -type PluginsFirewallCapircaPolicyBulkPartialUpdateJSONBody = []PatchedBulkWritableCapircaPolicyRequest - -// PluginsFirewallCapircaPolicyBulkUpdateJSONBody defines parameters for PluginsFirewallCapircaPolicyBulkUpdate. -type PluginsFirewallCapircaPolicyBulkUpdateJSONBody = []BulkWritableCapircaPolicyRequest - -// PluginsFirewallFqdnBulkDestroyJSONBody defines parameters for PluginsFirewallFqdnBulkDestroy. -type PluginsFirewallFqdnBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallFqdnListParams defines parameters for PluginsFirewallFqdnList. -type PluginsFirewallFqdnListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsFirewallFqdnBulkPartialUpdateJSONBody defines parameters for PluginsFirewallFqdnBulkPartialUpdate. -type PluginsFirewallFqdnBulkPartialUpdateJSONBody = []PatchedBulkWritableFQDNRequest - -// PluginsFirewallFqdnBulkUpdateJSONBody defines parameters for PluginsFirewallFqdnBulkUpdate. -type PluginsFirewallFqdnBulkUpdateJSONBody = []BulkWritableFQDNRequest - -// PluginsFirewallFqdnNotesListParams defines parameters for PluginsFirewallFqdnNotesList. -type PluginsFirewallFqdnNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallIpRangeBulkDestroyJSONBody defines parameters for PluginsFirewallIpRangeBulkDestroy. -type PluginsFirewallIpRangeBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallIpRangeListParams defines parameters for PluginsFirewallIpRangeList. -type PluginsFirewallIpRangeListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Size *[]int `form:"size,omitempty" json:"size,omitempty"` - SizeGt *[]int `form:"size__gt,omitempty" json:"size__gt,omitempty"` - SizeGte *[]int `form:"size__gte,omitempty" json:"size__gte,omitempty"` - SizeLt *[]int `form:"size__lt,omitempty" json:"size__lt,omitempty"` - SizeLte *[]int `form:"size__lte,omitempty" json:"size__lte,omitempty"` - SizeN *[]int `form:"size__n,omitempty" json:"size__n,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` - Vrf *openapi_types.UUID `form:"vrf,omitempty" json:"vrf,omitempty"` - VrfN *openapi_types.UUID `form:"vrf__n,omitempty" json:"vrf__n,omitempty"` -} - -// PluginsFirewallIpRangeBulkPartialUpdateJSONBody defines parameters for PluginsFirewallIpRangeBulkPartialUpdate. -type PluginsFirewallIpRangeBulkPartialUpdateJSONBody = []PatchedBulkWritableIPRangeRequest - -// PluginsFirewallIpRangeBulkUpdateJSONBody defines parameters for PluginsFirewallIpRangeBulkUpdate. -type PluginsFirewallIpRangeBulkUpdateJSONBody = []BulkWritableIPRangeRequest - -// PluginsFirewallIpRangeNotesListParams defines parameters for PluginsFirewallIpRangeNotesList. -type PluginsFirewallIpRangeNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallNatPolicyRuleBulkDestroyJSONBody defines parameters for PluginsFirewallNatPolicyRuleBulkDestroy. -type PluginsFirewallNatPolicyRuleBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallNatPolicyRuleListParams defines parameters for PluginsFirewallNatPolicyRuleList. -type PluginsFirewallNatPolicyRuleListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Log *bool `form:"log,omitempty" json:"log,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Remark *bool `form:"remark,omitempty" json:"remark,omitempty"` - RequestId *[]string `form:"request_id,omitempty" json:"request_id,omitempty"` - RequestIdIc *[]string `form:"request_id__ic,omitempty" json:"request_id__ic,omitempty"` - RequestIdIe *[]string `form:"request_id__ie,omitempty" json:"request_id__ie,omitempty"` - RequestIdIew *[]string `form:"request_id__iew,omitempty" json:"request_id__iew,omitempty"` - RequestIdIre *[]string `form:"request_id__ire,omitempty" json:"request_id__ire,omitempty"` - RequestIdIsw *[]string `form:"request_id__isw,omitempty" json:"request_id__isw,omitempty"` - RequestIdN *[]string `form:"request_id__n,omitempty" json:"request_id__n,omitempty"` - RequestIdNic *[]string `form:"request_id__nic,omitempty" json:"request_id__nic,omitempty"` - RequestIdNie *[]string `form:"request_id__nie,omitempty" json:"request_id__nie,omitempty"` - RequestIdNiew *[]string `form:"request_id__niew,omitempty" json:"request_id__niew,omitempty"` - RequestIdNire *[]string `form:"request_id__nire,omitempty" json:"request_id__nire,omitempty"` - RequestIdNisw *[]string `form:"request_id__nisw,omitempty" json:"request_id__nisw,omitempty"` - RequestIdNre *[]string `form:"request_id__nre,omitempty" json:"request_id__nre,omitempty"` - RequestIdRe *[]string `form:"request_id__re,omitempty" json:"request_id__re,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONBody defines parameters for PluginsFirewallNatPolicyRuleBulkPartialUpdate. -type PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONBody = []PatchedBulkWritableNATPolicyRuleRequest - -// PluginsFirewallNatPolicyRuleBulkUpdateJSONBody defines parameters for PluginsFirewallNatPolicyRuleBulkUpdate. -type PluginsFirewallNatPolicyRuleBulkUpdateJSONBody = []BulkWritableNATPolicyRuleRequest - -// PluginsFirewallNatPolicyRuleNotesListParams defines parameters for PluginsFirewallNatPolicyRuleNotesList. -type PluginsFirewallNatPolicyRuleNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallNatPolicyBulkDestroyJSONBody defines parameters for PluginsFirewallNatPolicyBulkDestroy. -type PluginsFirewallNatPolicyBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallNatPolicyListParams defines parameters for PluginsFirewallNatPolicyList. -type PluginsFirewallNatPolicyListParams struct { - AssignedDevices *[]openapi_types.UUID `form:"assigned_devices,omitempty" json:"assigned_devices,omitempty"` - AssignedDevicesN *[]openapi_types.UUID `form:"assigned_devices__n,omitempty" json:"assigned_devices__n,omitempty"` - AssignedDynamicGroups *[]openapi_types.UUID `form:"assigned_dynamic_groups,omitempty" json:"assigned_dynamic_groups,omitempty"` - AssignedDynamicGroupsN *[]openapi_types.UUID `form:"assigned_dynamic_groups__n,omitempty" json:"assigned_dynamic_groups__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - NatPolicyRules *[]openapi_types.UUID `form:"nat_policy_rules,omitempty" json:"nat_policy_rules,omitempty"` - NatPolicyRulesN *[]openapi_types.UUID `form:"nat_policy_rules__n,omitempty" json:"nat_policy_rules__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsFirewallNatPolicyBulkPartialUpdateJSONBody defines parameters for PluginsFirewallNatPolicyBulkPartialUpdate. -type PluginsFirewallNatPolicyBulkPartialUpdateJSONBody = []PatchedBulkWritableNATPolicyRequest - -// PluginsFirewallNatPolicyBulkUpdateJSONBody defines parameters for PluginsFirewallNatPolicyBulkUpdate. -type PluginsFirewallNatPolicyBulkUpdateJSONBody = []BulkWritableNATPolicyRequest - -// PluginsFirewallNatPolicyNotesListParams defines parameters for PluginsFirewallNatPolicyNotesList. -type PluginsFirewallNatPolicyNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallPolicyRuleBulkDestroyJSONBody defines parameters for PluginsFirewallPolicyRuleBulkDestroy. -type PluginsFirewallPolicyRuleBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallPolicyRuleListParams defines parameters for PluginsFirewallPolicyRuleList. -type PluginsFirewallPolicyRuleListParams struct { - Action *PluginsFirewallPolicyRuleListParamsAction `form:"action,omitempty" json:"action,omitempty"` - ActionN *PluginsFirewallPolicyRuleListParamsActionN `form:"action__n,omitempty" json:"action__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Log *bool `form:"log,omitempty" json:"log,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - RequestId *[]string `form:"request_id,omitempty" json:"request_id,omitempty"` - RequestIdIc *[]string `form:"request_id__ic,omitempty" json:"request_id__ic,omitempty"` - RequestIdIe *[]string `form:"request_id__ie,omitempty" json:"request_id__ie,omitempty"` - RequestIdIew *[]string `form:"request_id__iew,omitempty" json:"request_id__iew,omitempty"` - RequestIdIre *[]string `form:"request_id__ire,omitempty" json:"request_id__ire,omitempty"` - RequestIdIsw *[]string `form:"request_id__isw,omitempty" json:"request_id__isw,omitempty"` - RequestIdN *[]string `form:"request_id__n,omitempty" json:"request_id__n,omitempty"` - RequestIdNic *[]string `form:"request_id__nic,omitempty" json:"request_id__nic,omitempty"` - RequestIdNie *[]string `form:"request_id__nie,omitempty" json:"request_id__nie,omitempty"` - RequestIdNiew *[]string `form:"request_id__niew,omitempty" json:"request_id__niew,omitempty"` - RequestIdNire *[]string `form:"request_id__nire,omitempty" json:"request_id__nire,omitempty"` - RequestIdNisw *[]string `form:"request_id__nisw,omitempty" json:"request_id__nisw,omitempty"` - RequestIdNre *[]string `form:"request_id__nre,omitempty" json:"request_id__nre,omitempty"` - RequestIdRe *[]string `form:"request_id__re,omitempty" json:"request_id__re,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// PluginsFirewallPolicyRuleListParamsAction defines parameters for PluginsFirewallPolicyRuleList. -type PluginsFirewallPolicyRuleListParamsAction string - -// PluginsFirewallPolicyRuleListParamsActionN defines parameters for PluginsFirewallPolicyRuleList. -type PluginsFirewallPolicyRuleListParamsActionN string - -// PluginsFirewallPolicyRuleBulkPartialUpdateJSONBody defines parameters for PluginsFirewallPolicyRuleBulkPartialUpdate. -type PluginsFirewallPolicyRuleBulkPartialUpdateJSONBody = []PatchedBulkWritablePolicyRuleRequest - -// PluginsFirewallPolicyRuleBulkUpdateJSONBody defines parameters for PluginsFirewallPolicyRuleBulkUpdate. -type PluginsFirewallPolicyRuleBulkUpdateJSONBody = []BulkWritablePolicyRuleRequest - -// PluginsFirewallPolicyRuleNotesListParams defines parameters for PluginsFirewallPolicyRuleNotesList. -type PluginsFirewallPolicyRuleNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallPolicyBulkDestroyJSONBody defines parameters for PluginsFirewallPolicyBulkDestroy. -type PluginsFirewallPolicyBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallPolicyListParams defines parameters for PluginsFirewallPolicyList. -type PluginsFirewallPolicyListParams struct { - AssignedDevices *[]openapi_types.UUID `form:"assigned_devices,omitempty" json:"assigned_devices,omitempty"` - AssignedDevicesN *[]openapi_types.UUID `form:"assigned_devices__n,omitempty" json:"assigned_devices__n,omitempty"` - AssignedDynamicGroups *[]openapi_types.UUID `form:"assigned_dynamic_groups,omitempty" json:"assigned_dynamic_groups,omitempty"` - AssignedDynamicGroupsN *[]openapi_types.UUID `form:"assigned_dynamic_groups__n,omitempty" json:"assigned_dynamic_groups__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PolicyRules *[]openapi_types.UUID `form:"policy_rules,omitempty" json:"policy_rules,omitempty"` - PolicyRulesN *[]openapi_types.UUID `form:"policy_rules__n,omitempty" json:"policy_rules__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsFirewallPolicyBulkPartialUpdateJSONBody defines parameters for PluginsFirewallPolicyBulkPartialUpdate. -type PluginsFirewallPolicyBulkPartialUpdateJSONBody = []PatchedBulkWritablePolicyRequest - -// PluginsFirewallPolicyBulkUpdateJSONBody defines parameters for PluginsFirewallPolicyBulkUpdate. -type PluginsFirewallPolicyBulkUpdateJSONBody = []BulkWritablePolicyRequest - -// PluginsFirewallPolicyNotesListParams defines parameters for PluginsFirewallPolicyNotesList. -type PluginsFirewallPolicyNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallServiceObjectGroupBulkDestroyJSONBody defines parameters for PluginsFirewallServiceObjectGroupBulkDestroy. -type PluginsFirewallServiceObjectGroupBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallServiceObjectGroupListParams defines parameters for PluginsFirewallServiceObjectGroupList. -type PluginsFirewallServiceObjectGroupListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - ServiceObjects *[]openapi_types.UUID `form:"service_objects,omitempty" json:"service_objects,omitempty"` - ServiceObjectsN *[]openapi_types.UUID `form:"service_objects__n,omitempty" json:"service_objects__n,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONBody defines parameters for PluginsFirewallServiceObjectGroupBulkPartialUpdate. -type PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONBody = []PatchedBulkWritableServiceObjectGroupRequest - -// PluginsFirewallServiceObjectGroupBulkUpdateJSONBody defines parameters for PluginsFirewallServiceObjectGroupBulkUpdate. -type PluginsFirewallServiceObjectGroupBulkUpdateJSONBody = []BulkWritableServiceObjectGroupRequest - -// PluginsFirewallServiceObjectGroupNotesListParams defines parameters for PluginsFirewallServiceObjectGroupNotesList. -type PluginsFirewallServiceObjectGroupNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallServiceObjectBulkDestroyJSONBody defines parameters for PluginsFirewallServiceObjectBulkDestroy. -type PluginsFirewallServiceObjectBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallServiceObjectListParams defines parameters for PluginsFirewallServiceObjectList. -type PluginsFirewallServiceObjectListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // IpProtocol IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocol *PluginsFirewallServiceObjectListParamsIpProtocol `form:"ip_protocol,omitempty" json:"ip_protocol,omitempty"` - - // IpProtocolN IANA IP Protocol (e.g. TCP UDP ICMP) - IpProtocolN *PluginsFirewallServiceObjectListParamsIpProtocolN `form:"ip_protocol__n,omitempty" json:"ip_protocol__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Port *[]string `form:"port,omitempty" json:"port,omitempty"` - PortIc *[]string `form:"port__ic,omitempty" json:"port__ic,omitempty"` - PortIe *[]string `form:"port__ie,omitempty" json:"port__ie,omitempty"` - PortIew *[]string `form:"port__iew,omitempty" json:"port__iew,omitempty"` - PortIre *[]string `form:"port__ire,omitempty" json:"port__ire,omitempty"` - PortIsw *[]string `form:"port__isw,omitempty" json:"port__isw,omitempty"` - PortN *[]string `form:"port__n,omitempty" json:"port__n,omitempty"` - PortNic *[]string `form:"port__nic,omitempty" json:"port__nic,omitempty"` - PortNie *[]string `form:"port__nie,omitempty" json:"port__nie,omitempty"` - PortNiew *[]string `form:"port__niew,omitempty" json:"port__niew,omitempty"` - PortNire *[]string `form:"port__nire,omitempty" json:"port__nire,omitempty"` - PortNisw *[]string `form:"port__nisw,omitempty" json:"port__nisw,omitempty"` - PortNre *[]string `form:"port__nre,omitempty" json:"port__nre,omitempty"` - PortRe *[]string `form:"port__re,omitempty" json:"port__re,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` -} - -// PluginsFirewallServiceObjectListParamsIpProtocol defines parameters for PluginsFirewallServiceObjectList. -type PluginsFirewallServiceObjectListParamsIpProtocol string - -// PluginsFirewallServiceObjectListParamsIpProtocolN defines parameters for PluginsFirewallServiceObjectList. -type PluginsFirewallServiceObjectListParamsIpProtocolN string - -// PluginsFirewallServiceObjectBulkPartialUpdateJSONBody defines parameters for PluginsFirewallServiceObjectBulkPartialUpdate. -type PluginsFirewallServiceObjectBulkPartialUpdateJSONBody = []PatchedBulkWritableServiceObjectRequest - -// PluginsFirewallServiceObjectBulkUpdateJSONBody defines parameters for PluginsFirewallServiceObjectBulkUpdate. -type PluginsFirewallServiceObjectBulkUpdateJSONBody = []BulkWritableServiceObjectRequest - -// PluginsFirewallServiceObjectNotesListParams defines parameters for PluginsFirewallServiceObjectNotesList. -type PluginsFirewallServiceObjectNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallUserObjectGroupBulkDestroyJSONBody defines parameters for PluginsFirewallUserObjectGroupBulkDestroy. -type PluginsFirewallUserObjectGroupBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallUserObjectGroupListParams defines parameters for PluginsFirewallUserObjectGroupList. -type PluginsFirewallUserObjectGroupListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` - UserObjects *[]openapi_types.UUID `form:"user_objects,omitempty" json:"user_objects,omitempty"` - UserObjectsN *[]openapi_types.UUID `form:"user_objects__n,omitempty" json:"user_objects__n,omitempty"` -} - -// PluginsFirewallUserObjectGroupBulkPartialUpdateJSONBody defines parameters for PluginsFirewallUserObjectGroupBulkPartialUpdate. -type PluginsFirewallUserObjectGroupBulkPartialUpdateJSONBody = []PatchedBulkWritableUserObjectGroupRequest - -// PluginsFirewallUserObjectGroupBulkUpdateJSONBody defines parameters for PluginsFirewallUserObjectGroupBulkUpdate. -type PluginsFirewallUserObjectGroupBulkUpdateJSONBody = []BulkWritableUserObjectGroupRequest - -// PluginsFirewallUserObjectGroupNotesListParams defines parameters for PluginsFirewallUserObjectGroupNotesList. -type PluginsFirewallUserObjectGroupNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallUserObjectBulkDestroyJSONBody defines parameters for PluginsFirewallUserObjectBulkDestroy. -type PluginsFirewallUserObjectBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallUserObjectListParams defines parameters for PluginsFirewallUserObjectList. -type PluginsFirewallUserObjectListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` - Username *[]string `form:"username,omitempty" json:"username,omitempty"` - UsernameIc *[]string `form:"username__ic,omitempty" json:"username__ic,omitempty"` - UsernameIe *[]string `form:"username__ie,omitempty" json:"username__ie,omitempty"` - UsernameIew *[]string `form:"username__iew,omitempty" json:"username__iew,omitempty"` - UsernameIre *[]string `form:"username__ire,omitempty" json:"username__ire,omitempty"` - UsernameIsw *[]string `form:"username__isw,omitempty" json:"username__isw,omitempty"` - UsernameN *[]string `form:"username__n,omitempty" json:"username__n,omitempty"` - UsernameNic *[]string `form:"username__nic,omitempty" json:"username__nic,omitempty"` - UsernameNie *[]string `form:"username__nie,omitempty" json:"username__nie,omitempty"` - UsernameNiew *[]string `form:"username__niew,omitempty" json:"username__niew,omitempty"` - UsernameNire *[]string `form:"username__nire,omitempty" json:"username__nire,omitempty"` - UsernameNisw *[]string `form:"username__nisw,omitempty" json:"username__nisw,omitempty"` - UsernameNre *[]string `form:"username__nre,omitempty" json:"username__nre,omitempty"` - UsernameRe *[]string `form:"username__re,omitempty" json:"username__re,omitempty"` -} - -// PluginsFirewallUserObjectBulkPartialUpdateJSONBody defines parameters for PluginsFirewallUserObjectBulkPartialUpdate. -type PluginsFirewallUserObjectBulkPartialUpdateJSONBody = []PatchedBulkWritableUserObjectRequest - -// PluginsFirewallUserObjectBulkUpdateJSONBody defines parameters for PluginsFirewallUserObjectBulkUpdate. -type PluginsFirewallUserObjectBulkUpdateJSONBody = []BulkWritableUserObjectRequest - -// PluginsFirewallUserObjectNotesListParams defines parameters for PluginsFirewallUserObjectNotesList. -type PluginsFirewallUserObjectNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsFirewallZoneBulkDestroyJSONBody defines parameters for PluginsFirewallZoneBulkDestroy. -type PluginsFirewallZoneBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsFirewallZoneListParams defines parameters for PluginsFirewallZoneList. -type PluginsFirewallZoneListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Interfaces *[]openapi_types.UUID `form:"interfaces,omitempty" json:"interfaces,omitempty"` - InterfacesN *[]openapi_types.UUID `form:"interfaces__n,omitempty" json:"interfaces__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]string `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]string `form:"status__n,omitempty" json:"status__n,omitempty"` - Vrfs *[]openapi_types.UUID `form:"vrfs,omitempty" json:"vrfs,omitempty"` - VrfsN *[]openapi_types.UUID `form:"vrfs__n,omitempty" json:"vrfs__n,omitempty"` -} - -// PluginsFirewallZoneBulkPartialUpdateJSONBody defines parameters for PluginsFirewallZoneBulkPartialUpdate. -type PluginsFirewallZoneBulkPartialUpdateJSONBody = []PatchedBulkWritableZoneRequest - -// PluginsFirewallZoneBulkUpdateJSONBody defines parameters for PluginsFirewallZoneBulkUpdate. -type PluginsFirewallZoneBulkUpdateJSONBody = []BulkWritableZoneRequest - -// PluginsFirewallZoneNotesListParams defines parameters for PluginsFirewallZoneNotesList. -type PluginsFirewallZoneNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// PluginsGoldenConfigComplianceFeatureBulkDestroyJSONBody defines parameters for PluginsGoldenConfigComplianceFeatureBulkDestroy. -type PluginsGoldenConfigComplianceFeatureBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsGoldenConfigComplianceFeatureListParams defines parameters for PluginsGoldenConfigComplianceFeatureList. -type PluginsGoldenConfigComplianceFeatureListParams struct { - Id *openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *string `form:"slug,omitempty" json:"slug,omitempty"` -} - -// PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONBody defines parameters for PluginsGoldenConfigComplianceFeatureBulkPartialUpdate. -type PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONBody = []PatchedBulkWritableComplianceFeatureRequest - -// PluginsGoldenConfigComplianceFeatureBulkUpdateJSONBody defines parameters for PluginsGoldenConfigComplianceFeatureBulkUpdate. -type PluginsGoldenConfigComplianceFeatureBulkUpdateJSONBody = []BulkWritableComplianceFeatureRequest - -// PluginsGoldenConfigComplianceRuleBulkDestroyJSONBody defines parameters for PluginsGoldenConfigComplianceRuleBulkDestroy. -type PluginsGoldenConfigComplianceRuleBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsGoldenConfigComplianceRuleListParams defines parameters for PluginsGoldenConfigComplianceRuleList. -type PluginsGoldenConfigComplianceRuleListParams struct { - Feature *openapi_types.UUID `form:"feature,omitempty" json:"feature,omitempty"` - Id *openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platform Platform (slug) - Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformId Platform (ID) - PlatformId *[]openapi_types.UUID `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONBody defines parameters for PluginsGoldenConfigComplianceRuleBulkPartialUpdate. -type PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONBody = []PatchedBulkWritableComplianceRuleRequest - -// PluginsGoldenConfigComplianceRuleBulkUpdateJSONBody defines parameters for PluginsGoldenConfigComplianceRuleBulkUpdate. -type PluginsGoldenConfigComplianceRuleBulkUpdateJSONBody = []BulkWritableComplianceRuleRequest - -// PluginsGoldenConfigConfigComplianceBulkDestroyJSONBody defines parameters for PluginsGoldenConfigConfigComplianceBulkDestroy. -type PluginsGoldenConfigConfigComplianceBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsGoldenConfigConfigComplianceListParams defines parameters for PluginsGoldenConfigConfigComplianceList. -type PluginsGoldenConfigConfigComplianceListParams struct { - // Device Device Name - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device ID - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceStatus Device Status - DeviceStatus *[]openapi_types.UUID `form:"device_status,omitempty" json:"device_status,omitempty"` - - // DeviceStatusId Device Status - DeviceStatusId *[]openapi_types.UUID `form:"device_status_id,omitempty" json:"device_status_id,omitempty"` - - // DeviceType DeviceType (slug) - DeviceType *[]string `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeId Device type (ID) - DeviceTypeId *[]openapi_types.UUID `form:"device_type_id,omitempty" json:"device_type_id,omitempty"` - Id *openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Manufacturer Manufacturer (slug) - Manufacturer *[]string `form:"manufacturer,omitempty" json:"manufacturer,omitempty"` - - // ManufacturerId Manufacturer (ID) - ManufacturerId *[]openapi_types.UUID `form:"manufacturer_id,omitempty" json:"manufacturer_id,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platform Platform (slug) - Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformId Platform (ID) - PlatformId *[]openapi_types.UUID `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Rack Rack (name) - Rack *[]string `form:"rack,omitempty" json:"rack,omitempty"` - - // RackGroup Rack group (slug) - RackGroup *[]string `form:"rack_group,omitempty" json:"rack_group,omitempty"` - - // RackGroupId Rack group (ID) - RackGroupId *[]openapi_types.UUID `form:"rack_group_id,omitempty" json:"rack_group_id,omitempty"` - - // RackId Rack (ID) - RackId *[]openapi_types.UUID `form:"rack_id,omitempty" json:"rack_id,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // Role Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleId Role (ID) - RoleId *[]openapi_types.UUID `form:"role_id,omitempty" json:"role_id,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // Tenant Tenant (slug) - Tenant *[]string `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantId Tenant (ID) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` -} - -// PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONBody defines parameters for PluginsGoldenConfigConfigComplianceBulkPartialUpdate. -type PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONBody = []PatchedBulkWritableConfigComplianceRequest - -// PluginsGoldenConfigConfigComplianceBulkUpdateJSONBody defines parameters for PluginsGoldenConfigConfigComplianceBulkUpdate. -type PluginsGoldenConfigConfigComplianceBulkUpdateJSONBody = []BulkWritableConfigComplianceRequest - -// PluginsGoldenConfigConfigRemoveBulkDestroyJSONBody defines parameters for PluginsGoldenConfigConfigRemoveBulkDestroy. -type PluginsGoldenConfigConfigRemoveBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsGoldenConfigConfigRemoveListParams defines parameters for PluginsGoldenConfigConfigRemoveList. -type PluginsGoldenConfigConfigRemoveListParams struct { - Id *openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platform Platform (slug) - Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformId Platform (ID) - PlatformId *[]openapi_types.UUID `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONBody defines parameters for PluginsGoldenConfigConfigRemoveBulkPartialUpdate. -type PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONBody = []PatchedBulkWritableConfigRemoveRequest - -// PluginsGoldenConfigConfigRemoveBulkUpdateJSONBody defines parameters for PluginsGoldenConfigConfigRemoveBulkUpdate. -type PluginsGoldenConfigConfigRemoveBulkUpdateJSONBody = []BulkWritableConfigRemoveRequest - -// PluginsGoldenConfigConfigReplaceBulkDestroyJSONBody defines parameters for PluginsGoldenConfigConfigReplaceBulkDestroy. -type PluginsGoldenConfigConfigReplaceBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsGoldenConfigConfigReplaceListParams defines parameters for PluginsGoldenConfigConfigReplaceList. -type PluginsGoldenConfigConfigReplaceListParams struct { - Id *openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platform Platform (slug) - Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformId Platform (ID) - PlatformId *[]openapi_types.UUID `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONBody defines parameters for PluginsGoldenConfigConfigReplaceBulkPartialUpdate. -type PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONBody = []PatchedBulkWritableConfigReplaceRequest - -// PluginsGoldenConfigConfigReplaceBulkUpdateJSONBody defines parameters for PluginsGoldenConfigConfigReplaceBulkUpdate. -type PluginsGoldenConfigConfigReplaceBulkUpdateJSONBody = []BulkWritableConfigReplaceRequest - -// PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONBody defines parameters for PluginsGoldenConfigGoldenConfigSettingsBulkDestroy. -type PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsGoldenConfigGoldenConfigSettingsListParams defines parameters for PluginsGoldenConfigGoldenConfigSettingsList. -type PluginsGoldenConfigGoldenConfigSettingsListParams struct { - BackupRepository *openapi_types.UUID `form:"backup_repository,omitempty" json:"backup_repository,omitempty"` - BackupRepositoryN *openapi_types.UUID `form:"backup_repository__n,omitempty" json:"backup_repository__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - IntendedRepository *openapi_types.UUID `form:"intended_repository,omitempty" json:"intended_repository,omitempty"` - IntendedRepositoryN *openapi_types.UUID `form:"intended_repository__n,omitempty" json:"intended_repository__n,omitempty"` - JinjaRepository *openapi_types.UUID `form:"jinja_repository,omitempty" json:"jinja_repository,omitempty"` - JinjaRepositoryN *openapi_types.UUID `form:"jinja_repository__n,omitempty" json:"jinja_repository__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Weight *[]int `form:"weight,omitempty" json:"weight,omitempty"` - WeightGt *[]int `form:"weight__gt,omitempty" json:"weight__gt,omitempty"` - WeightGte *[]int `form:"weight__gte,omitempty" json:"weight__gte,omitempty"` - WeightLt *[]int `form:"weight__lt,omitempty" json:"weight__lt,omitempty"` - WeightLte *[]int `form:"weight__lte,omitempty" json:"weight__lte,omitempty"` - WeightN *[]int `form:"weight__n,omitempty" json:"weight__n,omitempty"` -} - -// PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONBody defines parameters for PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate. -type PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONBody = []PatchedBulkWritableGoldenConfigSettingRequest - -// PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONBody defines parameters for PluginsGoldenConfigGoldenConfigSettingsBulkUpdate. -type PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONBody = []BulkWritableGoldenConfigSettingRequest - -// PluginsGoldenConfigGoldenConfigBulkDestroyJSONBody defines parameters for PluginsGoldenConfigGoldenConfigBulkDestroy. -type PluginsGoldenConfigGoldenConfigBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsGoldenConfigGoldenConfigListParams defines parameters for PluginsGoldenConfigGoldenConfigList. -type PluginsGoldenConfigGoldenConfigListParams struct { - // Device Device Name - Device *[]string `form:"device,omitempty" json:"device,omitempty"` - - // DeviceId Device ID - DeviceId *[]openapi_types.UUID `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceStatus Device Status - DeviceStatus *[]openapi_types.UUID `form:"device_status,omitempty" json:"device_status,omitempty"` - - // DeviceStatusId Device Status - DeviceStatusId *[]openapi_types.UUID `form:"device_status_id,omitempty" json:"device_status_id,omitempty"` - - // DeviceType DeviceType (slug) - DeviceType *[]string `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeId Device type (ID) - DeviceTypeId *[]openapi_types.UUID `form:"device_type_id,omitempty" json:"device_type_id,omitempty"` - Id *openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Manufacturer Manufacturer (slug) - Manufacturer *[]string `form:"manufacturer,omitempty" json:"manufacturer,omitempty"` - - // ManufacturerId Manufacturer (ID) - ManufacturerId *[]openapi_types.UUID `form:"manufacturer_id,omitempty" json:"manufacturer_id,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platform Platform (slug) - Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformId Platform (ID) - PlatformId *[]openapi_types.UUID `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Rack Rack (name) - Rack *[]string `form:"rack,omitempty" json:"rack,omitempty"` - - // RackGroup Rack group (slug) - RackGroup *[]string `form:"rack_group,omitempty" json:"rack_group,omitempty"` - - // RackGroupId Rack group (ID) - RackGroupId *[]openapi_types.UUID `form:"rack_group_id,omitempty" json:"rack_group_id,omitempty"` - - // RackId Rack (ID) - RackId *[]openapi_types.UUID `form:"rack_id,omitempty" json:"rack_id,omitempty"` - - // Region Region (slug) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionId Region (ID) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // Role Role (slug) - Role *[]string `form:"role,omitempty" json:"role,omitempty"` - - // RoleId Role (ID) - RoleId *[]openapi_types.UUID `form:"role_id,omitempty" json:"role_id,omitempty"` - - // Site Site name (slug) - Site *[]string `form:"site,omitempty" json:"site,omitempty"` - - // SiteId Site (ID) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // Tenant Tenant (slug) - Tenant *[]string `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantId Tenant (ID) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` -} - -// PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONBody defines parameters for PluginsGoldenConfigGoldenConfigBulkPartialUpdate. -type PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONBody = []PatchedBulkWritableGoldenConfigRequest - -// PluginsGoldenConfigGoldenConfigBulkUpdateJSONBody defines parameters for PluginsGoldenConfigGoldenConfigBulkUpdate. -type PluginsGoldenConfigGoldenConfigBulkUpdateJSONBody = []BulkWritableGoldenConfigRequest - -// PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtContactListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtContactList. -type PluginsNautobotDeviceLifecycleMgmtContactListParams struct { - Address *[]string `form:"address,omitempty" json:"address,omitempty"` - AddressIc *[]string `form:"address__ic,omitempty" json:"address__ic,omitempty"` - AddressIe *[]string `form:"address__ie,omitempty" json:"address__ie,omitempty"` - AddressIew *[]string `form:"address__iew,omitempty" json:"address__iew,omitempty"` - AddressIre *[]string `form:"address__ire,omitempty" json:"address__ire,omitempty"` - AddressIsw *[]string `form:"address__isw,omitempty" json:"address__isw,omitempty"` - AddressN *[]string `form:"address__n,omitempty" json:"address__n,omitempty"` - AddressNic *[]string `form:"address__nic,omitempty" json:"address__nic,omitempty"` - AddressNie *[]string `form:"address__nie,omitempty" json:"address__nie,omitempty"` - AddressNiew *[]string `form:"address__niew,omitempty" json:"address__niew,omitempty"` - AddressNire *[]string `form:"address__nire,omitempty" json:"address__nire,omitempty"` - AddressNisw *[]string `form:"address__nisw,omitempty" json:"address__nisw,omitempty"` - AddressNre *[]string `form:"address__nre,omitempty" json:"address__nre,omitempty"` - AddressRe *[]string `form:"address__re,omitempty" json:"address__re,omitempty"` - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - Contract *openapi_types.UUID `form:"contract,omitempty" json:"contract,omitempty"` - ContractN *openapi_types.UUID `form:"contract__n,omitempty" json:"contract__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Email *[]string `form:"email,omitempty" json:"email,omitempty"` - EmailIc *[]string `form:"email__ic,omitempty" json:"email__ic,omitempty"` - EmailIe *[]string `form:"email__ie,omitempty" json:"email__ie,omitempty"` - EmailIew *[]string `form:"email__iew,omitempty" json:"email__iew,omitempty"` - EmailIre *[]string `form:"email__ire,omitempty" json:"email__ire,omitempty"` - EmailIsw *[]string `form:"email__isw,omitempty" json:"email__isw,omitempty"` - EmailN *[]string `form:"email__n,omitempty" json:"email__n,omitempty"` - EmailNic *[]string `form:"email__nic,omitempty" json:"email__nic,omitempty"` - EmailNie *[]string `form:"email__nie,omitempty" json:"email__nie,omitempty"` - EmailNiew *[]string `form:"email__niew,omitempty" json:"email__niew,omitempty"` - EmailNire *[]string `form:"email__nire,omitempty" json:"email__nire,omitempty"` - EmailNisw *[]string `form:"email__nisw,omitempty" json:"email__nisw,omitempty"` - EmailNre *[]string `form:"email__nre,omitempty" json:"email__nre,omitempty"` - EmailRe *[]string `form:"email__re,omitempty" json:"email__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Phone *[]string `form:"phone,omitempty" json:"phone,omitempty"` - PhoneIc *[]string `form:"phone__ic,omitempty" json:"phone__ic,omitempty"` - PhoneIe *[]string `form:"phone__ie,omitempty" json:"phone__ie,omitempty"` - PhoneIew *[]string `form:"phone__iew,omitempty" json:"phone__iew,omitempty"` - PhoneIre *[]string `form:"phone__ire,omitempty" json:"phone__ire,omitempty"` - PhoneIsw *[]string `form:"phone__isw,omitempty" json:"phone__isw,omitempty"` - PhoneN *[]string `form:"phone__n,omitempty" json:"phone__n,omitempty"` - PhoneNic *[]string `form:"phone__nic,omitempty" json:"phone__nic,omitempty"` - PhoneNie *[]string `form:"phone__nie,omitempty" json:"phone__nie,omitempty"` - PhoneNiew *[]string `form:"phone__niew,omitempty" json:"phone__niew,omitempty"` - PhoneNire *[]string `form:"phone__nire,omitempty" json:"phone__nire,omitempty"` - PhoneNisw *[]string `form:"phone__nisw,omitempty" json:"phone__nisw,omitempty"` - PhoneNre *[]string `form:"phone__nre,omitempty" json:"phone__nre,omitempty"` - PhoneRe *[]string `form:"phone__re,omitempty" json:"phone__re,omitempty"` - Priority *[]int `form:"priority,omitempty" json:"priority,omitempty"` - PriorityGt *[]int `form:"priority__gt,omitempty" json:"priority__gt,omitempty"` - PriorityGte *[]int `form:"priority__gte,omitempty" json:"priority__gte,omitempty"` - PriorityLt *[]int `form:"priority__lt,omitempty" json:"priority__lt,omitempty"` - PriorityLte *[]int `form:"priority__lte,omitempty" json:"priority__lte,omitempty"` - PriorityN *[]int `form:"priority__n,omitempty" json:"priority__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - TypeIc *[]string `form:"type__ic,omitempty" json:"type__ic,omitempty"` - TypeIe *[]string `form:"type__ie,omitempty" json:"type__ie,omitempty"` - TypeIew *[]string `form:"type__iew,omitempty" json:"type__iew,omitempty"` - TypeIre *[]string `form:"type__ire,omitempty" json:"type__ire,omitempty"` - TypeIsw *[]string `form:"type__isw,omitempty" json:"type__isw,omitempty"` - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` - TypeNic *[]string `form:"type__nic,omitempty" json:"type__nic,omitempty"` - TypeNie *[]string `form:"type__nie,omitempty" json:"type__nie,omitempty"` - TypeNiew *[]string `form:"type__niew,omitempty" json:"type__niew,omitempty"` - TypeNire *[]string `form:"type__nire,omitempty" json:"type__nire,omitempty"` - TypeNisw *[]string `form:"type__nisw,omitempty" json:"type__nisw,omitempty"` - TypeNre *[]string `form:"type__nre,omitempty" json:"type__nre,omitempty"` - TypeRe *[]string `form:"type__re,omitempty" json:"type__re,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONBody = []PatchedBulkWritableContactLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONBody = []BulkWritableContactLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtContractListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtContractList. -type PluginsNautobotDeviceLifecycleMgmtContractListParams struct { - ContractType *[]string `form:"contract_type,omitempty" json:"contract_type,omitempty"` - ContractTypeIc *[]string `form:"contract_type__ic,omitempty" json:"contract_type__ic,omitempty"` - ContractTypeIe *[]string `form:"contract_type__ie,omitempty" json:"contract_type__ie,omitempty"` - ContractTypeIew *[]string `form:"contract_type__iew,omitempty" json:"contract_type__iew,omitempty"` - ContractTypeIre *[]string `form:"contract_type__ire,omitempty" json:"contract_type__ire,omitempty"` - ContractTypeIsw *[]string `form:"contract_type__isw,omitempty" json:"contract_type__isw,omitempty"` - ContractTypeN *[]string `form:"contract_type__n,omitempty" json:"contract_type__n,omitempty"` - ContractTypeNic *[]string `form:"contract_type__nic,omitempty" json:"contract_type__nic,omitempty"` - ContractTypeNie *[]string `form:"contract_type__nie,omitempty" json:"contract_type__nie,omitempty"` - ContractTypeNiew *[]string `form:"contract_type__niew,omitempty" json:"contract_type__niew,omitempty"` - ContractTypeNire *[]string `form:"contract_type__nire,omitempty" json:"contract_type__nire,omitempty"` - ContractTypeNisw *[]string `form:"contract_type__nisw,omitempty" json:"contract_type__nisw,omitempty"` - ContractTypeNre *[]string `form:"contract_type__nre,omitempty" json:"contract_type__nre,omitempty"` - ContractTypeRe *[]string `form:"contract_type__re,omitempty" json:"contract_type__re,omitempty"` - Cost *[]float32 `form:"cost,omitempty" json:"cost,omitempty"` - CostGt *[]float32 `form:"cost__gt,omitempty" json:"cost__gt,omitempty"` - CostGte *[]float32 `form:"cost__gte,omitempty" json:"cost__gte,omitempty"` - CostLt *[]float32 `form:"cost__lt,omitempty" json:"cost__lt,omitempty"` - CostLte *[]float32 `form:"cost__lte,omitempty" json:"cost__lte,omitempty"` - CostN *[]float32 `form:"cost__n,omitempty" json:"cost__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - End *openapi_types.Date `form:"end,omitempty" json:"end,omitempty"` - EndGte *openapi_types.Date `form:"end__gte,omitempty" json:"end__gte,omitempty"` - EndLte *openapi_types.Date `form:"end__lte,omitempty" json:"end__lte,omitempty"` - - // Expired Expired - Expired *bool `form:"expired,omitempty" json:"expired,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Provider Provider - Provider *[]openapi_types.UUID `form:"provider,omitempty" json:"provider,omitempty"` - - // ProviderN Provider - ProviderN *[]openapi_types.UUID `form:"provider__n,omitempty" json:"provider__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Start *openapi_types.Date `form:"start,omitempty" json:"start,omitempty"` - StartGte *openapi_types.Date `form:"start__gte,omitempty" json:"start__gte,omitempty"` - StartLte *openapi_types.Date `form:"start__lte,omitempty" json:"start__lte,omitempty"` - SupportLevel *[]string `form:"support_level,omitempty" json:"support_level,omitempty"` - SupportLevelIc *[]string `form:"support_level__ic,omitempty" json:"support_level__ic,omitempty"` - SupportLevelIe *[]string `form:"support_level__ie,omitempty" json:"support_level__ie,omitempty"` - SupportLevelIew *[]string `form:"support_level__iew,omitempty" json:"support_level__iew,omitempty"` - SupportLevelIre *[]string `form:"support_level__ire,omitempty" json:"support_level__ire,omitempty"` - SupportLevelIsw *[]string `form:"support_level__isw,omitempty" json:"support_level__isw,omitempty"` - SupportLevelN *[]string `form:"support_level__n,omitempty" json:"support_level__n,omitempty"` - SupportLevelNic *[]string `form:"support_level__nic,omitempty" json:"support_level__nic,omitempty"` - SupportLevelNie *[]string `form:"support_level__nie,omitempty" json:"support_level__nie,omitempty"` - SupportLevelNiew *[]string `form:"support_level__niew,omitempty" json:"support_level__niew,omitempty"` - SupportLevelNire *[]string `form:"support_level__nire,omitempty" json:"support_level__nire,omitempty"` - SupportLevelNisw *[]string `form:"support_level__nisw,omitempty" json:"support_level__nisw,omitempty"` - SupportLevelNre *[]string `form:"support_level__nre,omitempty" json:"support_level__nre,omitempty"` - SupportLevelRe *[]string `form:"support_level__re,omitempty" json:"support_level__re,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONBody = []PatchedBulkWritableContractLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONBody = []BulkWritableContractLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtCveListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtCveList. -type PluginsNautobotDeviceLifecycleMgmtCveListParams struct { - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Cvss *[]float32 `form:"cvss,omitempty" json:"cvss,omitempty"` - CvssGt *[]float32 `form:"cvss__gt,omitempty" json:"cvss__gt,omitempty"` - CvssGte *[]float32 `form:"cvss__gte,omitempty" json:"cvss__gte,omitempty"` - CvssLt *[]float32 `form:"cvss__lt,omitempty" json:"cvss__lt,omitempty"` - CvssLte *[]float32 `form:"cvss__lte,omitempty" json:"cvss__lte,omitempty"` - CvssN *[]float32 `form:"cvss__n,omitempty" json:"cvss__n,omitempty"` - CvssV2 *[]float32 `form:"cvss_v2,omitempty" json:"cvss_v2,omitempty"` - CvssV2Gt *[]float32 `form:"cvss_v2__gt,omitempty" json:"cvss_v2__gt,omitempty"` - CvssV2Gte *[]float32 `form:"cvss_v2__gte,omitempty" json:"cvss_v2__gte,omitempty"` - CvssV2Lt *[]float32 `form:"cvss_v2__lt,omitempty" json:"cvss_v2__lt,omitempty"` - CvssV2Lte *[]float32 `form:"cvss_v2__lte,omitempty" json:"cvss_v2__lte,omitempty"` - CvssV2N *[]float32 `form:"cvss_v2__n,omitempty" json:"cvss_v2__n,omitempty"` - CvssV3 *[]float32 `form:"cvss_v3,omitempty" json:"cvss_v3,omitempty"` - CvssV3Gt *[]float32 `form:"cvss_v3__gt,omitempty" json:"cvss_v3__gt,omitempty"` - CvssV3Gte *[]float32 `form:"cvss_v3__gte,omitempty" json:"cvss_v3__gte,omitempty"` - CvssV3Lt *[]float32 `form:"cvss_v3__lt,omitempty" json:"cvss_v3__lt,omitempty"` - CvssV3Lte *[]float32 `form:"cvss_v3__lte,omitempty" json:"cvss_v3__lte,omitempty"` - CvssV3N *[]float32 `form:"cvss_v3__n,omitempty" json:"cvss_v3__n,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - ExcludeStatus *[]openapi_types.UUID `form:"exclude_status,omitempty" json:"exclude_status,omitempty"` - ExcludeStatusN *[]openapi_types.UUID `form:"exclude_status__n,omitempty" json:"exclude_status__n,omitempty"` - Fix *[]string `form:"fix,omitempty" json:"fix,omitempty"` - FixIc *[]string `form:"fix__ic,omitempty" json:"fix__ic,omitempty"` - FixIe *[]string `form:"fix__ie,omitempty" json:"fix__ie,omitempty"` - FixIew *[]string `form:"fix__iew,omitempty" json:"fix__iew,omitempty"` - FixIre *[]string `form:"fix__ire,omitempty" json:"fix__ire,omitempty"` - FixIsw *[]string `form:"fix__isw,omitempty" json:"fix__isw,omitempty"` - FixN *[]string `form:"fix__n,omitempty" json:"fix__n,omitempty"` - FixNic *[]string `form:"fix__nic,omitempty" json:"fix__nic,omitempty"` - FixNie *[]string `form:"fix__nie,omitempty" json:"fix__nie,omitempty"` - FixNiew *[]string `form:"fix__niew,omitempty" json:"fix__niew,omitempty"` - FixNire *[]string `form:"fix__nire,omitempty" json:"fix__nire,omitempty"` - FixNisw *[]string `form:"fix__nisw,omitempty" json:"fix__nisw,omitempty"` - FixNre *[]string `form:"fix__nre,omitempty" json:"fix__nre,omitempty"` - FixRe *[]string `form:"fix__re,omitempty" json:"fix__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Link *[]string `form:"link,omitempty" json:"link,omitempty"` - LinkIc *[]string `form:"link__ic,omitempty" json:"link__ic,omitempty"` - LinkIe *[]string `form:"link__ie,omitempty" json:"link__ie,omitempty"` - LinkIew *[]string `form:"link__iew,omitempty" json:"link__iew,omitempty"` - LinkIre *[]string `form:"link__ire,omitempty" json:"link__ire,omitempty"` - LinkIsw *[]string `form:"link__isw,omitempty" json:"link__isw,omitempty"` - LinkN *[]string `form:"link__n,omitempty" json:"link__n,omitempty"` - LinkNic *[]string `form:"link__nic,omitempty" json:"link__nic,omitempty"` - LinkNie *[]string `form:"link__nie,omitempty" json:"link__nie,omitempty"` - LinkNiew *[]string `form:"link__niew,omitempty" json:"link__niew,omitempty"` - LinkNire *[]string `form:"link__nire,omitempty" json:"link__nire,omitempty"` - LinkNisw *[]string `form:"link__nisw,omitempty" json:"link__nisw,omitempty"` - LinkNre *[]string `form:"link__nre,omitempty" json:"link__nre,omitempty"` - LinkRe *[]string `form:"link__re,omitempty" json:"link__re,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PublishedDateGte *openapi_types.Date `form:"published_date__gte,omitempty" json:"published_date__gte,omitempty"` - PublishedDateLte *openapi_types.Date `form:"published_date__lte,omitempty" json:"published_date__lte,omitempty"` - PublishedDateAfter *time.Time `form:"published_date_after,omitempty" json:"published_date_after,omitempty"` - PublishedDateBefore *time.Time `form:"published_date_before,omitempty" json:"published_date_before,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Severity *string `form:"severity,omitempty" json:"severity,omitempty"` - SeverityN *string `form:"severity__n,omitempty" json:"severity__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONBody = []PatchedBulkWritableCVELCMRequest - -// PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONBody = []BulkWritableCVELCMRequest - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtHardwareListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtHardwareList. -type PluginsNautobotDeviceLifecycleMgmtHardwareListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // DeviceType Device Type (Slug) - DeviceType *[]string `form:"device_type,omitempty" json:"device_type,omitempty"` - - // DeviceTypeN Device Type (Slug) - DeviceTypeN *[]string `form:"device_type__n,omitempty" json:"device_type__n,omitempty"` - - // DeviceTypeId Device Type - DeviceTypeId *[]openapi_types.UUID `form:"device_type_id,omitempty" json:"device_type_id,omitempty"` - - // DeviceTypeIdN Device Type - DeviceTypeIdN *[]openapi_types.UUID `form:"device_type_id__n,omitempty" json:"device_type_id__n,omitempty"` - DocumentationUrl *string `form:"documentation_url,omitempty" json:"documentation_url,omitempty"` - EndOfSale *openapi_types.Date `form:"end_of_sale,omitempty" json:"end_of_sale,omitempty"` - EndOfSaleGte *openapi_types.Date `form:"end_of_sale__gte,omitempty" json:"end_of_sale__gte,omitempty"` - EndOfSaleLte *openapi_types.Date `form:"end_of_sale__lte,omitempty" json:"end_of_sale__lte,omitempty"` - EndOfSecurityPatches *openapi_types.Date `form:"end_of_security_patches,omitempty" json:"end_of_security_patches,omitempty"` - EndOfSecurityPatchesGte *openapi_types.Date `form:"end_of_security_patches__gte,omitempty" json:"end_of_security_patches__gte,omitempty"` - EndOfSecurityPatchesLte *openapi_types.Date `form:"end_of_security_patches__lte,omitempty" json:"end_of_security_patches__lte,omitempty"` - EndOfSupport *openapi_types.Date `form:"end_of_support,omitempty" json:"end_of_support,omitempty"` - EndOfSupportGte *openapi_types.Date `form:"end_of_support__gte,omitempty" json:"end_of_support__gte,omitempty"` - EndOfSupportLte *openapi_types.Date `form:"end_of_support__lte,omitempty" json:"end_of_support__lte,omitempty"` - EndOfSwReleases *openapi_types.Date `form:"end_of_sw_releases,omitempty" json:"end_of_sw_releases,omitempty"` - EndOfSwReleasesGte *openapi_types.Date `form:"end_of_sw_releases__gte,omitempty" json:"end_of_sw_releases__gte,omitempty"` - EndOfSwReleasesLte *openapi_types.Date `form:"end_of_sw_releases__lte,omitempty" json:"end_of_sw_releases__lte,omitempty"` - - // Expired Expired - Expired *bool `form:"expired,omitempty" json:"expired,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // InventoryItem Inventory Part ID - InventoryItem *[]string `form:"inventory_item,omitempty" json:"inventory_item,omitempty"` - - // InventoryItemN Inventory Part ID - InventoryItemN *[]string `form:"inventory_item__n,omitempty" json:"inventory_item__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONBody = []PatchedBulkWritableHardwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONBody = []BulkWritableHardwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtProviderListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtProviderList. -type PluginsNautobotDeviceLifecycleMgmtProviderListParams struct { - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - Country *[]string `form:"country,omitempty" json:"country,omitempty"` - CountryIc *[]string `form:"country__ic,omitempty" json:"country__ic,omitempty"` - CountryIe *[]string `form:"country__ie,omitempty" json:"country__ie,omitempty"` - CountryIew *[]string `form:"country__iew,omitempty" json:"country__iew,omitempty"` - CountryIre *[]string `form:"country__ire,omitempty" json:"country__ire,omitempty"` - CountryIsw *[]string `form:"country__isw,omitempty" json:"country__isw,omitempty"` - CountryN *[]string `form:"country__n,omitempty" json:"country__n,omitempty"` - CountryNic *[]string `form:"country__nic,omitempty" json:"country__nic,omitempty"` - CountryNie *[]string `form:"country__nie,omitempty" json:"country__nie,omitempty"` - CountryNiew *[]string `form:"country__niew,omitempty" json:"country__niew,omitempty"` - CountryNire *[]string `form:"country__nire,omitempty" json:"country__nire,omitempty"` - CountryNisw *[]string `form:"country__nisw,omitempty" json:"country__nisw,omitempty"` - CountryNre *[]string `form:"country__nre,omitempty" json:"country__nre,omitempty"` - CountryRe *[]string `form:"country__re,omitempty" json:"country__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Email *[]string `form:"email,omitempty" json:"email,omitempty"` - EmailIc *[]string `form:"email__ic,omitempty" json:"email__ic,omitempty"` - EmailIe *[]string `form:"email__ie,omitempty" json:"email__ie,omitempty"` - EmailIew *[]string `form:"email__iew,omitempty" json:"email__iew,omitempty"` - EmailIre *[]string `form:"email__ire,omitempty" json:"email__ire,omitempty"` - EmailIsw *[]string `form:"email__isw,omitempty" json:"email__isw,omitempty"` - EmailN *[]string `form:"email__n,omitempty" json:"email__n,omitempty"` - EmailNic *[]string `form:"email__nic,omitempty" json:"email__nic,omitempty"` - EmailNie *[]string `form:"email__nie,omitempty" json:"email__nie,omitempty"` - EmailNiew *[]string `form:"email__niew,omitempty" json:"email__niew,omitempty"` - EmailNire *[]string `form:"email__nire,omitempty" json:"email__nire,omitempty"` - EmailNisw *[]string `form:"email__nisw,omitempty" json:"email__nisw,omitempty"` - EmailNre *[]string `form:"email__nre,omitempty" json:"email__nre,omitempty"` - EmailRe *[]string `form:"email__re,omitempty" json:"email__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Phone *[]string `form:"phone,omitempty" json:"phone,omitempty"` - PhoneIc *[]string `form:"phone__ic,omitempty" json:"phone__ic,omitempty"` - PhoneIe *[]string `form:"phone__ie,omitempty" json:"phone__ie,omitempty"` - PhoneIew *[]string `form:"phone__iew,omitempty" json:"phone__iew,omitempty"` - PhoneIre *[]string `form:"phone__ire,omitempty" json:"phone__ire,omitempty"` - PhoneIsw *[]string `form:"phone__isw,omitempty" json:"phone__isw,omitempty"` - PhoneN *[]string `form:"phone__n,omitempty" json:"phone__n,omitempty"` - PhoneNic *[]string `form:"phone__nic,omitempty" json:"phone__nic,omitempty"` - PhoneNie *[]string `form:"phone__nie,omitempty" json:"phone__nie,omitempty"` - PhoneNiew *[]string `form:"phone__niew,omitempty" json:"phone__niew,omitempty"` - PhoneNire *[]string `form:"phone__nire,omitempty" json:"phone__nire,omitempty"` - PhoneNisw *[]string `form:"phone__nisw,omitempty" json:"phone__nisw,omitempty"` - PhoneNre *[]string `form:"phone__nre,omitempty" json:"phone__nre,omitempty"` - PhoneRe *[]string `form:"phone__re,omitempty" json:"phone__re,omitempty"` - PhysicalAddress *[]string `form:"physical_address,omitempty" json:"physical_address,omitempty"` - PhysicalAddressIc *[]string `form:"physical_address__ic,omitempty" json:"physical_address__ic,omitempty"` - PhysicalAddressIe *[]string `form:"physical_address__ie,omitempty" json:"physical_address__ie,omitempty"` - PhysicalAddressIew *[]string `form:"physical_address__iew,omitempty" json:"physical_address__iew,omitempty"` - PhysicalAddressIre *[]string `form:"physical_address__ire,omitempty" json:"physical_address__ire,omitempty"` - PhysicalAddressIsw *[]string `form:"physical_address__isw,omitempty" json:"physical_address__isw,omitempty"` - PhysicalAddressN *[]string `form:"physical_address__n,omitempty" json:"physical_address__n,omitempty"` - PhysicalAddressNic *[]string `form:"physical_address__nic,omitempty" json:"physical_address__nic,omitempty"` - PhysicalAddressNie *[]string `form:"physical_address__nie,omitempty" json:"physical_address__nie,omitempty"` - PhysicalAddressNiew *[]string `form:"physical_address__niew,omitempty" json:"physical_address__niew,omitempty"` - PhysicalAddressNire *[]string `form:"physical_address__nire,omitempty" json:"physical_address__nire,omitempty"` - PhysicalAddressNisw *[]string `form:"physical_address__nisw,omitempty" json:"physical_address__nisw,omitempty"` - PhysicalAddressNre *[]string `form:"physical_address__nre,omitempty" json:"physical_address__nre,omitempty"` - PhysicalAddressRe *[]string `form:"physical_address__re,omitempty" json:"physical_address__re,omitempty"` - PortalUrl *[]string `form:"portal_url,omitempty" json:"portal_url,omitempty"` - PortalUrlIc *[]string `form:"portal_url__ic,omitempty" json:"portal_url__ic,omitempty"` - PortalUrlIe *[]string `form:"portal_url__ie,omitempty" json:"portal_url__ie,omitempty"` - PortalUrlIew *[]string `form:"portal_url__iew,omitempty" json:"portal_url__iew,omitempty"` - PortalUrlIre *[]string `form:"portal_url__ire,omitempty" json:"portal_url__ire,omitempty"` - PortalUrlIsw *[]string `form:"portal_url__isw,omitempty" json:"portal_url__isw,omitempty"` - PortalUrlN *[]string `form:"portal_url__n,omitempty" json:"portal_url__n,omitempty"` - PortalUrlNic *[]string `form:"portal_url__nic,omitempty" json:"portal_url__nic,omitempty"` - PortalUrlNie *[]string `form:"portal_url__nie,omitempty" json:"portal_url__nie,omitempty"` - PortalUrlNiew *[]string `form:"portal_url__niew,omitempty" json:"portal_url__niew,omitempty"` - PortalUrlNire *[]string `form:"portal_url__nire,omitempty" json:"portal_url__nire,omitempty"` - PortalUrlNisw *[]string `form:"portal_url__nisw,omitempty" json:"portal_url__nisw,omitempty"` - PortalUrlNre *[]string `form:"portal_url__nre,omitempty" json:"portal_url__nre,omitempty"` - PortalUrlRe *[]string `form:"portal_url__re,omitempty" json:"portal_url__re,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONBody = []PatchedBulkWritableProviderLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONBody = []BulkWritableProviderLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareImageList. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - DefaultImage *bool `form:"default_image,omitempty" json:"default_image,omitempty"` - - // DeviceId Device ID - DeviceId *string `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceName Device Name - DeviceName *string `form:"device_name,omitempty" json:"device_name,omitempty"` - - // DeviceTypes Device Types (model) - DeviceTypes *[]string `form:"device_types,omitempty" json:"device_types,omitempty"` - - // DeviceTypesN Device Types (model) - DeviceTypesN *[]string `form:"device_types__n,omitempty" json:"device_types__n,omitempty"` - - // DeviceTypesId Device Types - DeviceTypesId *[]openapi_types.UUID `form:"device_types_id,omitempty" json:"device_types_id,omitempty"` - - // DeviceTypesIdN Device Types - DeviceTypesIdN *[]openapi_types.UUID `form:"device_types_id__n,omitempty" json:"device_types_id__n,omitempty"` - DownloadUrl *[]string `form:"download_url,omitempty" json:"download_url,omitempty"` - DownloadUrlIc *[]string `form:"download_url__ic,omitempty" json:"download_url__ic,omitempty"` - DownloadUrlIe *[]string `form:"download_url__ie,omitempty" json:"download_url__ie,omitempty"` - DownloadUrlIew *[]string `form:"download_url__iew,omitempty" json:"download_url__iew,omitempty"` - DownloadUrlIre *[]string `form:"download_url__ire,omitempty" json:"download_url__ire,omitempty"` - DownloadUrlIsw *[]string `form:"download_url__isw,omitempty" json:"download_url__isw,omitempty"` - DownloadUrlN *[]string `form:"download_url__n,omitempty" json:"download_url__n,omitempty"` - DownloadUrlNic *[]string `form:"download_url__nic,omitempty" json:"download_url__nic,omitempty"` - DownloadUrlNie *[]string `form:"download_url__nie,omitempty" json:"download_url__nie,omitempty"` - DownloadUrlNiew *[]string `form:"download_url__niew,omitempty" json:"download_url__niew,omitempty"` - DownloadUrlNire *[]string `form:"download_url__nire,omitempty" json:"download_url__nire,omitempty"` - DownloadUrlNisw *[]string `form:"download_url__nisw,omitempty" json:"download_url__nisw,omitempty"` - DownloadUrlNre *[]string `form:"download_url__nre,omitempty" json:"download_url__nre,omitempty"` - DownloadUrlRe *[]string `form:"download_url__re,omitempty" json:"download_url__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - ImageFileChecksum *[]string `form:"image_file_checksum,omitempty" json:"image_file_checksum,omitempty"` - ImageFileChecksumIc *[]string `form:"image_file_checksum__ic,omitempty" json:"image_file_checksum__ic,omitempty"` - ImageFileChecksumIe *[]string `form:"image_file_checksum__ie,omitempty" json:"image_file_checksum__ie,omitempty"` - ImageFileChecksumIew *[]string `form:"image_file_checksum__iew,omitempty" json:"image_file_checksum__iew,omitempty"` - ImageFileChecksumIre *[]string `form:"image_file_checksum__ire,omitempty" json:"image_file_checksum__ire,omitempty"` - ImageFileChecksumIsw *[]string `form:"image_file_checksum__isw,omitempty" json:"image_file_checksum__isw,omitempty"` - ImageFileChecksumN *[]string `form:"image_file_checksum__n,omitempty" json:"image_file_checksum__n,omitempty"` - ImageFileChecksumNic *[]string `form:"image_file_checksum__nic,omitempty" json:"image_file_checksum__nic,omitempty"` - ImageFileChecksumNie *[]string `form:"image_file_checksum__nie,omitempty" json:"image_file_checksum__nie,omitempty"` - ImageFileChecksumNiew *[]string `form:"image_file_checksum__niew,omitempty" json:"image_file_checksum__niew,omitempty"` - ImageFileChecksumNire *[]string `form:"image_file_checksum__nire,omitempty" json:"image_file_checksum__nire,omitempty"` - ImageFileChecksumNisw *[]string `form:"image_file_checksum__nisw,omitempty" json:"image_file_checksum__nisw,omitempty"` - ImageFileChecksumNre *[]string `form:"image_file_checksum__nre,omitempty" json:"image_file_checksum__nre,omitempty"` - ImageFileChecksumRe *[]string `form:"image_file_checksum__re,omitempty" json:"image_file_checksum__re,omitempty"` - ImageFileName *[]string `form:"image_file_name,omitempty" json:"image_file_name,omitempty"` - ImageFileNameIc *[]string `form:"image_file_name__ic,omitempty" json:"image_file_name__ic,omitempty"` - ImageFileNameIe *[]string `form:"image_file_name__ie,omitempty" json:"image_file_name__ie,omitempty"` - ImageFileNameIew *[]string `form:"image_file_name__iew,omitempty" json:"image_file_name__iew,omitempty"` - ImageFileNameIre *[]string `form:"image_file_name__ire,omitempty" json:"image_file_name__ire,omitempty"` - ImageFileNameIsw *[]string `form:"image_file_name__isw,omitempty" json:"image_file_name__isw,omitempty"` - ImageFileNameN *[]string `form:"image_file_name__n,omitempty" json:"image_file_name__n,omitempty"` - ImageFileNameNic *[]string `form:"image_file_name__nic,omitempty" json:"image_file_name__nic,omitempty"` - ImageFileNameNie *[]string `form:"image_file_name__nie,omitempty" json:"image_file_name__nie,omitempty"` - ImageFileNameNiew *[]string `form:"image_file_name__niew,omitempty" json:"image_file_name__niew,omitempty"` - ImageFileNameNire *[]string `form:"image_file_name__nire,omitempty" json:"image_file_name__nire,omitempty"` - ImageFileNameNisw *[]string `form:"image_file_name__nisw,omitempty" json:"image_file_name__nisw,omitempty"` - ImageFileNameNre *[]string `form:"image_file_name__nre,omitempty" json:"image_file_name__nre,omitempty"` - ImageFileNameRe *[]string `form:"image_file_name__re,omitempty" json:"image_file_name__re,omitempty"` - - // InventoryItemId InventoryItem ID - InventoryItemId *string `form:"inventory_item_id,omitempty" json:"inventory_item_id,omitempty"` - - // InventoryItems Inventory Items (name) - InventoryItems *[]openapi_types.UUID `form:"inventory_items,omitempty" json:"inventory_items,omitempty"` - - // InventoryItemsN Inventory Items (name) - InventoryItemsN *[]openapi_types.UUID `form:"inventory_items__n,omitempty" json:"inventory_items__n,omitempty"` - - // InventoryItemsId Inventory Items - InventoryItemsId *[]openapi_types.UUID `form:"inventory_items_id,omitempty" json:"inventory_items_id,omitempty"` - - // InventoryItemsIdN Inventory Items - InventoryItemsIdN *[]openapi_types.UUID `form:"inventory_items_id__n,omitempty" json:"inventory_items_id__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // ObjectTags Object Tags (slug) - ObjectTags *[]string `form:"object_tags,omitempty" json:"object_tags,omitempty"` - - // ObjectTagsN Object Tags (slug) - ObjectTagsN *[]string `form:"object_tags__n,omitempty" json:"object_tags__n,omitempty"` - - // ObjectTagsId Object Tags - ObjectTagsId *[]openapi_types.UUID `form:"object_tags_id,omitempty" json:"object_tags_id,omitempty"` - - // ObjectTagsIdN Object Tags - ObjectTagsIdN *[]openapi_types.UUID `form:"object_tags_id__n,omitempty" json:"object_tags_id__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Software Software - Software *[]openapi_types.UUID `form:"software,omitempty" json:"software,omitempty"` - - // SoftwareN Software - SoftwareN *[]openapi_types.UUID `form:"software__n,omitempty" json:"software__n,omitempty"` - - // SoftwareVersion Software (version) - SoftwareVersion *[]string `form:"software_version,omitempty" json:"software_version,omitempty"` - - // SoftwareVersionN Software (version) - SoftwareVersionN *[]string `form:"software_version__n,omitempty" json:"software_version__n,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONBody = []PatchedBulkWritableSoftwareImageLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONBody = []BulkWritableSoftwareImageLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareList. -type PluginsNautobotDeviceLifecycleMgmtSoftwareListParams struct { - Alias *[]string `form:"alias,omitempty" json:"alias,omitempty"` - AliasIc *[]string `form:"alias__ic,omitempty" json:"alias__ic,omitempty"` - AliasIe *[]string `form:"alias__ie,omitempty" json:"alias__ie,omitempty"` - AliasIew *[]string `form:"alias__iew,omitempty" json:"alias__iew,omitempty"` - AliasIre *[]string `form:"alias__ire,omitempty" json:"alias__ire,omitempty"` - AliasIsw *[]string `form:"alias__isw,omitempty" json:"alias__isw,omitempty"` - AliasN *[]string `form:"alias__n,omitempty" json:"alias__n,omitempty"` - AliasNic *[]string `form:"alias__nic,omitempty" json:"alias__nic,omitempty"` - AliasNie *[]string `form:"alias__nie,omitempty" json:"alias__nie,omitempty"` - AliasNiew *[]string `form:"alias__niew,omitempty" json:"alias__niew,omitempty"` - AliasNire *[]string `form:"alias__nire,omitempty" json:"alias__nire,omitempty"` - AliasNisw *[]string `form:"alias__nisw,omitempty" json:"alias__nisw,omitempty"` - AliasNre *[]string `form:"alias__nre,omitempty" json:"alias__nre,omitempty"` - AliasRe *[]string `form:"alias__re,omitempty" json:"alias__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // DevicePlatform Device Platform (Slug) - DevicePlatform *[]string `form:"device_platform,omitempty" json:"device_platform,omitempty"` - - // DevicePlatformN Device Platform (Slug) - DevicePlatformN *[]string `form:"device_platform__n,omitempty" json:"device_platform__n,omitempty"` - DocumentationUrl *string `form:"documentation_url,omitempty" json:"documentation_url,omitempty"` - EndOfSupportAfter *time.Time `form:"end_of_support_after,omitempty" json:"end_of_support_after,omitempty"` - EndOfSupportBefore *time.Time `form:"end_of_support_before,omitempty" json:"end_of_support_before,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - LongTermSupport *bool `form:"long_term_support,omitempty" json:"long_term_support,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - PreRelease *bool `form:"pre_release,omitempty" json:"pre_release,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - ReleaseDateAfter *time.Time `form:"release_date_after,omitempty" json:"release_date_after,omitempty"` - ReleaseDateBefore *time.Time `form:"release_date_before,omitempty" json:"release_date_before,omitempty"` - Version *[]string `form:"version,omitempty" json:"version,omitempty"` - VersionIc *[]string `form:"version__ic,omitempty" json:"version__ic,omitempty"` - VersionIe *[]string `form:"version__ie,omitempty" json:"version__ie,omitempty"` - VersionIew *[]string `form:"version__iew,omitempty" json:"version__iew,omitempty"` - VersionIre *[]string `form:"version__ire,omitempty" json:"version__ire,omitempty"` - VersionIsw *[]string `form:"version__isw,omitempty" json:"version__isw,omitempty"` - VersionN *[]string `form:"version__n,omitempty" json:"version__n,omitempty"` - VersionNic *[]string `form:"version__nic,omitempty" json:"version__nic,omitempty"` - VersionNie *[]string `form:"version__nie,omitempty" json:"version__nie,omitempty"` - VersionNiew *[]string `form:"version__niew,omitempty" json:"version__niew,omitempty"` - VersionNire *[]string `form:"version__nire,omitempty" json:"version__nire,omitempty"` - VersionNisw *[]string `form:"version__nisw,omitempty" json:"version__nisw,omitempty"` - VersionNre *[]string `form:"version__nre,omitempty" json:"version__nre,omitempty"` - VersionRe *[]string `form:"version__re,omitempty" json:"version__re,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONBody = []PatchedBulkWritableSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONBody = []BulkWritableSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareList. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // DeviceId Device ID - DeviceId *string `form:"device_id,omitempty" json:"device_id,omitempty"` - - // DeviceName Device Name - DeviceName *string `form:"device_name,omitempty" json:"device_name,omitempty"` - - // DeviceRoles Device Roles (slug) - DeviceRoles *[]string `form:"device_roles,omitempty" json:"device_roles,omitempty"` - - // DeviceRolesN Device Roles (slug) - DeviceRolesN *[]string `form:"device_roles__n,omitempty" json:"device_roles__n,omitempty"` - - // DeviceRolesId Device Roles - DeviceRolesId *[]openapi_types.UUID `form:"device_roles_id,omitempty" json:"device_roles_id,omitempty"` - - // DeviceRolesIdN Device Roles - DeviceRolesIdN *[]openapi_types.UUID `form:"device_roles_id__n,omitempty" json:"device_roles_id__n,omitempty"` - - // DeviceTypes Device Types (model) - DeviceTypes *[]string `form:"device_types,omitempty" json:"device_types,omitempty"` - - // DeviceTypesN Device Types (model) - DeviceTypesN *[]string `form:"device_types__n,omitempty" json:"device_types__n,omitempty"` - - // DeviceTypesId Device Types - DeviceTypesId *[]openapi_types.UUID `form:"device_types_id,omitempty" json:"device_types_id,omitempty"` - - // DeviceTypesIdN Device Types - DeviceTypesIdN *[]openapi_types.UUID `form:"device_types_id__n,omitempty" json:"device_types_id__n,omitempty"` - - // Devices Devices (name) - Devices *[]string `form:"devices,omitempty" json:"devices,omitempty"` - - // DevicesN Devices (name) - DevicesN *[]string `form:"devices__n,omitempty" json:"devices__n,omitempty"` - - // DevicesId Devices - DevicesId *[]openapi_types.UUID `form:"devices_id,omitempty" json:"devices_id,omitempty"` - - // DevicesIdN Devices - DevicesIdN *[]openapi_types.UUID `form:"devices_id__n,omitempty" json:"devices_id__n,omitempty"` - EndAfter *time.Time `form:"end_after,omitempty" json:"end_after,omitempty"` - EndBefore *time.Time `form:"end_before,omitempty" json:"end_before,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // InventoryItemId InventoryItem ID - InventoryItemId *string `form:"inventory_item_id,omitempty" json:"inventory_item_id,omitempty"` - - // InventoryItems Inventory Items (name) - InventoryItems *[]string `form:"inventory_items,omitempty" json:"inventory_items,omitempty"` - - // InventoryItemsN Inventory Items (name) - InventoryItemsN *[]string `form:"inventory_items__n,omitempty" json:"inventory_items__n,omitempty"` - - // InventoryItemsId Inventory Items - InventoryItemsId *[]openapi_types.UUID `form:"inventory_items_id,omitempty" json:"inventory_items_id,omitempty"` - - // InventoryItemsIdN Inventory Items - InventoryItemsIdN *[]openapi_types.UUID `form:"inventory_items_id__n,omitempty" json:"inventory_items_id__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // ObjectTags Object Tags (slug) - ObjectTags *[]string `form:"object_tags,omitempty" json:"object_tags,omitempty"` - - // ObjectTagsN Object Tags (slug) - ObjectTagsN *[]string `form:"object_tags__n,omitempty" json:"object_tags__n,omitempty"` - - // ObjectTagsId Object Tags - ObjectTagsId *[]openapi_types.UUID `form:"object_tags_id,omitempty" json:"object_tags_id,omitempty"` - - // ObjectTagsIdN Object Tags - ObjectTagsIdN *[]openapi_types.UUID `form:"object_tags_id__n,omitempty" json:"object_tags_id__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - Preferred *bool `form:"preferred,omitempty" json:"preferred,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Software Software - Software *[]openapi_types.UUID `form:"software,omitempty" json:"software,omitempty"` - - // SoftwareN Software - SoftwareN *[]openapi_types.UUID `form:"software__n,omitempty" json:"software__n,omitempty"` - StartAfter *time.Time `form:"start_after,omitempty" json:"start_after,omitempty"` - StartBefore *time.Time `form:"start_before,omitempty" json:"start_before,omitempty"` - - // Valid Currently valid - Valid *bool `form:"valid,omitempty" json:"valid,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONBody = []PatchedBulkWritableValidatedSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONBody = []BulkWritableValidatedSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONBody = []BulkOperationRequest - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityListParams defines parameters for PluginsNautobotDeviceLifecycleMgmtVulnerabilityList. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Cve *openapi_types.UUID `form:"cve,omitempty" json:"cve,omitempty"` - CveN *openapi_types.UUID `form:"cve__n,omitempty" json:"cve__n,omitempty"` - CvePublishedDateGte *openapi_types.Date `form:"cve__published_date__gte,omitempty" json:"cve__published_date__gte,omitempty"` - CvePublishedDateLte *openapi_types.Date `form:"cve__published_date__lte,omitempty" json:"cve__published_date__lte,omitempty"` - CvePublishedDateAfter *time.Time `form:"cve__published_date_after,omitempty" json:"cve__published_date_after,omitempty"` - CvePublishedDateBefore *time.Time `form:"cve__published_date_before,omitempty" json:"cve__published_date_before,omitempty"` - Device *openapi_types.UUID `form:"device,omitempty" json:"device,omitempty"` - DeviceN *openapi_types.UUID `form:"device__n,omitempty" json:"device__n,omitempty"` - ExcludeStatus *[]openapi_types.UUID `form:"exclude_status,omitempty" json:"exclude_status,omitempty"` - ExcludeStatusN *[]openapi_types.UUID `form:"exclude_status__n,omitempty" json:"exclude_status__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - InventoryItem *openapi_types.UUID `form:"inventory_item,omitempty" json:"inventory_item,omitempty"` - InventoryItemN *openapi_types.UUID `form:"inventory_item__n,omitempty" json:"inventory_item__n,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Software *openapi_types.UUID `form:"software,omitempty" json:"software,omitempty"` - SoftwareN *openapi_types.UUID `form:"software__n,omitempty" json:"software__n,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONBody = []PatchedBulkWritableVulnerabilityLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONBody defines parameters for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONBody = []BulkWritableVulnerabilityLCMRequest - -// SwaggerJsonRetrieveParams defines parameters for SwaggerJsonRetrieve. -type SwaggerJsonRetrieveParams struct { - Lang *SwaggerJsonRetrieveParamsLang `form:"lang,omitempty" json:"lang,omitempty"` -} - -// SwaggerJsonRetrieveParamsLang defines parameters for SwaggerJsonRetrieve. -type SwaggerJsonRetrieveParamsLang string - -// SwaggerYamlRetrieveParams defines parameters for SwaggerYamlRetrieve. -type SwaggerYamlRetrieveParams struct { - Lang *SwaggerYamlRetrieveParamsLang `form:"lang,omitempty" json:"lang,omitempty"` -} - -// SwaggerYamlRetrieveParamsLang defines parameters for SwaggerYamlRetrieve. -type SwaggerYamlRetrieveParamsLang string - -// SwaggerRetrieveParams defines parameters for SwaggerRetrieve. -type SwaggerRetrieveParams struct { - Format *SwaggerRetrieveParamsFormat `form:"format,omitempty" json:"format,omitempty"` - Lang *SwaggerRetrieveParamsLang `form:"lang,omitempty" json:"lang,omitempty"` -} - -// SwaggerRetrieveParamsFormat defines parameters for SwaggerRetrieve. -type SwaggerRetrieveParamsFormat string - -// SwaggerRetrieveParamsLang defines parameters for SwaggerRetrieve. -type SwaggerRetrieveParamsLang string - -// TenancyTenantGroupsBulkDestroyJSONBody defines parameters for TenancyTenantGroupsBulkDestroy. -type TenancyTenantGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// TenancyTenantGroupsListParams defines parameters for TenancyTenantGroupsList. -type TenancyTenantGroupsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Parent Tenant group group (slug) - Parent *[]string `form:"parent,omitempty" json:"parent,omitempty"` - - // ParentN Tenant group group (slug) - ParentN *[]string `form:"parent__n,omitempty" json:"parent__n,omitempty"` - - // ParentId Tenant group (ID) - ParentId *[]openapi_types.UUID `form:"parent_id,omitempty" json:"parent_id,omitempty"` - - // ParentIdN Tenant group (ID) - ParentIdN *[]openapi_types.UUID `form:"parent_id__n,omitempty" json:"parent_id__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// TenancyTenantGroupsBulkPartialUpdateJSONBody defines parameters for TenancyTenantGroupsBulkPartialUpdate. -type TenancyTenantGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableTenantGroupRequest - -// TenancyTenantGroupsBulkUpdateJSONBody defines parameters for TenancyTenantGroupsBulkUpdate. -type TenancyTenantGroupsBulkUpdateJSONBody = []BulkWritableTenantGroupRequest - -// TenancyTenantGroupsNotesListParams defines parameters for TenancyTenantGroupsNotesList. -type TenancyTenantGroupsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// TenancyTenantsBulkDestroyJSONBody defines parameters for TenancyTenantsBulkDestroy. -type TenancyTenantsBulkDestroyJSONBody = []BulkOperationRequest - -// TenancyTenantsListParams defines parameters for TenancyTenantsList. -type TenancyTenantsListParams struct { - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Group Tenant group (slug) - Group *[]openapi_types.UUID `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Tenant group (slug) - GroupN *[]openapi_types.UUID `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Tenant group (ID) - GroupId *[]openapi_types.UUID `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Tenant group (ID) - GroupIdN *[]openapi_types.UUID `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - - // HasLocations Has locations - HasLocations *bool `form:"has_locations,omitempty" json:"has_locations,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Locations Locations (slugs and/or IDs) - Locations *[]openapi_types.UUID `form:"locations,omitempty" json:"locations,omitempty"` - - // LocationsN Locations (slugs and/or IDs) - LocationsN *[]openapi_types.UUID `form:"locations__n,omitempty" json:"locations__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` -} - -// TenancyTenantsBulkPartialUpdateJSONBody defines parameters for TenancyTenantsBulkPartialUpdate. -type TenancyTenantsBulkPartialUpdateJSONBody = []PatchedBulkWritableTenantRequest - -// TenancyTenantsBulkUpdateJSONBody defines parameters for TenancyTenantsBulkUpdate. -type TenancyTenantsBulkUpdateJSONBody = []BulkWritableTenantRequest - -// TenancyTenantsNotesListParams defines parameters for TenancyTenantsNotesList. -type TenancyTenantsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// UsersGroupsBulkDestroyJSONBody defines parameters for UsersGroupsBulkDestroy. -type UsersGroupsBulkDestroyJSONBody = []BulkOperationIntegerIDRequest - -// UsersGroupsListParams defines parameters for UsersGroupsList. -type UsersGroupsListParams struct { - Id *[]int `form:"id,omitempty" json:"id,omitempty"` - IdGt *[]int `form:"id__gt,omitempty" json:"id__gt,omitempty"` - IdGte *[]int `form:"id__gte,omitempty" json:"id__gte,omitempty"` - IdLt *[]int `form:"id__lt,omitempty" json:"id__lt,omitempty"` - IdLte *[]int `form:"id__lte,omitempty" json:"id__lte,omitempty"` - IdN *[]int `form:"id__n,omitempty" json:"id__n,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` -} - -// UsersGroupsBulkPartialUpdateJSONBody defines parameters for UsersGroupsBulkPartialUpdate. -type UsersGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableGroupRequest - -// UsersGroupsBulkUpdateJSONBody defines parameters for UsersGroupsBulkUpdate. -type UsersGroupsBulkUpdateJSONBody = []BulkWritableGroupRequest - -// UsersPermissionsBulkDestroyJSONBody defines parameters for UsersPermissionsBulkDestroy. -type UsersPermissionsBulkDestroyJSONBody = []BulkOperationRequest - -// UsersPermissionsListParams defines parameters for UsersPermissionsList. -type UsersPermissionsListParams struct { - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - - // Group Group (name) - Group *[]string `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Group (name) - GroupN *[]string `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Group - GroupId *[]int `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Group - GroupIdN *[]int `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - ObjectTypes *[]int `form:"object_types,omitempty" json:"object_types,omitempty"` - ObjectTypesN *[]int `form:"object_types__n,omitempty" json:"object_types__n,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // User User (name) - User *[]string `form:"user,omitempty" json:"user,omitempty"` - - // UserN User (name) - UserN *[]string `form:"user__n,omitempty" json:"user__n,omitempty"` - - // UserId User - UserId *[]openapi_types.UUID `form:"user_id,omitempty" json:"user_id,omitempty"` - - // UserIdN User - UserIdN *[]openapi_types.UUID `form:"user_id__n,omitempty" json:"user_id__n,omitempty"` -} - -// UsersPermissionsBulkPartialUpdateJSONBody defines parameters for UsersPermissionsBulkPartialUpdate. -type UsersPermissionsBulkPartialUpdateJSONBody = []PatchedBulkWritableObjectPermissionRequest - -// UsersPermissionsBulkUpdateJSONBody defines parameters for UsersPermissionsBulkUpdate. -type UsersPermissionsBulkUpdateJSONBody = []BulkWritableObjectPermissionRequest - -// UsersTokensBulkDestroyJSONBody defines parameters for UsersTokensBulkDestroy. -type UsersTokensBulkDestroyJSONBody = []BulkOperationRequest - -// UsersTokensListParams defines parameters for UsersTokensList. -type UsersTokensListParams struct { - Created *[]time.Time `form:"created,omitempty" json:"created,omitempty"` - CreatedGt *[]time.Time `form:"created__gt,omitempty" json:"created__gt,omitempty"` - CreatedGte *[]time.Time `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLt *[]time.Time `form:"created__lt,omitempty" json:"created__lt,omitempty"` - CreatedLte *[]time.Time `form:"created__lte,omitempty" json:"created__lte,omitempty"` - CreatedN *[]time.Time `form:"created__n,omitempty" json:"created__n,omitempty"` - Expires *[]time.Time `form:"expires,omitempty" json:"expires,omitempty"` - ExpiresGt *[]time.Time `form:"expires__gt,omitempty" json:"expires__gt,omitempty"` - ExpiresGte *[]time.Time `form:"expires__gte,omitempty" json:"expires__gte,omitempty"` - ExpiresLt *[]time.Time `form:"expires__lt,omitempty" json:"expires__lt,omitempty"` - ExpiresLte *[]time.Time `form:"expires__lte,omitempty" json:"expires__lte,omitempty"` - ExpiresN *[]time.Time `form:"expires__n,omitempty" json:"expires__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - Key *[]string `form:"key,omitempty" json:"key,omitempty"` - KeyIc *[]string `form:"key__ic,omitempty" json:"key__ic,omitempty"` - KeyIe *[]string `form:"key__ie,omitempty" json:"key__ie,omitempty"` - KeyIew *[]string `form:"key__iew,omitempty" json:"key__iew,omitempty"` - KeyIre *[]string `form:"key__ire,omitempty" json:"key__ire,omitempty"` - KeyIsw *[]string `form:"key__isw,omitempty" json:"key__isw,omitempty"` - KeyN *[]string `form:"key__n,omitempty" json:"key__n,omitempty"` - KeyNic *[]string `form:"key__nic,omitempty" json:"key__nic,omitempty"` - KeyNie *[]string `form:"key__nie,omitempty" json:"key__nie,omitempty"` - KeyNiew *[]string `form:"key__niew,omitempty" json:"key__niew,omitempty"` - KeyNire *[]string `form:"key__nire,omitempty" json:"key__nire,omitempty"` - KeyNisw *[]string `form:"key__nisw,omitempty" json:"key__nisw,omitempty"` - KeyNre *[]string `form:"key__nre,omitempty" json:"key__nre,omitempty"` - KeyRe *[]string `form:"key__re,omitempty" json:"key__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - WriteEnabled *bool `form:"write_enabled,omitempty" json:"write_enabled,omitempty"` -} - -// UsersTokensBulkPartialUpdateJSONBody defines parameters for UsersTokensBulkPartialUpdate. -type UsersTokensBulkPartialUpdateJSONBody = []PatchedBulkWritableTokenRequest - -// UsersTokensBulkUpdateJSONBody defines parameters for UsersTokensBulkUpdate. -type UsersTokensBulkUpdateJSONBody = []BulkWritableTokenRequest - -// UsersUsersBulkDestroyJSONBody defines parameters for UsersUsersBulkDestroy. -type UsersUsersBulkDestroyJSONBody = []BulkOperationRequest - -// UsersUsersListParams defines parameters for UsersUsersList. -type UsersUsersListParams struct { - Email *[]string `form:"email,omitempty" json:"email,omitempty"` - EmailIc *[]string `form:"email__ic,omitempty" json:"email__ic,omitempty"` - EmailIe *[]string `form:"email__ie,omitempty" json:"email__ie,omitempty"` - EmailIew *[]string `form:"email__iew,omitempty" json:"email__iew,omitempty"` - EmailIre *[]string `form:"email__ire,omitempty" json:"email__ire,omitempty"` - EmailIsw *[]string `form:"email__isw,omitempty" json:"email__isw,omitempty"` - EmailN *[]string `form:"email__n,omitempty" json:"email__n,omitempty"` - EmailNic *[]string `form:"email__nic,omitempty" json:"email__nic,omitempty"` - EmailNie *[]string `form:"email__nie,omitempty" json:"email__nie,omitempty"` - EmailNiew *[]string `form:"email__niew,omitempty" json:"email__niew,omitempty"` - EmailNire *[]string `form:"email__nire,omitempty" json:"email__nire,omitempty"` - EmailNisw *[]string `form:"email__nisw,omitempty" json:"email__nisw,omitempty"` - EmailNre *[]string `form:"email__nre,omitempty" json:"email__nre,omitempty"` - EmailRe *[]string `form:"email__re,omitempty" json:"email__re,omitempty"` - FirstName *[]string `form:"first_name,omitempty" json:"first_name,omitempty"` - FirstNameIc *[]string `form:"first_name__ic,omitempty" json:"first_name__ic,omitempty"` - FirstNameIe *[]string `form:"first_name__ie,omitempty" json:"first_name__ie,omitempty"` - FirstNameIew *[]string `form:"first_name__iew,omitempty" json:"first_name__iew,omitempty"` - FirstNameIre *[]string `form:"first_name__ire,omitempty" json:"first_name__ire,omitempty"` - FirstNameIsw *[]string `form:"first_name__isw,omitempty" json:"first_name__isw,omitempty"` - FirstNameN *[]string `form:"first_name__n,omitempty" json:"first_name__n,omitempty"` - FirstNameNic *[]string `form:"first_name__nic,omitempty" json:"first_name__nic,omitempty"` - FirstNameNie *[]string `form:"first_name__nie,omitempty" json:"first_name__nie,omitempty"` - FirstNameNiew *[]string `form:"first_name__niew,omitempty" json:"first_name__niew,omitempty"` - FirstNameNire *[]string `form:"first_name__nire,omitempty" json:"first_name__nire,omitempty"` - FirstNameNisw *[]string `form:"first_name__nisw,omitempty" json:"first_name__nisw,omitempty"` - FirstNameNre *[]string `form:"first_name__nre,omitempty" json:"first_name__nre,omitempty"` - FirstNameRe *[]string `form:"first_name__re,omitempty" json:"first_name__re,omitempty"` - - // Group Group (name) - Group *[]string `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Group (name) - GroupN *[]string `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Group - GroupId *[]int `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Group - GroupIdN *[]int `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - IsActive *bool `form:"is_active,omitempty" json:"is_active,omitempty"` - IsStaff *bool `form:"is_staff,omitempty" json:"is_staff,omitempty"` - LastName *[]string `form:"last_name,omitempty" json:"last_name,omitempty"` - LastNameIc *[]string `form:"last_name__ic,omitempty" json:"last_name__ic,omitempty"` - LastNameIe *[]string `form:"last_name__ie,omitempty" json:"last_name__ie,omitempty"` - LastNameIew *[]string `form:"last_name__iew,omitempty" json:"last_name__iew,omitempty"` - LastNameIre *[]string `form:"last_name__ire,omitempty" json:"last_name__ire,omitempty"` - LastNameIsw *[]string `form:"last_name__isw,omitempty" json:"last_name__isw,omitempty"` - LastNameN *[]string `form:"last_name__n,omitempty" json:"last_name__n,omitempty"` - LastNameNic *[]string `form:"last_name__nic,omitempty" json:"last_name__nic,omitempty"` - LastNameNie *[]string `form:"last_name__nie,omitempty" json:"last_name__nie,omitempty"` - LastNameNiew *[]string `form:"last_name__niew,omitempty" json:"last_name__niew,omitempty"` - LastNameNire *[]string `form:"last_name__nire,omitempty" json:"last_name__nire,omitempty"` - LastNameNisw *[]string `form:"last_name__nisw,omitempty" json:"last_name__nisw,omitempty"` - LastNameNre *[]string `form:"last_name__nre,omitempty" json:"last_name__nre,omitempty"` - LastNameRe *[]string `form:"last_name__re,omitempty" json:"last_name__re,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Username *[]string `form:"username,omitempty" json:"username,omitempty"` - UsernameIc *[]string `form:"username__ic,omitempty" json:"username__ic,omitempty"` - UsernameIe *[]string `form:"username__ie,omitempty" json:"username__ie,omitempty"` - UsernameIew *[]string `form:"username__iew,omitempty" json:"username__iew,omitempty"` - UsernameIre *[]string `form:"username__ire,omitempty" json:"username__ire,omitempty"` - UsernameIsw *[]string `form:"username__isw,omitempty" json:"username__isw,omitempty"` - UsernameN *[]string `form:"username__n,omitempty" json:"username__n,omitempty"` - UsernameNic *[]string `form:"username__nic,omitempty" json:"username__nic,omitempty"` - UsernameNie *[]string `form:"username__nie,omitempty" json:"username__nie,omitempty"` - UsernameNiew *[]string `form:"username__niew,omitempty" json:"username__niew,omitempty"` - UsernameNire *[]string `form:"username__nire,omitempty" json:"username__nire,omitempty"` - UsernameNisw *[]string `form:"username__nisw,omitempty" json:"username__nisw,omitempty"` - UsernameNre *[]string `form:"username__nre,omitempty" json:"username__nre,omitempty"` - UsernameRe *[]string `form:"username__re,omitempty" json:"username__re,omitempty"` -} - -// UsersUsersBulkPartialUpdateJSONBody defines parameters for UsersUsersBulkPartialUpdate. -type UsersUsersBulkPartialUpdateJSONBody = []PatchedBulkWritableUserRequest - -// UsersUsersBulkUpdateJSONBody defines parameters for UsersUsersBulkUpdate. -type UsersUsersBulkUpdateJSONBody = []BulkWritableUserRequest - -// VirtualizationClusterGroupsBulkDestroyJSONBody defines parameters for VirtualizationClusterGroupsBulkDestroy. -type VirtualizationClusterGroupsBulkDestroyJSONBody = []BulkOperationRequest - -// VirtualizationClusterGroupsListParams defines parameters for VirtualizationClusterGroupsList. -type VirtualizationClusterGroupsListParams struct { - // Clusters Clusters (name or ID) - Clusters *[]openapi_types.UUID `form:"clusters,omitempty" json:"clusters,omitempty"` - - // ClustersN Clusters (name or ID) - ClustersN *[]openapi_types.UUID `form:"clusters__n,omitempty" json:"clusters__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // HasClusters Has clusters - HasClusters *bool `form:"has_clusters,omitempty" json:"has_clusters,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// VirtualizationClusterGroupsBulkPartialUpdateJSONBody defines parameters for VirtualizationClusterGroupsBulkPartialUpdate. -type VirtualizationClusterGroupsBulkPartialUpdateJSONBody = []PatchedBulkWritableClusterGroupRequest - -// VirtualizationClusterGroupsBulkUpdateJSONBody defines parameters for VirtualizationClusterGroupsBulkUpdate. -type VirtualizationClusterGroupsBulkUpdateJSONBody = []BulkWritableClusterGroupRequest - -// VirtualizationClusterGroupsNotesListParams defines parameters for VirtualizationClusterGroupsNotesList. -type VirtualizationClusterGroupsNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// VirtualizationClusterTypesBulkDestroyJSONBody defines parameters for VirtualizationClusterTypesBulkDestroy. -type VirtualizationClusterTypesBulkDestroyJSONBody = []BulkOperationRequest - -// VirtualizationClusterTypesListParams defines parameters for VirtualizationClusterTypesList. -type VirtualizationClusterTypesListParams struct { - // Clusters Clusters (name or ID) - Clusters *[]openapi_types.UUID `form:"clusters,omitempty" json:"clusters,omitempty"` - - // ClustersN Clusters (name or ID) - ClustersN *[]openapi_types.UUID `form:"clusters__n,omitempty" json:"clusters__n,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - - // HasClusters Has clusters - HasClusters *bool `form:"has_clusters,omitempty" json:"has_clusters,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Slug *[]string `form:"slug,omitempty" json:"slug,omitempty"` - SlugIc *[]string `form:"slug__ic,omitempty" json:"slug__ic,omitempty"` - SlugIe *[]string `form:"slug__ie,omitempty" json:"slug__ie,omitempty"` - SlugIew *[]string `form:"slug__iew,omitempty" json:"slug__iew,omitempty"` - SlugIre *[]string `form:"slug__ire,omitempty" json:"slug__ire,omitempty"` - SlugIsw *[]string `form:"slug__isw,omitempty" json:"slug__isw,omitempty"` - SlugN *[]string `form:"slug__n,omitempty" json:"slug__n,omitempty"` - SlugNic *[]string `form:"slug__nic,omitempty" json:"slug__nic,omitempty"` - SlugNie *[]string `form:"slug__nie,omitempty" json:"slug__nie,omitempty"` - SlugNiew *[]string `form:"slug__niew,omitempty" json:"slug__niew,omitempty"` - SlugNire *[]string `form:"slug__nire,omitempty" json:"slug__nire,omitempty"` - SlugNisw *[]string `form:"slug__nisw,omitempty" json:"slug__nisw,omitempty"` - SlugNre *[]string `form:"slug__nre,omitempty" json:"slug__nre,omitempty"` - SlugRe *[]string `form:"slug__re,omitempty" json:"slug__re,omitempty"` -} - -// VirtualizationClusterTypesBulkPartialUpdateJSONBody defines parameters for VirtualizationClusterTypesBulkPartialUpdate. -type VirtualizationClusterTypesBulkPartialUpdateJSONBody = []PatchedBulkWritableClusterTypeRequest - -// VirtualizationClusterTypesBulkUpdateJSONBody defines parameters for VirtualizationClusterTypesBulkUpdate. -type VirtualizationClusterTypesBulkUpdateJSONBody = []BulkWritableClusterTypeRequest - -// VirtualizationClusterTypesNotesListParams defines parameters for VirtualizationClusterTypesNotesList. -type VirtualizationClusterTypesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// VirtualizationClustersBulkDestroyJSONBody defines parameters for VirtualizationClustersBulkDestroy. -type VirtualizationClustersBulkDestroyJSONBody = []BulkOperationRequest - -// VirtualizationClustersListParams defines parameters for VirtualizationClustersList. -type VirtualizationClustersListParams struct { - Comments *[]string `form:"comments,omitempty" json:"comments,omitempty"` - CommentsIc *[]string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - CommentsIe *[]string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - CommentsIew *[]string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - CommentsIre *[]string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - CommentsIsw *[]string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - CommentsN *[]string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - CommentsNic *[]string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - CommentsNie *[]string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - CommentsNiew *[]string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - CommentsNire *[]string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - CommentsNisw *[]string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - CommentsNre *[]string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - CommentsRe *[]string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - Created *openapi_types.Date `form:"created,omitempty" json:"created,omitempty"` - CreatedGte *openapi_types.Date `form:"created__gte,omitempty" json:"created__gte,omitempty"` - CreatedLte *openapi_types.Date `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Devices Devices (name or ID) - Devices *[]openapi_types.UUID `form:"devices,omitempty" json:"devices,omitempty"` - - // DevicesN Devices (name or ID) - DevicesN *[]openapi_types.UUID `form:"devices__n,omitempty" json:"devices__n,omitempty"` - - // Group Parent group (slug) - Group *[]string `form:"group,omitempty" json:"group,omitempty"` - - // GroupN Parent group (slug) - GroupN *[]string `form:"group__n,omitempty" json:"group__n,omitempty"` - - // GroupId Parent group (ID) - GroupId *[]openapi_types.UUID `form:"group_id,omitempty" json:"group_id,omitempty"` - - // GroupIdN Parent group (ID) - GroupIdN *[]openapi_types.UUID `form:"group_id__n,omitempty" json:"group_id__n,omitempty"` - - // HasDevices Has devices - HasDevices *bool `form:"has_devices,omitempty" json:"has_devices,omitempty"` - - // HasVirtualMachines Has virtual machines - HasVirtualMachines *bool `form:"has_virtual_machines,omitempty" json:"has_virtual_machines,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - LastUpdated *time.Time `form:"last_updated,omitempty" json:"last_updated,omitempty"` - LastUpdatedGte *time.Time `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - LastUpdatedLte *time.Time `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Location Location (slug or ID) - Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *[]openapi_types.UUID `form:"location__n,omitempty" json:"location__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug or ID) - Region *[]openapi_types.UUID `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug or ID) - RegionN *[]openapi_types.UUID `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) (deprecated, use "region" filter instead) - RegionId *[]openapi_types.UUID `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) (deprecated, use "region" filter instead) - RegionIdN *[]openapi_types.UUID `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Site Site (slug or ID) - Site *[]openapi_types.UUID `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug or ID) - SiteN *[]openapi_types.UUID `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) (deprecated, use "site" filter instead) - SiteId *[]openapi_types.UUID `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) (deprecated, use "site" filter instead) - SiteIdN *[]openapi_types.UUID `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *[]openapi_types.UUID `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *[]openapi_types.UUID `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *[]openapi_types.UUID `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *[]openapi_types.UUID `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *[]openapi_types.UUID `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *[]openapi_types.UUID `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *[]openapi_types.UUID `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *[]openapi_types.UUID `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // Type Cluster type (slug) - Type *[]string `form:"type,omitempty" json:"type,omitempty"` - - // TypeN Cluster type (slug) - TypeN *[]string `form:"type__n,omitempty" json:"type__n,omitempty"` - - // TypeId Cluster type (ID) - TypeId *[]openapi_types.UUID `form:"type_id,omitempty" json:"type_id,omitempty"` - - // TypeIdN Cluster type (ID) - TypeIdN *[]openapi_types.UUID `form:"type_id__n,omitempty" json:"type_id__n,omitempty"` - - // VirtualMachines Virtual machines (name or ID) - VirtualMachines *[]openapi_types.UUID `form:"virtual_machines,omitempty" json:"virtual_machines,omitempty"` - - // VirtualMachinesN Virtual machines (name or ID) - VirtualMachinesN *[]openapi_types.UUID `form:"virtual_machines__n,omitempty" json:"virtual_machines__n,omitempty"` -} - -// VirtualizationClustersBulkPartialUpdateJSONBody defines parameters for VirtualizationClustersBulkPartialUpdate. -type VirtualizationClustersBulkPartialUpdateJSONBody = []PatchedBulkWritableClusterRequest - -// VirtualizationClustersBulkUpdateJSONBody defines parameters for VirtualizationClustersBulkUpdate. -type VirtualizationClustersBulkUpdateJSONBody = []BulkWritableClusterRequest - -// VirtualizationClustersNotesListParams defines parameters for VirtualizationClustersNotesList. -type VirtualizationClustersNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// VirtualizationInterfacesBulkDestroyJSONBody defines parameters for VirtualizationInterfacesBulkDestroy. -type VirtualizationInterfacesBulkDestroyJSONBody = []BulkOperationRequest - -// VirtualizationInterfacesListParams defines parameters for VirtualizationInterfacesList. -type VirtualizationInterfacesListParams struct { - // Bridge Bridge interface (name or ID) - Bridge *[]openapi_types.UUID `form:"bridge,omitempty" json:"bridge,omitempty"` - - // BridgeN Bridge interface (name or ID) - BridgeN *[]openapi_types.UUID `form:"bridge__n,omitempty" json:"bridge__n,omitempty"` - - // BridgedInterfaces Bridged interfaces (name or ID) - BridgedInterfaces *[]openapi_types.UUID `form:"bridged_interfaces,omitempty" json:"bridged_interfaces,omitempty"` - - // BridgedInterfacesN Bridged interfaces (name or ID) - BridgedInterfacesN *[]openapi_types.UUID `form:"bridged_interfaces__n,omitempty" json:"bridged_interfaces__n,omitempty"` - - // ChildInterfaces Child interfaces (name or ID) - ChildInterfaces *[]openapi_types.UUID `form:"child_interfaces,omitempty" json:"child_interfaces,omitempty"` - - // ChildInterfacesN Child interfaces (name or ID) - ChildInterfacesN *[]openapi_types.UUID `form:"child_interfaces__n,omitempty" json:"child_interfaces__n,omitempty"` - - // Cluster Cluster - Cluster *[]string `form:"cluster,omitempty" json:"cluster,omitempty"` - - // ClusterN Cluster - ClusterN *[]string `form:"cluster__n,omitempty" json:"cluster__n,omitempty"` - - // ClusterId Cluster (ID) - ClusterId *[]openapi_types.UUID `form:"cluster_id,omitempty" json:"cluster_id,omitempty"` - - // ClusterIdN Cluster (ID) - ClusterIdN *[]openapi_types.UUID `form:"cluster_id__n,omitempty" json:"cluster_id__n,omitempty"` - Description *[]string `form:"description,omitempty" json:"description,omitempty"` - DescriptionIc *[]string `form:"description__ic,omitempty" json:"description__ic,omitempty"` - DescriptionIe *[]string `form:"description__ie,omitempty" json:"description__ie,omitempty"` - DescriptionIew *[]string `form:"description__iew,omitempty" json:"description__iew,omitempty"` - DescriptionIre *[]string `form:"description__ire,omitempty" json:"description__ire,omitempty"` - DescriptionIsw *[]string `form:"description__isw,omitempty" json:"description__isw,omitempty"` - DescriptionN *[]string `form:"description__n,omitempty" json:"description__n,omitempty"` - DescriptionNic *[]string `form:"description__nic,omitempty" json:"description__nic,omitempty"` - DescriptionNie *[]string `form:"description__nie,omitempty" json:"description__nie,omitempty"` - DescriptionNiew *[]string `form:"description__niew,omitempty" json:"description__niew,omitempty"` - DescriptionNire *[]string `form:"description__nire,omitempty" json:"description__nire,omitempty"` - DescriptionNisw *[]string `form:"description__nisw,omitempty" json:"description__nisw,omitempty"` - DescriptionNre *[]string `form:"description__nre,omitempty" json:"description__nre,omitempty"` - DescriptionRe *[]string `form:"description__re,omitempty" json:"description__re,omitempty"` - Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"` - - // HasBridgedInterfaces Has Bridged Interfaces - HasBridgedInterfaces *bool `form:"has_bridged_interfaces,omitempty" json:"has_bridged_interfaces,omitempty"` - - // HasChildInterfaces Has child interfaces - HasChildInterfaces *bool `form:"has_child_interfaces,omitempty" json:"has_child_interfaces,omitempty"` - - // HasIpAddresses Has IP addresses - HasIpAddresses *bool `form:"has_ip_addresses,omitempty" json:"has_ip_addresses,omitempty"` - - // HasTaggedVlans Has Tagged VLANs - HasTaggedVlans *bool `form:"has_tagged_vlans,omitempty" json:"has_tagged_vlans,omitempty"` - Id *[]openapi_types.UUID `form:"id,omitempty" json:"id,omitempty"` - IdIc *[]openapi_types.UUID `form:"id__ic,omitempty" json:"id__ic,omitempty"` - IdIe *[]openapi_types.UUID `form:"id__ie,omitempty" json:"id__ie,omitempty"` - IdIew *[]openapi_types.UUID `form:"id__iew,omitempty" json:"id__iew,omitempty"` - IdIre *[]openapi_types.UUID `form:"id__ire,omitempty" json:"id__ire,omitempty"` - IdIsw *[]openapi_types.UUID `form:"id__isw,omitempty" json:"id__isw,omitempty"` - IdN *[]openapi_types.UUID `form:"id__n,omitempty" json:"id__n,omitempty"` - IdNic *[]openapi_types.UUID `form:"id__nic,omitempty" json:"id__nic,omitempty"` - IdNie *[]openapi_types.UUID `form:"id__nie,omitempty" json:"id__nie,omitempty"` - IdNiew *[]openapi_types.UUID `form:"id__niew,omitempty" json:"id__niew,omitempty"` - IdNire *[]openapi_types.UUID `form:"id__nire,omitempty" json:"id__nire,omitempty"` - IdNisw *[]openapi_types.UUID `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - IdNre *[]openapi_types.UUID `form:"id__nre,omitempty" json:"id__nre,omitempty"` - IdRe *[]openapi_types.UUID `form:"id__re,omitempty" json:"id__re,omitempty"` - - // IpAddresses IP addresses (address or ID) - IpAddresses *[]string `form:"ip_addresses,omitempty" json:"ip_addresses,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // MacAddress MAC address - MacAddress *[]string `form:"mac_address,omitempty" json:"mac_address,omitempty"` - - // MacAddressIc MAC address - MacAddressIc *[]string `form:"mac_address__ic,omitempty" json:"mac_address__ic,omitempty"` - - // MacAddressIe MAC address - MacAddressIe *[]string `form:"mac_address__ie,omitempty" json:"mac_address__ie,omitempty"` - - // MacAddressIew MAC address - MacAddressIew *[]string `form:"mac_address__iew,omitempty" json:"mac_address__iew,omitempty"` - - // MacAddressIre MAC address - MacAddressIre *[]string `form:"mac_address__ire,omitempty" json:"mac_address__ire,omitempty"` - - // MacAddressIsw MAC address - MacAddressIsw *[]string `form:"mac_address__isw,omitempty" json:"mac_address__isw,omitempty"` - - // MacAddressN MAC address - MacAddressN *[]string `form:"mac_address__n,omitempty" json:"mac_address__n,omitempty"` - - // MacAddressNic MAC address - MacAddressNic *[]string `form:"mac_address__nic,omitempty" json:"mac_address__nic,omitempty"` - - // MacAddressNie MAC address - MacAddressNie *[]string `form:"mac_address__nie,omitempty" json:"mac_address__nie,omitempty"` - - // MacAddressNiew MAC address - MacAddressNiew *[]string `form:"mac_address__niew,omitempty" json:"mac_address__niew,omitempty"` - - // MacAddressNire MAC address - MacAddressNire *[]string `form:"mac_address__nire,omitempty" json:"mac_address__nire,omitempty"` - - // MacAddressNisw MAC address - MacAddressNisw *[]string `form:"mac_address__nisw,omitempty" json:"mac_address__nisw,omitempty"` - - // MacAddressNre MAC address - MacAddressNre *[]string `form:"mac_address__nre,omitempty" json:"mac_address__nre,omitempty"` - - // MacAddressRe MAC address - MacAddressRe *[]string `form:"mac_address__re,omitempty" json:"mac_address__re,omitempty"` - Mode *string `form:"mode,omitempty" json:"mode,omitempty"` - ModeN *string `form:"mode__n,omitempty" json:"mode__n,omitempty"` - Mtu *[]int `form:"mtu,omitempty" json:"mtu,omitempty"` - MtuGt *[]int `form:"mtu__gt,omitempty" json:"mtu__gt,omitempty"` - MtuGte *[]int `form:"mtu__gte,omitempty" json:"mtu__gte,omitempty"` - MtuLt *[]int `form:"mtu__lt,omitempty" json:"mtu__lt,omitempty"` - MtuLte *[]int `form:"mtu__lte,omitempty" json:"mtu__lte,omitempty"` - MtuN *[]int `form:"mtu__n,omitempty" json:"mtu__n,omitempty"` - Name *[]string `form:"name,omitempty" json:"name,omitempty"` - NameIc *[]string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - NameIe *[]string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - NameIew *[]string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - NameIre *[]string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - NameIsw *[]string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - NameN *[]string `form:"name__n,omitempty" json:"name__n,omitempty"` - NameNic *[]string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - NameNie *[]string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - NameNiew *[]string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - NameNire *[]string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - NameNisw *[]string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - NameNre *[]string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - NameRe *[]string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // ParentInterface Parent interface (name or ID) - ParentInterface *[]openapi_types.UUID `form:"parent_interface,omitempty" json:"parent_interface,omitempty"` - - // ParentInterfaceN Parent interface (name or ID) - ParentInterfaceN *[]openapi_types.UUID `form:"parent_interface__n,omitempty" json:"parent_interface__n,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - Status *[]openapi_types.UUID `form:"status,omitempty" json:"status,omitempty"` - StatusN *[]openapi_types.UUID `form:"status__n,omitempty" json:"status__n,omitempty"` - Tag *[]string `form:"tag,omitempty" json:"tag,omitempty"` - TagN *[]string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // TaggedVlans Tagged VLANs (VID or ID) - TaggedVlans *[]openapi_types.UUID `form:"tagged_vlans,omitempty" json:"tagged_vlans,omitempty"` - - // TaggedVlansN Tagged VLANs (VID or ID) - TaggedVlansN *[]openapi_types.UUID `form:"tagged_vlans__n,omitempty" json:"tagged_vlans__n,omitempty"` - - // UntaggedVlan Untagged VLAN (VID or ID) - UntaggedVlan *[]openapi_types.UUID `form:"untagged_vlan,omitempty" json:"untagged_vlan,omitempty"` - - // UntaggedVlanN Untagged VLAN (VID or ID) - UntaggedVlanN *[]openapi_types.UUID `form:"untagged_vlan__n,omitempty" json:"untagged_vlan__n,omitempty"` - - // VirtualMachine Virtual machine - VirtualMachine *[]string `form:"virtual_machine,omitempty" json:"virtual_machine,omitempty"` - - // VirtualMachineN Virtual machine - VirtualMachineN *[]string `form:"virtual_machine__n,omitempty" json:"virtual_machine__n,omitempty"` - - // VirtualMachineId Virtual machine (ID) - VirtualMachineId *[]openapi_types.UUID `form:"virtual_machine_id,omitempty" json:"virtual_machine_id,omitempty"` - - // VirtualMachineIdN Virtual machine (ID) - VirtualMachineIdN *[]openapi_types.UUID `form:"virtual_machine_id__n,omitempty" json:"virtual_machine_id__n,omitempty"` -} - -// VirtualizationInterfacesBulkPartialUpdateJSONBody defines parameters for VirtualizationInterfacesBulkPartialUpdate. -type VirtualizationInterfacesBulkPartialUpdateJSONBody = []PatchedBulkWritableVMInterfaceRequest - -// VirtualizationInterfacesBulkUpdateJSONBody defines parameters for VirtualizationInterfacesBulkUpdate. -type VirtualizationInterfacesBulkUpdateJSONBody = []BulkWritableVMInterfaceRequest - -// VirtualizationInterfacesNotesListParams defines parameters for VirtualizationInterfacesNotesList. -type VirtualizationInterfacesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// VirtualizationVirtualMachinesBulkDestroyJSONBody defines parameters for VirtualizationVirtualMachinesBulkDestroy. -type VirtualizationVirtualMachinesBulkDestroyJSONBody = []BulkOperationRequest - -// VirtualizationVirtualMachinesListParams defines parameters for VirtualizationVirtualMachinesList. -type VirtualizationVirtualMachinesListParams struct { - // Cluster cluster - Cluster *string `form:"cluster,omitempty" json:"cluster,omitempty"` - - // ClusterN cluster__n - ClusterN *string `form:"cluster__n,omitempty" json:"cluster__n,omitempty"` - - // ClusterGroup Cluster group (slug) - ClusterGroup *string `form:"cluster_group,omitempty" json:"cluster_group,omitempty"` - - // ClusterGroupN Cluster group (slug) - ClusterGroupN *string `form:"cluster_group__n,omitempty" json:"cluster_group__n,omitempty"` - - // ClusterGroupId Cluster group (ID) - ClusterGroupId *string `form:"cluster_group_id,omitempty" json:"cluster_group_id,omitempty"` - - // ClusterGroupIdN Cluster group (ID) - ClusterGroupIdN *string `form:"cluster_group_id__n,omitempty" json:"cluster_group_id__n,omitempty"` - - // ClusterId Cluster (ID) - ClusterId *string `form:"cluster_id,omitempty" json:"cluster_id,omitempty"` - - // ClusterIdN Cluster (ID) - ClusterIdN *string `form:"cluster_id__n,omitempty" json:"cluster_id__n,omitempty"` - - // ClusterType Cluster type (slug) - ClusterType *string `form:"cluster_type,omitempty" json:"cluster_type,omitempty"` - - // ClusterTypeN Cluster type (slug) - ClusterTypeN *string `form:"cluster_type__n,omitempty" json:"cluster_type__n,omitempty"` - - // ClusterTypeId Cluster type (ID) - ClusterTypeId *string `form:"cluster_type_id,omitempty" json:"cluster_type_id,omitempty"` - - // ClusterTypeIdN Cluster type (ID) - ClusterTypeIdN *string `form:"cluster_type_id__n,omitempty" json:"cluster_type_id__n,omitempty"` - - // Comments comments - Comments *string `form:"comments,omitempty" json:"comments,omitempty"` - - // CommentsIc comments__ic - CommentsIc *string `form:"comments__ic,omitempty" json:"comments__ic,omitempty"` - - // CommentsIe comments__ie - CommentsIe *string `form:"comments__ie,omitempty" json:"comments__ie,omitempty"` - - // CommentsIew comments__iew - CommentsIew *string `form:"comments__iew,omitempty" json:"comments__iew,omitempty"` - - // CommentsIre comments__ire - CommentsIre *string `form:"comments__ire,omitempty" json:"comments__ire,omitempty"` - - // CommentsIsw comments__isw - CommentsIsw *string `form:"comments__isw,omitempty" json:"comments__isw,omitempty"` - - // CommentsN comments__n - CommentsN *string `form:"comments__n,omitempty" json:"comments__n,omitempty"` - - // CommentsNic comments__nic - CommentsNic *string `form:"comments__nic,omitempty" json:"comments__nic,omitempty"` - - // CommentsNie comments__nie - CommentsNie *string `form:"comments__nie,omitempty" json:"comments__nie,omitempty"` - - // CommentsNiew comments__niew - CommentsNiew *string `form:"comments__niew,omitempty" json:"comments__niew,omitempty"` - - // CommentsNire comments__nire - CommentsNire *string `form:"comments__nire,omitempty" json:"comments__nire,omitempty"` - - // CommentsNisw comments__nisw - CommentsNisw *string `form:"comments__nisw,omitempty" json:"comments__nisw,omitempty"` - - // CommentsNre comments__nre - CommentsNre *string `form:"comments__nre,omitempty" json:"comments__nre,omitempty"` - - // CommentsRe comments__re - CommentsRe *string `form:"comments__re,omitempty" json:"comments__re,omitempty"` - - // Created created - Created *string `form:"created,omitempty" json:"created,omitempty"` - - // CreatedGte created__gte - CreatedGte *string `form:"created__gte,omitempty" json:"created__gte,omitempty"` - - // CreatedLte created__lte - CreatedLte *string `form:"created__lte,omitempty" json:"created__lte,omitempty"` - - // Disk disk - Disk *string `form:"disk,omitempty" json:"disk,omitempty"` - - // DiskGt disk__gt - DiskGt *string `form:"disk__gt,omitempty" json:"disk__gt,omitempty"` - - // DiskGte disk__gte - DiskGte *string `form:"disk__gte,omitempty" json:"disk__gte,omitempty"` - - // DiskLt disk__lt - DiskLt *string `form:"disk__lt,omitempty" json:"disk__lt,omitempty"` - - // DiskLte disk__lte - DiskLte *string `form:"disk__lte,omitempty" json:"disk__lte,omitempty"` - - // DiskN disk__n - DiskN *string `form:"disk__n,omitempty" json:"disk__n,omitempty"` - - // HasInterfaces Has interfaces - HasInterfaces *string `form:"has_interfaces,omitempty" json:"has_interfaces,omitempty"` - - // HasPrimaryIp Has a primary IP - HasPrimaryIp *string `form:"has_primary_ip,omitempty" json:"has_primary_ip,omitempty"` - - // HasServices Has services - HasServices *string `form:"has_services,omitempty" json:"has_services,omitempty"` - - // Id id - Id *string `form:"id,omitempty" json:"id,omitempty"` - - // IdIc id__ic - IdIc *string `form:"id__ic,omitempty" json:"id__ic,omitempty"` - - // IdIe id__ie - IdIe *string `form:"id__ie,omitempty" json:"id__ie,omitempty"` - - // IdIew id__iew - IdIew *string `form:"id__iew,omitempty" json:"id__iew,omitempty"` - - // IdIre id__ire - IdIre *string `form:"id__ire,omitempty" json:"id__ire,omitempty"` - - // IdIsw id__isw - IdIsw *string `form:"id__isw,omitempty" json:"id__isw,omitempty"` - - // IdN id__n - IdN *string `form:"id__n,omitempty" json:"id__n,omitempty"` - - // IdNic id__nic - IdNic *string `form:"id__nic,omitempty" json:"id__nic,omitempty"` - - // IdNie id__nie - IdNie *string `form:"id__nie,omitempty" json:"id__nie,omitempty"` - - // IdNiew id__niew - IdNiew *string `form:"id__niew,omitempty" json:"id__niew,omitempty"` - - // IdNire id__nire - IdNire *string `form:"id__nire,omitempty" json:"id__nire,omitempty"` - - // IdNisw id__nisw - IdNisw *string `form:"id__nisw,omitempty" json:"id__nisw,omitempty"` - - // IdNre id__nre - IdNre *string `form:"id__nre,omitempty" json:"id__nre,omitempty"` - - // IdRe id__re - IdRe *string `form:"id__re,omitempty" json:"id__re,omitempty"` - - // Interfaces Interfaces (name or ID) - Interfaces *string `form:"interfaces,omitempty" json:"interfaces,omitempty"` - - // InterfacesN Interfaces (name or ID) - InterfacesN *string `form:"interfaces__n,omitempty" json:"interfaces__n,omitempty"` - - // LastUpdated last_updated - LastUpdated *string `form:"last_updated,omitempty" json:"last_updated,omitempty"` - - // LastUpdatedGte last_updated__gte - LastUpdatedGte *string `form:"last_updated__gte,omitempty" json:"last_updated__gte,omitempty"` - - // LastUpdatedLte last_updated__lte - LastUpdatedLte *string `form:"last_updated__lte,omitempty" json:"last_updated__lte,omitempty"` - - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // LocalContextData Has local config context data - LocalContextData *string `form:"local_context_data,omitempty" json:"local_context_data,omitempty"` - - // LocalContextSchema Schema (slug) - LocalContextSchema *string `form:"local_context_schema,omitempty" json:"local_context_schema,omitempty"` - - // LocalContextSchemaN Schema (slug) - LocalContextSchemaN *string `form:"local_context_schema__n,omitempty" json:"local_context_schema__n,omitempty"` - - // LocalContextSchemaId Schema (ID) - LocalContextSchemaId *string `form:"local_context_schema_id,omitempty" json:"local_context_schema_id,omitempty"` - - // LocalContextSchemaIdN Schema (ID) - LocalContextSchemaIdN *string `form:"local_context_schema_id__n,omitempty" json:"local_context_schema_id__n,omitempty"` - - // Location Location (slug or ID) - Location *string `form:"location,omitempty" json:"location,omitempty"` - - // LocationN Location (slug or ID) - LocationN *string `form:"location__n,omitempty" json:"location__n,omitempty"` - - // MacAddress MAC address - MacAddress *string `form:"mac_address,omitempty" json:"mac_address,omitempty"` - - // MacAddressIc MAC address - MacAddressIc *string `form:"mac_address__ic,omitempty" json:"mac_address__ic,omitempty"` - - // MacAddressIe MAC address - MacAddressIe *string `form:"mac_address__ie,omitempty" json:"mac_address__ie,omitempty"` - - // MacAddressIew MAC address - MacAddressIew *string `form:"mac_address__iew,omitempty" json:"mac_address__iew,omitempty"` - - // MacAddressIre MAC address - MacAddressIre *string `form:"mac_address__ire,omitempty" json:"mac_address__ire,omitempty"` - - // MacAddressIsw MAC address - MacAddressIsw *string `form:"mac_address__isw,omitempty" json:"mac_address__isw,omitempty"` - - // MacAddressN MAC address - MacAddressN *string `form:"mac_address__n,omitempty" json:"mac_address__n,omitempty"` - - // MacAddressNic MAC address - MacAddressNic *string `form:"mac_address__nic,omitempty" json:"mac_address__nic,omitempty"` - - // MacAddressNie MAC address - MacAddressNie *string `form:"mac_address__nie,omitempty" json:"mac_address__nie,omitempty"` - - // MacAddressNiew MAC address - MacAddressNiew *string `form:"mac_address__niew,omitempty" json:"mac_address__niew,omitempty"` - - // MacAddressNire MAC address - MacAddressNire *string `form:"mac_address__nire,omitempty" json:"mac_address__nire,omitempty"` - - // MacAddressNisw MAC address - MacAddressNisw *string `form:"mac_address__nisw,omitempty" json:"mac_address__nisw,omitempty"` - - // MacAddressNre MAC address - MacAddressNre *string `form:"mac_address__nre,omitempty" json:"mac_address__nre,omitempty"` - - // MacAddressRe MAC address - MacAddressRe *string `form:"mac_address__re,omitempty" json:"mac_address__re,omitempty"` - - // Memory memory - Memory *string `form:"memory,omitempty" json:"memory,omitempty"` - - // MemoryGt memory__gt - MemoryGt *string `form:"memory__gt,omitempty" json:"memory__gt,omitempty"` - - // MemoryGte memory__gte - MemoryGte *string `form:"memory__gte,omitempty" json:"memory__gte,omitempty"` - - // MemoryLt memory__lt - MemoryLt *string `form:"memory__lt,omitempty" json:"memory__lt,omitempty"` - - // MemoryLte memory__lte - MemoryLte *string `form:"memory__lte,omitempty" json:"memory__lte,omitempty"` - - // MemoryN memory__n - MemoryN *string `form:"memory__n,omitempty" json:"memory__n,omitempty"` - - // Name name - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // NameIc name__ic - NameIc *string `form:"name__ic,omitempty" json:"name__ic,omitempty"` - - // NameIe name__ie - NameIe *string `form:"name__ie,omitempty" json:"name__ie,omitempty"` - - // NameIew name__iew - NameIew *string `form:"name__iew,omitempty" json:"name__iew,omitempty"` - - // NameIre name__ire - NameIre *string `form:"name__ire,omitempty" json:"name__ire,omitempty"` - - // NameIsw name__isw - NameIsw *string `form:"name__isw,omitempty" json:"name__isw,omitempty"` - - // NameN name__n - NameN *string `form:"name__n,omitempty" json:"name__n,omitempty"` - - // NameNic name__nic - NameNic *string `form:"name__nic,omitempty" json:"name__nic,omitempty"` - - // NameNie name__nie - NameNie *string `form:"name__nie,omitempty" json:"name__nie,omitempty"` - - // NameNiew name__niew - NameNiew *string `form:"name__niew,omitempty" json:"name__niew,omitempty"` - - // NameNire name__nire - NameNire *string `form:"name__nire,omitempty" json:"name__nire,omitempty"` - - // NameNisw name__nisw - NameNisw *string `form:"name__nisw,omitempty" json:"name__nisw,omitempty"` - - // NameNre name__nre - NameNre *string `form:"name__nre,omitempty" json:"name__nre,omitempty"` - - // NameRe name__re - NameRe *string `form:"name__re,omitempty" json:"name__re,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Platform Platform (slug) - Platform *string `form:"platform,omitempty" json:"platform,omitempty"` - - // PlatformN Platform (slug) - PlatformN *string `form:"platform__n,omitempty" json:"platform__n,omitempty"` - - // PlatformId Platform (ID) - PlatformId *string `form:"platform_id,omitempty" json:"platform_id,omitempty"` - - // PlatformIdN Platform (ID) - PlatformIdN *string `form:"platform_id__n,omitempty" json:"platform_id__n,omitempty"` - - // PrimaryIp4 Primary IPv4 Address (address or ID) - PrimaryIp4 *string `form:"primary_ip4,omitempty" json:"primary_ip4,omitempty"` - - // PrimaryIp6 Primary IPv6 Address (address or ID) - PrimaryIp6 *string `form:"primary_ip6,omitempty" json:"primary_ip6,omitempty"` - - // Q Search - Q *string `form:"q,omitempty" json:"q,omitempty"` - - // Region Region (slug) - Region *string `form:"region,omitempty" json:"region,omitempty"` - - // RegionN Region (slug) - RegionN *string `form:"region__n,omitempty" json:"region__n,omitempty"` - - // RegionId Region (ID) - RegionId *string `form:"region_id,omitempty" json:"region_id,omitempty"` - - // RegionIdN Region (ID) - RegionIdN *string `form:"region_id__n,omitempty" json:"region_id__n,omitempty"` - - // Role Role (slug) - Role *string `form:"role,omitempty" json:"role,omitempty"` - - // RoleN Role (slug) - RoleN *string `form:"role__n,omitempty" json:"role__n,omitempty"` - - // RoleId Role (ID) - RoleId *string `form:"role_id,omitempty" json:"role_id,omitempty"` - - // RoleIdN Role (ID) - RoleIdN *string `form:"role_id__n,omitempty" json:"role_id__n,omitempty"` - - // Services Services (name or ID) - Services *string `form:"services,omitempty" json:"services,omitempty"` - - // ServicesN Services (name or ID) - ServicesN *string `form:"services__n,omitempty" json:"services__n,omitempty"` - - // Site Site (slug) - Site *string `form:"site,omitempty" json:"site,omitempty"` - - // SiteN Site (slug) - SiteN *string `form:"site__n,omitempty" json:"site__n,omitempty"` - - // SiteId Site (ID) - SiteId *string `form:"site_id,omitempty" json:"site_id,omitempty"` - - // SiteIdN Site (ID) - SiteIdN *string `form:"site_id__n,omitempty" json:"site_id__n,omitempty"` - - // Status status - Status *string `form:"status,omitempty" json:"status,omitempty"` - - // StatusN status__n - StatusN *string `form:"status__n,omitempty" json:"status__n,omitempty"` - - // Tag tag - Tag *string `form:"tag,omitempty" json:"tag,omitempty"` - - // TagN tag__n - TagN *string `form:"tag__n,omitempty" json:"tag__n,omitempty"` - - // Tenant Tenant (slug or ID) - Tenant *string `form:"tenant,omitempty" json:"tenant,omitempty"` - - // TenantN Tenant (slug or ID) - TenantN *string `form:"tenant__n,omitempty" json:"tenant__n,omitempty"` - - // TenantGroup Tenant Group (slug) - TenantGroup *string `form:"tenant_group,omitempty" json:"tenant_group,omitempty"` - - // TenantGroupN Tenant Group (slug) - TenantGroupN *string `form:"tenant_group__n,omitempty" json:"tenant_group__n,omitempty"` - - // TenantGroupId Tenant Group (ID) - TenantGroupId *string `form:"tenant_group_id,omitempty" json:"tenant_group_id,omitempty"` - - // TenantGroupIdN Tenant Group (ID) - TenantGroupIdN *string `form:"tenant_group_id__n,omitempty" json:"tenant_group_id__n,omitempty"` - - // TenantId Tenant (ID) (deprecated, use "tenant" filter instead) - TenantId *string `form:"tenant_id,omitempty" json:"tenant_id,omitempty"` - - // TenantIdN Tenant (ID) (deprecated, use "tenant" filter instead) - TenantIdN *string `form:"tenant_id__n,omitempty" json:"tenant_id__n,omitempty"` - - // Vcpus vcpus - Vcpus *string `form:"vcpus,omitempty" json:"vcpus,omitempty"` - - // VcpusGt vcpus__gt - VcpusGt *string `form:"vcpus__gt,omitempty" json:"vcpus__gt,omitempty"` - - // VcpusGte vcpus__gte - VcpusGte *string `form:"vcpus__gte,omitempty" json:"vcpus__gte,omitempty"` - - // VcpusLt vcpus__lt - VcpusLt *string `form:"vcpus__lt,omitempty" json:"vcpus__lt,omitempty"` - - // VcpusLte vcpus__lte - VcpusLte *string `form:"vcpus__lte,omitempty" json:"vcpus__lte,omitempty"` - - // VcpusN vcpus__n - VcpusN *string `form:"vcpus__n,omitempty" json:"vcpus__n,omitempty"` -} - -// VirtualizationVirtualMachinesBulkPartialUpdateJSONBody defines parameters for VirtualizationVirtualMachinesBulkPartialUpdate. -type VirtualizationVirtualMachinesBulkPartialUpdateJSONBody = []PatchedBulkWritableVirtualMachineWithConfigContextRequest - -// VirtualizationVirtualMachinesBulkUpdateJSONBody defines parameters for VirtualizationVirtualMachinesBulkUpdate. -type VirtualizationVirtualMachinesBulkUpdateJSONBody = []BulkWritableVirtualMachineWithConfigContextRequest - -// VirtualizationVirtualMachinesNotesListParams defines parameters for VirtualizationVirtualMachinesNotesList. -type VirtualizationVirtualMachinesNotesListParams struct { - // Limit Number of results to return per page. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The initial index from which to return the results. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// CircuitsCircuitTerminationsBulkDestroyJSONRequestBody defines body for CircuitsCircuitTerminationsBulkDestroy for application/json ContentType. -type CircuitsCircuitTerminationsBulkDestroyJSONRequestBody = CircuitsCircuitTerminationsBulkDestroyJSONBody - -// CircuitsCircuitTerminationsBulkPartialUpdateJSONRequestBody defines body for CircuitsCircuitTerminationsBulkPartialUpdate for application/json ContentType. -type CircuitsCircuitTerminationsBulkPartialUpdateJSONRequestBody = CircuitsCircuitTerminationsBulkPartialUpdateJSONBody - -// CircuitsCircuitTerminationsCreateJSONRequestBody defines body for CircuitsCircuitTerminationsCreate for application/json ContentType. -type CircuitsCircuitTerminationsCreateJSONRequestBody = WritableCircuitTerminationRequest - -// CircuitsCircuitTerminationsBulkUpdateJSONRequestBody defines body for CircuitsCircuitTerminationsBulkUpdate for application/json ContentType. -type CircuitsCircuitTerminationsBulkUpdateJSONRequestBody = CircuitsCircuitTerminationsBulkUpdateJSONBody - -// CircuitsCircuitTerminationsPartialUpdateJSONRequestBody defines body for CircuitsCircuitTerminationsPartialUpdate for application/json ContentType. -type CircuitsCircuitTerminationsPartialUpdateJSONRequestBody = PatchedWritableCircuitTerminationRequest - -// CircuitsCircuitTerminationsUpdateJSONRequestBody defines body for CircuitsCircuitTerminationsUpdate for application/json ContentType. -type CircuitsCircuitTerminationsUpdateJSONRequestBody = WritableCircuitTerminationRequest - -// CircuitsCircuitTerminationsNotesCreateJSONRequestBody defines body for CircuitsCircuitTerminationsNotesCreate for application/json ContentType. -type CircuitsCircuitTerminationsNotesCreateJSONRequestBody = NoteInputRequest - -// CircuitsCircuitTypesBulkDestroyJSONRequestBody defines body for CircuitsCircuitTypesBulkDestroy for application/json ContentType. -type CircuitsCircuitTypesBulkDestroyJSONRequestBody = CircuitsCircuitTypesBulkDestroyJSONBody - -// CircuitsCircuitTypesBulkPartialUpdateJSONRequestBody defines body for CircuitsCircuitTypesBulkPartialUpdate for application/json ContentType. -type CircuitsCircuitTypesBulkPartialUpdateJSONRequestBody = CircuitsCircuitTypesBulkPartialUpdateJSONBody - -// CircuitsCircuitTypesCreateJSONRequestBody defines body for CircuitsCircuitTypesCreate for application/json ContentType. -type CircuitsCircuitTypesCreateJSONRequestBody = CircuitTypeRequest - -// CircuitsCircuitTypesBulkUpdateJSONRequestBody defines body for CircuitsCircuitTypesBulkUpdate for application/json ContentType. -type CircuitsCircuitTypesBulkUpdateJSONRequestBody = CircuitsCircuitTypesBulkUpdateJSONBody - -// CircuitsCircuitTypesPartialUpdateJSONRequestBody defines body for CircuitsCircuitTypesPartialUpdate for application/json ContentType. -type CircuitsCircuitTypesPartialUpdateJSONRequestBody = PatchedCircuitTypeRequest - -// CircuitsCircuitTypesUpdateJSONRequestBody defines body for CircuitsCircuitTypesUpdate for application/json ContentType. -type CircuitsCircuitTypesUpdateJSONRequestBody = CircuitTypeRequest - -// CircuitsCircuitTypesNotesCreateJSONRequestBody defines body for CircuitsCircuitTypesNotesCreate for application/json ContentType. -type CircuitsCircuitTypesNotesCreateJSONRequestBody = NoteInputRequest - -// CircuitsCircuitsBulkDestroyJSONRequestBody defines body for CircuitsCircuitsBulkDestroy for application/json ContentType. -type CircuitsCircuitsBulkDestroyJSONRequestBody = CircuitsCircuitsBulkDestroyJSONBody - -// CircuitsCircuitsBulkPartialUpdateJSONRequestBody defines body for CircuitsCircuitsBulkPartialUpdate for application/json ContentType. -type CircuitsCircuitsBulkPartialUpdateJSONRequestBody = CircuitsCircuitsBulkPartialUpdateJSONBody - -// CircuitsCircuitsCreateJSONRequestBody defines body for CircuitsCircuitsCreate for application/json ContentType. -type CircuitsCircuitsCreateJSONRequestBody = WritableCircuitRequest - -// CircuitsCircuitsBulkUpdateJSONRequestBody defines body for CircuitsCircuitsBulkUpdate for application/json ContentType. -type CircuitsCircuitsBulkUpdateJSONRequestBody = CircuitsCircuitsBulkUpdateJSONBody - -// CircuitsCircuitsPartialUpdateJSONRequestBody defines body for CircuitsCircuitsPartialUpdate for application/json ContentType. -type CircuitsCircuitsPartialUpdateJSONRequestBody = PatchedWritableCircuitRequest - -// CircuitsCircuitsUpdateJSONRequestBody defines body for CircuitsCircuitsUpdate for application/json ContentType. -type CircuitsCircuitsUpdateJSONRequestBody = WritableCircuitRequest - -// CircuitsCircuitsNotesCreateJSONRequestBody defines body for CircuitsCircuitsNotesCreate for application/json ContentType. -type CircuitsCircuitsNotesCreateJSONRequestBody = NoteInputRequest - -// CircuitsProviderNetworksBulkDestroyJSONRequestBody defines body for CircuitsProviderNetworksBulkDestroy for application/json ContentType. -type CircuitsProviderNetworksBulkDestroyJSONRequestBody = CircuitsProviderNetworksBulkDestroyJSONBody - -// CircuitsProviderNetworksBulkPartialUpdateJSONRequestBody defines body for CircuitsProviderNetworksBulkPartialUpdate for application/json ContentType. -type CircuitsProviderNetworksBulkPartialUpdateJSONRequestBody = CircuitsProviderNetworksBulkPartialUpdateJSONBody - -// CircuitsProviderNetworksCreateJSONRequestBody defines body for CircuitsProviderNetworksCreate for application/json ContentType. -type CircuitsProviderNetworksCreateJSONRequestBody = WritableProviderNetworkRequest - -// CircuitsProviderNetworksBulkUpdateJSONRequestBody defines body for CircuitsProviderNetworksBulkUpdate for application/json ContentType. -type CircuitsProviderNetworksBulkUpdateJSONRequestBody = CircuitsProviderNetworksBulkUpdateJSONBody - -// CircuitsProviderNetworksPartialUpdateJSONRequestBody defines body for CircuitsProviderNetworksPartialUpdate for application/json ContentType. -type CircuitsProviderNetworksPartialUpdateJSONRequestBody = PatchedWritableProviderNetworkRequest - -// CircuitsProviderNetworksUpdateJSONRequestBody defines body for CircuitsProviderNetworksUpdate for application/json ContentType. -type CircuitsProviderNetworksUpdateJSONRequestBody = WritableProviderNetworkRequest - -// CircuitsProviderNetworksNotesCreateJSONRequestBody defines body for CircuitsProviderNetworksNotesCreate for application/json ContentType. -type CircuitsProviderNetworksNotesCreateJSONRequestBody = NoteInputRequest - -// CircuitsProvidersBulkDestroyJSONRequestBody defines body for CircuitsProvidersBulkDestroy for application/json ContentType. -type CircuitsProvidersBulkDestroyJSONRequestBody = CircuitsProvidersBulkDestroyJSONBody - -// CircuitsProvidersBulkPartialUpdateJSONRequestBody defines body for CircuitsProvidersBulkPartialUpdate for application/json ContentType. -type CircuitsProvidersBulkPartialUpdateJSONRequestBody = CircuitsProvidersBulkPartialUpdateJSONBody - -// CircuitsProvidersCreateJSONRequestBody defines body for CircuitsProvidersCreate for application/json ContentType. -type CircuitsProvidersCreateJSONRequestBody = ProviderRequest - -// CircuitsProvidersBulkUpdateJSONRequestBody defines body for CircuitsProvidersBulkUpdate for application/json ContentType. -type CircuitsProvidersBulkUpdateJSONRequestBody = CircuitsProvidersBulkUpdateJSONBody - -// CircuitsProvidersPartialUpdateJSONRequestBody defines body for CircuitsProvidersPartialUpdate for application/json ContentType. -type CircuitsProvidersPartialUpdateJSONRequestBody = PatchedProviderRequest - -// CircuitsProvidersUpdateJSONRequestBody defines body for CircuitsProvidersUpdate for application/json ContentType. -type CircuitsProvidersUpdateJSONRequestBody = ProviderRequest - -// CircuitsProvidersNotesCreateJSONRequestBody defines body for CircuitsProvidersNotesCreate for application/json ContentType. -type CircuitsProvidersNotesCreateJSONRequestBody = NoteInputRequest - -// DcimCablesBulkDestroyJSONRequestBody defines body for DcimCablesBulkDestroy for application/json ContentType. -type DcimCablesBulkDestroyJSONRequestBody = DcimCablesBulkDestroyJSONBody - -// DcimCablesBulkPartialUpdateJSONRequestBody defines body for DcimCablesBulkPartialUpdate for application/json ContentType. -type DcimCablesBulkPartialUpdateJSONRequestBody = DcimCablesBulkPartialUpdateJSONBody - -// DcimCablesCreateJSONRequestBody defines body for DcimCablesCreate for application/json ContentType. -type DcimCablesCreateJSONRequestBody = WritableCableRequest - -// DcimCablesBulkUpdateJSONRequestBody defines body for DcimCablesBulkUpdate for application/json ContentType. -type DcimCablesBulkUpdateJSONRequestBody = DcimCablesBulkUpdateJSONBody - -// DcimCablesPartialUpdateJSONRequestBody defines body for DcimCablesPartialUpdate for application/json ContentType. -type DcimCablesPartialUpdateJSONRequestBody = PatchedWritableCableRequest - -// DcimCablesUpdateJSONRequestBody defines body for DcimCablesUpdate for application/json ContentType. -type DcimCablesUpdateJSONRequestBody = WritableCableRequest - -// DcimCablesNotesCreateJSONRequestBody defines body for DcimCablesNotesCreate for application/json ContentType. -type DcimCablesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimConsolePortTemplatesBulkDestroyJSONRequestBody defines body for DcimConsolePortTemplatesBulkDestroy for application/json ContentType. -type DcimConsolePortTemplatesBulkDestroyJSONRequestBody = DcimConsolePortTemplatesBulkDestroyJSONBody - -// DcimConsolePortTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimConsolePortTemplatesBulkPartialUpdate for application/json ContentType. -type DcimConsolePortTemplatesBulkPartialUpdateJSONRequestBody = DcimConsolePortTemplatesBulkPartialUpdateJSONBody - -// DcimConsolePortTemplatesCreateJSONRequestBody defines body for DcimConsolePortTemplatesCreate for application/json ContentType. -type DcimConsolePortTemplatesCreateJSONRequestBody = WritableConsolePortTemplateRequest - -// DcimConsolePortTemplatesBulkUpdateJSONRequestBody defines body for DcimConsolePortTemplatesBulkUpdate for application/json ContentType. -type DcimConsolePortTemplatesBulkUpdateJSONRequestBody = DcimConsolePortTemplatesBulkUpdateJSONBody - -// DcimConsolePortTemplatesPartialUpdateJSONRequestBody defines body for DcimConsolePortTemplatesPartialUpdate for application/json ContentType. -type DcimConsolePortTemplatesPartialUpdateJSONRequestBody = PatchedWritableConsolePortTemplateRequest - -// DcimConsolePortTemplatesUpdateJSONRequestBody defines body for DcimConsolePortTemplatesUpdate for application/json ContentType. -type DcimConsolePortTemplatesUpdateJSONRequestBody = WritableConsolePortTemplateRequest - -// DcimConsolePortTemplatesNotesCreateJSONRequestBody defines body for DcimConsolePortTemplatesNotesCreate for application/json ContentType. -type DcimConsolePortTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimConsolePortsBulkDestroyJSONRequestBody defines body for DcimConsolePortsBulkDestroy for application/json ContentType. -type DcimConsolePortsBulkDestroyJSONRequestBody = DcimConsolePortsBulkDestroyJSONBody - -// DcimConsolePortsBulkPartialUpdateJSONRequestBody defines body for DcimConsolePortsBulkPartialUpdate for application/json ContentType. -type DcimConsolePortsBulkPartialUpdateJSONRequestBody = DcimConsolePortsBulkPartialUpdateJSONBody - -// DcimConsolePortsCreateJSONRequestBody defines body for DcimConsolePortsCreate for application/json ContentType. -type DcimConsolePortsCreateJSONRequestBody = WritableConsolePortRequest - -// DcimConsolePortsBulkUpdateJSONRequestBody defines body for DcimConsolePortsBulkUpdate for application/json ContentType. -type DcimConsolePortsBulkUpdateJSONRequestBody = DcimConsolePortsBulkUpdateJSONBody - -// DcimConsolePortsPartialUpdateJSONRequestBody defines body for DcimConsolePortsPartialUpdate for application/json ContentType. -type DcimConsolePortsPartialUpdateJSONRequestBody = PatchedWritableConsolePortRequest - -// DcimConsolePortsUpdateJSONRequestBody defines body for DcimConsolePortsUpdate for application/json ContentType. -type DcimConsolePortsUpdateJSONRequestBody = WritableConsolePortRequest - -// DcimConsolePortsNotesCreateJSONRequestBody defines body for DcimConsolePortsNotesCreate for application/json ContentType. -type DcimConsolePortsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimConsoleServerPortTemplatesBulkDestroyJSONRequestBody defines body for DcimConsoleServerPortTemplatesBulkDestroy for application/json ContentType. -type DcimConsoleServerPortTemplatesBulkDestroyJSONRequestBody = DcimConsoleServerPortTemplatesBulkDestroyJSONBody - -// DcimConsoleServerPortTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimConsoleServerPortTemplatesBulkPartialUpdate for application/json ContentType. -type DcimConsoleServerPortTemplatesBulkPartialUpdateJSONRequestBody = DcimConsoleServerPortTemplatesBulkPartialUpdateJSONBody - -// DcimConsoleServerPortTemplatesCreateJSONRequestBody defines body for DcimConsoleServerPortTemplatesCreate for application/json ContentType. -type DcimConsoleServerPortTemplatesCreateJSONRequestBody = WritableConsoleServerPortTemplateRequest - -// DcimConsoleServerPortTemplatesBulkUpdateJSONRequestBody defines body for DcimConsoleServerPortTemplatesBulkUpdate for application/json ContentType. -type DcimConsoleServerPortTemplatesBulkUpdateJSONRequestBody = DcimConsoleServerPortTemplatesBulkUpdateJSONBody - -// DcimConsoleServerPortTemplatesPartialUpdateJSONRequestBody defines body for DcimConsoleServerPortTemplatesPartialUpdate for application/json ContentType. -type DcimConsoleServerPortTemplatesPartialUpdateJSONRequestBody = PatchedWritableConsoleServerPortTemplateRequest - -// DcimConsoleServerPortTemplatesUpdateJSONRequestBody defines body for DcimConsoleServerPortTemplatesUpdate for application/json ContentType. -type DcimConsoleServerPortTemplatesUpdateJSONRequestBody = WritableConsoleServerPortTemplateRequest - -// DcimConsoleServerPortTemplatesNotesCreateJSONRequestBody defines body for DcimConsoleServerPortTemplatesNotesCreate for application/json ContentType. -type DcimConsoleServerPortTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimConsoleServerPortsBulkDestroyJSONRequestBody defines body for DcimConsoleServerPortsBulkDestroy for application/json ContentType. -type DcimConsoleServerPortsBulkDestroyJSONRequestBody = DcimConsoleServerPortsBulkDestroyJSONBody - -// DcimConsoleServerPortsBulkPartialUpdateJSONRequestBody defines body for DcimConsoleServerPortsBulkPartialUpdate for application/json ContentType. -type DcimConsoleServerPortsBulkPartialUpdateJSONRequestBody = DcimConsoleServerPortsBulkPartialUpdateJSONBody - -// DcimConsoleServerPortsCreateJSONRequestBody defines body for DcimConsoleServerPortsCreate for application/json ContentType. -type DcimConsoleServerPortsCreateJSONRequestBody = WritableConsoleServerPortRequest - -// DcimConsoleServerPortsBulkUpdateJSONRequestBody defines body for DcimConsoleServerPortsBulkUpdate for application/json ContentType. -type DcimConsoleServerPortsBulkUpdateJSONRequestBody = DcimConsoleServerPortsBulkUpdateJSONBody - -// DcimConsoleServerPortsPartialUpdateJSONRequestBody defines body for DcimConsoleServerPortsPartialUpdate for application/json ContentType. -type DcimConsoleServerPortsPartialUpdateJSONRequestBody = PatchedWritableConsoleServerPortRequest - -// DcimConsoleServerPortsUpdateJSONRequestBody defines body for DcimConsoleServerPortsUpdate for application/json ContentType. -type DcimConsoleServerPortsUpdateJSONRequestBody = WritableConsoleServerPortRequest - -// DcimConsoleServerPortsNotesCreateJSONRequestBody defines body for DcimConsoleServerPortsNotesCreate for application/json ContentType. -type DcimConsoleServerPortsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimDeviceBayTemplatesBulkDestroyJSONRequestBody defines body for DcimDeviceBayTemplatesBulkDestroy for application/json ContentType. -type DcimDeviceBayTemplatesBulkDestroyJSONRequestBody = DcimDeviceBayTemplatesBulkDestroyJSONBody - -// DcimDeviceBayTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimDeviceBayTemplatesBulkPartialUpdate for application/json ContentType. -type DcimDeviceBayTemplatesBulkPartialUpdateJSONRequestBody = DcimDeviceBayTemplatesBulkPartialUpdateJSONBody - -// DcimDeviceBayTemplatesCreateJSONRequestBody defines body for DcimDeviceBayTemplatesCreate for application/json ContentType. -type DcimDeviceBayTemplatesCreateJSONRequestBody = WritableDeviceBayTemplateRequest - -// DcimDeviceBayTemplatesBulkUpdateJSONRequestBody defines body for DcimDeviceBayTemplatesBulkUpdate for application/json ContentType. -type DcimDeviceBayTemplatesBulkUpdateJSONRequestBody = DcimDeviceBayTemplatesBulkUpdateJSONBody - -// DcimDeviceBayTemplatesPartialUpdateJSONRequestBody defines body for DcimDeviceBayTemplatesPartialUpdate for application/json ContentType. -type DcimDeviceBayTemplatesPartialUpdateJSONRequestBody = PatchedWritableDeviceBayTemplateRequest - -// DcimDeviceBayTemplatesUpdateJSONRequestBody defines body for DcimDeviceBayTemplatesUpdate for application/json ContentType. -type DcimDeviceBayTemplatesUpdateJSONRequestBody = WritableDeviceBayTemplateRequest - -// DcimDeviceBayTemplatesNotesCreateJSONRequestBody defines body for DcimDeviceBayTemplatesNotesCreate for application/json ContentType. -type DcimDeviceBayTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimDeviceBaysBulkDestroyJSONRequestBody defines body for DcimDeviceBaysBulkDestroy for application/json ContentType. -type DcimDeviceBaysBulkDestroyJSONRequestBody = DcimDeviceBaysBulkDestroyJSONBody - -// DcimDeviceBaysBulkPartialUpdateJSONRequestBody defines body for DcimDeviceBaysBulkPartialUpdate for application/json ContentType. -type DcimDeviceBaysBulkPartialUpdateJSONRequestBody = DcimDeviceBaysBulkPartialUpdateJSONBody - -// DcimDeviceBaysCreateJSONRequestBody defines body for DcimDeviceBaysCreate for application/json ContentType. -type DcimDeviceBaysCreateJSONRequestBody = WritableDeviceBayRequest - -// DcimDeviceBaysBulkUpdateJSONRequestBody defines body for DcimDeviceBaysBulkUpdate for application/json ContentType. -type DcimDeviceBaysBulkUpdateJSONRequestBody = DcimDeviceBaysBulkUpdateJSONBody - -// DcimDeviceBaysPartialUpdateJSONRequestBody defines body for DcimDeviceBaysPartialUpdate for application/json ContentType. -type DcimDeviceBaysPartialUpdateJSONRequestBody = PatchedWritableDeviceBayRequest - -// DcimDeviceBaysUpdateJSONRequestBody defines body for DcimDeviceBaysUpdate for application/json ContentType. -type DcimDeviceBaysUpdateJSONRequestBody = WritableDeviceBayRequest - -// DcimDeviceBaysNotesCreateJSONRequestBody defines body for DcimDeviceBaysNotesCreate for application/json ContentType. -type DcimDeviceBaysNotesCreateJSONRequestBody = NoteInputRequest - -// DcimDeviceRedundancyGroupsBulkDestroyJSONRequestBody defines body for DcimDeviceRedundancyGroupsBulkDestroy for application/json ContentType. -type DcimDeviceRedundancyGroupsBulkDestroyJSONRequestBody = DcimDeviceRedundancyGroupsBulkDestroyJSONBody - -// DcimDeviceRedundancyGroupsBulkPartialUpdateJSONRequestBody defines body for DcimDeviceRedundancyGroupsBulkPartialUpdate for application/json ContentType. -type DcimDeviceRedundancyGroupsBulkPartialUpdateJSONRequestBody = DcimDeviceRedundancyGroupsBulkPartialUpdateJSONBody - -// DcimDeviceRedundancyGroupsCreateJSONRequestBody defines body for DcimDeviceRedundancyGroupsCreate for application/json ContentType. -type DcimDeviceRedundancyGroupsCreateJSONRequestBody = WritableDeviceRedundancyGroupRequest - -// DcimDeviceRedundancyGroupsBulkUpdateJSONRequestBody defines body for DcimDeviceRedundancyGroupsBulkUpdate for application/json ContentType. -type DcimDeviceRedundancyGroupsBulkUpdateJSONRequestBody = DcimDeviceRedundancyGroupsBulkUpdateJSONBody - -// DcimDeviceRedundancyGroupsPartialUpdateJSONRequestBody defines body for DcimDeviceRedundancyGroupsPartialUpdate for application/json ContentType. -type DcimDeviceRedundancyGroupsPartialUpdateJSONRequestBody = PatchedWritableDeviceRedundancyGroupRequest - -// DcimDeviceRedundancyGroupsUpdateJSONRequestBody defines body for DcimDeviceRedundancyGroupsUpdate for application/json ContentType. -type DcimDeviceRedundancyGroupsUpdateJSONRequestBody = WritableDeviceRedundancyGroupRequest - -// DcimDeviceRedundancyGroupsNotesCreateJSONRequestBody defines body for DcimDeviceRedundancyGroupsNotesCreate for application/json ContentType. -type DcimDeviceRedundancyGroupsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimDeviceRolesBulkDestroyJSONRequestBody defines body for DcimDeviceRolesBulkDestroy for application/json ContentType. -type DcimDeviceRolesBulkDestroyJSONRequestBody = DcimDeviceRolesBulkDestroyJSONBody - -// DcimDeviceRolesBulkPartialUpdateJSONRequestBody defines body for DcimDeviceRolesBulkPartialUpdate for application/json ContentType. -type DcimDeviceRolesBulkPartialUpdateJSONRequestBody = DcimDeviceRolesBulkPartialUpdateJSONBody - -// DcimDeviceRolesCreateJSONRequestBody defines body for DcimDeviceRolesCreate for application/json ContentType. -type DcimDeviceRolesCreateJSONRequestBody = DeviceRoleRequest - -// DcimDeviceRolesBulkUpdateJSONRequestBody defines body for DcimDeviceRolesBulkUpdate for application/json ContentType. -type DcimDeviceRolesBulkUpdateJSONRequestBody = DcimDeviceRolesBulkUpdateJSONBody - -// DcimDeviceRolesPartialUpdateJSONRequestBody defines body for DcimDeviceRolesPartialUpdate for application/json ContentType. -type DcimDeviceRolesPartialUpdateJSONRequestBody = PatchedDeviceRoleRequest - -// DcimDeviceRolesUpdateJSONRequestBody defines body for DcimDeviceRolesUpdate for application/json ContentType. -type DcimDeviceRolesUpdateJSONRequestBody = DeviceRoleRequest - -// DcimDeviceRolesNotesCreateJSONRequestBody defines body for DcimDeviceRolesNotesCreate for application/json ContentType. -type DcimDeviceRolesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimDeviceTypesBulkDestroyJSONRequestBody defines body for DcimDeviceTypesBulkDestroy for application/json ContentType. -type DcimDeviceTypesBulkDestroyJSONRequestBody = DcimDeviceTypesBulkDestroyJSONBody - -// DcimDeviceTypesBulkPartialUpdateJSONRequestBody defines body for DcimDeviceTypesBulkPartialUpdate for application/json ContentType. -type DcimDeviceTypesBulkPartialUpdateJSONRequestBody = DcimDeviceTypesBulkPartialUpdateJSONBody - -// DcimDeviceTypesCreateJSONRequestBody defines body for DcimDeviceTypesCreate for application/json ContentType. -type DcimDeviceTypesCreateJSONRequestBody = WritableDeviceTypeRequest - -// DcimDeviceTypesBulkUpdateJSONRequestBody defines body for DcimDeviceTypesBulkUpdate for application/json ContentType. -type DcimDeviceTypesBulkUpdateJSONRequestBody = DcimDeviceTypesBulkUpdateJSONBody - -// DcimDeviceTypesPartialUpdateJSONRequestBody defines body for DcimDeviceTypesPartialUpdate for application/json ContentType. -type DcimDeviceTypesPartialUpdateJSONRequestBody = PatchedWritableDeviceTypeRequest - -// DcimDeviceTypesUpdateJSONRequestBody defines body for DcimDeviceTypesUpdate for application/json ContentType. -type DcimDeviceTypesUpdateJSONRequestBody = WritableDeviceTypeRequest - -// DcimDeviceTypesNotesCreateJSONRequestBody defines body for DcimDeviceTypesNotesCreate for application/json ContentType. -type DcimDeviceTypesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimDevicesBulkDestroyJSONRequestBody defines body for DcimDevicesBulkDestroy for application/json ContentType. -type DcimDevicesBulkDestroyJSONRequestBody = DcimDevicesBulkDestroyJSONBody - -// DcimDevicesBulkPartialUpdateJSONRequestBody defines body for DcimDevicesBulkPartialUpdate for application/json ContentType. -type DcimDevicesBulkPartialUpdateJSONRequestBody = DcimDevicesBulkPartialUpdateJSONBody - -// DcimDevicesCreateJSONRequestBody defines body for DcimDevicesCreate for application/json ContentType. -type DcimDevicesCreateJSONRequestBody = WritableDeviceWithConfigContextRequest - -// DcimDevicesBulkUpdateJSONRequestBody defines body for DcimDevicesBulkUpdate for application/json ContentType. -type DcimDevicesBulkUpdateJSONRequestBody = DcimDevicesBulkUpdateJSONBody - -// DcimDevicesPartialUpdateJSONRequestBody defines body for DcimDevicesPartialUpdate for application/json ContentType. -type DcimDevicesPartialUpdateJSONRequestBody = PatchedWritableDeviceWithConfigContextRequest - -// DcimDevicesUpdateJSONRequestBody defines body for DcimDevicesUpdate for application/json ContentType. -type DcimDevicesUpdateJSONRequestBody = WritableDeviceWithConfigContextRequest - -// DcimDevicesNotesCreateJSONRequestBody defines body for DcimDevicesNotesCreate for application/json ContentType. -type DcimDevicesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimFrontPortTemplatesBulkDestroyJSONRequestBody defines body for DcimFrontPortTemplatesBulkDestroy for application/json ContentType. -type DcimFrontPortTemplatesBulkDestroyJSONRequestBody = DcimFrontPortTemplatesBulkDestroyJSONBody - -// DcimFrontPortTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimFrontPortTemplatesBulkPartialUpdate for application/json ContentType. -type DcimFrontPortTemplatesBulkPartialUpdateJSONRequestBody = DcimFrontPortTemplatesBulkPartialUpdateJSONBody - -// DcimFrontPortTemplatesCreateJSONRequestBody defines body for DcimFrontPortTemplatesCreate for application/json ContentType. -type DcimFrontPortTemplatesCreateJSONRequestBody = WritableFrontPortTemplateRequest - -// DcimFrontPortTemplatesBulkUpdateJSONRequestBody defines body for DcimFrontPortTemplatesBulkUpdate for application/json ContentType. -type DcimFrontPortTemplatesBulkUpdateJSONRequestBody = DcimFrontPortTemplatesBulkUpdateJSONBody - -// DcimFrontPortTemplatesPartialUpdateJSONRequestBody defines body for DcimFrontPortTemplatesPartialUpdate for application/json ContentType. -type DcimFrontPortTemplatesPartialUpdateJSONRequestBody = PatchedWritableFrontPortTemplateRequest - -// DcimFrontPortTemplatesUpdateJSONRequestBody defines body for DcimFrontPortTemplatesUpdate for application/json ContentType. -type DcimFrontPortTemplatesUpdateJSONRequestBody = WritableFrontPortTemplateRequest - -// DcimFrontPortTemplatesNotesCreateJSONRequestBody defines body for DcimFrontPortTemplatesNotesCreate for application/json ContentType. -type DcimFrontPortTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimFrontPortsBulkDestroyJSONRequestBody defines body for DcimFrontPortsBulkDestroy for application/json ContentType. -type DcimFrontPortsBulkDestroyJSONRequestBody = DcimFrontPortsBulkDestroyJSONBody - -// DcimFrontPortsBulkPartialUpdateJSONRequestBody defines body for DcimFrontPortsBulkPartialUpdate for application/json ContentType. -type DcimFrontPortsBulkPartialUpdateJSONRequestBody = DcimFrontPortsBulkPartialUpdateJSONBody - -// DcimFrontPortsCreateJSONRequestBody defines body for DcimFrontPortsCreate for application/json ContentType. -type DcimFrontPortsCreateJSONRequestBody = WritableFrontPortRequest - -// DcimFrontPortsBulkUpdateJSONRequestBody defines body for DcimFrontPortsBulkUpdate for application/json ContentType. -type DcimFrontPortsBulkUpdateJSONRequestBody = DcimFrontPortsBulkUpdateJSONBody - -// DcimFrontPortsPartialUpdateJSONRequestBody defines body for DcimFrontPortsPartialUpdate for application/json ContentType. -type DcimFrontPortsPartialUpdateJSONRequestBody = PatchedWritableFrontPortRequest - -// DcimFrontPortsUpdateJSONRequestBody defines body for DcimFrontPortsUpdate for application/json ContentType. -type DcimFrontPortsUpdateJSONRequestBody = WritableFrontPortRequest - -// DcimFrontPortsNotesCreateJSONRequestBody defines body for DcimFrontPortsNotesCreate for application/json ContentType. -type DcimFrontPortsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimInterfaceTemplatesBulkDestroyJSONRequestBody defines body for DcimInterfaceTemplatesBulkDestroy for application/json ContentType. -type DcimInterfaceTemplatesBulkDestroyJSONRequestBody = DcimInterfaceTemplatesBulkDestroyJSONBody - -// DcimInterfaceTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimInterfaceTemplatesBulkPartialUpdate for application/json ContentType. -type DcimInterfaceTemplatesBulkPartialUpdateJSONRequestBody = DcimInterfaceTemplatesBulkPartialUpdateJSONBody - -// DcimInterfaceTemplatesCreateJSONRequestBody defines body for DcimInterfaceTemplatesCreate for application/json ContentType. -type DcimInterfaceTemplatesCreateJSONRequestBody = WritableInterfaceTemplateRequest - -// DcimInterfaceTemplatesBulkUpdateJSONRequestBody defines body for DcimInterfaceTemplatesBulkUpdate for application/json ContentType. -type DcimInterfaceTemplatesBulkUpdateJSONRequestBody = DcimInterfaceTemplatesBulkUpdateJSONBody - -// DcimInterfaceTemplatesPartialUpdateJSONRequestBody defines body for DcimInterfaceTemplatesPartialUpdate for application/json ContentType. -type DcimInterfaceTemplatesPartialUpdateJSONRequestBody = PatchedWritableInterfaceTemplateRequest - -// DcimInterfaceTemplatesUpdateJSONRequestBody defines body for DcimInterfaceTemplatesUpdate for application/json ContentType. -type DcimInterfaceTemplatesUpdateJSONRequestBody = WritableInterfaceTemplateRequest - -// DcimInterfaceTemplatesNotesCreateJSONRequestBody defines body for DcimInterfaceTemplatesNotesCreate for application/json ContentType. -type DcimInterfaceTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimInterfacesBulkDestroyJSONRequestBody defines body for DcimInterfacesBulkDestroy for application/json ContentType. -type DcimInterfacesBulkDestroyJSONRequestBody = DcimInterfacesBulkDestroyJSONBody - -// DcimInterfacesBulkPartialUpdateJSONRequestBody defines body for DcimInterfacesBulkPartialUpdate for application/json ContentType. -type DcimInterfacesBulkPartialUpdateJSONRequestBody = DcimInterfacesBulkPartialUpdateJSONBody - -// DcimInterfacesCreateJSONRequestBody defines body for DcimInterfacesCreate for application/json ContentType. -type DcimInterfacesCreateJSONRequestBody = WritableInterfaceRequest - -// DcimInterfacesBulkUpdateJSONRequestBody defines body for DcimInterfacesBulkUpdate for application/json ContentType. -type DcimInterfacesBulkUpdateJSONRequestBody = DcimInterfacesBulkUpdateJSONBody - -// DcimInterfacesPartialUpdateJSONRequestBody defines body for DcimInterfacesPartialUpdate for application/json ContentType. -type DcimInterfacesPartialUpdateJSONRequestBody = PatchedWritableInterfaceRequest - -// DcimInterfacesUpdateJSONRequestBody defines body for DcimInterfacesUpdate for application/json ContentType. -type DcimInterfacesUpdateJSONRequestBody = WritableInterfaceRequest - -// DcimInterfacesNotesCreateJSONRequestBody defines body for DcimInterfacesNotesCreate for application/json ContentType. -type DcimInterfacesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimInventoryItemsBulkDestroyJSONRequestBody defines body for DcimInventoryItemsBulkDestroy for application/json ContentType. -type DcimInventoryItemsBulkDestroyJSONRequestBody = DcimInventoryItemsBulkDestroyJSONBody - -// DcimInventoryItemsBulkPartialUpdateJSONRequestBody defines body for DcimInventoryItemsBulkPartialUpdate for application/json ContentType. -type DcimInventoryItemsBulkPartialUpdateJSONRequestBody = DcimInventoryItemsBulkPartialUpdateJSONBody - -// DcimInventoryItemsCreateJSONRequestBody defines body for DcimInventoryItemsCreate for application/json ContentType. -type DcimInventoryItemsCreateJSONRequestBody = WritableInventoryItemRequest - -// DcimInventoryItemsBulkUpdateJSONRequestBody defines body for DcimInventoryItemsBulkUpdate for application/json ContentType. -type DcimInventoryItemsBulkUpdateJSONRequestBody = DcimInventoryItemsBulkUpdateJSONBody - -// DcimInventoryItemsPartialUpdateJSONRequestBody defines body for DcimInventoryItemsPartialUpdate for application/json ContentType. -type DcimInventoryItemsPartialUpdateJSONRequestBody = PatchedWritableInventoryItemRequest - -// DcimInventoryItemsUpdateJSONRequestBody defines body for DcimInventoryItemsUpdate for application/json ContentType. -type DcimInventoryItemsUpdateJSONRequestBody = WritableInventoryItemRequest - -// DcimInventoryItemsNotesCreateJSONRequestBody defines body for DcimInventoryItemsNotesCreate for application/json ContentType. -type DcimInventoryItemsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimLocationTypesBulkDestroyJSONRequestBody defines body for DcimLocationTypesBulkDestroy for application/json ContentType. -type DcimLocationTypesBulkDestroyJSONRequestBody = DcimLocationTypesBulkDestroyJSONBody - -// DcimLocationTypesBulkPartialUpdateJSONRequestBody defines body for DcimLocationTypesBulkPartialUpdate for application/json ContentType. -type DcimLocationTypesBulkPartialUpdateJSONRequestBody = DcimLocationTypesBulkPartialUpdateJSONBody - -// DcimLocationTypesCreateJSONRequestBody defines body for DcimLocationTypesCreate for application/json ContentType. -type DcimLocationTypesCreateJSONRequestBody = WritableLocationTypeRequest - -// DcimLocationTypesBulkUpdateJSONRequestBody defines body for DcimLocationTypesBulkUpdate for application/json ContentType. -type DcimLocationTypesBulkUpdateJSONRequestBody = DcimLocationTypesBulkUpdateJSONBody - -// DcimLocationTypesPartialUpdateJSONRequestBody defines body for DcimLocationTypesPartialUpdate for application/json ContentType. -type DcimLocationTypesPartialUpdateJSONRequestBody = PatchedWritableLocationTypeRequest - -// DcimLocationTypesUpdateJSONRequestBody defines body for DcimLocationTypesUpdate for application/json ContentType. -type DcimLocationTypesUpdateJSONRequestBody = WritableLocationTypeRequest - -// DcimLocationTypesNotesCreateJSONRequestBody defines body for DcimLocationTypesNotesCreate for application/json ContentType. -type DcimLocationTypesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimLocationsBulkDestroyJSONRequestBody defines body for DcimLocationsBulkDestroy for application/json ContentType. -type DcimLocationsBulkDestroyJSONRequestBody = DcimLocationsBulkDestroyJSONBody - -// DcimLocationsBulkPartialUpdateJSONRequestBody defines body for DcimLocationsBulkPartialUpdate for application/json ContentType. -type DcimLocationsBulkPartialUpdateJSONRequestBody = DcimLocationsBulkPartialUpdateJSONBody - -// DcimLocationsCreateJSONRequestBody defines body for DcimLocationsCreate for application/json ContentType. -type DcimLocationsCreateJSONRequestBody = WritableLocationRequest - -// DcimLocationsBulkUpdateJSONRequestBody defines body for DcimLocationsBulkUpdate for application/json ContentType. -type DcimLocationsBulkUpdateJSONRequestBody = DcimLocationsBulkUpdateJSONBody - -// DcimLocationsPartialUpdateJSONRequestBody defines body for DcimLocationsPartialUpdate for application/json ContentType. -type DcimLocationsPartialUpdateJSONRequestBody = PatchedWritableLocationRequest - -// DcimLocationsUpdateJSONRequestBody defines body for DcimLocationsUpdate for application/json ContentType. -type DcimLocationsUpdateJSONRequestBody = WritableLocationRequest - -// DcimLocationsNotesCreateJSONRequestBody defines body for DcimLocationsNotesCreate for application/json ContentType. -type DcimLocationsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimManufacturersBulkDestroyJSONRequestBody defines body for DcimManufacturersBulkDestroy for application/json ContentType. -type DcimManufacturersBulkDestroyJSONRequestBody = DcimManufacturersBulkDestroyJSONBody - -// DcimManufacturersBulkPartialUpdateJSONRequestBody defines body for DcimManufacturersBulkPartialUpdate for application/json ContentType. -type DcimManufacturersBulkPartialUpdateJSONRequestBody = DcimManufacturersBulkPartialUpdateJSONBody - -// DcimManufacturersCreateJSONRequestBody defines body for DcimManufacturersCreate for application/json ContentType. -type DcimManufacturersCreateJSONRequestBody = ManufacturerRequest - -// DcimManufacturersBulkUpdateJSONRequestBody defines body for DcimManufacturersBulkUpdate for application/json ContentType. -type DcimManufacturersBulkUpdateJSONRequestBody = DcimManufacturersBulkUpdateJSONBody - -// DcimManufacturersPartialUpdateJSONRequestBody defines body for DcimManufacturersPartialUpdate for application/json ContentType. -type DcimManufacturersPartialUpdateJSONRequestBody = PatchedManufacturerRequest - -// DcimManufacturersUpdateJSONRequestBody defines body for DcimManufacturersUpdate for application/json ContentType. -type DcimManufacturersUpdateJSONRequestBody = ManufacturerRequest - -// DcimManufacturersNotesCreateJSONRequestBody defines body for DcimManufacturersNotesCreate for application/json ContentType. -type DcimManufacturersNotesCreateJSONRequestBody = NoteInputRequest - -// DcimPlatformsBulkDestroyJSONRequestBody defines body for DcimPlatformsBulkDestroy for application/json ContentType. -type DcimPlatformsBulkDestroyJSONRequestBody = DcimPlatformsBulkDestroyJSONBody - -// DcimPlatformsBulkPartialUpdateJSONRequestBody defines body for DcimPlatformsBulkPartialUpdate for application/json ContentType. -type DcimPlatformsBulkPartialUpdateJSONRequestBody = DcimPlatformsBulkPartialUpdateJSONBody - -// DcimPlatformsCreateJSONRequestBody defines body for DcimPlatformsCreate for application/json ContentType. -type DcimPlatformsCreateJSONRequestBody = WritablePlatformRequest - -// DcimPlatformsBulkUpdateJSONRequestBody defines body for DcimPlatformsBulkUpdate for application/json ContentType. -type DcimPlatformsBulkUpdateJSONRequestBody = DcimPlatformsBulkUpdateJSONBody - -// DcimPlatformsPartialUpdateJSONRequestBody defines body for DcimPlatformsPartialUpdate for application/json ContentType. -type DcimPlatformsPartialUpdateJSONRequestBody = PatchedWritablePlatformRequest - -// DcimPlatformsUpdateJSONRequestBody defines body for DcimPlatformsUpdate for application/json ContentType. -type DcimPlatformsUpdateJSONRequestBody = WritablePlatformRequest - -// DcimPlatformsNotesCreateJSONRequestBody defines body for DcimPlatformsNotesCreate for application/json ContentType. -type DcimPlatformsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimPowerFeedsBulkDestroyJSONRequestBody defines body for DcimPowerFeedsBulkDestroy for application/json ContentType. -type DcimPowerFeedsBulkDestroyJSONRequestBody = DcimPowerFeedsBulkDestroyJSONBody - -// DcimPowerFeedsBulkPartialUpdateJSONRequestBody defines body for DcimPowerFeedsBulkPartialUpdate for application/json ContentType. -type DcimPowerFeedsBulkPartialUpdateJSONRequestBody = DcimPowerFeedsBulkPartialUpdateJSONBody - -// DcimPowerFeedsCreateJSONRequestBody defines body for DcimPowerFeedsCreate for application/json ContentType. -type DcimPowerFeedsCreateJSONRequestBody = WritablePowerFeedRequest - -// DcimPowerFeedsBulkUpdateJSONRequestBody defines body for DcimPowerFeedsBulkUpdate for application/json ContentType. -type DcimPowerFeedsBulkUpdateJSONRequestBody = DcimPowerFeedsBulkUpdateJSONBody - -// DcimPowerFeedsPartialUpdateJSONRequestBody defines body for DcimPowerFeedsPartialUpdate for application/json ContentType. -type DcimPowerFeedsPartialUpdateJSONRequestBody = PatchedWritablePowerFeedRequest - -// DcimPowerFeedsUpdateJSONRequestBody defines body for DcimPowerFeedsUpdate for application/json ContentType. -type DcimPowerFeedsUpdateJSONRequestBody = WritablePowerFeedRequest - -// DcimPowerFeedsNotesCreateJSONRequestBody defines body for DcimPowerFeedsNotesCreate for application/json ContentType. -type DcimPowerFeedsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimPowerOutletTemplatesBulkDestroyJSONRequestBody defines body for DcimPowerOutletTemplatesBulkDestroy for application/json ContentType. -type DcimPowerOutletTemplatesBulkDestroyJSONRequestBody = DcimPowerOutletTemplatesBulkDestroyJSONBody - -// DcimPowerOutletTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimPowerOutletTemplatesBulkPartialUpdate for application/json ContentType. -type DcimPowerOutletTemplatesBulkPartialUpdateJSONRequestBody = DcimPowerOutletTemplatesBulkPartialUpdateJSONBody - -// DcimPowerOutletTemplatesCreateJSONRequestBody defines body for DcimPowerOutletTemplatesCreate for application/json ContentType. -type DcimPowerOutletTemplatesCreateJSONRequestBody = WritablePowerOutletTemplateRequest - -// DcimPowerOutletTemplatesBulkUpdateJSONRequestBody defines body for DcimPowerOutletTemplatesBulkUpdate for application/json ContentType. -type DcimPowerOutletTemplatesBulkUpdateJSONRequestBody = DcimPowerOutletTemplatesBulkUpdateJSONBody - -// DcimPowerOutletTemplatesPartialUpdateJSONRequestBody defines body for DcimPowerOutletTemplatesPartialUpdate for application/json ContentType. -type DcimPowerOutletTemplatesPartialUpdateJSONRequestBody = PatchedWritablePowerOutletTemplateRequest - -// DcimPowerOutletTemplatesUpdateJSONRequestBody defines body for DcimPowerOutletTemplatesUpdate for application/json ContentType. -type DcimPowerOutletTemplatesUpdateJSONRequestBody = WritablePowerOutletTemplateRequest - -// DcimPowerOutletTemplatesNotesCreateJSONRequestBody defines body for DcimPowerOutletTemplatesNotesCreate for application/json ContentType. -type DcimPowerOutletTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimPowerOutletsBulkDestroyJSONRequestBody defines body for DcimPowerOutletsBulkDestroy for application/json ContentType. -type DcimPowerOutletsBulkDestroyJSONRequestBody = DcimPowerOutletsBulkDestroyJSONBody - -// DcimPowerOutletsBulkPartialUpdateJSONRequestBody defines body for DcimPowerOutletsBulkPartialUpdate for application/json ContentType. -type DcimPowerOutletsBulkPartialUpdateJSONRequestBody = DcimPowerOutletsBulkPartialUpdateJSONBody - -// DcimPowerOutletsCreateJSONRequestBody defines body for DcimPowerOutletsCreate for application/json ContentType. -type DcimPowerOutletsCreateJSONRequestBody = WritablePowerOutletRequest - -// DcimPowerOutletsBulkUpdateJSONRequestBody defines body for DcimPowerOutletsBulkUpdate for application/json ContentType. -type DcimPowerOutletsBulkUpdateJSONRequestBody = DcimPowerOutletsBulkUpdateJSONBody - -// DcimPowerOutletsPartialUpdateJSONRequestBody defines body for DcimPowerOutletsPartialUpdate for application/json ContentType. -type DcimPowerOutletsPartialUpdateJSONRequestBody = PatchedWritablePowerOutletRequest - -// DcimPowerOutletsUpdateJSONRequestBody defines body for DcimPowerOutletsUpdate for application/json ContentType. -type DcimPowerOutletsUpdateJSONRequestBody = WritablePowerOutletRequest - -// DcimPowerOutletsNotesCreateJSONRequestBody defines body for DcimPowerOutletsNotesCreate for application/json ContentType. -type DcimPowerOutletsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimPowerPanelsBulkDestroyJSONRequestBody defines body for DcimPowerPanelsBulkDestroy for application/json ContentType. -type DcimPowerPanelsBulkDestroyJSONRequestBody = DcimPowerPanelsBulkDestroyJSONBody - -// DcimPowerPanelsBulkPartialUpdateJSONRequestBody defines body for DcimPowerPanelsBulkPartialUpdate for application/json ContentType. -type DcimPowerPanelsBulkPartialUpdateJSONRequestBody = DcimPowerPanelsBulkPartialUpdateJSONBody - -// DcimPowerPanelsCreateJSONRequestBody defines body for DcimPowerPanelsCreate for application/json ContentType. -type DcimPowerPanelsCreateJSONRequestBody = WritablePowerPanelRequest - -// DcimPowerPanelsBulkUpdateJSONRequestBody defines body for DcimPowerPanelsBulkUpdate for application/json ContentType. -type DcimPowerPanelsBulkUpdateJSONRequestBody = DcimPowerPanelsBulkUpdateJSONBody - -// DcimPowerPanelsPartialUpdateJSONRequestBody defines body for DcimPowerPanelsPartialUpdate for application/json ContentType. -type DcimPowerPanelsPartialUpdateJSONRequestBody = PatchedWritablePowerPanelRequest - -// DcimPowerPanelsUpdateJSONRequestBody defines body for DcimPowerPanelsUpdate for application/json ContentType. -type DcimPowerPanelsUpdateJSONRequestBody = WritablePowerPanelRequest - -// DcimPowerPanelsNotesCreateJSONRequestBody defines body for DcimPowerPanelsNotesCreate for application/json ContentType. -type DcimPowerPanelsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimPowerPortTemplatesBulkDestroyJSONRequestBody defines body for DcimPowerPortTemplatesBulkDestroy for application/json ContentType. -type DcimPowerPortTemplatesBulkDestroyJSONRequestBody = DcimPowerPortTemplatesBulkDestroyJSONBody - -// DcimPowerPortTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimPowerPortTemplatesBulkPartialUpdate for application/json ContentType. -type DcimPowerPortTemplatesBulkPartialUpdateJSONRequestBody = DcimPowerPortTemplatesBulkPartialUpdateJSONBody - -// DcimPowerPortTemplatesCreateJSONRequestBody defines body for DcimPowerPortTemplatesCreate for application/json ContentType. -type DcimPowerPortTemplatesCreateJSONRequestBody = WritablePowerPortTemplateRequest - -// DcimPowerPortTemplatesBulkUpdateJSONRequestBody defines body for DcimPowerPortTemplatesBulkUpdate for application/json ContentType. -type DcimPowerPortTemplatesBulkUpdateJSONRequestBody = DcimPowerPortTemplatesBulkUpdateJSONBody - -// DcimPowerPortTemplatesPartialUpdateJSONRequestBody defines body for DcimPowerPortTemplatesPartialUpdate for application/json ContentType. -type DcimPowerPortTemplatesPartialUpdateJSONRequestBody = PatchedWritablePowerPortTemplateRequest - -// DcimPowerPortTemplatesUpdateJSONRequestBody defines body for DcimPowerPortTemplatesUpdate for application/json ContentType. -type DcimPowerPortTemplatesUpdateJSONRequestBody = WritablePowerPortTemplateRequest - -// DcimPowerPortTemplatesNotesCreateJSONRequestBody defines body for DcimPowerPortTemplatesNotesCreate for application/json ContentType. -type DcimPowerPortTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimPowerPortsBulkDestroyJSONRequestBody defines body for DcimPowerPortsBulkDestroy for application/json ContentType. -type DcimPowerPortsBulkDestroyJSONRequestBody = DcimPowerPortsBulkDestroyJSONBody - -// DcimPowerPortsBulkPartialUpdateJSONRequestBody defines body for DcimPowerPortsBulkPartialUpdate for application/json ContentType. -type DcimPowerPortsBulkPartialUpdateJSONRequestBody = DcimPowerPortsBulkPartialUpdateJSONBody - -// DcimPowerPortsCreateJSONRequestBody defines body for DcimPowerPortsCreate for application/json ContentType. -type DcimPowerPortsCreateJSONRequestBody = WritablePowerPortRequest - -// DcimPowerPortsBulkUpdateJSONRequestBody defines body for DcimPowerPortsBulkUpdate for application/json ContentType. -type DcimPowerPortsBulkUpdateJSONRequestBody = DcimPowerPortsBulkUpdateJSONBody - -// DcimPowerPortsPartialUpdateJSONRequestBody defines body for DcimPowerPortsPartialUpdate for application/json ContentType. -type DcimPowerPortsPartialUpdateJSONRequestBody = PatchedWritablePowerPortRequest - -// DcimPowerPortsUpdateJSONRequestBody defines body for DcimPowerPortsUpdate for application/json ContentType. -type DcimPowerPortsUpdateJSONRequestBody = WritablePowerPortRequest - -// DcimPowerPortsNotesCreateJSONRequestBody defines body for DcimPowerPortsNotesCreate for application/json ContentType. -type DcimPowerPortsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimRackGroupsBulkDestroyJSONRequestBody defines body for DcimRackGroupsBulkDestroy for application/json ContentType. -type DcimRackGroupsBulkDestroyJSONRequestBody = DcimRackGroupsBulkDestroyJSONBody - -// DcimRackGroupsBulkPartialUpdateJSONRequestBody defines body for DcimRackGroupsBulkPartialUpdate for application/json ContentType. -type DcimRackGroupsBulkPartialUpdateJSONRequestBody = DcimRackGroupsBulkPartialUpdateJSONBody - -// DcimRackGroupsCreateJSONRequestBody defines body for DcimRackGroupsCreate for application/json ContentType. -type DcimRackGroupsCreateJSONRequestBody = WritableRackGroupRequest - -// DcimRackGroupsBulkUpdateJSONRequestBody defines body for DcimRackGroupsBulkUpdate for application/json ContentType. -type DcimRackGroupsBulkUpdateJSONRequestBody = DcimRackGroupsBulkUpdateJSONBody - -// DcimRackGroupsPartialUpdateJSONRequestBody defines body for DcimRackGroupsPartialUpdate for application/json ContentType. -type DcimRackGroupsPartialUpdateJSONRequestBody = PatchedWritableRackGroupRequest - -// DcimRackGroupsUpdateJSONRequestBody defines body for DcimRackGroupsUpdate for application/json ContentType. -type DcimRackGroupsUpdateJSONRequestBody = WritableRackGroupRequest - -// DcimRackGroupsNotesCreateJSONRequestBody defines body for DcimRackGroupsNotesCreate for application/json ContentType. -type DcimRackGroupsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimRackReservationsBulkDestroyJSONRequestBody defines body for DcimRackReservationsBulkDestroy for application/json ContentType. -type DcimRackReservationsBulkDestroyJSONRequestBody = DcimRackReservationsBulkDestroyJSONBody - -// DcimRackReservationsBulkPartialUpdateJSONRequestBody defines body for DcimRackReservationsBulkPartialUpdate for application/json ContentType. -type DcimRackReservationsBulkPartialUpdateJSONRequestBody = DcimRackReservationsBulkPartialUpdateJSONBody - -// DcimRackReservationsCreateJSONRequestBody defines body for DcimRackReservationsCreate for application/json ContentType. -type DcimRackReservationsCreateJSONRequestBody = WritableRackReservationRequest - -// DcimRackReservationsBulkUpdateJSONRequestBody defines body for DcimRackReservationsBulkUpdate for application/json ContentType. -type DcimRackReservationsBulkUpdateJSONRequestBody = DcimRackReservationsBulkUpdateJSONBody - -// DcimRackReservationsPartialUpdateJSONRequestBody defines body for DcimRackReservationsPartialUpdate for application/json ContentType. -type DcimRackReservationsPartialUpdateJSONRequestBody = PatchedWritableRackReservationRequest - -// DcimRackReservationsUpdateJSONRequestBody defines body for DcimRackReservationsUpdate for application/json ContentType. -type DcimRackReservationsUpdateJSONRequestBody = WritableRackReservationRequest - -// DcimRackReservationsNotesCreateJSONRequestBody defines body for DcimRackReservationsNotesCreate for application/json ContentType. -type DcimRackReservationsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimRackRolesBulkDestroyJSONRequestBody defines body for DcimRackRolesBulkDestroy for application/json ContentType. -type DcimRackRolesBulkDestroyJSONRequestBody = DcimRackRolesBulkDestroyJSONBody - -// DcimRackRolesBulkPartialUpdateJSONRequestBody defines body for DcimRackRolesBulkPartialUpdate for application/json ContentType. -type DcimRackRolesBulkPartialUpdateJSONRequestBody = DcimRackRolesBulkPartialUpdateJSONBody - -// DcimRackRolesCreateJSONRequestBody defines body for DcimRackRolesCreate for application/json ContentType. -type DcimRackRolesCreateJSONRequestBody = RackRoleRequest - -// DcimRackRolesBulkUpdateJSONRequestBody defines body for DcimRackRolesBulkUpdate for application/json ContentType. -type DcimRackRolesBulkUpdateJSONRequestBody = DcimRackRolesBulkUpdateJSONBody - -// DcimRackRolesPartialUpdateJSONRequestBody defines body for DcimRackRolesPartialUpdate for application/json ContentType. -type DcimRackRolesPartialUpdateJSONRequestBody = PatchedRackRoleRequest - -// DcimRackRolesUpdateJSONRequestBody defines body for DcimRackRolesUpdate for application/json ContentType. -type DcimRackRolesUpdateJSONRequestBody = RackRoleRequest - -// DcimRackRolesNotesCreateJSONRequestBody defines body for DcimRackRolesNotesCreate for application/json ContentType. -type DcimRackRolesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimRacksBulkDestroyJSONRequestBody defines body for DcimRacksBulkDestroy for application/json ContentType. -type DcimRacksBulkDestroyJSONRequestBody = DcimRacksBulkDestroyJSONBody - -// DcimRacksBulkPartialUpdateJSONRequestBody defines body for DcimRacksBulkPartialUpdate for application/json ContentType. -type DcimRacksBulkPartialUpdateJSONRequestBody = DcimRacksBulkPartialUpdateJSONBody - -// DcimRacksCreateJSONRequestBody defines body for DcimRacksCreate for application/json ContentType. -type DcimRacksCreateJSONRequestBody = WritableRackRequest - -// DcimRacksBulkUpdateJSONRequestBody defines body for DcimRacksBulkUpdate for application/json ContentType. -type DcimRacksBulkUpdateJSONRequestBody = DcimRacksBulkUpdateJSONBody - -// DcimRacksPartialUpdateJSONRequestBody defines body for DcimRacksPartialUpdate for application/json ContentType. -type DcimRacksPartialUpdateJSONRequestBody = PatchedWritableRackRequest - -// DcimRacksUpdateJSONRequestBody defines body for DcimRacksUpdate for application/json ContentType. -type DcimRacksUpdateJSONRequestBody = WritableRackRequest - -// DcimRacksNotesCreateJSONRequestBody defines body for DcimRacksNotesCreate for application/json ContentType. -type DcimRacksNotesCreateJSONRequestBody = NoteInputRequest - -// DcimRearPortTemplatesBulkDestroyJSONRequestBody defines body for DcimRearPortTemplatesBulkDestroy for application/json ContentType. -type DcimRearPortTemplatesBulkDestroyJSONRequestBody = DcimRearPortTemplatesBulkDestroyJSONBody - -// DcimRearPortTemplatesBulkPartialUpdateJSONRequestBody defines body for DcimRearPortTemplatesBulkPartialUpdate for application/json ContentType. -type DcimRearPortTemplatesBulkPartialUpdateJSONRequestBody = DcimRearPortTemplatesBulkPartialUpdateJSONBody - -// DcimRearPortTemplatesCreateJSONRequestBody defines body for DcimRearPortTemplatesCreate for application/json ContentType. -type DcimRearPortTemplatesCreateJSONRequestBody = WritableRearPortTemplateRequest - -// DcimRearPortTemplatesBulkUpdateJSONRequestBody defines body for DcimRearPortTemplatesBulkUpdate for application/json ContentType. -type DcimRearPortTemplatesBulkUpdateJSONRequestBody = DcimRearPortTemplatesBulkUpdateJSONBody - -// DcimRearPortTemplatesPartialUpdateJSONRequestBody defines body for DcimRearPortTemplatesPartialUpdate for application/json ContentType. -type DcimRearPortTemplatesPartialUpdateJSONRequestBody = PatchedWritableRearPortTemplateRequest - -// DcimRearPortTemplatesUpdateJSONRequestBody defines body for DcimRearPortTemplatesUpdate for application/json ContentType. -type DcimRearPortTemplatesUpdateJSONRequestBody = WritableRearPortTemplateRequest - -// DcimRearPortTemplatesNotesCreateJSONRequestBody defines body for DcimRearPortTemplatesNotesCreate for application/json ContentType. -type DcimRearPortTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimRearPortsBulkDestroyJSONRequestBody defines body for DcimRearPortsBulkDestroy for application/json ContentType. -type DcimRearPortsBulkDestroyJSONRequestBody = DcimRearPortsBulkDestroyJSONBody - -// DcimRearPortsBulkPartialUpdateJSONRequestBody defines body for DcimRearPortsBulkPartialUpdate for application/json ContentType. -type DcimRearPortsBulkPartialUpdateJSONRequestBody = DcimRearPortsBulkPartialUpdateJSONBody - -// DcimRearPortsCreateJSONRequestBody defines body for DcimRearPortsCreate for application/json ContentType. -type DcimRearPortsCreateJSONRequestBody = WritableRearPortRequest - -// DcimRearPortsBulkUpdateJSONRequestBody defines body for DcimRearPortsBulkUpdate for application/json ContentType. -type DcimRearPortsBulkUpdateJSONRequestBody = DcimRearPortsBulkUpdateJSONBody - -// DcimRearPortsPartialUpdateJSONRequestBody defines body for DcimRearPortsPartialUpdate for application/json ContentType. -type DcimRearPortsPartialUpdateJSONRequestBody = PatchedWritableRearPortRequest - -// DcimRearPortsUpdateJSONRequestBody defines body for DcimRearPortsUpdate for application/json ContentType. -type DcimRearPortsUpdateJSONRequestBody = WritableRearPortRequest - -// DcimRearPortsNotesCreateJSONRequestBody defines body for DcimRearPortsNotesCreate for application/json ContentType. -type DcimRearPortsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimRegionsBulkDestroyJSONRequestBody defines body for DcimRegionsBulkDestroy for application/json ContentType. -type DcimRegionsBulkDestroyJSONRequestBody = DcimRegionsBulkDestroyJSONBody - -// DcimRegionsBulkPartialUpdateJSONRequestBody defines body for DcimRegionsBulkPartialUpdate for application/json ContentType. -type DcimRegionsBulkPartialUpdateJSONRequestBody = DcimRegionsBulkPartialUpdateJSONBody - -// DcimRegionsCreateJSONRequestBody defines body for DcimRegionsCreate for application/json ContentType. -type DcimRegionsCreateJSONRequestBody = WritableRegionRequest - -// DcimRegionsBulkUpdateJSONRequestBody defines body for DcimRegionsBulkUpdate for application/json ContentType. -type DcimRegionsBulkUpdateJSONRequestBody = DcimRegionsBulkUpdateJSONBody - -// DcimRegionsPartialUpdateJSONRequestBody defines body for DcimRegionsPartialUpdate for application/json ContentType. -type DcimRegionsPartialUpdateJSONRequestBody = PatchedWritableRegionRequest - -// DcimRegionsUpdateJSONRequestBody defines body for DcimRegionsUpdate for application/json ContentType. -type DcimRegionsUpdateJSONRequestBody = WritableRegionRequest - -// DcimRegionsNotesCreateJSONRequestBody defines body for DcimRegionsNotesCreate for application/json ContentType. -type DcimRegionsNotesCreateJSONRequestBody = NoteInputRequest - -// DcimSitesBulkDestroyJSONRequestBody defines body for DcimSitesBulkDestroy for application/json ContentType. -type DcimSitesBulkDestroyJSONRequestBody = DcimSitesBulkDestroyJSONBody - -// DcimSitesBulkPartialUpdateJSONRequestBody defines body for DcimSitesBulkPartialUpdate for application/json ContentType. -type DcimSitesBulkPartialUpdateJSONRequestBody = DcimSitesBulkPartialUpdateJSONBody - -// DcimSitesCreateJSONRequestBody defines body for DcimSitesCreate for application/json ContentType. -type DcimSitesCreateJSONRequestBody = WritableSiteRequest - -// DcimSitesBulkUpdateJSONRequestBody defines body for DcimSitesBulkUpdate for application/json ContentType. -type DcimSitesBulkUpdateJSONRequestBody = DcimSitesBulkUpdateJSONBody - -// DcimSitesPartialUpdateJSONRequestBody defines body for DcimSitesPartialUpdate for application/json ContentType. -type DcimSitesPartialUpdateJSONRequestBody = PatchedWritableSiteRequest - -// DcimSitesUpdateJSONRequestBody defines body for DcimSitesUpdate for application/json ContentType. -type DcimSitesUpdateJSONRequestBody = WritableSiteRequest - -// DcimSitesNotesCreateJSONRequestBody defines body for DcimSitesNotesCreate for application/json ContentType. -type DcimSitesNotesCreateJSONRequestBody = NoteInputRequest - -// DcimVirtualChassisBulkDestroyJSONRequestBody defines body for DcimVirtualChassisBulkDestroy for application/json ContentType. -type DcimVirtualChassisBulkDestroyJSONRequestBody = DcimVirtualChassisBulkDestroyJSONBody - -// DcimVirtualChassisBulkPartialUpdateJSONRequestBody defines body for DcimVirtualChassisBulkPartialUpdate for application/json ContentType. -type DcimVirtualChassisBulkPartialUpdateJSONRequestBody = DcimVirtualChassisBulkPartialUpdateJSONBody - -// DcimVirtualChassisCreateJSONRequestBody defines body for DcimVirtualChassisCreate for application/json ContentType. -type DcimVirtualChassisCreateJSONRequestBody = WritableVirtualChassisRequest - -// DcimVirtualChassisBulkUpdateJSONRequestBody defines body for DcimVirtualChassisBulkUpdate for application/json ContentType. -type DcimVirtualChassisBulkUpdateJSONRequestBody = DcimVirtualChassisBulkUpdateJSONBody - -// DcimVirtualChassisPartialUpdateJSONRequestBody defines body for DcimVirtualChassisPartialUpdate for application/json ContentType. -type DcimVirtualChassisPartialUpdateJSONRequestBody = PatchedWritableVirtualChassisRequest - -// DcimVirtualChassisUpdateJSONRequestBody defines body for DcimVirtualChassisUpdate for application/json ContentType. -type DcimVirtualChassisUpdateJSONRequestBody = WritableVirtualChassisRequest - -// DcimVirtualChassisNotesCreateJSONRequestBody defines body for DcimVirtualChassisNotesCreate for application/json ContentType. -type DcimVirtualChassisNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasComputedFieldsBulkDestroyJSONRequestBody defines body for ExtrasComputedFieldsBulkDestroy for application/json ContentType. -type ExtrasComputedFieldsBulkDestroyJSONRequestBody = ExtrasComputedFieldsBulkDestroyJSONBody - -// ExtrasComputedFieldsBulkPartialUpdateJSONRequestBody defines body for ExtrasComputedFieldsBulkPartialUpdate for application/json ContentType. -type ExtrasComputedFieldsBulkPartialUpdateJSONRequestBody = ExtrasComputedFieldsBulkPartialUpdateJSONBody - -// ExtrasComputedFieldsCreateJSONRequestBody defines body for ExtrasComputedFieldsCreate for application/json ContentType. -type ExtrasComputedFieldsCreateJSONRequestBody = ComputedFieldRequest - -// ExtrasComputedFieldsBulkUpdateJSONRequestBody defines body for ExtrasComputedFieldsBulkUpdate for application/json ContentType. -type ExtrasComputedFieldsBulkUpdateJSONRequestBody = ExtrasComputedFieldsBulkUpdateJSONBody - -// ExtrasComputedFieldsPartialUpdateJSONRequestBody defines body for ExtrasComputedFieldsPartialUpdate for application/json ContentType. -type ExtrasComputedFieldsPartialUpdateJSONRequestBody = PatchedComputedFieldRequest - -// ExtrasComputedFieldsUpdateJSONRequestBody defines body for ExtrasComputedFieldsUpdate for application/json ContentType. -type ExtrasComputedFieldsUpdateJSONRequestBody = ComputedFieldRequest - -// ExtrasComputedFieldsNotesCreateJSONRequestBody defines body for ExtrasComputedFieldsNotesCreate for application/json ContentType. -type ExtrasComputedFieldsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasConfigContextSchemasBulkDestroyJSONRequestBody defines body for ExtrasConfigContextSchemasBulkDestroy for application/json ContentType. -type ExtrasConfigContextSchemasBulkDestroyJSONRequestBody = ExtrasConfigContextSchemasBulkDestroyJSONBody - -// ExtrasConfigContextSchemasBulkPartialUpdateJSONRequestBody defines body for ExtrasConfigContextSchemasBulkPartialUpdate for application/json ContentType. -type ExtrasConfigContextSchemasBulkPartialUpdateJSONRequestBody = ExtrasConfigContextSchemasBulkPartialUpdateJSONBody - -// ExtrasConfigContextSchemasCreateJSONRequestBody defines body for ExtrasConfigContextSchemasCreate for application/json ContentType. -type ExtrasConfigContextSchemasCreateJSONRequestBody = ConfigContextSchemaRequest - -// ExtrasConfigContextSchemasBulkUpdateJSONRequestBody defines body for ExtrasConfigContextSchemasBulkUpdate for application/json ContentType. -type ExtrasConfigContextSchemasBulkUpdateJSONRequestBody = ExtrasConfigContextSchemasBulkUpdateJSONBody - -// ExtrasConfigContextSchemasPartialUpdateJSONRequestBody defines body for ExtrasConfigContextSchemasPartialUpdate for application/json ContentType. -type ExtrasConfigContextSchemasPartialUpdateJSONRequestBody = PatchedConfigContextSchemaRequest - -// ExtrasConfigContextSchemasUpdateJSONRequestBody defines body for ExtrasConfigContextSchemasUpdate for application/json ContentType. -type ExtrasConfigContextSchemasUpdateJSONRequestBody = ConfigContextSchemaRequest - -// ExtrasConfigContextSchemasNotesCreateJSONRequestBody defines body for ExtrasConfigContextSchemasNotesCreate for application/json ContentType. -type ExtrasConfigContextSchemasNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasConfigContextsBulkDestroyJSONRequestBody defines body for ExtrasConfigContextsBulkDestroy for application/json ContentType. -type ExtrasConfigContextsBulkDestroyJSONRequestBody = ExtrasConfigContextsBulkDestroyJSONBody - -// ExtrasConfigContextsBulkPartialUpdateJSONRequestBody defines body for ExtrasConfigContextsBulkPartialUpdate for application/json ContentType. -type ExtrasConfigContextsBulkPartialUpdateJSONRequestBody = ExtrasConfigContextsBulkPartialUpdateJSONBody - -// ExtrasConfigContextsCreateJSONRequestBody defines body for ExtrasConfigContextsCreate for application/json ContentType. -type ExtrasConfigContextsCreateJSONRequestBody = WritableConfigContextRequest - -// ExtrasConfigContextsBulkUpdateJSONRequestBody defines body for ExtrasConfigContextsBulkUpdate for application/json ContentType. -type ExtrasConfigContextsBulkUpdateJSONRequestBody = ExtrasConfigContextsBulkUpdateJSONBody - -// ExtrasConfigContextsPartialUpdateJSONRequestBody defines body for ExtrasConfigContextsPartialUpdate for application/json ContentType. -type ExtrasConfigContextsPartialUpdateJSONRequestBody = PatchedWritableConfigContextRequest - -// ExtrasConfigContextsUpdateJSONRequestBody defines body for ExtrasConfigContextsUpdate for application/json ContentType. -type ExtrasConfigContextsUpdateJSONRequestBody = WritableConfigContextRequest - -// ExtrasConfigContextsNotesCreateJSONRequestBody defines body for ExtrasConfigContextsNotesCreate for application/json ContentType. -type ExtrasConfigContextsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasCustomFieldChoicesBulkDestroyJSONRequestBody defines body for ExtrasCustomFieldChoicesBulkDestroy for application/json ContentType. -type ExtrasCustomFieldChoicesBulkDestroyJSONRequestBody = ExtrasCustomFieldChoicesBulkDestroyJSONBody - -// ExtrasCustomFieldChoicesBulkPartialUpdateJSONRequestBody defines body for ExtrasCustomFieldChoicesBulkPartialUpdate for application/json ContentType. -type ExtrasCustomFieldChoicesBulkPartialUpdateJSONRequestBody = ExtrasCustomFieldChoicesBulkPartialUpdateJSONBody - -// ExtrasCustomFieldChoicesCreateJSONRequestBody defines body for ExtrasCustomFieldChoicesCreate for application/json ContentType. -type ExtrasCustomFieldChoicesCreateJSONRequestBody = WritableCustomFieldChoiceRequest - -// ExtrasCustomFieldChoicesBulkUpdateJSONRequestBody defines body for ExtrasCustomFieldChoicesBulkUpdate for application/json ContentType. -type ExtrasCustomFieldChoicesBulkUpdateJSONRequestBody = ExtrasCustomFieldChoicesBulkUpdateJSONBody - -// ExtrasCustomFieldChoicesPartialUpdateJSONRequestBody defines body for ExtrasCustomFieldChoicesPartialUpdate for application/json ContentType. -type ExtrasCustomFieldChoicesPartialUpdateJSONRequestBody = PatchedWritableCustomFieldChoiceRequest - -// ExtrasCustomFieldChoicesUpdateJSONRequestBody defines body for ExtrasCustomFieldChoicesUpdate for application/json ContentType. -type ExtrasCustomFieldChoicesUpdateJSONRequestBody = WritableCustomFieldChoiceRequest - -// ExtrasCustomFieldsBulkDestroyJSONRequestBody defines body for ExtrasCustomFieldsBulkDestroy for application/json ContentType. -type ExtrasCustomFieldsBulkDestroyJSONRequestBody = ExtrasCustomFieldsBulkDestroyJSONBody - -// ExtrasCustomFieldsBulkPartialUpdateJSONRequestBody defines body for ExtrasCustomFieldsBulkPartialUpdate for application/json ContentType. -type ExtrasCustomFieldsBulkPartialUpdateJSONRequestBody = ExtrasCustomFieldsBulkPartialUpdateJSONBody - -// ExtrasCustomFieldsCreateJSONRequestBody defines body for ExtrasCustomFieldsCreate for application/json ContentType. -type ExtrasCustomFieldsCreateJSONRequestBody = CustomFieldSerializerVersion12Request - -// ExtrasCustomFieldsBulkUpdateJSONRequestBody defines body for ExtrasCustomFieldsBulkUpdate for application/json ContentType. -type ExtrasCustomFieldsBulkUpdateJSONRequestBody = ExtrasCustomFieldsBulkUpdateJSONBody - -// ExtrasCustomFieldsPartialUpdateJSONRequestBody defines body for ExtrasCustomFieldsPartialUpdate for application/json ContentType. -type ExtrasCustomFieldsPartialUpdateJSONRequestBody = PatchedCustomFieldSerializerVersion12Request - -// ExtrasCustomFieldsUpdateJSONRequestBody defines body for ExtrasCustomFieldsUpdate for application/json ContentType. -type ExtrasCustomFieldsUpdateJSONRequestBody = CustomFieldSerializerVersion12Request - -// ExtrasCustomFieldsNotesCreateJSONRequestBody defines body for ExtrasCustomFieldsNotesCreate for application/json ContentType. -type ExtrasCustomFieldsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasCustomLinksBulkDestroyJSONRequestBody defines body for ExtrasCustomLinksBulkDestroy for application/json ContentType. -type ExtrasCustomLinksBulkDestroyJSONRequestBody = ExtrasCustomLinksBulkDestroyJSONBody - -// ExtrasCustomLinksBulkPartialUpdateJSONRequestBody defines body for ExtrasCustomLinksBulkPartialUpdate for application/json ContentType. -type ExtrasCustomLinksBulkPartialUpdateJSONRequestBody = ExtrasCustomLinksBulkPartialUpdateJSONBody - -// ExtrasCustomLinksCreateJSONRequestBody defines body for ExtrasCustomLinksCreate for application/json ContentType. -type ExtrasCustomLinksCreateJSONRequestBody = CustomLinkRequest - -// ExtrasCustomLinksBulkUpdateJSONRequestBody defines body for ExtrasCustomLinksBulkUpdate for application/json ContentType. -type ExtrasCustomLinksBulkUpdateJSONRequestBody = ExtrasCustomLinksBulkUpdateJSONBody - -// ExtrasCustomLinksPartialUpdateJSONRequestBody defines body for ExtrasCustomLinksPartialUpdate for application/json ContentType. -type ExtrasCustomLinksPartialUpdateJSONRequestBody = PatchedCustomLinkRequest - -// ExtrasCustomLinksUpdateJSONRequestBody defines body for ExtrasCustomLinksUpdate for application/json ContentType. -type ExtrasCustomLinksUpdateJSONRequestBody = CustomLinkRequest - -// ExtrasCustomLinksNotesCreateJSONRequestBody defines body for ExtrasCustomLinksNotesCreate for application/json ContentType. -type ExtrasCustomLinksNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasDynamicGroupMembershipsBulkDestroyJSONRequestBody defines body for ExtrasDynamicGroupMembershipsBulkDestroy for application/json ContentType. -type ExtrasDynamicGroupMembershipsBulkDestroyJSONRequestBody = ExtrasDynamicGroupMembershipsBulkDestroyJSONBody - -// ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONRequestBody defines body for ExtrasDynamicGroupMembershipsBulkPartialUpdate for application/json ContentType. -type ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONRequestBody = ExtrasDynamicGroupMembershipsBulkPartialUpdateJSONBody - -// ExtrasDynamicGroupMembershipsCreateJSONRequestBody defines body for ExtrasDynamicGroupMembershipsCreate for application/json ContentType. -type ExtrasDynamicGroupMembershipsCreateJSONRequestBody = WritableDynamicGroupMembershipRequest - -// ExtrasDynamicGroupMembershipsBulkUpdateJSONRequestBody defines body for ExtrasDynamicGroupMembershipsBulkUpdate for application/json ContentType. -type ExtrasDynamicGroupMembershipsBulkUpdateJSONRequestBody = ExtrasDynamicGroupMembershipsBulkUpdateJSONBody - -// ExtrasDynamicGroupMembershipsPartialUpdateJSONRequestBody defines body for ExtrasDynamicGroupMembershipsPartialUpdate for application/json ContentType. -type ExtrasDynamicGroupMembershipsPartialUpdateJSONRequestBody = PatchedWritableDynamicGroupMembershipRequest - -// ExtrasDynamicGroupMembershipsUpdateJSONRequestBody defines body for ExtrasDynamicGroupMembershipsUpdate for application/json ContentType. -type ExtrasDynamicGroupMembershipsUpdateJSONRequestBody = WritableDynamicGroupMembershipRequest - -// ExtrasDynamicGroupsBulkDestroyJSONRequestBody defines body for ExtrasDynamicGroupsBulkDestroy for application/json ContentType. -type ExtrasDynamicGroupsBulkDestroyJSONRequestBody = ExtrasDynamicGroupsBulkDestroyJSONBody - -// ExtrasDynamicGroupsBulkPartialUpdateJSONRequestBody defines body for ExtrasDynamicGroupsBulkPartialUpdate for application/json ContentType. -type ExtrasDynamicGroupsBulkPartialUpdateJSONRequestBody = ExtrasDynamicGroupsBulkPartialUpdateJSONBody - -// ExtrasDynamicGroupsCreateJSONRequestBody defines body for ExtrasDynamicGroupsCreate for application/json ContentType. -type ExtrasDynamicGroupsCreateJSONRequestBody = DynamicGroupRequest - -// ExtrasDynamicGroupsBulkUpdateJSONRequestBody defines body for ExtrasDynamicGroupsBulkUpdate for application/json ContentType. -type ExtrasDynamicGroupsBulkUpdateJSONRequestBody = ExtrasDynamicGroupsBulkUpdateJSONBody - -// ExtrasDynamicGroupsPartialUpdateJSONRequestBody defines body for ExtrasDynamicGroupsPartialUpdate for application/json ContentType. -type ExtrasDynamicGroupsPartialUpdateJSONRequestBody = PatchedDynamicGroupRequest - -// ExtrasDynamicGroupsUpdateJSONRequestBody defines body for ExtrasDynamicGroupsUpdate for application/json ContentType. -type ExtrasDynamicGroupsUpdateJSONRequestBody = DynamicGroupRequest - -// ExtrasDynamicGroupsNotesCreateJSONRequestBody defines body for ExtrasDynamicGroupsNotesCreate for application/json ContentType. -type ExtrasDynamicGroupsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasExportTemplatesBulkDestroyJSONRequestBody defines body for ExtrasExportTemplatesBulkDestroy for application/json ContentType. -type ExtrasExportTemplatesBulkDestroyJSONRequestBody = ExtrasExportTemplatesBulkDestroyJSONBody - -// ExtrasExportTemplatesBulkPartialUpdateJSONRequestBody defines body for ExtrasExportTemplatesBulkPartialUpdate for application/json ContentType. -type ExtrasExportTemplatesBulkPartialUpdateJSONRequestBody = ExtrasExportTemplatesBulkPartialUpdateJSONBody - -// ExtrasExportTemplatesCreateJSONRequestBody defines body for ExtrasExportTemplatesCreate for application/json ContentType. -type ExtrasExportTemplatesCreateJSONRequestBody = ExportTemplateRequest - -// ExtrasExportTemplatesBulkUpdateJSONRequestBody defines body for ExtrasExportTemplatesBulkUpdate for application/json ContentType. -type ExtrasExportTemplatesBulkUpdateJSONRequestBody = ExtrasExportTemplatesBulkUpdateJSONBody - -// ExtrasExportTemplatesPartialUpdateJSONRequestBody defines body for ExtrasExportTemplatesPartialUpdate for application/json ContentType. -type ExtrasExportTemplatesPartialUpdateJSONRequestBody = PatchedExportTemplateRequest - -// ExtrasExportTemplatesUpdateJSONRequestBody defines body for ExtrasExportTemplatesUpdate for application/json ContentType. -type ExtrasExportTemplatesUpdateJSONRequestBody = ExportTemplateRequest - -// ExtrasExportTemplatesNotesCreateJSONRequestBody defines body for ExtrasExportTemplatesNotesCreate for application/json ContentType. -type ExtrasExportTemplatesNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasGitRepositoriesBulkDestroyJSONRequestBody defines body for ExtrasGitRepositoriesBulkDestroy for application/json ContentType. -type ExtrasGitRepositoriesBulkDestroyJSONRequestBody = ExtrasGitRepositoriesBulkDestroyJSONBody - -// ExtrasGitRepositoriesBulkPartialUpdateJSONRequestBody defines body for ExtrasGitRepositoriesBulkPartialUpdate for application/json ContentType. -type ExtrasGitRepositoriesBulkPartialUpdateJSONRequestBody = ExtrasGitRepositoriesBulkPartialUpdateJSONBody - -// ExtrasGitRepositoriesCreateJSONRequestBody defines body for ExtrasGitRepositoriesCreate for application/json ContentType. -type ExtrasGitRepositoriesCreateJSONRequestBody = WritableGitRepositoryRequest - -// ExtrasGitRepositoriesBulkUpdateJSONRequestBody defines body for ExtrasGitRepositoriesBulkUpdate for application/json ContentType. -type ExtrasGitRepositoriesBulkUpdateJSONRequestBody = ExtrasGitRepositoriesBulkUpdateJSONBody - -// ExtrasGitRepositoriesPartialUpdateJSONRequestBody defines body for ExtrasGitRepositoriesPartialUpdate for application/json ContentType. -type ExtrasGitRepositoriesPartialUpdateJSONRequestBody = PatchedWritableGitRepositoryRequest - -// ExtrasGitRepositoriesUpdateJSONRequestBody defines body for ExtrasGitRepositoriesUpdate for application/json ContentType. -type ExtrasGitRepositoriesUpdateJSONRequestBody = WritableGitRepositoryRequest - -// ExtrasGitRepositoriesNotesCreateJSONRequestBody defines body for ExtrasGitRepositoriesNotesCreate for application/json ContentType. -type ExtrasGitRepositoriesNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasGitRepositoriesSyncCreateJSONRequestBody defines body for ExtrasGitRepositoriesSyncCreate for application/json ContentType. -type ExtrasGitRepositoriesSyncCreateJSONRequestBody = GitRepositoryRequest - -// ExtrasGraphqlQueriesBulkDestroyJSONRequestBody defines body for ExtrasGraphqlQueriesBulkDestroy for application/json ContentType. -type ExtrasGraphqlQueriesBulkDestroyJSONRequestBody = ExtrasGraphqlQueriesBulkDestroyJSONBody - -// ExtrasGraphqlQueriesBulkPartialUpdateJSONRequestBody defines body for ExtrasGraphqlQueriesBulkPartialUpdate for application/json ContentType. -type ExtrasGraphqlQueriesBulkPartialUpdateJSONRequestBody = ExtrasGraphqlQueriesBulkPartialUpdateJSONBody - -// ExtrasGraphqlQueriesCreateJSONRequestBody defines body for ExtrasGraphqlQueriesCreate for application/json ContentType. -type ExtrasGraphqlQueriesCreateJSONRequestBody = GraphQLQueryRequest - -// ExtrasGraphqlQueriesBulkUpdateJSONRequestBody defines body for ExtrasGraphqlQueriesBulkUpdate for application/json ContentType. -type ExtrasGraphqlQueriesBulkUpdateJSONRequestBody = ExtrasGraphqlQueriesBulkUpdateJSONBody - -// ExtrasGraphqlQueriesPartialUpdateJSONRequestBody defines body for ExtrasGraphqlQueriesPartialUpdate for application/json ContentType. -type ExtrasGraphqlQueriesPartialUpdateJSONRequestBody = PatchedGraphQLQueryRequest - -// ExtrasGraphqlQueriesUpdateJSONRequestBody defines body for ExtrasGraphqlQueriesUpdate for application/json ContentType. -type ExtrasGraphqlQueriesUpdateJSONRequestBody = GraphQLQueryRequest - -// ExtrasGraphqlQueriesNotesCreateJSONRequestBody defines body for ExtrasGraphqlQueriesNotesCreate for application/json ContentType. -type ExtrasGraphqlQueriesNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasGraphqlQueriesRunCreateJSONRequestBody defines body for ExtrasGraphqlQueriesRunCreate for application/json ContentType. -type ExtrasGraphqlQueriesRunCreateJSONRequestBody = GraphQLQueryInputRequest - -// ExtrasImageAttachmentsBulkDestroyJSONRequestBody defines body for ExtrasImageAttachmentsBulkDestroy for application/json ContentType. -type ExtrasImageAttachmentsBulkDestroyJSONRequestBody = ExtrasImageAttachmentsBulkDestroyJSONBody - -// ExtrasImageAttachmentsBulkPartialUpdateJSONRequestBody defines body for ExtrasImageAttachmentsBulkPartialUpdate for application/json ContentType. -type ExtrasImageAttachmentsBulkPartialUpdateJSONRequestBody = ExtrasImageAttachmentsBulkPartialUpdateJSONBody - -// ExtrasImageAttachmentsCreateJSONRequestBody defines body for ExtrasImageAttachmentsCreate for application/json ContentType. -type ExtrasImageAttachmentsCreateJSONRequestBody = ImageAttachmentRequest - -// ExtrasImageAttachmentsBulkUpdateJSONRequestBody defines body for ExtrasImageAttachmentsBulkUpdate for application/json ContentType. -type ExtrasImageAttachmentsBulkUpdateJSONRequestBody = ExtrasImageAttachmentsBulkUpdateJSONBody - -// ExtrasImageAttachmentsPartialUpdateJSONRequestBody defines body for ExtrasImageAttachmentsPartialUpdate for application/json ContentType. -type ExtrasImageAttachmentsPartialUpdateJSONRequestBody = PatchedImageAttachmentRequest - -// ExtrasImageAttachmentsUpdateJSONRequestBody defines body for ExtrasImageAttachmentsUpdate for application/json ContentType. -type ExtrasImageAttachmentsUpdateJSONRequestBody = ImageAttachmentRequest - -// ExtrasJobHooksBulkDestroyJSONRequestBody defines body for ExtrasJobHooksBulkDestroy for application/json ContentType. -type ExtrasJobHooksBulkDestroyJSONRequestBody = ExtrasJobHooksBulkDestroyJSONBody - -// ExtrasJobHooksBulkPartialUpdateJSONRequestBody defines body for ExtrasJobHooksBulkPartialUpdate for application/json ContentType. -type ExtrasJobHooksBulkPartialUpdateJSONRequestBody = ExtrasJobHooksBulkPartialUpdateJSONBody - -// ExtrasJobHooksCreateJSONRequestBody defines body for ExtrasJobHooksCreate for application/json ContentType. -type ExtrasJobHooksCreateJSONRequestBody = JobHookRequest - -// ExtrasJobHooksBulkUpdateJSONRequestBody defines body for ExtrasJobHooksBulkUpdate for application/json ContentType. -type ExtrasJobHooksBulkUpdateJSONRequestBody = ExtrasJobHooksBulkUpdateJSONBody - -// ExtrasJobHooksPartialUpdateJSONRequestBody defines body for ExtrasJobHooksPartialUpdate for application/json ContentType. -type ExtrasJobHooksPartialUpdateJSONRequestBody = PatchedJobHookRequest - -// ExtrasJobHooksUpdateJSONRequestBody defines body for ExtrasJobHooksUpdate for application/json ContentType. -type ExtrasJobHooksUpdateJSONRequestBody = JobHookRequest - -// ExtrasJobHooksNotesCreateJSONRequestBody defines body for ExtrasJobHooksNotesCreate for application/json ContentType. -type ExtrasJobHooksNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasJobResultsBulkDestroyJSONRequestBody defines body for ExtrasJobResultsBulkDestroy for application/json ContentType. -type ExtrasJobResultsBulkDestroyJSONRequestBody = ExtrasJobResultsBulkDestroyJSONBody - -// ExtrasJobsBulkDestroyJSONRequestBody defines body for ExtrasJobsBulkDestroy for application/json ContentType. -type ExtrasJobsBulkDestroyJSONRequestBody = ExtrasJobsBulkDestroyJSONBody - -// ExtrasJobsBulkPartialUpdateJSONRequestBody defines body for ExtrasJobsBulkPartialUpdate for application/json ContentType. -type ExtrasJobsBulkPartialUpdateJSONRequestBody = ExtrasJobsBulkPartialUpdateJSONBody - -// ExtrasJobsBulkUpdateJSONRequestBody defines body for ExtrasJobsBulkUpdate for application/json ContentType. -type ExtrasJobsBulkUpdateJSONRequestBody = ExtrasJobsBulkUpdateJSONBody - -// ExtrasJobsRunDeprecatedJSONRequestBody defines body for ExtrasJobsRunDeprecated for application/json ContentType. -type ExtrasJobsRunDeprecatedJSONRequestBody = JobInputRequest - -// ExtrasJobsRunDeprecatedMultipartRequestBody defines body for ExtrasJobsRunDeprecated for multipart/form-data ContentType. -type ExtrasJobsRunDeprecatedMultipartRequestBody = JobInputRequest - -// ExtrasJobsPartialUpdateJSONRequestBody defines body for ExtrasJobsPartialUpdate for application/json ContentType. -type ExtrasJobsPartialUpdateJSONRequestBody = PatchedJobRequest - -// ExtrasJobsUpdateJSONRequestBody defines body for ExtrasJobsUpdate for application/json ContentType. -type ExtrasJobsUpdateJSONRequestBody = JobRequest - -// ExtrasJobsNotesCreateJSONRequestBody defines body for ExtrasJobsNotesCreate for application/json ContentType. -type ExtrasJobsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasJobsRunCreateJSONRequestBody defines body for ExtrasJobsRunCreate for application/json ContentType. -type ExtrasJobsRunCreateJSONRequestBody = JobInputRequest - -// ExtrasJobsRunCreateMultipartRequestBody defines body for ExtrasJobsRunCreate for multipart/form-data ContentType. -type ExtrasJobsRunCreateMultipartRequestBody = JobMultiPartInputRequest - -// ExtrasNotesBulkDestroyJSONRequestBody defines body for ExtrasNotesBulkDestroy for application/json ContentType. -type ExtrasNotesBulkDestroyJSONRequestBody = ExtrasNotesBulkDestroyJSONBody - -// ExtrasNotesBulkPartialUpdateJSONRequestBody defines body for ExtrasNotesBulkPartialUpdate for application/json ContentType. -type ExtrasNotesBulkPartialUpdateJSONRequestBody = ExtrasNotesBulkPartialUpdateJSONBody - -// ExtrasNotesCreateJSONRequestBody defines body for ExtrasNotesCreate for application/json ContentType. -type ExtrasNotesCreateJSONRequestBody = NoteRequest - -// ExtrasNotesBulkUpdateJSONRequestBody defines body for ExtrasNotesBulkUpdate for application/json ContentType. -type ExtrasNotesBulkUpdateJSONRequestBody = ExtrasNotesBulkUpdateJSONBody - -// ExtrasNotesPartialUpdateJSONRequestBody defines body for ExtrasNotesPartialUpdate for application/json ContentType. -type ExtrasNotesPartialUpdateJSONRequestBody = PatchedNoteRequest - -// ExtrasNotesUpdateJSONRequestBody defines body for ExtrasNotesUpdate for application/json ContentType. -type ExtrasNotesUpdateJSONRequestBody = NoteRequest - -// ExtrasRelationshipAssociationsBulkDestroyJSONRequestBody defines body for ExtrasRelationshipAssociationsBulkDestroy for application/json ContentType. -type ExtrasRelationshipAssociationsBulkDestroyJSONRequestBody = ExtrasRelationshipAssociationsBulkDestroyJSONBody - -// ExtrasRelationshipAssociationsBulkPartialUpdateJSONRequestBody defines body for ExtrasRelationshipAssociationsBulkPartialUpdate for application/json ContentType. -type ExtrasRelationshipAssociationsBulkPartialUpdateJSONRequestBody = ExtrasRelationshipAssociationsBulkPartialUpdateJSONBody - -// ExtrasRelationshipAssociationsCreateJSONRequestBody defines body for ExtrasRelationshipAssociationsCreate for application/json ContentType. -type ExtrasRelationshipAssociationsCreateJSONRequestBody = WritableRelationshipAssociationRequest - -// ExtrasRelationshipAssociationsBulkUpdateJSONRequestBody defines body for ExtrasRelationshipAssociationsBulkUpdate for application/json ContentType. -type ExtrasRelationshipAssociationsBulkUpdateJSONRequestBody = ExtrasRelationshipAssociationsBulkUpdateJSONBody - -// ExtrasRelationshipAssociationsPartialUpdateJSONRequestBody defines body for ExtrasRelationshipAssociationsPartialUpdate for application/json ContentType. -type ExtrasRelationshipAssociationsPartialUpdateJSONRequestBody = PatchedWritableRelationshipAssociationRequest - -// ExtrasRelationshipAssociationsUpdateJSONRequestBody defines body for ExtrasRelationshipAssociationsUpdate for application/json ContentType. -type ExtrasRelationshipAssociationsUpdateJSONRequestBody = WritableRelationshipAssociationRequest - -// ExtrasRelationshipsBulkDestroyJSONRequestBody defines body for ExtrasRelationshipsBulkDestroy for application/json ContentType. -type ExtrasRelationshipsBulkDestroyJSONRequestBody = ExtrasRelationshipsBulkDestroyJSONBody - -// ExtrasRelationshipsBulkPartialUpdateJSONRequestBody defines body for ExtrasRelationshipsBulkPartialUpdate for application/json ContentType. -type ExtrasRelationshipsBulkPartialUpdateJSONRequestBody = ExtrasRelationshipsBulkPartialUpdateJSONBody - -// ExtrasRelationshipsCreateJSONRequestBody defines body for ExtrasRelationshipsCreate for application/json ContentType. -type ExtrasRelationshipsCreateJSONRequestBody = RelationshipRequest - -// ExtrasRelationshipsBulkUpdateJSONRequestBody defines body for ExtrasRelationshipsBulkUpdate for application/json ContentType. -type ExtrasRelationshipsBulkUpdateJSONRequestBody = ExtrasRelationshipsBulkUpdateJSONBody - -// ExtrasRelationshipsPartialUpdateJSONRequestBody defines body for ExtrasRelationshipsPartialUpdate for application/json ContentType. -type ExtrasRelationshipsPartialUpdateJSONRequestBody = PatchedRelationshipRequest - -// ExtrasRelationshipsUpdateJSONRequestBody defines body for ExtrasRelationshipsUpdate for application/json ContentType. -type ExtrasRelationshipsUpdateJSONRequestBody = RelationshipRequest - -// ExtrasRelationshipsNotesCreateJSONRequestBody defines body for ExtrasRelationshipsNotesCreate for application/json ContentType. -type ExtrasRelationshipsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasSecretsGroupsAssociationsBulkDestroyJSONRequestBody defines body for ExtrasSecretsGroupsAssociationsBulkDestroy for application/json ContentType. -type ExtrasSecretsGroupsAssociationsBulkDestroyJSONRequestBody = ExtrasSecretsGroupsAssociationsBulkDestroyJSONBody - -// ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONRequestBody defines body for ExtrasSecretsGroupsAssociationsBulkPartialUpdate for application/json ContentType. -type ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONRequestBody = ExtrasSecretsGroupsAssociationsBulkPartialUpdateJSONBody - -// ExtrasSecretsGroupsAssociationsCreateJSONRequestBody defines body for ExtrasSecretsGroupsAssociationsCreate for application/json ContentType. -type ExtrasSecretsGroupsAssociationsCreateJSONRequestBody = WritableSecretsGroupAssociationRequest - -// ExtrasSecretsGroupsAssociationsBulkUpdateJSONRequestBody defines body for ExtrasSecretsGroupsAssociationsBulkUpdate for application/json ContentType. -type ExtrasSecretsGroupsAssociationsBulkUpdateJSONRequestBody = ExtrasSecretsGroupsAssociationsBulkUpdateJSONBody - -// ExtrasSecretsGroupsAssociationsPartialUpdateJSONRequestBody defines body for ExtrasSecretsGroupsAssociationsPartialUpdate for application/json ContentType. -type ExtrasSecretsGroupsAssociationsPartialUpdateJSONRequestBody = PatchedWritableSecretsGroupAssociationRequest - -// ExtrasSecretsGroupsAssociationsUpdateJSONRequestBody defines body for ExtrasSecretsGroupsAssociationsUpdate for application/json ContentType. -type ExtrasSecretsGroupsAssociationsUpdateJSONRequestBody = WritableSecretsGroupAssociationRequest - -// ExtrasSecretsGroupsBulkDestroyJSONRequestBody defines body for ExtrasSecretsGroupsBulkDestroy for application/json ContentType. -type ExtrasSecretsGroupsBulkDestroyJSONRequestBody = ExtrasSecretsGroupsBulkDestroyJSONBody - -// ExtrasSecretsGroupsBulkPartialUpdateJSONRequestBody defines body for ExtrasSecretsGroupsBulkPartialUpdate for application/json ContentType. -type ExtrasSecretsGroupsBulkPartialUpdateJSONRequestBody = ExtrasSecretsGroupsBulkPartialUpdateJSONBody - -// ExtrasSecretsGroupsCreateJSONRequestBody defines body for ExtrasSecretsGroupsCreate for application/json ContentType. -type ExtrasSecretsGroupsCreateJSONRequestBody = SecretsGroupRequest - -// ExtrasSecretsGroupsBulkUpdateJSONRequestBody defines body for ExtrasSecretsGroupsBulkUpdate for application/json ContentType. -type ExtrasSecretsGroupsBulkUpdateJSONRequestBody = ExtrasSecretsGroupsBulkUpdateJSONBody - -// ExtrasSecretsGroupsPartialUpdateJSONRequestBody defines body for ExtrasSecretsGroupsPartialUpdate for application/json ContentType. -type ExtrasSecretsGroupsPartialUpdateJSONRequestBody = PatchedSecretsGroupRequest - -// ExtrasSecretsGroupsUpdateJSONRequestBody defines body for ExtrasSecretsGroupsUpdate for application/json ContentType. -type ExtrasSecretsGroupsUpdateJSONRequestBody = SecretsGroupRequest - -// ExtrasSecretsGroupsNotesCreateJSONRequestBody defines body for ExtrasSecretsGroupsNotesCreate for application/json ContentType. -type ExtrasSecretsGroupsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasSecretsBulkDestroyJSONRequestBody defines body for ExtrasSecretsBulkDestroy for application/json ContentType. -type ExtrasSecretsBulkDestroyJSONRequestBody = ExtrasSecretsBulkDestroyJSONBody - -// ExtrasSecretsBulkPartialUpdateJSONRequestBody defines body for ExtrasSecretsBulkPartialUpdate for application/json ContentType. -type ExtrasSecretsBulkPartialUpdateJSONRequestBody = ExtrasSecretsBulkPartialUpdateJSONBody - -// ExtrasSecretsCreateJSONRequestBody defines body for ExtrasSecretsCreate for application/json ContentType. -type ExtrasSecretsCreateJSONRequestBody = SecretRequest - -// ExtrasSecretsBulkUpdateJSONRequestBody defines body for ExtrasSecretsBulkUpdate for application/json ContentType. -type ExtrasSecretsBulkUpdateJSONRequestBody = ExtrasSecretsBulkUpdateJSONBody - -// ExtrasSecretsPartialUpdateJSONRequestBody defines body for ExtrasSecretsPartialUpdate for application/json ContentType. -type ExtrasSecretsPartialUpdateJSONRequestBody = PatchedSecretRequest - -// ExtrasSecretsUpdateJSONRequestBody defines body for ExtrasSecretsUpdate for application/json ContentType. -type ExtrasSecretsUpdateJSONRequestBody = SecretRequest - -// ExtrasSecretsNotesCreateJSONRequestBody defines body for ExtrasSecretsNotesCreate for application/json ContentType. -type ExtrasSecretsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasStatusesBulkDestroyJSONRequestBody defines body for ExtrasStatusesBulkDestroy for application/json ContentType. -type ExtrasStatusesBulkDestroyJSONRequestBody = ExtrasStatusesBulkDestroyJSONBody - -// ExtrasStatusesBulkPartialUpdateJSONRequestBody defines body for ExtrasStatusesBulkPartialUpdate for application/json ContentType. -type ExtrasStatusesBulkPartialUpdateJSONRequestBody = ExtrasStatusesBulkPartialUpdateJSONBody - -// ExtrasStatusesCreateJSONRequestBody defines body for ExtrasStatusesCreate for application/json ContentType. -type ExtrasStatusesCreateJSONRequestBody = StatusRequest - -// ExtrasStatusesBulkUpdateJSONRequestBody defines body for ExtrasStatusesBulkUpdate for application/json ContentType. -type ExtrasStatusesBulkUpdateJSONRequestBody = ExtrasStatusesBulkUpdateJSONBody - -// ExtrasStatusesPartialUpdateJSONRequestBody defines body for ExtrasStatusesPartialUpdate for application/json ContentType. -type ExtrasStatusesPartialUpdateJSONRequestBody = PatchedStatusRequest - -// ExtrasStatusesUpdateJSONRequestBody defines body for ExtrasStatusesUpdate for application/json ContentType. -type ExtrasStatusesUpdateJSONRequestBody = StatusRequest - -// ExtrasStatusesNotesCreateJSONRequestBody defines body for ExtrasStatusesNotesCreate for application/json ContentType. -type ExtrasStatusesNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasTagsBulkDestroyJSONRequestBody defines body for ExtrasTagsBulkDestroy for application/json ContentType. -type ExtrasTagsBulkDestroyJSONRequestBody = ExtrasTagsBulkDestroyJSONBody - -// ExtrasTagsBulkPartialUpdateJSONRequestBody defines body for ExtrasTagsBulkPartialUpdate for application/json ContentType. -type ExtrasTagsBulkPartialUpdateJSONRequestBody = ExtrasTagsBulkPartialUpdateJSONBody - -// ExtrasTagsCreateJSONRequestBody defines body for ExtrasTagsCreate for application/json ContentType. -type ExtrasTagsCreateJSONRequestBody = TagSerializerVersion13Request - -// ExtrasTagsBulkUpdateJSONRequestBody defines body for ExtrasTagsBulkUpdate for application/json ContentType. -type ExtrasTagsBulkUpdateJSONRequestBody = ExtrasTagsBulkUpdateJSONBody - -// ExtrasTagsPartialUpdateJSONRequestBody defines body for ExtrasTagsPartialUpdate for application/json ContentType. -type ExtrasTagsPartialUpdateJSONRequestBody = PatchedTagSerializerVersion13Request - -// ExtrasTagsUpdateJSONRequestBody defines body for ExtrasTagsUpdate for application/json ContentType. -type ExtrasTagsUpdateJSONRequestBody = TagSerializerVersion13Request - -// ExtrasTagsNotesCreateJSONRequestBody defines body for ExtrasTagsNotesCreate for application/json ContentType. -type ExtrasTagsNotesCreateJSONRequestBody = NoteInputRequest - -// ExtrasWebhooksBulkDestroyJSONRequestBody defines body for ExtrasWebhooksBulkDestroy for application/json ContentType. -type ExtrasWebhooksBulkDestroyJSONRequestBody = ExtrasWebhooksBulkDestroyJSONBody - -// ExtrasWebhooksBulkPartialUpdateJSONRequestBody defines body for ExtrasWebhooksBulkPartialUpdate for application/json ContentType. -type ExtrasWebhooksBulkPartialUpdateJSONRequestBody = ExtrasWebhooksBulkPartialUpdateJSONBody - -// ExtrasWebhooksCreateJSONRequestBody defines body for ExtrasWebhooksCreate for application/json ContentType. -type ExtrasWebhooksCreateJSONRequestBody = WebhookRequest - -// ExtrasWebhooksBulkUpdateJSONRequestBody defines body for ExtrasWebhooksBulkUpdate for application/json ContentType. -type ExtrasWebhooksBulkUpdateJSONRequestBody = ExtrasWebhooksBulkUpdateJSONBody - -// ExtrasWebhooksPartialUpdateJSONRequestBody defines body for ExtrasWebhooksPartialUpdate for application/json ContentType. -type ExtrasWebhooksPartialUpdateJSONRequestBody = PatchedWebhookRequest - -// ExtrasWebhooksUpdateJSONRequestBody defines body for ExtrasWebhooksUpdate for application/json ContentType. -type ExtrasWebhooksUpdateJSONRequestBody = WebhookRequest - -// ExtrasWebhooksNotesCreateJSONRequestBody defines body for ExtrasWebhooksNotesCreate for application/json ContentType. -type ExtrasWebhooksNotesCreateJSONRequestBody = NoteInputRequest - -// GraphqlCreateJSONRequestBody defines body for GraphqlCreate for application/json ContentType. -type GraphqlCreateJSONRequestBody = GraphQLAPIRequest - -// IpamAggregatesBulkDestroyJSONRequestBody defines body for IpamAggregatesBulkDestroy for application/json ContentType. -type IpamAggregatesBulkDestroyJSONRequestBody = IpamAggregatesBulkDestroyJSONBody - -// IpamAggregatesBulkPartialUpdateJSONRequestBody defines body for IpamAggregatesBulkPartialUpdate for application/json ContentType. -type IpamAggregatesBulkPartialUpdateJSONRequestBody = IpamAggregatesBulkPartialUpdateJSONBody - -// IpamAggregatesCreateJSONRequestBody defines body for IpamAggregatesCreate for application/json ContentType. -type IpamAggregatesCreateJSONRequestBody = WritableAggregateRequest - -// IpamAggregatesBulkUpdateJSONRequestBody defines body for IpamAggregatesBulkUpdate for application/json ContentType. -type IpamAggregatesBulkUpdateJSONRequestBody = IpamAggregatesBulkUpdateJSONBody - -// IpamAggregatesPartialUpdateJSONRequestBody defines body for IpamAggregatesPartialUpdate for application/json ContentType. -type IpamAggregatesPartialUpdateJSONRequestBody = PatchedWritableAggregateRequest - -// IpamAggregatesUpdateJSONRequestBody defines body for IpamAggregatesUpdate for application/json ContentType. -type IpamAggregatesUpdateJSONRequestBody = WritableAggregateRequest - -// IpamAggregatesNotesCreateJSONRequestBody defines body for IpamAggregatesNotesCreate for application/json ContentType. -type IpamAggregatesNotesCreateJSONRequestBody = NoteInputRequest - -// IpamIpAddressesBulkDestroyJSONRequestBody defines body for IpamIpAddressesBulkDestroy for application/json ContentType. -type IpamIpAddressesBulkDestroyJSONRequestBody = IpamIpAddressesBulkDestroyJSONBody - -// IpamIpAddressesBulkPartialUpdateJSONRequestBody defines body for IpamIpAddressesBulkPartialUpdate for application/json ContentType. -type IpamIpAddressesBulkPartialUpdateJSONRequestBody = IpamIpAddressesBulkPartialUpdateJSONBody - -// IpamIpAddressesCreateJSONRequestBody defines body for IpamIpAddressesCreate for application/json ContentType. -type IpamIpAddressesCreateJSONRequestBody = WritableIPAddressRequest - -// IpamIpAddressesBulkUpdateJSONRequestBody defines body for IpamIpAddressesBulkUpdate for application/json ContentType. -type IpamIpAddressesBulkUpdateJSONRequestBody = IpamIpAddressesBulkUpdateJSONBody - -// IpamIpAddressesPartialUpdateJSONRequestBody defines body for IpamIpAddressesPartialUpdate for application/json ContentType. -type IpamIpAddressesPartialUpdateJSONRequestBody = PatchedWritableIPAddressRequest - -// IpamIpAddressesUpdateJSONRequestBody defines body for IpamIpAddressesUpdate for application/json ContentType. -type IpamIpAddressesUpdateJSONRequestBody = WritableIPAddressRequest - -// IpamIpAddressesNotesCreateJSONRequestBody defines body for IpamIpAddressesNotesCreate for application/json ContentType. -type IpamIpAddressesNotesCreateJSONRequestBody = NoteInputRequest - -// IpamPrefixesBulkDestroyJSONRequestBody defines body for IpamPrefixesBulkDestroy for application/json ContentType. -type IpamPrefixesBulkDestroyJSONRequestBody = IpamPrefixesBulkDestroyJSONBody - -// IpamPrefixesBulkPartialUpdateJSONRequestBody defines body for IpamPrefixesBulkPartialUpdate for application/json ContentType. -type IpamPrefixesBulkPartialUpdateJSONRequestBody = IpamPrefixesBulkPartialUpdateJSONBody - -// IpamPrefixesCreateJSONRequestBody defines body for IpamPrefixesCreate for application/json ContentType. -type IpamPrefixesCreateJSONRequestBody = WritablePrefixRequest - -// IpamPrefixesBulkUpdateJSONRequestBody defines body for IpamPrefixesBulkUpdate for application/json ContentType. -type IpamPrefixesBulkUpdateJSONRequestBody = IpamPrefixesBulkUpdateJSONBody - -// IpamPrefixesPartialUpdateJSONRequestBody defines body for IpamPrefixesPartialUpdate for application/json ContentType. -type IpamPrefixesPartialUpdateJSONRequestBody = PatchedWritablePrefixRequest - -// IpamPrefixesUpdateJSONRequestBody defines body for IpamPrefixesUpdate for application/json ContentType. -type IpamPrefixesUpdateJSONRequestBody = WritablePrefixRequest - -// IpamPrefixesAvailablePrefixesCreateJSONRequestBody defines body for IpamPrefixesAvailablePrefixesCreate for application/json ContentType. -type IpamPrefixesAvailablePrefixesCreateJSONRequestBody = PrefixLengthRequest - -// IpamPrefixesNotesCreateJSONRequestBody defines body for IpamPrefixesNotesCreate for application/json ContentType. -type IpamPrefixesNotesCreateJSONRequestBody = NoteInputRequest - -// IpamRirsBulkDestroyJSONRequestBody defines body for IpamRirsBulkDestroy for application/json ContentType. -type IpamRirsBulkDestroyJSONRequestBody = IpamRirsBulkDestroyJSONBody - -// IpamRirsBulkPartialUpdateJSONRequestBody defines body for IpamRirsBulkPartialUpdate for application/json ContentType. -type IpamRirsBulkPartialUpdateJSONRequestBody = IpamRirsBulkPartialUpdateJSONBody - -// IpamRirsCreateJSONRequestBody defines body for IpamRirsCreate for application/json ContentType. -type IpamRirsCreateJSONRequestBody = RIRRequest - -// IpamRirsBulkUpdateJSONRequestBody defines body for IpamRirsBulkUpdate for application/json ContentType. -type IpamRirsBulkUpdateJSONRequestBody = IpamRirsBulkUpdateJSONBody - -// IpamRirsPartialUpdateJSONRequestBody defines body for IpamRirsPartialUpdate for application/json ContentType. -type IpamRirsPartialUpdateJSONRequestBody = PatchedRIRRequest - -// IpamRirsUpdateJSONRequestBody defines body for IpamRirsUpdate for application/json ContentType. -type IpamRirsUpdateJSONRequestBody = RIRRequest - -// IpamRirsNotesCreateJSONRequestBody defines body for IpamRirsNotesCreate for application/json ContentType. -type IpamRirsNotesCreateJSONRequestBody = NoteInputRequest - -// IpamRolesBulkDestroyJSONRequestBody defines body for IpamRolesBulkDestroy for application/json ContentType. -type IpamRolesBulkDestroyJSONRequestBody = IpamRolesBulkDestroyJSONBody - -// IpamRolesBulkPartialUpdateJSONRequestBody defines body for IpamRolesBulkPartialUpdate for application/json ContentType. -type IpamRolesBulkPartialUpdateJSONRequestBody = IpamRolesBulkPartialUpdateJSONBody - -// IpamRolesCreateJSONRequestBody defines body for IpamRolesCreate for application/json ContentType. -type IpamRolesCreateJSONRequestBody = RoleRequest - -// IpamRolesBulkUpdateJSONRequestBody defines body for IpamRolesBulkUpdate for application/json ContentType. -type IpamRolesBulkUpdateJSONRequestBody = IpamRolesBulkUpdateJSONBody - -// IpamRolesPartialUpdateJSONRequestBody defines body for IpamRolesPartialUpdate for application/json ContentType. -type IpamRolesPartialUpdateJSONRequestBody = PatchedRoleRequest - -// IpamRolesUpdateJSONRequestBody defines body for IpamRolesUpdate for application/json ContentType. -type IpamRolesUpdateJSONRequestBody = RoleRequest - -// IpamRolesNotesCreateJSONRequestBody defines body for IpamRolesNotesCreate for application/json ContentType. -type IpamRolesNotesCreateJSONRequestBody = NoteInputRequest - -// IpamRouteTargetsBulkDestroyJSONRequestBody defines body for IpamRouteTargetsBulkDestroy for application/json ContentType. -type IpamRouteTargetsBulkDestroyJSONRequestBody = IpamRouteTargetsBulkDestroyJSONBody - -// IpamRouteTargetsBulkPartialUpdateJSONRequestBody defines body for IpamRouteTargetsBulkPartialUpdate for application/json ContentType. -type IpamRouteTargetsBulkPartialUpdateJSONRequestBody = IpamRouteTargetsBulkPartialUpdateJSONBody - -// IpamRouteTargetsCreateJSONRequestBody defines body for IpamRouteTargetsCreate for application/json ContentType. -type IpamRouteTargetsCreateJSONRequestBody = WritableRouteTargetRequest - -// IpamRouteTargetsBulkUpdateJSONRequestBody defines body for IpamRouteTargetsBulkUpdate for application/json ContentType. -type IpamRouteTargetsBulkUpdateJSONRequestBody = IpamRouteTargetsBulkUpdateJSONBody - -// IpamRouteTargetsPartialUpdateJSONRequestBody defines body for IpamRouteTargetsPartialUpdate for application/json ContentType. -type IpamRouteTargetsPartialUpdateJSONRequestBody = PatchedWritableRouteTargetRequest - -// IpamRouteTargetsUpdateJSONRequestBody defines body for IpamRouteTargetsUpdate for application/json ContentType. -type IpamRouteTargetsUpdateJSONRequestBody = WritableRouteTargetRequest - -// IpamRouteTargetsNotesCreateJSONRequestBody defines body for IpamRouteTargetsNotesCreate for application/json ContentType. -type IpamRouteTargetsNotesCreateJSONRequestBody = NoteInputRequest - -// IpamServicesBulkDestroyJSONRequestBody defines body for IpamServicesBulkDestroy for application/json ContentType. -type IpamServicesBulkDestroyJSONRequestBody = IpamServicesBulkDestroyJSONBody - -// IpamServicesBulkPartialUpdateJSONRequestBody defines body for IpamServicesBulkPartialUpdate for application/json ContentType. -type IpamServicesBulkPartialUpdateJSONRequestBody = IpamServicesBulkPartialUpdateJSONBody - -// IpamServicesCreateJSONRequestBody defines body for IpamServicesCreate for application/json ContentType. -type IpamServicesCreateJSONRequestBody = WritableServiceRequest - -// IpamServicesBulkUpdateJSONRequestBody defines body for IpamServicesBulkUpdate for application/json ContentType. -type IpamServicesBulkUpdateJSONRequestBody = IpamServicesBulkUpdateJSONBody - -// IpamServicesPartialUpdateJSONRequestBody defines body for IpamServicesPartialUpdate for application/json ContentType. -type IpamServicesPartialUpdateJSONRequestBody = PatchedWritableServiceRequest - -// IpamServicesUpdateJSONRequestBody defines body for IpamServicesUpdate for application/json ContentType. -type IpamServicesUpdateJSONRequestBody = WritableServiceRequest - -// IpamServicesNotesCreateJSONRequestBody defines body for IpamServicesNotesCreate for application/json ContentType. -type IpamServicesNotesCreateJSONRequestBody = NoteInputRequest - -// IpamVlanGroupsBulkDestroyJSONRequestBody defines body for IpamVlanGroupsBulkDestroy for application/json ContentType. -type IpamVlanGroupsBulkDestroyJSONRequestBody = IpamVlanGroupsBulkDestroyJSONBody - -// IpamVlanGroupsBulkPartialUpdateJSONRequestBody defines body for IpamVlanGroupsBulkPartialUpdate for application/json ContentType. -type IpamVlanGroupsBulkPartialUpdateJSONRequestBody = IpamVlanGroupsBulkPartialUpdateJSONBody - -// IpamVlanGroupsCreateJSONRequestBody defines body for IpamVlanGroupsCreate for application/json ContentType. -type IpamVlanGroupsCreateJSONRequestBody = WritableVLANGroupRequest - -// IpamVlanGroupsBulkUpdateJSONRequestBody defines body for IpamVlanGroupsBulkUpdate for application/json ContentType. -type IpamVlanGroupsBulkUpdateJSONRequestBody = IpamVlanGroupsBulkUpdateJSONBody - -// IpamVlanGroupsPartialUpdateJSONRequestBody defines body for IpamVlanGroupsPartialUpdate for application/json ContentType. -type IpamVlanGroupsPartialUpdateJSONRequestBody = PatchedWritableVLANGroupRequest - -// IpamVlanGroupsUpdateJSONRequestBody defines body for IpamVlanGroupsUpdate for application/json ContentType. -type IpamVlanGroupsUpdateJSONRequestBody = WritableVLANGroupRequest - -// IpamVlanGroupsNotesCreateJSONRequestBody defines body for IpamVlanGroupsNotesCreate for application/json ContentType. -type IpamVlanGroupsNotesCreateJSONRequestBody = NoteInputRequest - -// IpamVlansBulkDestroyJSONRequestBody defines body for IpamVlansBulkDestroy for application/json ContentType. -type IpamVlansBulkDestroyJSONRequestBody = IpamVlansBulkDestroyJSONBody - -// IpamVlansBulkPartialUpdateJSONRequestBody defines body for IpamVlansBulkPartialUpdate for application/json ContentType. -type IpamVlansBulkPartialUpdateJSONRequestBody = IpamVlansBulkPartialUpdateJSONBody - -// IpamVlansCreateJSONRequestBody defines body for IpamVlansCreate for application/json ContentType. -type IpamVlansCreateJSONRequestBody = WritableVLANRequest - -// IpamVlansBulkUpdateJSONRequestBody defines body for IpamVlansBulkUpdate for application/json ContentType. -type IpamVlansBulkUpdateJSONRequestBody = IpamVlansBulkUpdateJSONBody - -// IpamVlansPartialUpdateJSONRequestBody defines body for IpamVlansPartialUpdate for application/json ContentType. -type IpamVlansPartialUpdateJSONRequestBody = PatchedWritableVLANRequest - -// IpamVlansUpdateJSONRequestBody defines body for IpamVlansUpdate for application/json ContentType. -type IpamVlansUpdateJSONRequestBody = WritableVLANRequest - -// IpamVlansNotesCreateJSONRequestBody defines body for IpamVlansNotesCreate for application/json ContentType. -type IpamVlansNotesCreateJSONRequestBody = NoteInputRequest - -// IpamVrfsBulkDestroyJSONRequestBody defines body for IpamVrfsBulkDestroy for application/json ContentType. -type IpamVrfsBulkDestroyJSONRequestBody = IpamVrfsBulkDestroyJSONBody - -// IpamVrfsBulkPartialUpdateJSONRequestBody defines body for IpamVrfsBulkPartialUpdate for application/json ContentType. -type IpamVrfsBulkPartialUpdateJSONRequestBody = IpamVrfsBulkPartialUpdateJSONBody - -// IpamVrfsCreateJSONRequestBody defines body for IpamVrfsCreate for application/json ContentType. -type IpamVrfsCreateJSONRequestBody = WritableVRFRequest - -// IpamVrfsBulkUpdateJSONRequestBody defines body for IpamVrfsBulkUpdate for application/json ContentType. -type IpamVrfsBulkUpdateJSONRequestBody = IpamVrfsBulkUpdateJSONBody - -// IpamVrfsPartialUpdateJSONRequestBody defines body for IpamVrfsPartialUpdate for application/json ContentType. -type IpamVrfsPartialUpdateJSONRequestBody = PatchedWritableVRFRequest - -// IpamVrfsUpdateJSONRequestBody defines body for IpamVrfsUpdate for application/json ContentType. -type IpamVrfsUpdateJSONRequestBody = WritableVRFRequest - -// IpamVrfsNotesCreateJSONRequestBody defines body for IpamVrfsNotesCreate for application/json ContentType. -type IpamVrfsNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsBgpAddressFamiliesBulkDestroyJSONRequestBody defines body for PluginsBgpAddressFamiliesBulkDestroy for application/json ContentType. -type PluginsBgpAddressFamiliesBulkDestroyJSONRequestBody = PluginsBgpAddressFamiliesBulkDestroyJSONBody - -// PluginsBgpAddressFamiliesBulkPartialUpdateJSONRequestBody defines body for PluginsBgpAddressFamiliesBulkPartialUpdate for application/json ContentType. -type PluginsBgpAddressFamiliesBulkPartialUpdateJSONRequestBody = PluginsBgpAddressFamiliesBulkPartialUpdateJSONBody - -// PluginsBgpAddressFamiliesCreateJSONRequestBody defines body for PluginsBgpAddressFamiliesCreate for application/json ContentType. -type PluginsBgpAddressFamiliesCreateJSONRequestBody = WritableAddressFamilyRequest - -// PluginsBgpAddressFamiliesBulkUpdateJSONRequestBody defines body for PluginsBgpAddressFamiliesBulkUpdate for application/json ContentType. -type PluginsBgpAddressFamiliesBulkUpdateJSONRequestBody = PluginsBgpAddressFamiliesBulkUpdateJSONBody - -// PluginsBgpAddressFamiliesPartialUpdateJSONRequestBody defines body for PluginsBgpAddressFamiliesPartialUpdate for application/json ContentType. -type PluginsBgpAddressFamiliesPartialUpdateJSONRequestBody = PatchedWritableAddressFamilyRequest - -// PluginsBgpAddressFamiliesUpdateJSONRequestBody defines body for PluginsBgpAddressFamiliesUpdate for application/json ContentType. -type PluginsBgpAddressFamiliesUpdateJSONRequestBody = WritableAddressFamilyRequest - -// PluginsBgpAutonomousSystemsBulkDestroyJSONRequestBody defines body for PluginsBgpAutonomousSystemsBulkDestroy for application/json ContentType. -type PluginsBgpAutonomousSystemsBulkDestroyJSONRequestBody = PluginsBgpAutonomousSystemsBulkDestroyJSONBody - -// PluginsBgpAutonomousSystemsBulkPartialUpdateJSONRequestBody defines body for PluginsBgpAutonomousSystemsBulkPartialUpdate for application/json ContentType. -type PluginsBgpAutonomousSystemsBulkPartialUpdateJSONRequestBody = PluginsBgpAutonomousSystemsBulkPartialUpdateJSONBody - -// PluginsBgpAutonomousSystemsCreateJSONRequestBody defines body for PluginsBgpAutonomousSystemsCreate for application/json ContentType. -type PluginsBgpAutonomousSystemsCreateJSONRequestBody = WritableAutonomousSystemRequest - -// PluginsBgpAutonomousSystemsBulkUpdateJSONRequestBody defines body for PluginsBgpAutonomousSystemsBulkUpdate for application/json ContentType. -type PluginsBgpAutonomousSystemsBulkUpdateJSONRequestBody = PluginsBgpAutonomousSystemsBulkUpdateJSONBody - -// PluginsBgpAutonomousSystemsPartialUpdateJSONRequestBody defines body for PluginsBgpAutonomousSystemsPartialUpdate for application/json ContentType. -type PluginsBgpAutonomousSystemsPartialUpdateJSONRequestBody = PatchedWritableAutonomousSystemRequest - -// PluginsBgpAutonomousSystemsUpdateJSONRequestBody defines body for PluginsBgpAutonomousSystemsUpdate for application/json ContentType. -type PluginsBgpAutonomousSystemsUpdateJSONRequestBody = WritableAutonomousSystemRequest - -// PluginsBgpPeerEndpointsBulkDestroyJSONRequestBody defines body for PluginsBgpPeerEndpointsBulkDestroy for application/json ContentType. -type PluginsBgpPeerEndpointsBulkDestroyJSONRequestBody = PluginsBgpPeerEndpointsBulkDestroyJSONBody - -// PluginsBgpPeerEndpointsBulkPartialUpdateJSONRequestBody defines body for PluginsBgpPeerEndpointsBulkPartialUpdate for application/json ContentType. -type PluginsBgpPeerEndpointsBulkPartialUpdateJSONRequestBody = PluginsBgpPeerEndpointsBulkPartialUpdateJSONBody - -// PluginsBgpPeerEndpointsCreateJSONRequestBody defines body for PluginsBgpPeerEndpointsCreate for application/json ContentType. -type PluginsBgpPeerEndpointsCreateJSONRequestBody = WritablePeerEndpointRequest - -// PluginsBgpPeerEndpointsBulkUpdateJSONRequestBody defines body for PluginsBgpPeerEndpointsBulkUpdate for application/json ContentType. -type PluginsBgpPeerEndpointsBulkUpdateJSONRequestBody = PluginsBgpPeerEndpointsBulkUpdateJSONBody - -// PluginsBgpPeerEndpointsPartialUpdateJSONRequestBody defines body for PluginsBgpPeerEndpointsPartialUpdate for application/json ContentType. -type PluginsBgpPeerEndpointsPartialUpdateJSONRequestBody = PatchedWritablePeerEndpointRequest - -// PluginsBgpPeerEndpointsUpdateJSONRequestBody defines body for PluginsBgpPeerEndpointsUpdate for application/json ContentType. -type PluginsBgpPeerEndpointsUpdateJSONRequestBody = WritablePeerEndpointRequest - -// PluginsBgpPeerGroupTemplatesBulkDestroyJSONRequestBody defines body for PluginsBgpPeerGroupTemplatesBulkDestroy for application/json ContentType. -type PluginsBgpPeerGroupTemplatesBulkDestroyJSONRequestBody = PluginsBgpPeerGroupTemplatesBulkDestroyJSONBody - -// PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONRequestBody defines body for PluginsBgpPeerGroupTemplatesBulkPartialUpdate for application/json ContentType. -type PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONRequestBody = PluginsBgpPeerGroupTemplatesBulkPartialUpdateJSONBody - -// PluginsBgpPeerGroupTemplatesCreateJSONRequestBody defines body for PluginsBgpPeerGroupTemplatesCreate for application/json ContentType. -type PluginsBgpPeerGroupTemplatesCreateJSONRequestBody = WritablePeerGroupTemplateRequest - -// PluginsBgpPeerGroupTemplatesBulkUpdateJSONRequestBody defines body for PluginsBgpPeerGroupTemplatesBulkUpdate for application/json ContentType. -type PluginsBgpPeerGroupTemplatesBulkUpdateJSONRequestBody = PluginsBgpPeerGroupTemplatesBulkUpdateJSONBody - -// PluginsBgpPeerGroupTemplatesPartialUpdateJSONRequestBody defines body for PluginsBgpPeerGroupTemplatesPartialUpdate for application/json ContentType. -type PluginsBgpPeerGroupTemplatesPartialUpdateJSONRequestBody = PatchedWritablePeerGroupTemplateRequest - -// PluginsBgpPeerGroupTemplatesUpdateJSONRequestBody defines body for PluginsBgpPeerGroupTemplatesUpdate for application/json ContentType. -type PluginsBgpPeerGroupTemplatesUpdateJSONRequestBody = WritablePeerGroupTemplateRequest - -// PluginsBgpPeerGroupsBulkDestroyJSONRequestBody defines body for PluginsBgpPeerGroupsBulkDestroy for application/json ContentType. -type PluginsBgpPeerGroupsBulkDestroyJSONRequestBody = PluginsBgpPeerGroupsBulkDestroyJSONBody - -// PluginsBgpPeerGroupsBulkPartialUpdateJSONRequestBody defines body for PluginsBgpPeerGroupsBulkPartialUpdate for application/json ContentType. -type PluginsBgpPeerGroupsBulkPartialUpdateJSONRequestBody = PluginsBgpPeerGroupsBulkPartialUpdateJSONBody - -// PluginsBgpPeerGroupsCreateJSONRequestBody defines body for PluginsBgpPeerGroupsCreate for application/json ContentType. -type PluginsBgpPeerGroupsCreateJSONRequestBody = WritablePeerGroupRequest - -// PluginsBgpPeerGroupsBulkUpdateJSONRequestBody defines body for PluginsBgpPeerGroupsBulkUpdate for application/json ContentType. -type PluginsBgpPeerGroupsBulkUpdateJSONRequestBody = PluginsBgpPeerGroupsBulkUpdateJSONBody - -// PluginsBgpPeerGroupsPartialUpdateJSONRequestBody defines body for PluginsBgpPeerGroupsPartialUpdate for application/json ContentType. -type PluginsBgpPeerGroupsPartialUpdateJSONRequestBody = PatchedWritablePeerGroupRequest - -// PluginsBgpPeerGroupsUpdateJSONRequestBody defines body for PluginsBgpPeerGroupsUpdate for application/json ContentType. -type PluginsBgpPeerGroupsUpdateJSONRequestBody = WritablePeerGroupRequest - -// PluginsBgpPeeringRolesBulkDestroyJSONRequestBody defines body for PluginsBgpPeeringRolesBulkDestroy for application/json ContentType. -type PluginsBgpPeeringRolesBulkDestroyJSONRequestBody = PluginsBgpPeeringRolesBulkDestroyJSONBody - -// PluginsBgpPeeringRolesBulkPartialUpdateJSONRequestBody defines body for PluginsBgpPeeringRolesBulkPartialUpdate for application/json ContentType. -type PluginsBgpPeeringRolesBulkPartialUpdateJSONRequestBody = PluginsBgpPeeringRolesBulkPartialUpdateJSONBody - -// PluginsBgpPeeringRolesCreateJSONRequestBody defines body for PluginsBgpPeeringRolesCreate for application/json ContentType. -type PluginsBgpPeeringRolesCreateJSONRequestBody = PeeringRoleRequest - -// PluginsBgpPeeringRolesBulkUpdateJSONRequestBody defines body for PluginsBgpPeeringRolesBulkUpdate for application/json ContentType. -type PluginsBgpPeeringRolesBulkUpdateJSONRequestBody = PluginsBgpPeeringRolesBulkUpdateJSONBody - -// PluginsBgpPeeringRolesPartialUpdateJSONRequestBody defines body for PluginsBgpPeeringRolesPartialUpdate for application/json ContentType. -type PluginsBgpPeeringRolesPartialUpdateJSONRequestBody = PatchedPeeringRoleRequest - -// PluginsBgpPeeringRolesUpdateJSONRequestBody defines body for PluginsBgpPeeringRolesUpdate for application/json ContentType. -type PluginsBgpPeeringRolesUpdateJSONRequestBody = PeeringRoleRequest - -// PluginsBgpPeeringsBulkDestroyJSONRequestBody defines body for PluginsBgpPeeringsBulkDestroy for application/json ContentType. -type PluginsBgpPeeringsBulkDestroyJSONRequestBody = PluginsBgpPeeringsBulkDestroyJSONBody - -// PluginsBgpPeeringsBulkPartialUpdateJSONRequestBody defines body for PluginsBgpPeeringsBulkPartialUpdate for application/json ContentType. -type PluginsBgpPeeringsBulkPartialUpdateJSONRequestBody = PluginsBgpPeeringsBulkPartialUpdateJSONBody - -// PluginsBgpPeeringsCreateJSONRequestBody defines body for PluginsBgpPeeringsCreate for application/json ContentType. -type PluginsBgpPeeringsCreateJSONRequestBody = PeeringRequest - -// PluginsBgpPeeringsBulkUpdateJSONRequestBody defines body for PluginsBgpPeeringsBulkUpdate for application/json ContentType. -type PluginsBgpPeeringsBulkUpdateJSONRequestBody = PluginsBgpPeeringsBulkUpdateJSONBody - -// PluginsBgpPeeringsPartialUpdateJSONRequestBody defines body for PluginsBgpPeeringsPartialUpdate for application/json ContentType. -type PluginsBgpPeeringsPartialUpdateJSONRequestBody = PatchedPeeringRequest - -// PluginsBgpPeeringsUpdateJSONRequestBody defines body for PluginsBgpPeeringsUpdate for application/json ContentType. -type PluginsBgpPeeringsUpdateJSONRequestBody = PeeringRequest - -// PluginsBgpRoutingInstancesBulkDestroyJSONRequestBody defines body for PluginsBgpRoutingInstancesBulkDestroy for application/json ContentType. -type PluginsBgpRoutingInstancesBulkDestroyJSONRequestBody = PluginsBgpRoutingInstancesBulkDestroyJSONBody - -// PluginsBgpRoutingInstancesBulkPartialUpdateJSONRequestBody defines body for PluginsBgpRoutingInstancesBulkPartialUpdate for application/json ContentType. -type PluginsBgpRoutingInstancesBulkPartialUpdateJSONRequestBody = PluginsBgpRoutingInstancesBulkPartialUpdateJSONBody - -// PluginsBgpRoutingInstancesCreateJSONRequestBody defines body for PluginsBgpRoutingInstancesCreate for application/json ContentType. -type PluginsBgpRoutingInstancesCreateJSONRequestBody = WritableBGPRoutingInstanceRequest - -// PluginsBgpRoutingInstancesBulkUpdateJSONRequestBody defines body for PluginsBgpRoutingInstancesBulkUpdate for application/json ContentType. -type PluginsBgpRoutingInstancesBulkUpdateJSONRequestBody = PluginsBgpRoutingInstancesBulkUpdateJSONBody - -// PluginsBgpRoutingInstancesPartialUpdateJSONRequestBody defines body for PluginsBgpRoutingInstancesPartialUpdate for application/json ContentType. -type PluginsBgpRoutingInstancesPartialUpdateJSONRequestBody = PatchedWritableBGPRoutingInstanceRequest - -// PluginsBgpRoutingInstancesUpdateJSONRequestBody defines body for PluginsBgpRoutingInstancesUpdate for application/json ContentType. -type PluginsBgpRoutingInstancesUpdateJSONRequestBody = WritableBGPRoutingInstanceRequest - -// PluginsChatopsAccessgrantBulkDestroyJSONRequestBody defines body for PluginsChatopsAccessgrantBulkDestroy for application/json ContentType. -type PluginsChatopsAccessgrantBulkDestroyJSONRequestBody = PluginsChatopsAccessgrantBulkDestroyJSONBody - -// PluginsChatopsAccessgrantBulkPartialUpdateJSONRequestBody defines body for PluginsChatopsAccessgrantBulkPartialUpdate for application/json ContentType. -type PluginsChatopsAccessgrantBulkPartialUpdateJSONRequestBody = PluginsChatopsAccessgrantBulkPartialUpdateJSONBody - -// PluginsChatopsAccessgrantCreateJSONRequestBody defines body for PluginsChatopsAccessgrantCreate for application/json ContentType. -type PluginsChatopsAccessgrantCreateJSONRequestBody = AccessGrantRequest - -// PluginsChatopsAccessgrantBulkUpdateJSONRequestBody defines body for PluginsChatopsAccessgrantBulkUpdate for application/json ContentType. -type PluginsChatopsAccessgrantBulkUpdateJSONRequestBody = PluginsChatopsAccessgrantBulkUpdateJSONBody - -// PluginsChatopsAccessgrantPartialUpdateJSONRequestBody defines body for PluginsChatopsAccessgrantPartialUpdate for application/json ContentType. -type PluginsChatopsAccessgrantPartialUpdateJSONRequestBody = PatchedAccessGrantRequest - -// PluginsChatopsAccessgrantUpdateJSONRequestBody defines body for PluginsChatopsAccessgrantUpdate for application/json ContentType. -type PluginsChatopsAccessgrantUpdateJSONRequestBody = AccessGrantRequest - -// PluginsChatopsCommandtokenBulkDestroyJSONRequestBody defines body for PluginsChatopsCommandtokenBulkDestroy for application/json ContentType. -type PluginsChatopsCommandtokenBulkDestroyJSONRequestBody = PluginsChatopsCommandtokenBulkDestroyJSONBody - -// PluginsChatopsCommandtokenBulkPartialUpdateJSONRequestBody defines body for PluginsChatopsCommandtokenBulkPartialUpdate for application/json ContentType. -type PluginsChatopsCommandtokenBulkPartialUpdateJSONRequestBody = PluginsChatopsCommandtokenBulkPartialUpdateJSONBody - -// PluginsChatopsCommandtokenCreateJSONRequestBody defines body for PluginsChatopsCommandtokenCreate for application/json ContentType. -type PluginsChatopsCommandtokenCreateJSONRequestBody = CommandTokenRequest - -// PluginsChatopsCommandtokenBulkUpdateJSONRequestBody defines body for PluginsChatopsCommandtokenBulkUpdate for application/json ContentType. -type PluginsChatopsCommandtokenBulkUpdateJSONRequestBody = PluginsChatopsCommandtokenBulkUpdateJSONBody - -// PluginsChatopsCommandtokenPartialUpdateJSONRequestBody defines body for PluginsChatopsCommandtokenPartialUpdate for application/json ContentType. -type PluginsChatopsCommandtokenPartialUpdateJSONRequestBody = PatchedCommandTokenRequest - -// PluginsChatopsCommandtokenUpdateJSONRequestBody defines body for PluginsChatopsCommandtokenUpdate for application/json ContentType. -type PluginsChatopsCommandtokenUpdateJSONRequestBody = CommandTokenRequest - -// PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONRequestBody defines body for PluginsCircuitMaintenanceCircuitimpactBulkDestroy for application/json ContentType. -type PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONRequestBody = PluginsCircuitMaintenanceCircuitimpactBulkDestroyJSONBody - -// PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdate for application/json ContentType. -type PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONRequestBody = PluginsCircuitMaintenanceCircuitimpactBulkPartialUpdateJSONBody - -// PluginsCircuitMaintenanceCircuitimpactCreateJSONRequestBody defines body for PluginsCircuitMaintenanceCircuitimpactCreate for application/json ContentType. -type PluginsCircuitMaintenanceCircuitimpactCreateJSONRequestBody = CircuitMaintenanceCircuitImpactRequest - -// PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceCircuitimpactBulkUpdate for application/json ContentType. -type PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONRequestBody = PluginsCircuitMaintenanceCircuitimpactBulkUpdateJSONBody - -// PluginsCircuitMaintenanceCircuitimpactPartialUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceCircuitimpactPartialUpdate for application/json ContentType. -type PluginsCircuitMaintenanceCircuitimpactPartialUpdateJSONRequestBody = PatchedCircuitMaintenanceCircuitImpactRequest - -// PluginsCircuitMaintenanceCircuitimpactUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceCircuitimpactUpdate for application/json ContentType. -type PluginsCircuitMaintenanceCircuitimpactUpdateJSONRequestBody = CircuitMaintenanceCircuitImpactRequest - -// PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONRequestBody defines body for PluginsCircuitMaintenanceMaintenanceBulkDestroy for application/json ContentType. -type PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONRequestBody = PluginsCircuitMaintenanceMaintenanceBulkDestroyJSONBody - -// PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceMaintenanceBulkPartialUpdate for application/json ContentType. -type PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONRequestBody = PluginsCircuitMaintenanceMaintenanceBulkPartialUpdateJSONBody - -// PluginsCircuitMaintenanceMaintenanceCreateJSONRequestBody defines body for PluginsCircuitMaintenanceMaintenanceCreate for application/json ContentType. -type PluginsCircuitMaintenanceMaintenanceCreateJSONRequestBody = CircuitMaintenanceRequest - -// PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceMaintenanceBulkUpdate for application/json ContentType. -type PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONRequestBody = PluginsCircuitMaintenanceMaintenanceBulkUpdateJSONBody - -// PluginsCircuitMaintenanceMaintenancePartialUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceMaintenancePartialUpdate for application/json ContentType. -type PluginsCircuitMaintenanceMaintenancePartialUpdateJSONRequestBody = PatchedCircuitMaintenanceRequest - -// PluginsCircuitMaintenanceMaintenanceUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceMaintenanceUpdate for application/json ContentType. -type PluginsCircuitMaintenanceMaintenanceUpdateJSONRequestBody = CircuitMaintenanceRequest - -// PluginsCircuitMaintenanceNoteBulkDestroyJSONRequestBody defines body for PluginsCircuitMaintenanceNoteBulkDestroy for application/json ContentType. -type PluginsCircuitMaintenanceNoteBulkDestroyJSONRequestBody = PluginsCircuitMaintenanceNoteBulkDestroyJSONBody - -// PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceNoteBulkPartialUpdate for application/json ContentType. -type PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONRequestBody = PluginsCircuitMaintenanceNoteBulkPartialUpdateJSONBody - -// PluginsCircuitMaintenanceNoteCreateJSONRequestBody defines body for PluginsCircuitMaintenanceNoteCreate for application/json ContentType. -type PluginsCircuitMaintenanceNoteCreateJSONRequestBody = NoteRequest - -// PluginsCircuitMaintenanceNoteBulkUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceNoteBulkUpdate for application/json ContentType. -type PluginsCircuitMaintenanceNoteBulkUpdateJSONRequestBody = PluginsCircuitMaintenanceNoteBulkUpdateJSONBody - -// PluginsCircuitMaintenanceNotePartialUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceNotePartialUpdate for application/json ContentType. -type PluginsCircuitMaintenanceNotePartialUpdateJSONRequestBody = PatchedNoteRequest - -// PluginsCircuitMaintenanceNoteUpdateJSONRequestBody defines body for PluginsCircuitMaintenanceNoteUpdate for application/json ContentType. -type PluginsCircuitMaintenanceNoteUpdateJSONRequestBody = NoteRequest - -// PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONRequestBody defines body for PluginsDataValidationEngineRulesMinMaxBulkDestroy for application/json ContentType. -type PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONRequestBody = PluginsDataValidationEngineRulesMinMaxBulkDestroyJSONBody - -// PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesMinMaxBulkPartialUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONRequestBody = PluginsDataValidationEngineRulesMinMaxBulkPartialUpdateJSONBody - -// PluginsDataValidationEngineRulesMinMaxCreateJSONRequestBody defines body for PluginsDataValidationEngineRulesMinMaxCreate for application/json ContentType. -type PluginsDataValidationEngineRulesMinMaxCreateJSONRequestBody = MinMaxValidationRuleRequest - -// PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesMinMaxBulkUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONRequestBody = PluginsDataValidationEngineRulesMinMaxBulkUpdateJSONBody - -// PluginsDataValidationEngineRulesMinMaxPartialUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesMinMaxPartialUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesMinMaxPartialUpdateJSONRequestBody = PatchedMinMaxValidationRuleRequest - -// PluginsDataValidationEngineRulesMinMaxUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesMinMaxUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesMinMaxUpdateJSONRequestBody = MinMaxValidationRuleRequest - -// PluginsDataValidationEngineRulesRegexBulkDestroyJSONRequestBody defines body for PluginsDataValidationEngineRulesRegexBulkDestroy for application/json ContentType. -type PluginsDataValidationEngineRulesRegexBulkDestroyJSONRequestBody = PluginsDataValidationEngineRulesRegexBulkDestroyJSONBody - -// PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesRegexBulkPartialUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONRequestBody = PluginsDataValidationEngineRulesRegexBulkPartialUpdateJSONBody - -// PluginsDataValidationEngineRulesRegexCreateJSONRequestBody defines body for PluginsDataValidationEngineRulesRegexCreate for application/json ContentType. -type PluginsDataValidationEngineRulesRegexCreateJSONRequestBody = RegularExpressionValidationRuleRequest - -// PluginsDataValidationEngineRulesRegexBulkUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesRegexBulkUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesRegexBulkUpdateJSONRequestBody = PluginsDataValidationEngineRulesRegexBulkUpdateJSONBody - -// PluginsDataValidationEngineRulesRegexPartialUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesRegexPartialUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesRegexPartialUpdateJSONRequestBody = PatchedRegularExpressionValidationRuleRequest - -// PluginsDataValidationEngineRulesRegexUpdateJSONRequestBody defines body for PluginsDataValidationEngineRulesRegexUpdate for application/json ContentType. -type PluginsDataValidationEngineRulesRegexUpdateJSONRequestBody = RegularExpressionValidationRuleRequest - -// PluginsDeviceOnboardingOnboardingCreateJSONRequestBody defines body for PluginsDeviceOnboardingOnboardingCreate for application/json ContentType. -type PluginsDeviceOnboardingOnboardingCreateJSONRequestBody = OnboardingTaskRequest - -// PluginsFirewallAddressObjectGroupBulkDestroyJSONRequestBody defines body for PluginsFirewallAddressObjectGroupBulkDestroy for application/json ContentType. -type PluginsFirewallAddressObjectGroupBulkDestroyJSONRequestBody = PluginsFirewallAddressObjectGroupBulkDestroyJSONBody - -// PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectGroupBulkPartialUpdate for application/json ContentType. -type PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONRequestBody = PluginsFirewallAddressObjectGroupBulkPartialUpdateJSONBody - -// PluginsFirewallAddressObjectGroupCreateJSONRequestBody defines body for PluginsFirewallAddressObjectGroupCreate for application/json ContentType. -type PluginsFirewallAddressObjectGroupCreateJSONRequestBody = WritableAddressObjectGroupRequest - -// PluginsFirewallAddressObjectGroupBulkUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectGroupBulkUpdate for application/json ContentType. -type PluginsFirewallAddressObjectGroupBulkUpdateJSONRequestBody = PluginsFirewallAddressObjectGroupBulkUpdateJSONBody - -// PluginsFirewallAddressObjectGroupPartialUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectGroupPartialUpdate for application/json ContentType. -type PluginsFirewallAddressObjectGroupPartialUpdateJSONRequestBody = PatchedWritableAddressObjectGroupRequest - -// PluginsFirewallAddressObjectGroupUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectGroupUpdate for application/json ContentType. -type PluginsFirewallAddressObjectGroupUpdateJSONRequestBody = WritableAddressObjectGroupRequest - -// PluginsFirewallAddressObjectGroupNotesCreateJSONRequestBody defines body for PluginsFirewallAddressObjectGroupNotesCreate for application/json ContentType. -type PluginsFirewallAddressObjectGroupNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallAddressObjectBulkDestroyJSONRequestBody defines body for PluginsFirewallAddressObjectBulkDestroy for application/json ContentType. -type PluginsFirewallAddressObjectBulkDestroyJSONRequestBody = PluginsFirewallAddressObjectBulkDestroyJSONBody - -// PluginsFirewallAddressObjectBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectBulkPartialUpdate for application/json ContentType. -type PluginsFirewallAddressObjectBulkPartialUpdateJSONRequestBody = PluginsFirewallAddressObjectBulkPartialUpdateJSONBody - -// PluginsFirewallAddressObjectCreateJSONRequestBody defines body for PluginsFirewallAddressObjectCreate for application/json ContentType. -type PluginsFirewallAddressObjectCreateJSONRequestBody = WritableAddressObjectRequest - -// PluginsFirewallAddressObjectBulkUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectBulkUpdate for application/json ContentType. -type PluginsFirewallAddressObjectBulkUpdateJSONRequestBody = PluginsFirewallAddressObjectBulkUpdateJSONBody - -// PluginsFirewallAddressObjectPartialUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectPartialUpdate for application/json ContentType. -type PluginsFirewallAddressObjectPartialUpdateJSONRequestBody = PatchedWritableAddressObjectRequest - -// PluginsFirewallAddressObjectUpdateJSONRequestBody defines body for PluginsFirewallAddressObjectUpdate for application/json ContentType. -type PluginsFirewallAddressObjectUpdateJSONRequestBody = WritableAddressObjectRequest - -// PluginsFirewallAddressObjectNotesCreateJSONRequestBody defines body for PluginsFirewallAddressObjectNotesCreate for application/json ContentType. -type PluginsFirewallAddressObjectNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallCapircaPolicyBulkDestroyJSONRequestBody defines body for PluginsFirewallCapircaPolicyBulkDestroy for application/json ContentType. -type PluginsFirewallCapircaPolicyBulkDestroyJSONRequestBody = PluginsFirewallCapircaPolicyBulkDestroyJSONBody - -// PluginsFirewallCapircaPolicyBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallCapircaPolicyBulkPartialUpdate for application/json ContentType. -type PluginsFirewallCapircaPolicyBulkPartialUpdateJSONRequestBody = PluginsFirewallCapircaPolicyBulkPartialUpdateJSONBody - -// PluginsFirewallCapircaPolicyCreateJSONRequestBody defines body for PluginsFirewallCapircaPolicyCreate for application/json ContentType. -type PluginsFirewallCapircaPolicyCreateJSONRequestBody = CapircaPolicyRequest - -// PluginsFirewallCapircaPolicyBulkUpdateJSONRequestBody defines body for PluginsFirewallCapircaPolicyBulkUpdate for application/json ContentType. -type PluginsFirewallCapircaPolicyBulkUpdateJSONRequestBody = PluginsFirewallCapircaPolicyBulkUpdateJSONBody - -// PluginsFirewallCapircaPolicyPartialUpdateJSONRequestBody defines body for PluginsFirewallCapircaPolicyPartialUpdate for application/json ContentType. -type PluginsFirewallCapircaPolicyPartialUpdateJSONRequestBody = PatchedCapircaPolicyRequest - -// PluginsFirewallCapircaPolicyUpdateJSONRequestBody defines body for PluginsFirewallCapircaPolicyUpdate for application/json ContentType. -type PluginsFirewallCapircaPolicyUpdateJSONRequestBody = CapircaPolicyRequest - -// PluginsFirewallFqdnBulkDestroyJSONRequestBody defines body for PluginsFirewallFqdnBulkDestroy for application/json ContentType. -type PluginsFirewallFqdnBulkDestroyJSONRequestBody = PluginsFirewallFqdnBulkDestroyJSONBody - -// PluginsFirewallFqdnBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallFqdnBulkPartialUpdate for application/json ContentType. -type PluginsFirewallFqdnBulkPartialUpdateJSONRequestBody = PluginsFirewallFqdnBulkPartialUpdateJSONBody - -// PluginsFirewallFqdnCreateJSONRequestBody defines body for PluginsFirewallFqdnCreate for application/json ContentType. -type PluginsFirewallFqdnCreateJSONRequestBody = WritableFQDNRequest - -// PluginsFirewallFqdnBulkUpdateJSONRequestBody defines body for PluginsFirewallFqdnBulkUpdate for application/json ContentType. -type PluginsFirewallFqdnBulkUpdateJSONRequestBody = PluginsFirewallFqdnBulkUpdateJSONBody - -// PluginsFirewallFqdnPartialUpdateJSONRequestBody defines body for PluginsFirewallFqdnPartialUpdate for application/json ContentType. -type PluginsFirewallFqdnPartialUpdateJSONRequestBody = PatchedWritableFQDNRequest - -// PluginsFirewallFqdnUpdateJSONRequestBody defines body for PluginsFirewallFqdnUpdate for application/json ContentType. -type PluginsFirewallFqdnUpdateJSONRequestBody = WritableFQDNRequest - -// PluginsFirewallFqdnNotesCreateJSONRequestBody defines body for PluginsFirewallFqdnNotesCreate for application/json ContentType. -type PluginsFirewallFqdnNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallIpRangeBulkDestroyJSONRequestBody defines body for PluginsFirewallIpRangeBulkDestroy for application/json ContentType. -type PluginsFirewallIpRangeBulkDestroyJSONRequestBody = PluginsFirewallIpRangeBulkDestroyJSONBody - -// PluginsFirewallIpRangeBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallIpRangeBulkPartialUpdate for application/json ContentType. -type PluginsFirewallIpRangeBulkPartialUpdateJSONRequestBody = PluginsFirewallIpRangeBulkPartialUpdateJSONBody - -// PluginsFirewallIpRangeCreateJSONRequestBody defines body for PluginsFirewallIpRangeCreate for application/json ContentType. -type PluginsFirewallIpRangeCreateJSONRequestBody = IPRangeRequest - -// PluginsFirewallIpRangeBulkUpdateJSONRequestBody defines body for PluginsFirewallIpRangeBulkUpdate for application/json ContentType. -type PluginsFirewallIpRangeBulkUpdateJSONRequestBody = PluginsFirewallIpRangeBulkUpdateJSONBody - -// PluginsFirewallIpRangePartialUpdateJSONRequestBody defines body for PluginsFirewallIpRangePartialUpdate for application/json ContentType. -type PluginsFirewallIpRangePartialUpdateJSONRequestBody = PatchedIPRangeRequest - -// PluginsFirewallIpRangeUpdateJSONRequestBody defines body for PluginsFirewallIpRangeUpdate for application/json ContentType. -type PluginsFirewallIpRangeUpdateJSONRequestBody = IPRangeRequest - -// PluginsFirewallIpRangeNotesCreateJSONRequestBody defines body for PluginsFirewallIpRangeNotesCreate for application/json ContentType. -type PluginsFirewallIpRangeNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallNatPolicyRuleBulkDestroyJSONRequestBody defines body for PluginsFirewallNatPolicyRuleBulkDestroy for application/json ContentType. -type PluginsFirewallNatPolicyRuleBulkDestroyJSONRequestBody = PluginsFirewallNatPolicyRuleBulkDestroyJSONBody - -// PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyRuleBulkPartialUpdate for application/json ContentType. -type PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONRequestBody = PluginsFirewallNatPolicyRuleBulkPartialUpdateJSONBody - -// PluginsFirewallNatPolicyRuleCreateJSONRequestBody defines body for PluginsFirewallNatPolicyRuleCreate for application/json ContentType. -type PluginsFirewallNatPolicyRuleCreateJSONRequestBody = WritableNATPolicyRuleRequest - -// PluginsFirewallNatPolicyRuleBulkUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyRuleBulkUpdate for application/json ContentType. -type PluginsFirewallNatPolicyRuleBulkUpdateJSONRequestBody = PluginsFirewallNatPolicyRuleBulkUpdateJSONBody - -// PluginsFirewallNatPolicyRulePartialUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyRulePartialUpdate for application/json ContentType. -type PluginsFirewallNatPolicyRulePartialUpdateJSONRequestBody = PatchedWritableNATPolicyRuleRequest - -// PluginsFirewallNatPolicyRuleUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyRuleUpdate for application/json ContentType. -type PluginsFirewallNatPolicyRuleUpdateJSONRequestBody = WritableNATPolicyRuleRequest - -// PluginsFirewallNatPolicyRuleNotesCreateJSONRequestBody defines body for PluginsFirewallNatPolicyRuleNotesCreate for application/json ContentType. -type PluginsFirewallNatPolicyRuleNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallNatPolicyBulkDestroyJSONRequestBody defines body for PluginsFirewallNatPolicyBulkDestroy for application/json ContentType. -type PluginsFirewallNatPolicyBulkDestroyJSONRequestBody = PluginsFirewallNatPolicyBulkDestroyJSONBody - -// PluginsFirewallNatPolicyBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyBulkPartialUpdate for application/json ContentType. -type PluginsFirewallNatPolicyBulkPartialUpdateJSONRequestBody = PluginsFirewallNatPolicyBulkPartialUpdateJSONBody - -// PluginsFirewallNatPolicyCreateJSONRequestBody defines body for PluginsFirewallNatPolicyCreate for application/json ContentType. -type PluginsFirewallNatPolicyCreateJSONRequestBody = NATPolicyRequest - -// PluginsFirewallNatPolicyBulkUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyBulkUpdate for application/json ContentType. -type PluginsFirewallNatPolicyBulkUpdateJSONRequestBody = PluginsFirewallNatPolicyBulkUpdateJSONBody - -// PluginsFirewallNatPolicyPartialUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyPartialUpdate for application/json ContentType. -type PluginsFirewallNatPolicyPartialUpdateJSONRequestBody = PatchedNATPolicyRequest - -// PluginsFirewallNatPolicyUpdateJSONRequestBody defines body for PluginsFirewallNatPolicyUpdate for application/json ContentType. -type PluginsFirewallNatPolicyUpdateJSONRequestBody = NATPolicyRequest - -// PluginsFirewallNatPolicyNotesCreateJSONRequestBody defines body for PluginsFirewallNatPolicyNotesCreate for application/json ContentType. -type PluginsFirewallNatPolicyNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallPolicyRuleBulkDestroyJSONRequestBody defines body for PluginsFirewallPolicyRuleBulkDestroy for application/json ContentType. -type PluginsFirewallPolicyRuleBulkDestroyJSONRequestBody = PluginsFirewallPolicyRuleBulkDestroyJSONBody - -// PluginsFirewallPolicyRuleBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallPolicyRuleBulkPartialUpdate for application/json ContentType. -type PluginsFirewallPolicyRuleBulkPartialUpdateJSONRequestBody = PluginsFirewallPolicyRuleBulkPartialUpdateJSONBody - -// PluginsFirewallPolicyRuleCreateJSONRequestBody defines body for PluginsFirewallPolicyRuleCreate for application/json ContentType. -type PluginsFirewallPolicyRuleCreateJSONRequestBody = WritablePolicyRuleRequest - -// PluginsFirewallPolicyRuleBulkUpdateJSONRequestBody defines body for PluginsFirewallPolicyRuleBulkUpdate for application/json ContentType. -type PluginsFirewallPolicyRuleBulkUpdateJSONRequestBody = PluginsFirewallPolicyRuleBulkUpdateJSONBody - -// PluginsFirewallPolicyRulePartialUpdateJSONRequestBody defines body for PluginsFirewallPolicyRulePartialUpdate for application/json ContentType. -type PluginsFirewallPolicyRulePartialUpdateJSONRequestBody = PatchedWritablePolicyRuleRequest - -// PluginsFirewallPolicyRuleUpdateJSONRequestBody defines body for PluginsFirewallPolicyRuleUpdate for application/json ContentType. -type PluginsFirewallPolicyRuleUpdateJSONRequestBody = WritablePolicyRuleRequest - -// PluginsFirewallPolicyRuleNotesCreateJSONRequestBody defines body for PluginsFirewallPolicyRuleNotesCreate for application/json ContentType. -type PluginsFirewallPolicyRuleNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallPolicyBulkDestroyJSONRequestBody defines body for PluginsFirewallPolicyBulkDestroy for application/json ContentType. -type PluginsFirewallPolicyBulkDestroyJSONRequestBody = PluginsFirewallPolicyBulkDestroyJSONBody - -// PluginsFirewallPolicyBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallPolicyBulkPartialUpdate for application/json ContentType. -type PluginsFirewallPolicyBulkPartialUpdateJSONRequestBody = PluginsFirewallPolicyBulkPartialUpdateJSONBody - -// PluginsFirewallPolicyCreateJSONRequestBody defines body for PluginsFirewallPolicyCreate for application/json ContentType. -type PluginsFirewallPolicyCreateJSONRequestBody = PolicyRequest - -// PluginsFirewallPolicyBulkUpdateJSONRequestBody defines body for PluginsFirewallPolicyBulkUpdate for application/json ContentType. -type PluginsFirewallPolicyBulkUpdateJSONRequestBody = PluginsFirewallPolicyBulkUpdateJSONBody - -// PluginsFirewallPolicyPartialUpdateJSONRequestBody defines body for PluginsFirewallPolicyPartialUpdate for application/json ContentType. -type PluginsFirewallPolicyPartialUpdateJSONRequestBody = PatchedPolicyRequest - -// PluginsFirewallPolicyUpdateJSONRequestBody defines body for PluginsFirewallPolicyUpdate for application/json ContentType. -type PluginsFirewallPolicyUpdateJSONRequestBody = PolicyRequest - -// PluginsFirewallPolicyNotesCreateJSONRequestBody defines body for PluginsFirewallPolicyNotesCreate for application/json ContentType. -type PluginsFirewallPolicyNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallServiceObjectGroupBulkDestroyJSONRequestBody defines body for PluginsFirewallServiceObjectGroupBulkDestroy for application/json ContentType. -type PluginsFirewallServiceObjectGroupBulkDestroyJSONRequestBody = PluginsFirewallServiceObjectGroupBulkDestroyJSONBody - -// PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectGroupBulkPartialUpdate for application/json ContentType. -type PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONRequestBody = PluginsFirewallServiceObjectGroupBulkPartialUpdateJSONBody - -// PluginsFirewallServiceObjectGroupCreateJSONRequestBody defines body for PluginsFirewallServiceObjectGroupCreate for application/json ContentType. -type PluginsFirewallServiceObjectGroupCreateJSONRequestBody = WritableServiceObjectGroupRequest - -// PluginsFirewallServiceObjectGroupBulkUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectGroupBulkUpdate for application/json ContentType. -type PluginsFirewallServiceObjectGroupBulkUpdateJSONRequestBody = PluginsFirewallServiceObjectGroupBulkUpdateJSONBody - -// PluginsFirewallServiceObjectGroupPartialUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectGroupPartialUpdate for application/json ContentType. -type PluginsFirewallServiceObjectGroupPartialUpdateJSONRequestBody = PatchedWritableServiceObjectGroupRequest - -// PluginsFirewallServiceObjectGroupUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectGroupUpdate for application/json ContentType. -type PluginsFirewallServiceObjectGroupUpdateJSONRequestBody = WritableServiceObjectGroupRequest - -// PluginsFirewallServiceObjectGroupNotesCreateJSONRequestBody defines body for PluginsFirewallServiceObjectGroupNotesCreate for application/json ContentType. -type PluginsFirewallServiceObjectGroupNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallServiceObjectBulkDestroyJSONRequestBody defines body for PluginsFirewallServiceObjectBulkDestroy for application/json ContentType. -type PluginsFirewallServiceObjectBulkDestroyJSONRequestBody = PluginsFirewallServiceObjectBulkDestroyJSONBody - -// PluginsFirewallServiceObjectBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectBulkPartialUpdate for application/json ContentType. -type PluginsFirewallServiceObjectBulkPartialUpdateJSONRequestBody = PluginsFirewallServiceObjectBulkPartialUpdateJSONBody - -// PluginsFirewallServiceObjectCreateJSONRequestBody defines body for PluginsFirewallServiceObjectCreate for application/json ContentType. -type PluginsFirewallServiceObjectCreateJSONRequestBody = ServiceObjectRequest - -// PluginsFirewallServiceObjectBulkUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectBulkUpdate for application/json ContentType. -type PluginsFirewallServiceObjectBulkUpdateJSONRequestBody = PluginsFirewallServiceObjectBulkUpdateJSONBody - -// PluginsFirewallServiceObjectPartialUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectPartialUpdate for application/json ContentType. -type PluginsFirewallServiceObjectPartialUpdateJSONRequestBody = PatchedServiceObjectRequest - -// PluginsFirewallServiceObjectUpdateJSONRequestBody defines body for PluginsFirewallServiceObjectUpdate for application/json ContentType. -type PluginsFirewallServiceObjectUpdateJSONRequestBody = ServiceObjectRequest - -// PluginsFirewallServiceObjectNotesCreateJSONRequestBody defines body for PluginsFirewallServiceObjectNotesCreate for application/json ContentType. -type PluginsFirewallServiceObjectNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallUserObjectGroupBulkDestroyJSONRequestBody defines body for PluginsFirewallUserObjectGroupBulkDestroy for application/json ContentType. -type PluginsFirewallUserObjectGroupBulkDestroyJSONRequestBody = PluginsFirewallUserObjectGroupBulkDestroyJSONBody - -// PluginsFirewallUserObjectGroupBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallUserObjectGroupBulkPartialUpdate for application/json ContentType. -type PluginsFirewallUserObjectGroupBulkPartialUpdateJSONRequestBody = PluginsFirewallUserObjectGroupBulkPartialUpdateJSONBody - -// PluginsFirewallUserObjectGroupCreateJSONRequestBody defines body for PluginsFirewallUserObjectGroupCreate for application/json ContentType. -type PluginsFirewallUserObjectGroupCreateJSONRequestBody = WritableUserObjectGroupRequest - -// PluginsFirewallUserObjectGroupBulkUpdateJSONRequestBody defines body for PluginsFirewallUserObjectGroupBulkUpdate for application/json ContentType. -type PluginsFirewallUserObjectGroupBulkUpdateJSONRequestBody = PluginsFirewallUserObjectGroupBulkUpdateJSONBody - -// PluginsFirewallUserObjectGroupPartialUpdateJSONRequestBody defines body for PluginsFirewallUserObjectGroupPartialUpdate for application/json ContentType. -type PluginsFirewallUserObjectGroupPartialUpdateJSONRequestBody = PatchedWritableUserObjectGroupRequest - -// PluginsFirewallUserObjectGroupUpdateJSONRequestBody defines body for PluginsFirewallUserObjectGroupUpdate for application/json ContentType. -type PluginsFirewallUserObjectGroupUpdateJSONRequestBody = WritableUserObjectGroupRequest - -// PluginsFirewallUserObjectGroupNotesCreateJSONRequestBody defines body for PluginsFirewallUserObjectGroupNotesCreate for application/json ContentType. -type PluginsFirewallUserObjectGroupNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallUserObjectBulkDestroyJSONRequestBody defines body for PluginsFirewallUserObjectBulkDestroy for application/json ContentType. -type PluginsFirewallUserObjectBulkDestroyJSONRequestBody = PluginsFirewallUserObjectBulkDestroyJSONBody - -// PluginsFirewallUserObjectBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallUserObjectBulkPartialUpdate for application/json ContentType. -type PluginsFirewallUserObjectBulkPartialUpdateJSONRequestBody = PluginsFirewallUserObjectBulkPartialUpdateJSONBody - -// PluginsFirewallUserObjectCreateJSONRequestBody defines body for PluginsFirewallUserObjectCreate for application/json ContentType. -type PluginsFirewallUserObjectCreateJSONRequestBody = UserObjectRequest - -// PluginsFirewallUserObjectBulkUpdateJSONRequestBody defines body for PluginsFirewallUserObjectBulkUpdate for application/json ContentType. -type PluginsFirewallUserObjectBulkUpdateJSONRequestBody = PluginsFirewallUserObjectBulkUpdateJSONBody - -// PluginsFirewallUserObjectPartialUpdateJSONRequestBody defines body for PluginsFirewallUserObjectPartialUpdate for application/json ContentType. -type PluginsFirewallUserObjectPartialUpdateJSONRequestBody = PatchedUserObjectRequest - -// PluginsFirewallUserObjectUpdateJSONRequestBody defines body for PluginsFirewallUserObjectUpdate for application/json ContentType. -type PluginsFirewallUserObjectUpdateJSONRequestBody = UserObjectRequest - -// PluginsFirewallUserObjectNotesCreateJSONRequestBody defines body for PluginsFirewallUserObjectNotesCreate for application/json ContentType. -type PluginsFirewallUserObjectNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsFirewallZoneBulkDestroyJSONRequestBody defines body for PluginsFirewallZoneBulkDestroy for application/json ContentType. -type PluginsFirewallZoneBulkDestroyJSONRequestBody = PluginsFirewallZoneBulkDestroyJSONBody - -// PluginsFirewallZoneBulkPartialUpdateJSONRequestBody defines body for PluginsFirewallZoneBulkPartialUpdate for application/json ContentType. -type PluginsFirewallZoneBulkPartialUpdateJSONRequestBody = PluginsFirewallZoneBulkPartialUpdateJSONBody - -// PluginsFirewallZoneCreateJSONRequestBody defines body for PluginsFirewallZoneCreate for application/json ContentType. -type PluginsFirewallZoneCreateJSONRequestBody = ZoneRequest - -// PluginsFirewallZoneBulkUpdateJSONRequestBody defines body for PluginsFirewallZoneBulkUpdate for application/json ContentType. -type PluginsFirewallZoneBulkUpdateJSONRequestBody = PluginsFirewallZoneBulkUpdateJSONBody - -// PluginsFirewallZonePartialUpdateJSONRequestBody defines body for PluginsFirewallZonePartialUpdate for application/json ContentType. -type PluginsFirewallZonePartialUpdateJSONRequestBody = PatchedZoneRequest - -// PluginsFirewallZoneUpdateJSONRequestBody defines body for PluginsFirewallZoneUpdate for application/json ContentType. -type PluginsFirewallZoneUpdateJSONRequestBody = ZoneRequest - -// PluginsFirewallZoneNotesCreateJSONRequestBody defines body for PluginsFirewallZoneNotesCreate for application/json ContentType. -type PluginsFirewallZoneNotesCreateJSONRequestBody = NoteInputRequest - -// PluginsGoldenConfigComplianceFeatureBulkDestroyJSONRequestBody defines body for PluginsGoldenConfigComplianceFeatureBulkDestroy for application/json ContentType. -type PluginsGoldenConfigComplianceFeatureBulkDestroyJSONRequestBody = PluginsGoldenConfigComplianceFeatureBulkDestroyJSONBody - -// PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceFeatureBulkPartialUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONRequestBody = PluginsGoldenConfigComplianceFeatureBulkPartialUpdateJSONBody - -// PluginsGoldenConfigComplianceFeatureCreateJSONRequestBody defines body for PluginsGoldenConfigComplianceFeatureCreate for application/json ContentType. -type PluginsGoldenConfigComplianceFeatureCreateJSONRequestBody = ComplianceFeatureRequest - -// PluginsGoldenConfigComplianceFeatureBulkUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceFeatureBulkUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceFeatureBulkUpdateJSONRequestBody = PluginsGoldenConfigComplianceFeatureBulkUpdateJSONBody - -// PluginsGoldenConfigComplianceFeaturePartialUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceFeaturePartialUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceFeaturePartialUpdateJSONRequestBody = PatchedComplianceFeatureRequest - -// PluginsGoldenConfigComplianceFeatureUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceFeatureUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceFeatureUpdateJSONRequestBody = ComplianceFeatureRequest - -// PluginsGoldenConfigComplianceRuleBulkDestroyJSONRequestBody defines body for PluginsGoldenConfigComplianceRuleBulkDestroy for application/json ContentType. -type PluginsGoldenConfigComplianceRuleBulkDestroyJSONRequestBody = PluginsGoldenConfigComplianceRuleBulkDestroyJSONBody - -// PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceRuleBulkPartialUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONRequestBody = PluginsGoldenConfigComplianceRuleBulkPartialUpdateJSONBody - -// PluginsGoldenConfigComplianceRuleCreateJSONRequestBody defines body for PluginsGoldenConfigComplianceRuleCreate for application/json ContentType. -type PluginsGoldenConfigComplianceRuleCreateJSONRequestBody = ComplianceRuleRequest - -// PluginsGoldenConfigComplianceRuleBulkUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceRuleBulkUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceRuleBulkUpdateJSONRequestBody = PluginsGoldenConfigComplianceRuleBulkUpdateJSONBody - -// PluginsGoldenConfigComplianceRulePartialUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceRulePartialUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceRulePartialUpdateJSONRequestBody = PatchedComplianceRuleRequest - -// PluginsGoldenConfigComplianceRuleUpdateJSONRequestBody defines body for PluginsGoldenConfigComplianceRuleUpdate for application/json ContentType. -type PluginsGoldenConfigComplianceRuleUpdateJSONRequestBody = ComplianceRuleRequest - -// PluginsGoldenConfigConfigComplianceBulkDestroyJSONRequestBody defines body for PluginsGoldenConfigConfigComplianceBulkDestroy for application/json ContentType. -type PluginsGoldenConfigConfigComplianceBulkDestroyJSONRequestBody = PluginsGoldenConfigConfigComplianceBulkDestroyJSONBody - -// PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigComplianceBulkPartialUpdate for application/json ContentType. -type PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONRequestBody = PluginsGoldenConfigConfigComplianceBulkPartialUpdateJSONBody - -// PluginsGoldenConfigConfigComplianceCreateJSONRequestBody defines body for PluginsGoldenConfigConfigComplianceCreate for application/json ContentType. -type PluginsGoldenConfigConfigComplianceCreateJSONRequestBody = ConfigComplianceRequest - -// PluginsGoldenConfigConfigComplianceBulkUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigComplianceBulkUpdate for application/json ContentType. -type PluginsGoldenConfigConfigComplianceBulkUpdateJSONRequestBody = PluginsGoldenConfigConfigComplianceBulkUpdateJSONBody - -// PluginsGoldenConfigConfigCompliancePartialUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigCompliancePartialUpdate for application/json ContentType. -type PluginsGoldenConfigConfigCompliancePartialUpdateJSONRequestBody = PatchedConfigComplianceRequest - -// PluginsGoldenConfigConfigComplianceUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigComplianceUpdate for application/json ContentType. -type PluginsGoldenConfigConfigComplianceUpdateJSONRequestBody = ConfigComplianceRequest - -// PluginsGoldenConfigConfigRemoveBulkDestroyJSONRequestBody defines body for PluginsGoldenConfigConfigRemoveBulkDestroy for application/json ContentType. -type PluginsGoldenConfigConfigRemoveBulkDestroyJSONRequestBody = PluginsGoldenConfigConfigRemoveBulkDestroyJSONBody - -// PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigRemoveBulkPartialUpdate for application/json ContentType. -type PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONRequestBody = PluginsGoldenConfigConfigRemoveBulkPartialUpdateJSONBody - -// PluginsGoldenConfigConfigRemoveCreateJSONRequestBody defines body for PluginsGoldenConfigConfigRemoveCreate for application/json ContentType. -type PluginsGoldenConfigConfigRemoveCreateJSONRequestBody = ConfigRemoveRequest - -// PluginsGoldenConfigConfigRemoveBulkUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigRemoveBulkUpdate for application/json ContentType. -type PluginsGoldenConfigConfigRemoveBulkUpdateJSONRequestBody = PluginsGoldenConfigConfigRemoveBulkUpdateJSONBody - -// PluginsGoldenConfigConfigRemovePartialUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigRemovePartialUpdate for application/json ContentType. -type PluginsGoldenConfigConfigRemovePartialUpdateJSONRequestBody = PatchedConfigRemoveRequest - -// PluginsGoldenConfigConfigRemoveUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigRemoveUpdate for application/json ContentType. -type PluginsGoldenConfigConfigRemoveUpdateJSONRequestBody = ConfigRemoveRequest - -// PluginsGoldenConfigConfigReplaceBulkDestroyJSONRequestBody defines body for PluginsGoldenConfigConfigReplaceBulkDestroy for application/json ContentType. -type PluginsGoldenConfigConfigReplaceBulkDestroyJSONRequestBody = PluginsGoldenConfigConfigReplaceBulkDestroyJSONBody - -// PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigReplaceBulkPartialUpdate for application/json ContentType. -type PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONRequestBody = PluginsGoldenConfigConfigReplaceBulkPartialUpdateJSONBody - -// PluginsGoldenConfigConfigReplaceCreateJSONRequestBody defines body for PluginsGoldenConfigConfigReplaceCreate for application/json ContentType. -type PluginsGoldenConfigConfigReplaceCreateJSONRequestBody = ConfigReplaceRequest - -// PluginsGoldenConfigConfigReplaceBulkUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigReplaceBulkUpdate for application/json ContentType. -type PluginsGoldenConfigConfigReplaceBulkUpdateJSONRequestBody = PluginsGoldenConfigConfigReplaceBulkUpdateJSONBody - -// PluginsGoldenConfigConfigReplacePartialUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigReplacePartialUpdate for application/json ContentType. -type PluginsGoldenConfigConfigReplacePartialUpdateJSONRequestBody = PatchedConfigReplaceRequest - -// PluginsGoldenConfigConfigReplaceUpdateJSONRequestBody defines body for PluginsGoldenConfigConfigReplaceUpdate for application/json ContentType. -type PluginsGoldenConfigConfigReplaceUpdateJSONRequestBody = ConfigReplaceRequest - -// PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigSettingsBulkDestroy for application/json ContentType. -type PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONRequestBody = PluginsGoldenConfigGoldenConfigSettingsBulkDestroyJSONBody - -// PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONRequestBody = PluginsGoldenConfigGoldenConfigSettingsBulkPartialUpdateJSONBody - -// PluginsGoldenConfigGoldenConfigSettingsCreateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigSettingsCreate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigSettingsCreateJSONRequestBody = WritableGoldenConfigSettingRequest - -// PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigSettingsBulkUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONRequestBody = PluginsGoldenConfigGoldenConfigSettingsBulkUpdateJSONBody - -// PluginsGoldenConfigGoldenConfigSettingsPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigSettingsPartialUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigSettingsPartialUpdateJSONRequestBody = PatchedWritableGoldenConfigSettingRequest - -// PluginsGoldenConfigGoldenConfigSettingsUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigSettingsUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigSettingsUpdateJSONRequestBody = WritableGoldenConfigSettingRequest - -// PluginsGoldenConfigGoldenConfigBulkDestroyJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigBulkDestroy for application/json ContentType. -type PluginsGoldenConfigGoldenConfigBulkDestroyJSONRequestBody = PluginsGoldenConfigGoldenConfigBulkDestroyJSONBody - -// PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigBulkPartialUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONRequestBody = PluginsGoldenConfigGoldenConfigBulkPartialUpdateJSONBody - -// PluginsGoldenConfigGoldenConfigCreateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigCreate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigCreateJSONRequestBody = GoldenConfigRequest - -// PluginsGoldenConfigGoldenConfigBulkUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigBulkUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigBulkUpdateJSONRequestBody = PluginsGoldenConfigGoldenConfigBulkUpdateJSONBody - -// PluginsGoldenConfigGoldenConfigPartialUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigPartialUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigPartialUpdateJSONRequestBody = PatchedGoldenConfigRequest - -// PluginsGoldenConfigGoldenConfigUpdateJSONRequestBody defines body for PluginsGoldenConfigGoldenConfigUpdate for application/json ContentType. -type PluginsGoldenConfigGoldenConfigUpdateJSONRequestBody = GoldenConfigRequest - -// PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContactBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtContactBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtContactBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtContactCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContactCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContactCreateJSONRequestBody = WritableContactLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContactBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtContactBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContactPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContactPartialUpdateJSONRequestBody = PatchedWritableContactLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContactUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContactUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContactUpdateJSONRequestBody = WritableContactLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContractBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtContractBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtContractBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtContractCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContractCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContractCreateJSONRequestBody = WritableContractLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContractBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtContractBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContractPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContractPartialUpdateJSONRequestBody = PatchedWritableContractLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtContractUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtContractUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtContractUpdateJSONRequestBody = WritableContractLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtCveBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtCveBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtCveBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtCveCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtCveCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtCveCreateJSONRequestBody = WritableCVELCMRequest - -// PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtCveBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtCveBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtCvePartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtCvePartialUpdateJSONRequestBody = PatchedWritableCVELCMRequest - -// PluginsNautobotDeviceLifecycleMgmtCveUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtCveUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtCveUpdateJSONRequestBody = WritableCVELCMRequest - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtHardwareBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtHardwareBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtHardwareCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtHardwareCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtHardwareCreateJSONRequestBody = WritableHardwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtHardwareBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtHardwarePartialUpdateJSONRequestBody = PatchedWritableHardwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtHardwareUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtHardwareUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtHardwareUpdateJSONRequestBody = WritableHardwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtProviderBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtProviderBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtProviderCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtProviderCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtProviderCreateJSONRequestBody = ProviderLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtProviderBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtProviderPartialUpdateJSONRequestBody = PatchedProviderLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtProviderUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtProviderUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtProviderUpdateJSONRequestBody = ProviderLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageCreateJSONRequestBody = WritableSoftwareImageLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtSoftwareImageBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImagePartialUpdateJSONRequestBody = PatchedWritableSoftwareImageLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareImageUpdateJSONRequestBody = WritableSoftwareImageLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtSoftwareBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtSoftwareBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtSoftwareCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareCreateJSONRequestBody = WritableSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtSoftwareBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwarePartialUpdateJSONRequestBody = PatchedWritableSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtSoftwareUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtSoftwareUpdateJSONRequestBody = WritableSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareCreateJSONRequestBody = WritableValidatedSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwarePartialUpdateJSONRequestBody = PatchedWritableValidatedSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtValidatedSoftwareUpdateJSONRequestBody = WritableValidatedSoftwareLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroy for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkDestroyJSONBody - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkPartialUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONRequestBody = PluginsNautobotDeviceLifecycleMgmtVulnerabilityBulkUpdateJSONBody - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityPartialUpdateJSONRequestBody = PatchedVulnerabilityLCMRequest - -// PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateJSONRequestBody defines body for PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdate for application/json ContentType. -type PluginsNautobotDeviceLifecycleMgmtVulnerabilityUpdateJSONRequestBody = VulnerabilityLCMRequest - -// TenancyTenantGroupsBulkDestroyJSONRequestBody defines body for TenancyTenantGroupsBulkDestroy for application/json ContentType. -type TenancyTenantGroupsBulkDestroyJSONRequestBody = TenancyTenantGroupsBulkDestroyJSONBody - -// TenancyTenantGroupsBulkPartialUpdateJSONRequestBody defines body for TenancyTenantGroupsBulkPartialUpdate for application/json ContentType. -type TenancyTenantGroupsBulkPartialUpdateJSONRequestBody = TenancyTenantGroupsBulkPartialUpdateJSONBody - -// TenancyTenantGroupsCreateJSONRequestBody defines body for TenancyTenantGroupsCreate for application/json ContentType. -type TenancyTenantGroupsCreateJSONRequestBody = WritableTenantGroupRequest - -// TenancyTenantGroupsBulkUpdateJSONRequestBody defines body for TenancyTenantGroupsBulkUpdate for application/json ContentType. -type TenancyTenantGroupsBulkUpdateJSONRequestBody = TenancyTenantGroupsBulkUpdateJSONBody - -// TenancyTenantGroupsPartialUpdateJSONRequestBody defines body for TenancyTenantGroupsPartialUpdate for application/json ContentType. -type TenancyTenantGroupsPartialUpdateJSONRequestBody = PatchedWritableTenantGroupRequest - -// TenancyTenantGroupsUpdateJSONRequestBody defines body for TenancyTenantGroupsUpdate for application/json ContentType. -type TenancyTenantGroupsUpdateJSONRequestBody = WritableTenantGroupRequest - -// TenancyTenantGroupsNotesCreateJSONRequestBody defines body for TenancyTenantGroupsNotesCreate for application/json ContentType. -type TenancyTenantGroupsNotesCreateJSONRequestBody = NoteInputRequest - -// TenancyTenantsBulkDestroyJSONRequestBody defines body for TenancyTenantsBulkDestroy for application/json ContentType. -type TenancyTenantsBulkDestroyJSONRequestBody = TenancyTenantsBulkDestroyJSONBody - -// TenancyTenantsBulkPartialUpdateJSONRequestBody defines body for TenancyTenantsBulkPartialUpdate for application/json ContentType. -type TenancyTenantsBulkPartialUpdateJSONRequestBody = TenancyTenantsBulkPartialUpdateJSONBody - -// TenancyTenantsCreateJSONRequestBody defines body for TenancyTenantsCreate for application/json ContentType. -type TenancyTenantsCreateJSONRequestBody = WritableTenantRequest - -// TenancyTenantsBulkUpdateJSONRequestBody defines body for TenancyTenantsBulkUpdate for application/json ContentType. -type TenancyTenantsBulkUpdateJSONRequestBody = TenancyTenantsBulkUpdateJSONBody - -// TenancyTenantsPartialUpdateJSONRequestBody defines body for TenancyTenantsPartialUpdate for application/json ContentType. -type TenancyTenantsPartialUpdateJSONRequestBody = PatchedWritableTenantRequest - -// TenancyTenantsUpdateJSONRequestBody defines body for TenancyTenantsUpdate for application/json ContentType. -type TenancyTenantsUpdateJSONRequestBody = WritableTenantRequest - -// TenancyTenantsNotesCreateJSONRequestBody defines body for TenancyTenantsNotesCreate for application/json ContentType. -type TenancyTenantsNotesCreateJSONRequestBody = NoteInputRequest - -// UsersGroupsBulkDestroyJSONRequestBody defines body for UsersGroupsBulkDestroy for application/json ContentType. -type UsersGroupsBulkDestroyJSONRequestBody = UsersGroupsBulkDestroyJSONBody - -// UsersGroupsBulkPartialUpdateJSONRequestBody defines body for UsersGroupsBulkPartialUpdate for application/json ContentType. -type UsersGroupsBulkPartialUpdateJSONRequestBody = UsersGroupsBulkPartialUpdateJSONBody - -// UsersGroupsCreateJSONRequestBody defines body for UsersGroupsCreate for application/json ContentType. -type UsersGroupsCreateJSONRequestBody = GroupRequest - -// UsersGroupsBulkUpdateJSONRequestBody defines body for UsersGroupsBulkUpdate for application/json ContentType. -type UsersGroupsBulkUpdateJSONRequestBody = UsersGroupsBulkUpdateJSONBody - -// UsersGroupsPartialUpdateJSONRequestBody defines body for UsersGroupsPartialUpdate for application/json ContentType. -type UsersGroupsPartialUpdateJSONRequestBody = PatchedGroupRequest - -// UsersGroupsUpdateJSONRequestBody defines body for UsersGroupsUpdate for application/json ContentType. -type UsersGroupsUpdateJSONRequestBody = GroupRequest - -// UsersPermissionsBulkDestroyJSONRequestBody defines body for UsersPermissionsBulkDestroy for application/json ContentType. -type UsersPermissionsBulkDestroyJSONRequestBody = UsersPermissionsBulkDestroyJSONBody - -// UsersPermissionsBulkPartialUpdateJSONRequestBody defines body for UsersPermissionsBulkPartialUpdate for application/json ContentType. -type UsersPermissionsBulkPartialUpdateJSONRequestBody = UsersPermissionsBulkPartialUpdateJSONBody - -// UsersPermissionsCreateJSONRequestBody defines body for UsersPermissionsCreate for application/json ContentType. -type UsersPermissionsCreateJSONRequestBody = WritableObjectPermissionRequest - -// UsersPermissionsBulkUpdateJSONRequestBody defines body for UsersPermissionsBulkUpdate for application/json ContentType. -type UsersPermissionsBulkUpdateJSONRequestBody = UsersPermissionsBulkUpdateJSONBody - -// UsersPermissionsPartialUpdateJSONRequestBody defines body for UsersPermissionsPartialUpdate for application/json ContentType. -type UsersPermissionsPartialUpdateJSONRequestBody = PatchedWritableObjectPermissionRequest - -// UsersPermissionsUpdateJSONRequestBody defines body for UsersPermissionsUpdate for application/json ContentType. -type UsersPermissionsUpdateJSONRequestBody = WritableObjectPermissionRequest - -// UsersTokensBulkDestroyJSONRequestBody defines body for UsersTokensBulkDestroy for application/json ContentType. -type UsersTokensBulkDestroyJSONRequestBody = UsersTokensBulkDestroyJSONBody - -// UsersTokensBulkPartialUpdateJSONRequestBody defines body for UsersTokensBulkPartialUpdate for application/json ContentType. -type UsersTokensBulkPartialUpdateJSONRequestBody = UsersTokensBulkPartialUpdateJSONBody - -// UsersTokensCreateJSONRequestBody defines body for UsersTokensCreate for application/json ContentType. -type UsersTokensCreateJSONRequestBody = TokenRequest - -// UsersTokensBulkUpdateJSONRequestBody defines body for UsersTokensBulkUpdate for application/json ContentType. -type UsersTokensBulkUpdateJSONRequestBody = UsersTokensBulkUpdateJSONBody - -// UsersTokensPartialUpdateJSONRequestBody defines body for UsersTokensPartialUpdate for application/json ContentType. -type UsersTokensPartialUpdateJSONRequestBody = PatchedTokenRequest - -// UsersTokensUpdateJSONRequestBody defines body for UsersTokensUpdate for application/json ContentType. -type UsersTokensUpdateJSONRequestBody = TokenRequest - -// UsersUsersBulkDestroyJSONRequestBody defines body for UsersUsersBulkDestroy for application/json ContentType. -type UsersUsersBulkDestroyJSONRequestBody = UsersUsersBulkDestroyJSONBody - -// UsersUsersBulkPartialUpdateJSONRequestBody defines body for UsersUsersBulkPartialUpdate for application/json ContentType. -type UsersUsersBulkPartialUpdateJSONRequestBody = UsersUsersBulkPartialUpdateJSONBody - -// UsersUsersCreateJSONRequestBody defines body for UsersUsersCreate for application/json ContentType. -type UsersUsersCreateJSONRequestBody = WritableUserRequest - -// UsersUsersBulkUpdateJSONRequestBody defines body for UsersUsersBulkUpdate for application/json ContentType. -type UsersUsersBulkUpdateJSONRequestBody = UsersUsersBulkUpdateJSONBody - -// UsersUsersPartialUpdateJSONRequestBody defines body for UsersUsersPartialUpdate for application/json ContentType. -type UsersUsersPartialUpdateJSONRequestBody = PatchedWritableUserRequest - -// UsersUsersUpdateJSONRequestBody defines body for UsersUsersUpdate for application/json ContentType. -type UsersUsersUpdateJSONRequestBody = WritableUserRequest - -// VirtualizationClusterGroupsBulkDestroyJSONRequestBody defines body for VirtualizationClusterGroupsBulkDestroy for application/json ContentType. -type VirtualizationClusterGroupsBulkDestroyJSONRequestBody = VirtualizationClusterGroupsBulkDestroyJSONBody - -// VirtualizationClusterGroupsBulkPartialUpdateJSONRequestBody defines body for VirtualizationClusterGroupsBulkPartialUpdate for application/json ContentType. -type VirtualizationClusterGroupsBulkPartialUpdateJSONRequestBody = VirtualizationClusterGroupsBulkPartialUpdateJSONBody - -// VirtualizationClusterGroupsCreateJSONRequestBody defines body for VirtualizationClusterGroupsCreate for application/json ContentType. -type VirtualizationClusterGroupsCreateJSONRequestBody = ClusterGroupRequest - -// VirtualizationClusterGroupsBulkUpdateJSONRequestBody defines body for VirtualizationClusterGroupsBulkUpdate for application/json ContentType. -type VirtualizationClusterGroupsBulkUpdateJSONRequestBody = VirtualizationClusterGroupsBulkUpdateJSONBody - -// VirtualizationClusterGroupsPartialUpdateJSONRequestBody defines body for VirtualizationClusterGroupsPartialUpdate for application/json ContentType. -type VirtualizationClusterGroupsPartialUpdateJSONRequestBody = PatchedClusterGroupRequest - -// VirtualizationClusterGroupsUpdateJSONRequestBody defines body for VirtualizationClusterGroupsUpdate for application/json ContentType. -type VirtualizationClusterGroupsUpdateJSONRequestBody = ClusterGroupRequest - -// VirtualizationClusterGroupsNotesCreateJSONRequestBody defines body for VirtualizationClusterGroupsNotesCreate for application/json ContentType. -type VirtualizationClusterGroupsNotesCreateJSONRequestBody = NoteInputRequest - -// VirtualizationClusterTypesBulkDestroyJSONRequestBody defines body for VirtualizationClusterTypesBulkDestroy for application/json ContentType. -type VirtualizationClusterTypesBulkDestroyJSONRequestBody = VirtualizationClusterTypesBulkDestroyJSONBody - -// VirtualizationClusterTypesBulkPartialUpdateJSONRequestBody defines body for VirtualizationClusterTypesBulkPartialUpdate for application/json ContentType. -type VirtualizationClusterTypesBulkPartialUpdateJSONRequestBody = VirtualizationClusterTypesBulkPartialUpdateJSONBody - -// VirtualizationClusterTypesCreateJSONRequestBody defines body for VirtualizationClusterTypesCreate for application/json ContentType. -type VirtualizationClusterTypesCreateJSONRequestBody = ClusterTypeRequest - -// VirtualizationClusterTypesBulkUpdateJSONRequestBody defines body for VirtualizationClusterTypesBulkUpdate for application/json ContentType. -type VirtualizationClusterTypesBulkUpdateJSONRequestBody = VirtualizationClusterTypesBulkUpdateJSONBody - -// VirtualizationClusterTypesPartialUpdateJSONRequestBody defines body for VirtualizationClusterTypesPartialUpdate for application/json ContentType. -type VirtualizationClusterTypesPartialUpdateJSONRequestBody = PatchedClusterTypeRequest - -// VirtualizationClusterTypesUpdateJSONRequestBody defines body for VirtualizationClusterTypesUpdate for application/json ContentType. -type VirtualizationClusterTypesUpdateJSONRequestBody = ClusterTypeRequest - -// VirtualizationClusterTypesNotesCreateJSONRequestBody defines body for VirtualizationClusterTypesNotesCreate for application/json ContentType. -type VirtualizationClusterTypesNotesCreateJSONRequestBody = NoteInputRequest - -// VirtualizationClustersBulkDestroyJSONRequestBody defines body for VirtualizationClustersBulkDestroy for application/json ContentType. -type VirtualizationClustersBulkDestroyJSONRequestBody = VirtualizationClustersBulkDestroyJSONBody - -// VirtualizationClustersBulkPartialUpdateJSONRequestBody defines body for VirtualizationClustersBulkPartialUpdate for application/json ContentType. -type VirtualizationClustersBulkPartialUpdateJSONRequestBody = VirtualizationClustersBulkPartialUpdateJSONBody - -// VirtualizationClustersCreateJSONRequestBody defines body for VirtualizationClustersCreate for application/json ContentType. -type VirtualizationClustersCreateJSONRequestBody = WritableClusterRequest - -// VirtualizationClustersBulkUpdateJSONRequestBody defines body for VirtualizationClustersBulkUpdate for application/json ContentType. -type VirtualizationClustersBulkUpdateJSONRequestBody = VirtualizationClustersBulkUpdateJSONBody - -// VirtualizationClustersPartialUpdateJSONRequestBody defines body for VirtualizationClustersPartialUpdate for application/json ContentType. -type VirtualizationClustersPartialUpdateJSONRequestBody = PatchedWritableClusterRequest - -// VirtualizationClustersUpdateJSONRequestBody defines body for VirtualizationClustersUpdate for application/json ContentType. -type VirtualizationClustersUpdateJSONRequestBody = WritableClusterRequest - -// VirtualizationClustersNotesCreateJSONRequestBody defines body for VirtualizationClustersNotesCreate for application/json ContentType. -type VirtualizationClustersNotesCreateJSONRequestBody = NoteInputRequest - -// VirtualizationInterfacesBulkDestroyJSONRequestBody defines body for VirtualizationInterfacesBulkDestroy for application/json ContentType. -type VirtualizationInterfacesBulkDestroyJSONRequestBody = VirtualizationInterfacesBulkDestroyJSONBody - -// VirtualizationInterfacesBulkPartialUpdateJSONRequestBody defines body for VirtualizationInterfacesBulkPartialUpdate for application/json ContentType. -type VirtualizationInterfacesBulkPartialUpdateJSONRequestBody = VirtualizationInterfacesBulkPartialUpdateJSONBody - -// VirtualizationInterfacesCreateJSONRequestBody defines body for VirtualizationInterfacesCreate for application/json ContentType. -type VirtualizationInterfacesCreateJSONRequestBody = WritableVMInterfaceRequest - -// VirtualizationInterfacesBulkUpdateJSONRequestBody defines body for VirtualizationInterfacesBulkUpdate for application/json ContentType. -type VirtualizationInterfacesBulkUpdateJSONRequestBody = VirtualizationInterfacesBulkUpdateJSONBody - -// VirtualizationInterfacesPartialUpdateJSONRequestBody defines body for VirtualizationInterfacesPartialUpdate for application/json ContentType. -type VirtualizationInterfacesPartialUpdateJSONRequestBody = PatchedWritableVMInterfaceRequest - -// VirtualizationInterfacesUpdateJSONRequestBody defines body for VirtualizationInterfacesUpdate for application/json ContentType. -type VirtualizationInterfacesUpdateJSONRequestBody = WritableVMInterfaceRequest - -// VirtualizationInterfacesNotesCreateJSONRequestBody defines body for VirtualizationInterfacesNotesCreate for application/json ContentType. -type VirtualizationInterfacesNotesCreateJSONRequestBody = NoteInputRequest - -// VirtualizationVirtualMachinesBulkDestroyJSONRequestBody defines body for VirtualizationVirtualMachinesBulkDestroy for application/json ContentType. -type VirtualizationVirtualMachinesBulkDestroyJSONRequestBody = VirtualizationVirtualMachinesBulkDestroyJSONBody - -// VirtualizationVirtualMachinesBulkPartialUpdateJSONRequestBody defines body for VirtualizationVirtualMachinesBulkPartialUpdate for application/json ContentType. -type VirtualizationVirtualMachinesBulkPartialUpdateJSONRequestBody = VirtualizationVirtualMachinesBulkPartialUpdateJSONBody - -// VirtualizationVirtualMachinesCreateJSONRequestBody defines body for VirtualizationVirtualMachinesCreate for application/json ContentType. -type VirtualizationVirtualMachinesCreateJSONRequestBody = WritableVirtualMachineWithConfigContextRequest - -// VirtualizationVirtualMachinesBulkUpdateJSONRequestBody defines body for VirtualizationVirtualMachinesBulkUpdate for application/json ContentType. -type VirtualizationVirtualMachinesBulkUpdateJSONRequestBody = VirtualizationVirtualMachinesBulkUpdateJSONBody - -// VirtualizationVirtualMachinesPartialUpdateJSONRequestBody defines body for VirtualizationVirtualMachinesPartialUpdate for application/json ContentType. -type VirtualizationVirtualMachinesPartialUpdateJSONRequestBody = PatchedWritableVirtualMachineWithConfigContextRequest - -// VirtualizationVirtualMachinesUpdateJSONRequestBody defines body for VirtualizationVirtualMachinesUpdate for application/json ContentType. -type VirtualizationVirtualMachinesUpdateJSONRequestBody = WritableVirtualMachineWithConfigContextRequest - -// VirtualizationVirtualMachinesNotesCreateJSONRequestBody defines body for VirtualizationVirtualMachinesNotesCreate for application/json ContentType. -type VirtualizationVirtualMachinesNotesCreateJSONRequestBody = NoteInputRequest - -// Getter for additional properties for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item -func (a *BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item -func (a *BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAggregateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAggregateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAggregateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableAggregateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAggregateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableAggregateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAggregateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAggregateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAggregateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableAggregateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAggregateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableAggregateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableAggregateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableAggregateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableAggregateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableAggregateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableAggregateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableAggregateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCVELCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCVELCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCVELCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableCVELCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCVELCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableCVELCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCableRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCableRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCableRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableCableRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCableRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableCableRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCableRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCableRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCableRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableCableRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCableRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableCableRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCableRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCableRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCableRequest_Relationships_Source_Objects_Item -func (a *BulkWritableCableRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCableRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableCableRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableCircuitRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableCircuitRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitRequest_Relationships_Source_Objects_Item -func (a *BulkWritableCircuitRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item -func (a *BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item -func (a *BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableClusterRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableClusterRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterRequest_Relationships_Source_Objects_Item -func (a *BulkWritableClusterRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item -func (a *BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item -func (a *BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsolePortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsolePortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsolePortRequest_Relationships_Source_Objects_Item -func (a *BulkWritableConsolePortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsolePortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsolePortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item -func (a *BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableContactLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableContactLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableContactLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableContactLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableContactLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableContactLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableContractLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableContractLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableContractLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableContractLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableContractLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableContractLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item -func (a *BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item -func (a *BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item -func (a *BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFQDNRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFQDNRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFQDNRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableFQDNRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFQDNRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableFQDNRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFQDNRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFQDNRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFQDNRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableFQDNRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFQDNRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableFQDNRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFQDNRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFQDNRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFQDNRequest_Relationships_Source_Objects_Item -func (a *BulkWritableFQDNRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFQDNRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableFQDNRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFrontPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFrontPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFrontPortRequest_Relationships_Source_Objects_Item -func (a *BulkWritableFrontPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFrontPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableFrontPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item -func (a *BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableIPAddressRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableIPAddressRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableIPAddressRequest_Relationships_Source_Objects_Item -func (a *BulkWritableIPAddressRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableIPAddressRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableIPAddressRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableIPRangeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableIPRangeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableIPRangeRequest_Relationships_Source_Objects_Item -func (a *BulkWritableIPRangeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableIPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableIPRangeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableIPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableIPRangeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInterfaceRequest_Relationships_Source_Objects_Item -func (a *BulkWritableInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item -func (a *BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableJobHookRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableJobHookRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableJobHookRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableJobHookRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableJobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableJobHookRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableJobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableJobHookRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableJobHookRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableJobHookRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableJobHookRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableJobHookRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableJobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableJobHookRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableJobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableJobHookRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableJobHookRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableJobHookRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableJobHookRequest_Relationships_Source_Objects_Item -func (a *BulkWritableJobHookRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableJobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableJobHookRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableJobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableJobHookRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableJobRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableJobRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableJobRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableJobRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableJobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableJobRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableJobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableJobRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableJobRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableJobRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableJobRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableJobRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableJobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableJobRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableJobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableJobRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableJobRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableJobRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableJobRequest_Relationships_Source_Objects_Item -func (a *BulkWritableJobRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableJobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableJobRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableJobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableJobRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableLocationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableLocationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableLocationRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableLocationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableLocationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableLocationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableLocationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableLocationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableLocationRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableLocationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableLocationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableLocationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableLocationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableLocationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableLocationRequest_Relationships_Source_Objects_Item -func (a *BulkWritableLocationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableLocationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableLocationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item -func (a *BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableManufacturerRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableManufacturerRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableManufacturerRequest_Relationships_Source_Objects_Item -func (a *BulkWritableManufacturerRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableManufacturerRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableManufacturerRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePlatformRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePlatformRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePlatformRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePlatformRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePlatformRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePlatformRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePlatformRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePlatformRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePlatformRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePlatformRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePlatformRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePlatformRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePlatformRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePlatformRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePlatformRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePlatformRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePlatformRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePlatformRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item -func (a *BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPortRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePowerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePrefixRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePrefixRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePrefixRequest_Relationships_Destination_Objects_Item -func (a *BulkWritablePrefixRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePrefixRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritablePrefixRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePrefixRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePrefixRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePrefixRequest_Relationships_Peer_Objects_Item -func (a *BulkWritablePrefixRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePrefixRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritablePrefixRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritablePrefixRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritablePrefixRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritablePrefixRequest_Relationships_Source_Objects_Item -func (a *BulkWritablePrefixRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritablePrefixRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritablePrefixRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item -func (a *BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableProviderRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableProviderRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableProviderRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableProviderRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableProviderRequest_Relationships_Source_Objects_Item -func (a *BulkWritableProviderRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableProviderRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableProviderRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRIRRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRIRRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRIRRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRIRRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRIRRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRIRRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRIRRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRIRRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRIRRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRIRRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRIRRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRIRRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRIRRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRIRRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRIRRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRIRRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRIRRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRIRRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRackGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRackRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRackRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRackRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackReservationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackReservationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackReservationRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRackReservationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackReservationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackReservationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRackRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRackRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRackRoleRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRackRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRackRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRackRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRearPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRearPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRearPortRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRearPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRearPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRearPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRearPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRearPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRearPortRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRearPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRearPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRearPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRearPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRearPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRearPortRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRearPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRearPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRearPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRegionRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRegionRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRegionRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRegionRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRegionRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRegionRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRegionRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRegionRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRegionRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRegionRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRegionRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRegionRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRegionRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRegionRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRegionRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRegionRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRegionRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRegionRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRoleRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRoleRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRoleRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item -func (a *BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSecretRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSecretRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSecretRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableSecretRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSecretRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableSecretRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSecretRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSecretRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSecretRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableSecretRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSecretRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableSecretRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSecretRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSecretRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSecretRequest_Relationships_Source_Objects_Item -func (a *BulkWritableSecretRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSecretRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableSecretRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item -func (a *BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item -func (a *BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableServiceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableServiceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableServiceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableServiceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableServiceRequest_Relationships_Source_Objects_Item -func (a *BulkWritableServiceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableServiceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableServiceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSiteRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSiteRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSiteRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableSiteRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSiteRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableSiteRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSiteRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSiteRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSiteRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableSiteRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSiteRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableSiteRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSiteRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSiteRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSiteRequest_Relationships_Source_Objects_Item -func (a *BulkWritableSiteRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSiteRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableSiteRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableStatusRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableStatusRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableStatusRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableStatusRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableStatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableStatusRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableStatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableStatusRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableStatusRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableStatusRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableStatusRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableStatusRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableStatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableStatusRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableStatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableStatusRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableStatusRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableStatusRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableStatusRequest_Relationships_Source_Objects_Item -func (a *BulkWritableStatusRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableStatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableStatusRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableStatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableStatusRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item -func (a *BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item -func (a *BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item -func (a *BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTenantRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTenantRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTenantRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableTenantRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTenantRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableTenantRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTenantRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTenantRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTenantRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableTenantRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTenantRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableTenantRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableTenantRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableTenantRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableTenantRequest_Relationships_Source_Objects_Item -func (a *BulkWritableTenantRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableTenantRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableTenantRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item -func (a *BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item -func (a *BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item -func (a *BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableUserObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableUserObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableUserObjectRequest_Relationships_Source_Objects_Item -func (a *BulkWritableUserObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableUserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableUserObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableUserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableUserObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item -func (a *BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVLANRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVLANRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVLANRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableVLANRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVLANRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableVLANRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVLANRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVLANRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVLANRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableVLANRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVLANRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableVLANRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVLANRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVLANRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVLANRequest_Relationships_Source_Objects_Item -func (a *BulkWritableVLANRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVLANRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableVLANRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item -func (a *BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVRFRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVRFRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVRFRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableVRFRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVRFRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableVRFRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVRFRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVRFRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVRFRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableVRFRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVRFRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableVRFRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVRFRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVRFRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVRFRequest_Relationships_Source_Objects_Item -func (a *BulkWritableVRFRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVRFRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableVRFRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item -func (a *BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item -func (a *BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableZoneRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableZoneRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableZoneRequest_Relationships_Destination_Objects_Item -func (a *BulkWritableZoneRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *BulkWritableZoneRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a BulkWritableZoneRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableZoneRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableZoneRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableZoneRequest_Relationships_Peer_Objects_Item -func (a *BulkWritableZoneRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *BulkWritableZoneRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a BulkWritableZoneRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for BulkWritableZoneRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a BulkWritableZoneRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for BulkWritableZoneRequest_Relationships_Source_Objects_Item -func (a *BulkWritableZoneRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for BulkWritableZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *BulkWritableZoneRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for BulkWritableZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a BulkWritableZoneRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for CircuitTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a CircuitTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for CircuitTypeRequest_Relationships_Destination_Objects_Item -func (a *CircuitTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for CircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *CircuitTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for CircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a CircuitTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for CircuitTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a CircuitTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for CircuitTypeRequest_Relationships_Peer_Objects_Item -func (a *CircuitTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for CircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *CircuitTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for CircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a CircuitTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for CircuitTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a CircuitTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for CircuitTypeRequest_Relationships_Source_Objects_Item -func (a *CircuitTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for CircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *CircuitTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for CircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a CircuitTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ClusterGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ClusterGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ClusterGroupRequest_Relationships_Destination_Objects_Item -func (a *ClusterGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ClusterGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ClusterGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ClusterGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ClusterGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ClusterGroupRequest_Relationships_Peer_Objects_Item -func (a *ClusterGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ClusterGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ClusterGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ClusterGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ClusterGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ClusterGroupRequest_Relationships_Source_Objects_Item -func (a *ClusterGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ClusterGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ClusterGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ClusterTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ClusterTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ClusterTypeRequest_Relationships_Destination_Objects_Item -func (a *ClusterTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ClusterTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ClusterTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ClusterTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ClusterTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ClusterTypeRequest_Relationships_Peer_Objects_Item -func (a *ClusterTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ClusterTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ClusterTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ClusterTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ClusterTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ClusterTypeRequest_Relationships_Source_Objects_Item -func (a *ClusterTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ClusterTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ClusterTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ConfigContextSchemaRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ConfigContextSchemaRequest_Relationships_Destination_Objects_Item -func (a *ConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ConfigContextSchemaRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ConfigContextSchemaRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ConfigContextSchemaRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ConfigContextSchemaRequest_Relationships_Peer_Objects_Item -func (a *ConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ConfigContextSchemaRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ConfigContextSchemaRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ConfigContextSchemaRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ConfigContextSchemaRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ConfigContextSchemaRequest_Relationships_Source_Objects_Item -func (a *ConfigContextSchemaRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ConfigContextSchemaRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ConfigContextSchemaRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for DeviceRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a DeviceRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for DeviceRoleRequest_Relationships_Destination_Objects_Item -func (a *DeviceRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for DeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *DeviceRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for DeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a DeviceRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for DeviceRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a DeviceRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for DeviceRoleRequest_Relationships_Peer_Objects_Item -func (a *DeviceRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for DeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *DeviceRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for DeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a DeviceRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for DeviceRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a DeviceRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for DeviceRoleRequest_Relationships_Source_Objects_Item -func (a *DeviceRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for DeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *DeviceRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for DeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a DeviceRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for DynamicGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a DynamicGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for DynamicGroupRequest_Relationships_Destination_Objects_Item -func (a *DynamicGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for DynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *DynamicGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for DynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a DynamicGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for DynamicGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a DynamicGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for DynamicGroupRequest_Relationships_Peer_Objects_Item -func (a *DynamicGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for DynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *DynamicGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for DynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a DynamicGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for DynamicGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a DynamicGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for DynamicGroupRequest_Relationships_Source_Objects_Item -func (a *DynamicGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for DynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *DynamicGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for DynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a DynamicGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ExportTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ExportTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ExportTemplateRequest_Relationships_Destination_Objects_Item -func (a *ExportTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ExportTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ExportTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ExportTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ExportTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ExportTemplateRequest_Relationships_Peer_Objects_Item -func (a *ExportTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ExportTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ExportTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ExportTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ExportTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ExportTemplateRequest_Relationships_Source_Objects_Item -func (a *ExportTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ExportTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ExportTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for GitRepositoryRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a GitRepositoryRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for GitRepositoryRequest_Relationships_Destination_Objects_Item -func (a *GitRepositoryRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for GitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *GitRepositoryRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for GitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a GitRepositoryRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for GitRepositoryRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a GitRepositoryRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for GitRepositoryRequest_Relationships_Peer_Objects_Item -func (a *GitRepositoryRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for GitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *GitRepositoryRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for GitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a GitRepositoryRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for GitRepositoryRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a GitRepositoryRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for GitRepositoryRequest_Relationships_Source_Objects_Item -func (a *GitRepositoryRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for GitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *GitRepositoryRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for GitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a GitRepositoryRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for IPRangeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a IPRangeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for IPRangeRequest_Relationships_Destination_Objects_Item -func (a *IPRangeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for IPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *IPRangeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for IPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a IPRangeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for IPRangeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a IPRangeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for IPRangeRequest_Relationships_Peer_Objects_Item -func (a *IPRangeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for IPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *IPRangeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for IPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a IPRangeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for IPRangeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a IPRangeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for IPRangeRequest_Relationships_Source_Objects_Item -func (a *IPRangeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for IPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *IPRangeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for IPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a IPRangeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for JobHookRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a JobHookRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for JobHookRequest_Relationships_Destination_Objects_Item -func (a *JobHookRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for JobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *JobHookRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for JobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a JobHookRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for JobHookRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a JobHookRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for JobHookRequest_Relationships_Peer_Objects_Item -func (a *JobHookRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for JobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *JobHookRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for JobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a JobHookRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for JobHookRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a JobHookRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for JobHookRequest_Relationships_Source_Objects_Item -func (a *JobHookRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for JobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *JobHookRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for JobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a JobHookRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for JobRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a JobRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for JobRequest_Relationships_Destination_Objects_Item -func (a *JobRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for JobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *JobRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for JobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a JobRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for JobRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a JobRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for JobRequest_Relationships_Peer_Objects_Item -func (a *JobRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for JobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *JobRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for JobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a JobRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for JobRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a JobRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for JobRequest_Relationships_Source_Objects_Item -func (a *JobRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for JobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *JobRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for JobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a JobRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ManufacturerRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ManufacturerRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ManufacturerRequest_Relationships_Destination_Objects_Item -func (a *ManufacturerRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ManufacturerRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ManufacturerRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ManufacturerRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ManufacturerRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ManufacturerRequest_Relationships_Peer_Objects_Item -func (a *ManufacturerRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ManufacturerRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ManufacturerRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ManufacturerRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ManufacturerRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ManufacturerRequest_Relationships_Source_Objects_Item -func (a *ManufacturerRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ManufacturerRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ManufacturerRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for NATPolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a NATPolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for NATPolicyRequest_Relationships_Destination_Objects_Item -func (a *NATPolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for NATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *NATPolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for NATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a NATPolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for NATPolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a NATPolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for NATPolicyRequest_Relationships_Peer_Objects_Item -func (a *NATPolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for NATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *NATPolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for NATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a NATPolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for NATPolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a NATPolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for NATPolicyRequest_Relationships_Source_Objects_Item -func (a *NATPolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for NATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *NATPolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for NATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a NATPolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectGroupRequest_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAddressObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAggregateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAggregateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableAggregateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCVELCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCVELCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCVELCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCableRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCableRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCableRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableCircuitTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableClusterTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConfigContextSchemaRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConfigContextSchemaRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConfigContextSchemaRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsolePortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsolePortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsolePortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableContactLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableContactLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableContactLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableContractLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableContractLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableContractLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceBayRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceBayRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceBayRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDynamicGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDynamicGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableDynamicGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableExportTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableExportTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableExportTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFQDNRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFQDNRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFQDNRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFrontPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFrontPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFrontPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableGitRepositoryRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableHardwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableIPAddressRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableIPAddressRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableIPAddressRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableIPRangeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableIPRangeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableIPRangeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInventoryItemRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInventoryItemRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableInventoryItemRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableJobHookRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableJobHookRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableJobHookRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableJobRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableJobRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableJobRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableLocationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableLocationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableLocationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableLocationTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableLocationTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableLocationTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableManufacturerRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableManufacturerRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableManufacturerRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalDestinationServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_OriginalSourceServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedDestinationServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableNATPolicyRuleRequest_TranslatedSourceServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePlatformRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePlatformRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePlatformRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServiceGroups_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_DestinationServices_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_AddressObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddressGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceAddresses_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUserGroups_UserObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePolicyRuleRequest_SourceUsers_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerFeedRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerFeedRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerFeedRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerOutletRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerOutletRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerOutletRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPanelRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPanelRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPanelRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePrefixRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePrefixRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritablePrefixRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderNetworkRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableProviderRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRIRRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRIRRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRIRRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackReservationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackReservationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackReservationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRackRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRearPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRearPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRearPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRegionRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRegionRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRegionRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRouteTargetRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRouteTargetRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableRouteTargetRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSecretRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSecretRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSecretRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSecretsGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSecretsGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSecretsGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectGroupRequest_ServiceObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableServiceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSiteRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSiteRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSiteRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableStatusRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableStatusRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableStatusRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTagSerializerVersion13Request_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTagSerializerVersion13Request_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTagSerializerVersion13Request_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTenantGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTenantGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTenantGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTenantRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTenantRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableTenantRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectGroupRequest_UserObjects_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableUserObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVLANGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVLANGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVLANGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVLANRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVLANRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVLANRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVMInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVRFRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVRFRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVRFRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVirtualChassisRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableVulnerabilityLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item -func (a *PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableZoneRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item -func (a *PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableZoneRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item -func (a *PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedBulkWritableZoneRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedCircuitTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedCircuitTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedCircuitTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedCircuitTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedCircuitTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedCircuitTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedCircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedCircuitTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedCircuitTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedCircuitTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedClusterGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedClusterGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedClusterGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedClusterGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedClusterGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedClusterGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedClusterGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedClusterGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedClusterGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedClusterGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedClusterGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedClusterGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedClusterGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedClusterGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedClusterGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedClusterGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedClusterGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedClusterGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedClusterGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedClusterGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedClusterGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedClusterTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedClusterTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedClusterTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedClusterTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedClusterTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedClusterTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedClusterTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedClusterTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedClusterTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedClusterTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedClusterTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedClusterTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedClusterTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedClusterTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedClusterTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedClusterTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedClusterTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedClusterTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedClusterTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedClusterTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedClusterTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item -func (a *PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedConfigContextSchemaRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item -func (a *PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedConfigContextSchemaRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item -func (a *PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedConfigContextSchemaRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item -func (a *PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedDeviceRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item -func (a *PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedDeviceRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedDeviceRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedDeviceRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedDeviceRoleRequest_Relationships_Source_Objects_Item -func (a *PatchedDeviceRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedDeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedDeviceRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedDeviceRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedDeviceRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedDynamicGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedDynamicGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedDynamicGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedDynamicGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedDynamicGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedDynamicGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedDynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedDynamicGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedDynamicGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedDynamicGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedExportTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedExportTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedExportTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedExportTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedExportTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedExportTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedExportTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedExportTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedExportTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedExportTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedExportTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedExportTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedExportTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedExportTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedExportTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedExportTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedExportTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedExportTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedExportTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedExportTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedExportTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedIPRangeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedIPRangeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedIPRangeRequest_Relationships_Destination_Objects_Item -func (a *PatchedIPRangeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedIPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedIPRangeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedIPRangeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedIPRangeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedIPRangeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedIPRangeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedIPRangeRequest_Relationships_Peer_Objects_Item -func (a *PatchedIPRangeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedIPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedIPRangeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedIPRangeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedIPRangeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedIPRangeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedIPRangeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedIPRangeRequest_Relationships_Source_Objects_Item -func (a *PatchedIPRangeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedIPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedIPRangeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedIPRangeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedIPRangeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedJobHookRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedJobHookRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedJobHookRequest_Relationships_Destination_Objects_Item -func (a *PatchedJobHookRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedJobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedJobHookRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedJobHookRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedJobHookRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedJobHookRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedJobHookRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedJobHookRequest_Relationships_Peer_Objects_Item -func (a *PatchedJobHookRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedJobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedJobHookRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedJobHookRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedJobHookRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedJobHookRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedJobHookRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedJobHookRequest_Relationships_Source_Objects_Item -func (a *PatchedJobHookRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedJobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedJobHookRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedJobHookRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedJobHookRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedJobRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedJobRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedJobRequest_Relationships_Destination_Objects_Item -func (a *PatchedJobRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedJobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedJobRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedJobRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedJobRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedJobRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedJobRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedJobRequest_Relationships_Peer_Objects_Item -func (a *PatchedJobRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedJobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedJobRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedJobRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedJobRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedJobRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedJobRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedJobRequest_Relationships_Source_Objects_Item -func (a *PatchedJobRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedJobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedJobRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedJobRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedJobRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedManufacturerRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedManufacturerRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedManufacturerRequest_Relationships_Destination_Objects_Item -func (a *PatchedManufacturerRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedManufacturerRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedManufacturerRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedManufacturerRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedManufacturerRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedManufacturerRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedManufacturerRequest_Relationships_Peer_Objects_Item -func (a *PatchedManufacturerRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedManufacturerRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedManufacturerRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedManufacturerRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedManufacturerRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedManufacturerRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedManufacturerRequest_Relationships_Source_Objects_Item -func (a *PatchedManufacturerRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedManufacturerRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedManufacturerRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedManufacturerRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedNATPolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedNATPolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedNATPolicyRequest_Relationships_Destination_Objects_Item -func (a *PatchedNATPolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedNATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedNATPolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedNATPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedNATPolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedNATPolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedNATPolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedNATPolicyRequest_Relationships_Peer_Objects_Item -func (a *PatchedNATPolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedNATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedNATPolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedNATPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedNATPolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedNATPolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedNATPolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedNATPolicyRequest_Relationships_Source_Objects_Item -func (a *PatchedNATPolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedNATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedNATPolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedNATPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedNATPolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedPolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedPolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedPolicyRequest_Relationships_Destination_Objects_Item -func (a *PatchedPolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedPolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedPolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedPolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedPolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedPolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedPolicyRequest_Relationships_Peer_Objects_Item -func (a *PatchedPolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedPolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedPolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedPolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedPolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedPolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedPolicyRequest_Relationships_Source_Objects_Item -func (a *PatchedPolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedPolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedPolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedPolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedProviderLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedProviderLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedProviderLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedProviderLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedProviderLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedProviderLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedProviderLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedProviderLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedProviderLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedProviderLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedProviderLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedProviderLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedProviderLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedProviderLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedProviderLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedProviderLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedProviderLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedProviderLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedProviderRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedProviderRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedProviderRequest_Relationships_Destination_Objects_Item -func (a *PatchedProviderRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedProviderRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedProviderRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedProviderRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedProviderRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedProviderRequest_Relationships_Peer_Objects_Item -func (a *PatchedProviderRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedProviderRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedProviderRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedProviderRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedProviderRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedProviderRequest_Relationships_Source_Objects_Item -func (a *PatchedProviderRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedProviderRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedProviderRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRIRRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRIRRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRIRRequest_Relationships_Destination_Objects_Item -func (a *PatchedRIRRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedRIRRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedRIRRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRIRRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRIRRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRIRRequest_Relationships_Peer_Objects_Item -func (a *PatchedRIRRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedRIRRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedRIRRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRIRRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRIRRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRIRRequest_Relationships_Source_Objects_Item -func (a *PatchedRIRRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedRIRRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedRIRRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRackRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRackRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRackRoleRequest_Relationships_Destination_Objects_Item -func (a *PatchedRackRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedRackRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedRackRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRackRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRackRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRackRoleRequest_Relationships_Peer_Objects_Item -func (a *PatchedRackRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedRackRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedRackRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRackRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRackRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRackRoleRequest_Relationships_Source_Objects_Item -func (a *PatchedRackRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedRackRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedRackRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRoleRequest_Relationships_Destination_Objects_Item -func (a *PatchedRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRoleRequest_Relationships_Peer_Objects_Item -func (a *PatchedRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedRoleRequest_Relationships_Source_Objects_Item -func (a *PatchedRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedSecretRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedSecretRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedSecretRequest_Relationships_Destination_Objects_Item -func (a *PatchedSecretRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedSecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedSecretRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedSecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedSecretRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedSecretRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedSecretRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedSecretRequest_Relationships_Peer_Objects_Item -func (a *PatchedSecretRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedSecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedSecretRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedSecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedSecretRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedSecretRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedSecretRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedSecretRequest_Relationships_Source_Objects_Item -func (a *PatchedSecretRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedSecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedSecretRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedSecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedSecretRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedSecretsGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedSecretsGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedSecretsGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedSecretsGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedSecretsGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedSecretsGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedSecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedSecretsGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedSecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedSecretsGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedServiceObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedServiceObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedServiceObjectRequest_Relationships_Destination_Objects_Item -func (a *PatchedServiceObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedServiceObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedServiceObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedServiceObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedServiceObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedServiceObjectRequest_Relationships_Peer_Objects_Item -func (a *PatchedServiceObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedServiceObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedServiceObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedServiceObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedServiceObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedServiceObjectRequest_Relationships_Source_Objects_Item -func (a *PatchedServiceObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedServiceObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedServiceObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedStatusRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedStatusRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedStatusRequest_Relationships_Destination_Objects_Item -func (a *PatchedStatusRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedStatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedStatusRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedStatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedStatusRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedStatusRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedStatusRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedStatusRequest_Relationships_Peer_Objects_Item -func (a *PatchedStatusRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedStatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedStatusRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedStatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedStatusRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedStatusRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedStatusRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedStatusRequest_Relationships_Source_Objects_Item -func (a *PatchedStatusRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedStatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedStatusRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedStatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedStatusRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item -func (a *PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedTagSerializerVersion13Request_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item -func (a *PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedTagSerializerVersion13Request_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item -func (a *PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedTagSerializerVersion13Request_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedUserObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedUserObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedUserObjectRequest_Relationships_Destination_Objects_Item -func (a *PatchedUserObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedUserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedUserObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedUserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedUserObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedUserObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedUserObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedUserObjectRequest_Relationships_Peer_Objects_Item -func (a *PatchedUserObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedUserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedUserObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedUserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedUserObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedUserObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedUserObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedUserObjectRequest_Relationships_Source_Objects_Item -func (a *PatchedUserObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedUserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedUserObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedUserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedUserObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedVulnerabilityLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedVulnerabilityLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedVulnerabilityLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAddressObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAddressObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAddressObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAggregateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAggregateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableAggregateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableAggregateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableAggregateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableAggregateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableAggregateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableAggregateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCVELCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCVELCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCVELCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCableRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCableRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCableRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableCableRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCableRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCableRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCableRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCableRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCableRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableCableRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCableRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCableRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCableRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCableRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCableRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableCableRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCableRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCableRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCircuitRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCircuitRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCircuitRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCircuitRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCircuitRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableCircuitRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCircuitRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCircuitRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableCircuitTerminationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableClusterRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableClusterRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableClusterRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableClusterRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableClusterRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableClusterRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableClusterRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableClusterRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableClusterRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableClusterRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableClusterRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableClusterRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableClusterRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableClusterRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableClusterRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableClusterRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableClusterRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableClusterRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsolePortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsolePortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsolePortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsoleServerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableContactLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableContactLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableContactLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableContractLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableContractLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableContractLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceBayRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceBayRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceBayRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFQDNRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFQDNRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFQDNRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFQDNRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFQDNRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableFQDNRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFQDNRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFQDNRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFrontPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFrontPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFrontPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableGitRepositoryRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableGitRepositoryRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableGitRepositoryRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableHardwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableHardwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableHardwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableIPAddressRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableIPAddressRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableIPAddressRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInventoryItemRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInventoryItemRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableInventoryItemRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableLocationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableLocationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableLocationRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableLocationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableLocationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableLocationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableLocationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableLocationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableLocationRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableLocationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableLocationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableLocationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableLocationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableLocationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableLocationRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableLocationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableLocationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableLocationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableLocationTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableLocationTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableLocationTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePlatformRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePlatformRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePlatformRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePlatformRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePlatformRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePlatformRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePlatformRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePlatformRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerFeedRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerFeedRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerFeedRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerOutletRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerOutletRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerOutletRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPanelRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPanelRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPanelRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePrefixRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePrefixRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritablePrefixRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritablePrefixRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritablePrefixRequest_Relationships_Source_Objects_Item -func (a *PatchedWritablePrefixRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritablePrefixRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritablePrefixRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableProviderNetworkRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableProviderNetworkRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableProviderNetworkRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableRackRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableRackRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableRackRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackReservationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackReservationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRackReservationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRearPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRearPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRearPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRearPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRearPortRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableRearPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRearPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRearPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRearPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRegionRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRegionRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRegionRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableRegionRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRegionRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRegionRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRegionRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRegionRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRegionRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableRegionRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRegionRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRegionRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRegionRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRegionRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRegionRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableRegionRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRegionRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRegionRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRouteTargetRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRouteTargetRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableRouteTargetRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableServiceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableServiceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableServiceRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableServiceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableServiceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableServiceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableServiceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableServiceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableServiceRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableServiceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableServiceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableServiceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableServiceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableServiceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableServiceRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableServiceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableServiceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableServiceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSiteRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSiteRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSiteRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableSiteRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSiteRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSiteRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSiteRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSiteRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSiteRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableSiteRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSiteRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSiteRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSiteRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSiteRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSiteRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableSiteRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSiteRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSiteRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableTenantGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableTenantGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableTenantGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableTenantRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableTenantRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableTenantRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableTenantRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableTenantRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableTenantRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableTenantRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableTenantRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableTenantRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableTenantRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableTenantRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableTenantRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableTenantRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableTenantRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableTenantRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableTenantRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableTenantRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableTenantRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableUserObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVLANGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVLANGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVLANGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVLANRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVLANRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVLANRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableVLANRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVLANRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVLANRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVLANRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVLANRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVLANRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableVLANRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVLANRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVLANRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVLANRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVLANRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVLANRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableVLANRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVLANRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVLANRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVMInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVMInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVMInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVRFRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVRFRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVRFRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableVRFRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVRFRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVRFRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVRFRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVRFRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVRFRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableVRFRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVRFRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVRFRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVRFRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVRFRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVRFRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableVRFRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVRFRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVRFRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVirtualChassisRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVirtualChassisRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVirtualChassisRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedWritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedZoneRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedZoneRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedZoneRequest_Relationships_Destination_Objects_Item -func (a *PatchedZoneRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PatchedZoneRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PatchedZoneRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedZoneRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedZoneRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedZoneRequest_Relationships_Peer_Objects_Item -func (a *PatchedZoneRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PatchedZoneRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PatchedZoneRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PatchedZoneRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PatchedZoneRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PatchedZoneRequest_Relationships_Source_Objects_Item -func (a *PatchedZoneRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PatchedZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PatchedZoneRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PatchedZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PatchedZoneRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PolicyRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a PolicyRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PolicyRequest_Relationships_Destination_Objects_Item -func (a *PolicyRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *PolicyRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PolicyRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a PolicyRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PolicyRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a PolicyRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PolicyRequest_Relationships_Peer_Objects_Item -func (a *PolicyRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *PolicyRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PolicyRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a PolicyRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for PolicyRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a PolicyRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for PolicyRequest_Relationships_Source_Objects_Item -func (a *PolicyRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for PolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *PolicyRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for PolicyRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a PolicyRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ProviderLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ProviderLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ProviderLCMRequest_Relationships_Destination_Objects_Item -func (a *ProviderLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ProviderLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ProviderLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ProviderLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ProviderLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ProviderLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ProviderLCMRequest_Relationships_Peer_Objects_Item -func (a *ProviderLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ProviderLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ProviderLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ProviderLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ProviderLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ProviderLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ProviderLCMRequest_Relationships_Source_Objects_Item -func (a *ProviderLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ProviderLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ProviderLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ProviderLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ProviderRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ProviderRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ProviderRequest_Relationships_Destination_Objects_Item -func (a *ProviderRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ProviderRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ProviderRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ProviderRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ProviderRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ProviderRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ProviderRequest_Relationships_Peer_Objects_Item -func (a *ProviderRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ProviderRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ProviderRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ProviderRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ProviderRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ProviderRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ProviderRequest_Relationships_Source_Objects_Item -func (a *ProviderRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ProviderRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ProviderRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ProviderRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RIRRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a RIRRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RIRRequest_Relationships_Destination_Objects_Item -func (a *RIRRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *RIRRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RIRRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a RIRRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RIRRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a RIRRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RIRRequest_Relationships_Peer_Objects_Item -func (a *RIRRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *RIRRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RIRRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a RIRRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RIRRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a RIRRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RIRRequest_Relationships_Source_Objects_Item -func (a *RIRRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *RIRRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RIRRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a RIRRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RackRoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a RackRoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RackRoleRequest_Relationships_Destination_Objects_Item -func (a *RackRoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *RackRoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RackRoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a RackRoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RackRoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a RackRoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RackRoleRequest_Relationships_Peer_Objects_Item -func (a *RackRoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *RackRoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RackRoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a RackRoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RackRoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a RackRoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RackRoleRequest_Relationships_Source_Objects_Item -func (a *RackRoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *RackRoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RackRoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a RackRoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RoleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a RoleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RoleRequest_Relationships_Destination_Objects_Item -func (a *RoleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *RoleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RoleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a RoleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RoleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a RoleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RoleRequest_Relationships_Peer_Objects_Item -func (a *RoleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *RoleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RoleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a RoleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for RoleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a RoleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for RoleRequest_Relationships_Source_Objects_Item -func (a *RoleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for RoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *RoleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for RoleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a RoleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for SecretRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a SecretRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SecretRequest_Relationships_Destination_Objects_Item -func (a *SecretRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *SecretRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for SecretRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a SecretRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for SecretRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a SecretRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SecretRequest_Relationships_Peer_Objects_Item -func (a *SecretRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *SecretRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for SecretRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a SecretRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for SecretRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a SecretRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SecretRequest_Relationships_Source_Objects_Item -func (a *SecretRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *SecretRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for SecretRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a SecretRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for SecretsGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a SecretsGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SecretsGroupRequest_Relationships_Destination_Objects_Item -func (a *SecretsGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *SecretsGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for SecretsGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a SecretsGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for SecretsGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a SecretsGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SecretsGroupRequest_Relationships_Peer_Objects_Item -func (a *SecretsGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *SecretsGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for SecretsGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a SecretsGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for SecretsGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a SecretsGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SecretsGroupRequest_Relationships_Source_Objects_Item -func (a *SecretsGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *SecretsGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for SecretsGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a SecretsGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ServiceObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ServiceObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ServiceObjectRequest_Relationships_Destination_Objects_Item -func (a *ServiceObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ServiceObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ServiceObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ServiceObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ServiceObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ServiceObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ServiceObjectRequest_Relationships_Peer_Objects_Item -func (a *ServiceObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ServiceObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ServiceObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ServiceObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ServiceObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ServiceObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ServiceObjectRequest_Relationships_Source_Objects_Item -func (a *ServiceObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ServiceObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ServiceObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ServiceObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for StatusRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a StatusRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for StatusRequest_Relationships_Destination_Objects_Item -func (a *StatusRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for StatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *StatusRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for StatusRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a StatusRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for StatusRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a StatusRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for StatusRequest_Relationships_Peer_Objects_Item -func (a *StatusRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for StatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *StatusRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for StatusRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a StatusRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for StatusRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a StatusRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for StatusRequest_Relationships_Source_Objects_Item -func (a *StatusRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for StatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *StatusRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for StatusRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a StatusRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for TagSerializerVersion13Request_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a TagSerializerVersion13Request_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for TagSerializerVersion13Request_Relationships_Destination_Objects_Item -func (a *TagSerializerVersion13Request_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for TagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *TagSerializerVersion13Request_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for TagSerializerVersion13Request_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a TagSerializerVersion13Request_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for TagSerializerVersion13Request_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a TagSerializerVersion13Request_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for TagSerializerVersion13Request_Relationships_Peer_Objects_Item -func (a *TagSerializerVersion13Request_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for TagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *TagSerializerVersion13Request_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for TagSerializerVersion13Request_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a TagSerializerVersion13Request_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for TagSerializerVersion13Request_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a TagSerializerVersion13Request_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for TagSerializerVersion13Request_Relationships_Source_Objects_Item -func (a *TagSerializerVersion13Request_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for TagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *TagSerializerVersion13Request_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for TagSerializerVersion13Request_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a TagSerializerVersion13Request_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for UserObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a UserObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for UserObjectRequest_Relationships_Destination_Objects_Item -func (a *UserObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for UserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *UserObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for UserObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a UserObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for UserObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a UserObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for UserObjectRequest_Relationships_Peer_Objects_Item -func (a *UserObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for UserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *UserObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for UserObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a UserObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for UserObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a UserObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for UserObjectRequest_Relationships_Source_Objects_Item -func (a *UserObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for UserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *UserObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for UserObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a UserObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for VulnerabilityLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a VulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for VulnerabilityLCMRequest_Relationships_Destination_Objects_Item -func (a *VulnerabilityLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for VulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *VulnerabilityLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for VulnerabilityLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a VulnerabilityLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for VulnerabilityLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a VulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for VulnerabilityLCMRequest_Relationships_Peer_Objects_Item -func (a *VulnerabilityLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for VulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *VulnerabilityLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for VulnerabilityLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a VulnerabilityLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for VulnerabilityLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a VulnerabilityLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for VulnerabilityLCMRequest_Relationships_Source_Objects_Item -func (a *VulnerabilityLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for VulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *VulnerabilityLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for VulnerabilityLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a VulnerabilityLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableAddressObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableAddressObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item -func (a *WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableAddressObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAddressObjectRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAddressObjectRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAddressObjectRequest_Relationships_Destination_Objects_Item -func (a *WritableAddressObjectRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableAddressObjectRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAddressObjectRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableAddressObjectRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAddressObjectRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAddressObjectRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAddressObjectRequest_Relationships_Peer_Objects_Item -func (a *WritableAddressObjectRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableAddressObjectRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAddressObjectRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableAddressObjectRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAddressObjectRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAddressObjectRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAddressObjectRequest_Relationships_Source_Objects_Item -func (a *WritableAddressObjectRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableAddressObjectRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAddressObjectRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableAddressObjectRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAggregateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAggregateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAggregateRequest_Relationships_Destination_Objects_Item -func (a *WritableAggregateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableAggregateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAggregateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableAggregateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAggregateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAggregateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAggregateRequest_Relationships_Peer_Objects_Item -func (a *WritableAggregateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableAggregateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAggregateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableAggregateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableAggregateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableAggregateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableAggregateRequest_Relationships_Source_Objects_Item -func (a *WritableAggregateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableAggregateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableAggregateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableAggregateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCVELCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCVELCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCVELCMRequest_Relationships_Destination_Objects_Item -func (a *WritableCVELCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableCVELCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCVELCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableCVELCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCVELCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCVELCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCVELCMRequest_Relationships_Peer_Objects_Item -func (a *WritableCVELCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableCVELCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCVELCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableCVELCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCVELCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCVELCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCVELCMRequest_Relationships_Source_Objects_Item -func (a *WritableCVELCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableCVELCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCVELCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableCVELCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCableRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCableRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCableRequest_Relationships_Destination_Objects_Item -func (a *WritableCableRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableCableRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCableRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableCableRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCableRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCableRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCableRequest_Relationships_Peer_Objects_Item -func (a *WritableCableRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableCableRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCableRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableCableRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCableRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCableRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCableRequest_Relationships_Source_Objects_Item -func (a *WritableCableRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableCableRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCableRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableCableRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCircuitRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCircuitRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCircuitRequest_Relationships_Destination_Objects_Item -func (a *WritableCircuitRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableCircuitRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCircuitRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableCircuitRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCircuitRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCircuitRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCircuitRequest_Relationships_Peer_Objects_Item -func (a *WritableCircuitRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableCircuitRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCircuitRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableCircuitRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCircuitRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCircuitRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCircuitRequest_Relationships_Source_Objects_Item -func (a *WritableCircuitRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableCircuitRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCircuitRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableCircuitRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item -func (a *WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableCircuitTerminationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item -func (a *WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableCircuitTerminationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableCircuitTerminationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableCircuitTerminationRequest_Relationships_Source_Objects_Item -func (a *WritableCircuitTerminationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableCircuitTerminationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableCircuitTerminationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableCircuitTerminationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableClusterRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableClusterRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableClusterRequest_Relationships_Destination_Objects_Item -func (a *WritableClusterRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableClusterRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableClusterRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableClusterRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableClusterRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableClusterRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableClusterRequest_Relationships_Peer_Objects_Item -func (a *WritableClusterRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableClusterRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableClusterRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableClusterRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableClusterRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableClusterRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableClusterRequest_Relationships_Source_Objects_Item -func (a *WritableClusterRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableClusterRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableClusterRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableClusterRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsolePortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsolePortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsolePortRequest_Relationships_Destination_Objects_Item -func (a *WritableConsolePortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableConsolePortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsolePortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableConsolePortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsolePortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsolePortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsolePortRequest_Relationships_Peer_Objects_Item -func (a *WritableConsolePortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableConsolePortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsolePortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableConsolePortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsolePortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsolePortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsolePortRequest_Relationships_Source_Objects_Item -func (a *WritableConsolePortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableConsolePortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsolePortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableConsolePortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableConsolePortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableConsolePortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item -func (a *WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableConsolePortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item -func (a *WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableConsoleServerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item -func (a *WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableConsoleServerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsoleServerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsoleServerPortRequest_Relationships_Source_Objects_Item -func (a *WritableConsoleServerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableConsoleServerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsoleServerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableConsoleServerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableConsoleServerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableConsoleServerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableConsoleServerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableContactLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableContactLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableContactLCMRequest_Relationships_Destination_Objects_Item -func (a *WritableContactLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableContactLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableContactLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableContactLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableContactLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableContactLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableContactLCMRequest_Relationships_Peer_Objects_Item -func (a *WritableContactLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableContactLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableContactLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableContactLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableContactLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableContactLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableContactLCMRequest_Relationships_Source_Objects_Item -func (a *WritableContactLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableContactLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableContactLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableContactLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableContractLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableContractLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableContractLCMRequest_Relationships_Destination_Objects_Item -func (a *WritableContractLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableContractLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableContractLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableContractLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableContractLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableContractLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableContractLCMRequest_Relationships_Peer_Objects_Item -func (a *WritableContractLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableContractLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableContractLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableContractLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableContractLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableContractLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableContractLCMRequest_Relationships_Source_Objects_Item -func (a *WritableContractLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableContractLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableContractLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableContractLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceBayRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceBayRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceBayRequest_Relationships_Destination_Objects_Item -func (a *WritableDeviceBayRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceBayRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceBayRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableDeviceBayRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceBayRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceBayRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceBayRequest_Relationships_Peer_Objects_Item -func (a *WritableDeviceBayRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceBayRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceBayRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableDeviceBayRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceBayRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceBayRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceBayRequest_Relationships_Source_Objects_Item -func (a *WritableDeviceBayRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceBayRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceBayRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableDeviceBayRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableDeviceBayTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableDeviceBayTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item -func (a *WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableDeviceBayTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item -func (a *WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableDeviceRedundancyGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item -func (a *WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableDeviceRedundancyGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item -func (a *WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableDeviceRedundancyGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceTypeRequest_Relationships_Destination_Objects_Item -func (a *WritableDeviceTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableDeviceTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceTypeRequest_Relationships_Peer_Objects_Item -func (a *WritableDeviceTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableDeviceTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceTypeRequest_Relationships_Source_Objects_Item -func (a *WritableDeviceTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableDeviceTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableDeviceWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableDeviceWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableDeviceWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFQDNRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFQDNRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFQDNRequest_Relationships_Destination_Objects_Item -func (a *WritableFQDNRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableFQDNRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFQDNRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableFQDNRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFQDNRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFQDNRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFQDNRequest_Relationships_Peer_Objects_Item -func (a *WritableFQDNRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableFQDNRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFQDNRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableFQDNRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFQDNRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFQDNRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFQDNRequest_Relationships_Source_Objects_Item -func (a *WritableFQDNRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableFQDNRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFQDNRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableFQDNRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFrontPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFrontPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFrontPortRequest_Relationships_Destination_Objects_Item -func (a *WritableFrontPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableFrontPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFrontPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableFrontPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFrontPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFrontPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFrontPortRequest_Relationships_Peer_Objects_Item -func (a *WritableFrontPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableFrontPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFrontPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableFrontPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFrontPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFrontPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFrontPortRequest_Relationships_Source_Objects_Item -func (a *WritableFrontPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableFrontPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFrontPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableFrontPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableFrontPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableFrontPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item -func (a *WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableFrontPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableGitRepositoryRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableGitRepositoryRequest_Relationships_Destination_Objects_Item -func (a *WritableGitRepositoryRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableGitRepositoryRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableGitRepositoryRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableGitRepositoryRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableGitRepositoryRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableGitRepositoryRequest_Relationships_Peer_Objects_Item -func (a *WritableGitRepositoryRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableGitRepositoryRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableGitRepositoryRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableGitRepositoryRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableGitRepositoryRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableGitRepositoryRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableGitRepositoryRequest_Relationships_Source_Objects_Item -func (a *WritableGitRepositoryRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableGitRepositoryRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableGitRepositoryRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableGitRepositoryRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableHardwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableHardwareLCMRequest_Relationships_Destination_Objects_Item -func (a *WritableHardwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableHardwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableHardwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableHardwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableHardwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableHardwareLCMRequest_Relationships_Peer_Objects_Item -func (a *WritableHardwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableHardwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableHardwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableHardwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableHardwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableHardwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableHardwareLCMRequest_Relationships_Source_Objects_Item -func (a *WritableHardwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableHardwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableHardwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableHardwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableIPAddressRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableIPAddressRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableIPAddressRequest_Relationships_Destination_Objects_Item -func (a *WritableIPAddressRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableIPAddressRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableIPAddressRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableIPAddressRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableIPAddressRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableIPAddressRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableIPAddressRequest_Relationships_Peer_Objects_Item -func (a *WritableIPAddressRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableIPAddressRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableIPAddressRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableIPAddressRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableIPAddressRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableIPAddressRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableIPAddressRequest_Relationships_Source_Objects_Item -func (a *WritableIPAddressRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableIPAddressRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableIPAddressRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableIPAddressRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInterfaceRequest_Relationships_Destination_Objects_Item -func (a *WritableInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInterfaceRequest_Relationships_Peer_Objects_Item -func (a *WritableInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInterfaceRequest_Relationships_Source_Objects_Item -func (a *WritableInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableInterfaceTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableInterfaceTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item -func (a *WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableInterfaceTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInventoryItemRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInventoryItemRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInventoryItemRequest_Relationships_Destination_Objects_Item -func (a *WritableInventoryItemRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableInventoryItemRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInventoryItemRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableInventoryItemRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInventoryItemRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInventoryItemRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInventoryItemRequest_Relationships_Peer_Objects_Item -func (a *WritableInventoryItemRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableInventoryItemRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInventoryItemRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableInventoryItemRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableInventoryItemRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableInventoryItemRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableInventoryItemRequest_Relationships_Source_Objects_Item -func (a *WritableInventoryItemRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableInventoryItemRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableInventoryItemRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableInventoryItemRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableLocationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableLocationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableLocationRequest_Relationships_Destination_Objects_Item -func (a *WritableLocationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableLocationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableLocationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableLocationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableLocationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableLocationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableLocationRequest_Relationships_Peer_Objects_Item -func (a *WritableLocationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableLocationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableLocationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableLocationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableLocationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableLocationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableLocationRequest_Relationships_Source_Objects_Item -func (a *WritableLocationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableLocationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableLocationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableLocationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableLocationTypeRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableLocationTypeRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableLocationTypeRequest_Relationships_Destination_Objects_Item -func (a *WritableLocationTypeRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableLocationTypeRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableLocationTypeRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableLocationTypeRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableLocationTypeRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableLocationTypeRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableLocationTypeRequest_Relationships_Peer_Objects_Item -func (a *WritableLocationTypeRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableLocationTypeRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableLocationTypeRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableLocationTypeRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableLocationTypeRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableLocationTypeRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableLocationTypeRequest_Relationships_Source_Objects_Item -func (a *WritableLocationTypeRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableLocationTypeRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableLocationTypeRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableLocationTypeRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableNATPolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableNATPolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item -func (a *WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableNATPolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePlatformRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePlatformRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePlatformRequest_Relationships_Destination_Objects_Item -func (a *WritablePlatformRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePlatformRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePlatformRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePlatformRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePlatformRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePlatformRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePlatformRequest_Relationships_Peer_Objects_Item -func (a *WritablePlatformRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePlatformRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePlatformRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePlatformRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePlatformRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePlatformRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePlatformRequest_Relationships_Source_Objects_Item -func (a *WritablePlatformRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePlatformRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePlatformRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePlatformRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePolicyRuleRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePolicyRuleRequest_Relationships_Destination_Objects_Item -func (a *WritablePolicyRuleRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePolicyRuleRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePolicyRuleRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePolicyRuleRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePolicyRuleRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePolicyRuleRequest_Relationships_Peer_Objects_Item -func (a *WritablePolicyRuleRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePolicyRuleRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePolicyRuleRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePolicyRuleRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePolicyRuleRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePolicyRuleRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePolicyRuleRequest_Relationships_Source_Objects_Item -func (a *WritablePolicyRuleRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePolicyRuleRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePolicyRuleRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePolicyRuleRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerFeedRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerFeedRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerFeedRequest_Relationships_Destination_Objects_Item -func (a *WritablePowerFeedRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePowerFeedRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerFeedRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePowerFeedRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerFeedRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerFeedRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerFeedRequest_Relationships_Peer_Objects_Item -func (a *WritablePowerFeedRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePowerFeedRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerFeedRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePowerFeedRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerFeedRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerFeedRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerFeedRequest_Relationships_Source_Objects_Item -func (a *WritablePowerFeedRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePowerFeedRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerFeedRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePowerFeedRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerOutletRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerOutletRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerOutletRequest_Relationships_Destination_Objects_Item -func (a *WritablePowerOutletRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePowerOutletRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerOutletRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePowerOutletRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerOutletRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerOutletRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerOutletRequest_Relationships_Peer_Objects_Item -func (a *WritablePowerOutletRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePowerOutletRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerOutletRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePowerOutletRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerOutletRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerOutletRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerOutletRequest_Relationships_Source_Objects_Item -func (a *WritablePowerOutletRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePowerOutletRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerOutletRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePowerOutletRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePowerOutletTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePowerOutletTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item -func (a *WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePowerOutletTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPanelRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPanelRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPanelRequest_Relationships_Destination_Objects_Item -func (a *WritablePowerPanelRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPanelRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPanelRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePowerPanelRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPanelRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPanelRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPanelRequest_Relationships_Peer_Objects_Item -func (a *WritablePowerPanelRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPanelRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPanelRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePowerPanelRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPanelRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPanelRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPanelRequest_Relationships_Source_Objects_Item -func (a *WritablePowerPanelRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPanelRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPanelRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePowerPanelRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPortRequest_Relationships_Destination_Objects_Item -func (a *WritablePowerPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePowerPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPortRequest_Relationships_Peer_Objects_Item -func (a *WritablePowerPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePowerPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPortRequest_Relationships_Source_Objects_Item -func (a *WritablePowerPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePowerPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePowerPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePowerPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item -func (a *WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePowerPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePrefixRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePrefixRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePrefixRequest_Relationships_Destination_Objects_Item -func (a *WritablePrefixRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritablePrefixRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePrefixRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritablePrefixRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePrefixRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePrefixRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePrefixRequest_Relationships_Peer_Objects_Item -func (a *WritablePrefixRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritablePrefixRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePrefixRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritablePrefixRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritablePrefixRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritablePrefixRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritablePrefixRequest_Relationships_Source_Objects_Item -func (a *WritablePrefixRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritablePrefixRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritablePrefixRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritablePrefixRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableProviderNetworkRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableProviderNetworkRequest_Relationships_Destination_Objects_Item -func (a *WritableProviderNetworkRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableProviderNetworkRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableProviderNetworkRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableProviderNetworkRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableProviderNetworkRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableProviderNetworkRequest_Relationships_Peer_Objects_Item -func (a *WritableProviderNetworkRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableProviderNetworkRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableProviderNetworkRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableProviderNetworkRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableProviderNetworkRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableProviderNetworkRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableProviderNetworkRequest_Relationships_Source_Objects_Item -func (a *WritableProviderNetworkRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableProviderNetworkRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableProviderNetworkRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableProviderNetworkRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackGroupRequest_Relationships_Destination_Objects_Item -func (a *WritableRackGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableRackGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableRackGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackGroupRequest_Relationships_Peer_Objects_Item -func (a *WritableRackGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableRackGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableRackGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackGroupRequest_Relationships_Source_Objects_Item -func (a *WritableRackGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableRackGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableRackGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackRequest_Relationships_Destination_Objects_Item -func (a *WritableRackRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableRackRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableRackRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackRequest_Relationships_Peer_Objects_Item -func (a *WritableRackRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableRackRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableRackRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackRequest_Relationships_Source_Objects_Item -func (a *WritableRackRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableRackRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableRackRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackReservationRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackReservationRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackReservationRequest_Relationships_Destination_Objects_Item -func (a *WritableRackReservationRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableRackReservationRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackReservationRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableRackReservationRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackReservationRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackReservationRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackReservationRequest_Relationships_Peer_Objects_Item -func (a *WritableRackReservationRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableRackReservationRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackReservationRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableRackReservationRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRackReservationRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRackReservationRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRackReservationRequest_Relationships_Source_Objects_Item -func (a *WritableRackReservationRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableRackReservationRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRackReservationRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableRackReservationRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRearPortRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRearPortRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRearPortRequest_Relationships_Destination_Objects_Item -func (a *WritableRearPortRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableRearPortRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRearPortRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableRearPortRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRearPortRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRearPortRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRearPortRequest_Relationships_Peer_Objects_Item -func (a *WritableRearPortRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableRearPortRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRearPortRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableRearPortRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRearPortRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRearPortRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRearPortRequest_Relationships_Source_Objects_Item -func (a *WritableRearPortRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableRearPortRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRearPortRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableRearPortRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item -func (a *WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableRearPortTemplateRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item -func (a *WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableRearPortTemplateRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRearPortTemplateRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRearPortTemplateRequest_Relationships_Source_Objects_Item -func (a *WritableRearPortTemplateRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableRearPortTemplateRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRearPortTemplateRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableRearPortTemplateRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRegionRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRegionRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRegionRequest_Relationships_Destination_Objects_Item -func (a *WritableRegionRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableRegionRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRegionRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableRegionRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRegionRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRegionRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRegionRequest_Relationships_Peer_Objects_Item -func (a *WritableRegionRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableRegionRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRegionRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableRegionRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRegionRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRegionRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRegionRequest_Relationships_Source_Objects_Item -func (a *WritableRegionRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableRegionRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRegionRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableRegionRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRouteTargetRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRouteTargetRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRouteTargetRequest_Relationships_Destination_Objects_Item -func (a *WritableRouteTargetRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableRouteTargetRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRouteTargetRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableRouteTargetRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRouteTargetRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRouteTargetRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRouteTargetRequest_Relationships_Peer_Objects_Item -func (a *WritableRouteTargetRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableRouteTargetRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRouteTargetRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableRouteTargetRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableRouteTargetRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableRouteTargetRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableRouteTargetRequest_Relationships_Source_Objects_Item -func (a *WritableRouteTargetRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableRouteTargetRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableRouteTargetRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableRouteTargetRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableServiceObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableServiceObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item -func (a *WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableServiceObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableServiceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableServiceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableServiceRequest_Relationships_Destination_Objects_Item -func (a *WritableServiceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableServiceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableServiceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableServiceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableServiceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableServiceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableServiceRequest_Relationships_Peer_Objects_Item -func (a *WritableServiceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableServiceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableServiceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableServiceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableServiceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableServiceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableServiceRequest_Relationships_Source_Objects_Item -func (a *WritableServiceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableServiceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableServiceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableServiceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSiteRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSiteRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSiteRequest_Relationships_Destination_Objects_Item -func (a *WritableSiteRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableSiteRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSiteRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableSiteRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSiteRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSiteRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSiteRequest_Relationships_Peer_Objects_Item -func (a *WritableSiteRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableSiteRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSiteRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableSiteRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSiteRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSiteRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSiteRequest_Relationships_Source_Objects_Item -func (a *WritableSiteRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableSiteRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSiteRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableSiteRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item -func (a *WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableSoftwareImageLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item -func (a *WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableSoftwareImageLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item -func (a *WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableSoftwareImageLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *WritableSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableTenantGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableTenantGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableTenantGroupRequest_Relationships_Destination_Objects_Item -func (a *WritableTenantGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableTenantGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableTenantGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableTenantGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableTenantGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableTenantGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableTenantGroupRequest_Relationships_Peer_Objects_Item -func (a *WritableTenantGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableTenantGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableTenantGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableTenantGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableTenantGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableTenantGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableTenantGroupRequest_Relationships_Source_Objects_Item -func (a *WritableTenantGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableTenantGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableTenantGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableTenantGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableTenantRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableTenantRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableTenantRequest_Relationships_Destination_Objects_Item -func (a *WritableTenantRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableTenantRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableTenantRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableTenantRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableTenantRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableTenantRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableTenantRequest_Relationships_Peer_Objects_Item -func (a *WritableTenantRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableTenantRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableTenantRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableTenantRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableTenantRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableTenantRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableTenantRequest_Relationships_Source_Objects_Item -func (a *WritableTenantRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableTenantRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableTenantRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableTenantRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item -func (a *WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableUserObjectGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item -func (a *WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableUserObjectGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableUserObjectGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableUserObjectGroupRequest_Relationships_Source_Objects_Item -func (a *WritableUserObjectGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableUserObjectGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableUserObjectGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableUserObjectGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVLANGroupRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVLANGroupRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVLANGroupRequest_Relationships_Destination_Objects_Item -func (a *WritableVLANGroupRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableVLANGroupRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVLANGroupRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableVLANGroupRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVLANGroupRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVLANGroupRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVLANGroupRequest_Relationships_Peer_Objects_Item -func (a *WritableVLANGroupRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableVLANGroupRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVLANGroupRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableVLANGroupRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVLANGroupRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVLANGroupRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVLANGroupRequest_Relationships_Source_Objects_Item -func (a *WritableVLANGroupRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableVLANGroupRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVLANGroupRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableVLANGroupRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVLANRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVLANRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVLANRequest_Relationships_Destination_Objects_Item -func (a *WritableVLANRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableVLANRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVLANRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableVLANRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVLANRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVLANRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVLANRequest_Relationships_Peer_Objects_Item -func (a *WritableVLANRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableVLANRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVLANRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableVLANRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVLANRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVLANRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVLANRequest_Relationships_Source_Objects_Item -func (a *WritableVLANRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableVLANRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVLANRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableVLANRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVMInterfaceRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVMInterfaceRequest_Relationships_Destination_Objects_Item -func (a *WritableVMInterfaceRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableVMInterfaceRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVMInterfaceRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableVMInterfaceRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVMInterfaceRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVMInterfaceRequest_Relationships_Peer_Objects_Item -func (a *WritableVMInterfaceRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableVMInterfaceRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVMInterfaceRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableVMInterfaceRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVMInterfaceRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVMInterfaceRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVMInterfaceRequest_Relationships_Source_Objects_Item -func (a *WritableVMInterfaceRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableVMInterfaceRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVMInterfaceRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableVMInterfaceRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVRFRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVRFRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVRFRequest_Relationships_Destination_Objects_Item -func (a *WritableVRFRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableVRFRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVRFRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableVRFRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVRFRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVRFRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVRFRequest_Relationships_Peer_Objects_Item -func (a *WritableVRFRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableVRFRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVRFRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableVRFRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVRFRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVRFRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVRFRequest_Relationships_Source_Objects_Item -func (a *WritableVRFRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableVRFRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVRFRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableVRFRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item -func (a *WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableValidatedSoftwareLCMRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item -func (a *WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableValidatedSoftwareLCMRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item -func (a *WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableValidatedSoftwareLCMRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVirtualChassisRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVirtualChassisRequest_Relationships_Destination_Objects_Item -func (a *WritableVirtualChassisRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableVirtualChassisRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVirtualChassisRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableVirtualChassisRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVirtualChassisRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVirtualChassisRequest_Relationships_Peer_Objects_Item -func (a *WritableVirtualChassisRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableVirtualChassisRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVirtualChassisRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableVirtualChassisRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVirtualChassisRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVirtualChassisRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVirtualChassisRequest_Relationships_Source_Objects_Item -func (a *WritableVirtualChassisRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableVirtualChassisRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVirtualChassisRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableVirtualChassisRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item -func (a *WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a WritableVirtualMachineWithConfigContextRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item -func (a *WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a WritableVirtualMachineWithConfigContextRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item -func (a *WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a WritableVirtualMachineWithConfigContextRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ZoneRequest_Relationships_Destination_Objects_Item. Returns the specified -// element and whether it was found -func (a ZoneRequest_Relationships_Destination_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ZoneRequest_Relationships_Destination_Objects_Item -func (a *ZoneRequest_Relationships_Destination_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a *ZoneRequest_Relationships_Destination_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ZoneRequest_Relationships_Destination_Objects_Item to handle AdditionalProperties -func (a ZoneRequest_Relationships_Destination_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ZoneRequest_Relationships_Peer_Objects_Item. Returns the specified -// element and whether it was found -func (a ZoneRequest_Relationships_Peer_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ZoneRequest_Relationships_Peer_Objects_Item -func (a *ZoneRequest_Relationships_Peer_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a *ZoneRequest_Relationships_Peer_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ZoneRequest_Relationships_Peer_Objects_Item to handle AdditionalProperties -func (a ZoneRequest_Relationships_Peer_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ZoneRequest_Relationships_Source_Objects_Item. Returns the specified -// element and whether it was found -func (a ZoneRequest_Relationships_Source_Objects_Item) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ZoneRequest_Relationships_Source_Objects_Item -func (a *ZoneRequest_Relationships_Source_Objects_Item) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a *ZoneRequest_Relationships_Source_Objects_Item) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["display"]; found { - err = json.Unmarshal(raw, &a.Display) - if err != nil { - return fmt.Errorf("error reading 'display': %w", err) - } - delete(object, "display") - } - - if raw, found := object["id"]; found { - err = json.Unmarshal(raw, &a.Id) - if err != nil { - return fmt.Errorf("error reading 'id': %w", err) - } - delete(object, "id") - } - - if raw, found := object["url"]; found { - err = json.Unmarshal(raw, &a.Url) - if err != nil { - return fmt.Errorf("error reading 'url': %w", err) - } - delete(object, "url") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshalling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ZoneRequest_Relationships_Source_Objects_Item to handle AdditionalProperties -func (a ZoneRequest_Relationships_Source_Objects_Item) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Display != nil { - object["display"], err = json.Marshal(a.Display) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display': %w", err) - } - } - - if a.Id != nil { - object["id"], err = json.Marshal(a.Id) - if err != nil { - return nil, fmt.Errorf("error marshaling 'id': %w", err) - } - } - - if a.Url != nil { - object["url"], err = json.Marshal(a.Url) - if err != nil { - return nil, fmt.Errorf("error marshaling 'url': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// AsCableTypeChoices returns the union data inside the BulkWritableCableRequest_Type as a CableTypeChoices -func (t BulkWritableCableRequest_Type) AsCableTypeChoices() (CableTypeChoices, error) { - var body CableTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromCableTypeChoices overwrites any union data inside the BulkWritableCableRequest_Type as the provided CableTypeChoices -func (t *BulkWritableCableRequest_Type) FromCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeCableTypeChoices performs a merge with any union data inside the BulkWritableCableRequest_Type, using the provided CableTypeChoices -func (t *BulkWritableCableRequest_Type) MergeCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the BulkWritableCableRequest_Type as a BlankEnum -func (t BulkWritableCableRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the BulkWritableCableRequest_Type as the provided BlankEnum -func (t *BulkWritableCableRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the BulkWritableCableRequest_Type, using the provided BlankEnum -func (t *BulkWritableCableRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t BulkWritableCableRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *BulkWritableCableRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsImpactEnum returns the union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as a ImpactEnum -func (t BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) AsImpactEnum() (ImpactEnum, error) { - var body ImpactEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromImpactEnum overwrites any union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as the provided ImpactEnum -func (t *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) FromImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeImpactEnum performs a merge with any union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact, using the provided ImpactEnum -func (t *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MergeImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as a BlankEnum -func (t BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as the provided BlankEnum -func (t *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact, using the provided BlankEnum -func (t *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as a NullEnum -func (t BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as the provided NullEnum -func (t *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact, using the provided NullEnum -func (t *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *BulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsStatusD95Enum returns the union data inside the BulkWritableCircuitMaintenanceRequest_Status as a StatusD95Enum -func (t BulkWritableCircuitMaintenanceRequest_Status) AsStatusD95Enum() (StatusD95Enum, error) { - var body StatusD95Enum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromStatusD95Enum overwrites any union data inside the BulkWritableCircuitMaintenanceRequest_Status as the provided StatusD95Enum -func (t *BulkWritableCircuitMaintenanceRequest_Status) FromStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeStatusD95Enum performs a merge with any union data inside the BulkWritableCircuitMaintenanceRequest_Status, using the provided StatusD95Enum -func (t *BulkWritableCircuitMaintenanceRequest_Status) MergeStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the BulkWritableCircuitMaintenanceRequest_Status as a BlankEnum -func (t BulkWritableCircuitMaintenanceRequest_Status) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the BulkWritableCircuitMaintenanceRequest_Status as the provided BlankEnum -func (t *BulkWritableCircuitMaintenanceRequest_Status) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the BulkWritableCircuitMaintenanceRequest_Status, using the provided BlankEnum -func (t *BulkWritableCircuitMaintenanceRequest_Status) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the BulkWritableCircuitMaintenanceRequest_Status as a NullEnum -func (t BulkWritableCircuitMaintenanceRequest_Status) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the BulkWritableCircuitMaintenanceRequest_Status as the provided NullEnum -func (t *BulkWritableCircuitMaintenanceRequest_Status) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the BulkWritableCircuitMaintenanceRequest_Status, using the provided NullEnum -func (t *BulkWritableCircuitMaintenanceRequest_Status) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t BulkWritableCircuitMaintenanceRequest_Status) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *BulkWritableCircuitMaintenanceRequest_Status) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsProvidedContentsEnum returns the union data inside the BulkWritableGitRepositoryRequest_ProvidedContents_Item as a ProvidedContentsEnum -func (t BulkWritableGitRepositoryRequest_ProvidedContents_Item) AsProvidedContentsEnum() (ProvidedContentsEnum, error) { - var body ProvidedContentsEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromProvidedContentsEnum overwrites any union data inside the BulkWritableGitRepositoryRequest_ProvidedContents_Item as the provided ProvidedContentsEnum -func (t *BulkWritableGitRepositoryRequest_ProvidedContents_Item) FromProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeProvidedContentsEnum performs a merge with any union data inside the BulkWritableGitRepositoryRequest_ProvidedContents_Item, using the provided ProvidedContentsEnum -func (t *BulkWritableGitRepositoryRequest_ProvidedContents_Item) MergeProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the BulkWritableGitRepositoryRequest_ProvidedContents_Item as a BlankEnum -func (t BulkWritableGitRepositoryRequest_ProvidedContents_Item) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the BulkWritableGitRepositoryRequest_ProvidedContents_Item as the provided BlankEnum -func (t *BulkWritableGitRepositoryRequest_ProvidedContents_Item) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the BulkWritableGitRepositoryRequest_ProvidedContents_Item, using the provided BlankEnum -func (t *BulkWritableGitRepositoryRequest_ProvidedContents_Item) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t BulkWritableGitRepositoryRequest_ProvidedContents_Item) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *BulkWritableGitRepositoryRequest_ProvidedContents_Item) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRequiredOnEnum returns the union data inside the BulkWritableRelationshipRequest_RequiredOn as a RequiredOnEnum -func (t BulkWritableRelationshipRequest_RequiredOn) AsRequiredOnEnum() (RequiredOnEnum, error) { - var body RequiredOnEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRequiredOnEnum overwrites any union data inside the BulkWritableRelationshipRequest_RequiredOn as the provided RequiredOnEnum -func (t *BulkWritableRelationshipRequest_RequiredOn) FromRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRequiredOnEnum performs a merge with any union data inside the BulkWritableRelationshipRequest_RequiredOn, using the provided RequiredOnEnum -func (t *BulkWritableRelationshipRequest_RequiredOn) MergeRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the BulkWritableRelationshipRequest_RequiredOn as a BlankEnum -func (t BulkWritableRelationshipRequest_RequiredOn) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the BulkWritableRelationshipRequest_RequiredOn as the provided BlankEnum -func (t *BulkWritableRelationshipRequest_RequiredOn) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the BulkWritableRelationshipRequest_RequiredOn, using the provided BlankEnum -func (t *BulkWritableRelationshipRequest_RequiredOn) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t BulkWritableRelationshipRequest_RequiredOn) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *BulkWritableRelationshipRequest_RequiredOn) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsCableTypeChoices returns the union data inside the Cable_Type as a CableTypeChoices -func (t Cable_Type) AsCableTypeChoices() (CableTypeChoices, error) { - var body CableTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromCableTypeChoices overwrites any union data inside the Cable_Type as the provided CableTypeChoices -func (t *Cable_Type) FromCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeCableTypeChoices performs a merge with any union data inside the Cable_Type, using the provided CableTypeChoices -func (t *Cable_Type) MergeCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the Cable_Type as a BlankEnum -func (t Cable_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the Cable_Type as the provided BlankEnum -func (t *Cable_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the Cable_Type, using the provided BlankEnum -func (t *Cable_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t Cable_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *Cable_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsStatusD95Enum returns the union data inside the CircuitMaintenance_Status as a StatusD95Enum -func (t CircuitMaintenance_Status) AsStatusD95Enum() (StatusD95Enum, error) { - var body StatusD95Enum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromStatusD95Enum overwrites any union data inside the CircuitMaintenance_Status as the provided StatusD95Enum -func (t *CircuitMaintenance_Status) FromStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeStatusD95Enum performs a merge with any union data inside the CircuitMaintenance_Status, using the provided StatusD95Enum -func (t *CircuitMaintenance_Status) MergeStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the CircuitMaintenance_Status as a BlankEnum -func (t CircuitMaintenance_Status) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the CircuitMaintenance_Status as the provided BlankEnum -func (t *CircuitMaintenance_Status) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the CircuitMaintenance_Status, using the provided BlankEnum -func (t *CircuitMaintenance_Status) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the CircuitMaintenance_Status as a NullEnum -func (t CircuitMaintenance_Status) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the CircuitMaintenance_Status as the provided NullEnum -func (t *CircuitMaintenance_Status) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the CircuitMaintenance_Status, using the provided NullEnum -func (t *CircuitMaintenance_Status) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t CircuitMaintenance_Status) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *CircuitMaintenance_Status) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsImpactEnum returns the union data inside the CircuitMaintenanceCircuitImpact_Impact as a ImpactEnum -func (t CircuitMaintenanceCircuitImpact_Impact) AsImpactEnum() (ImpactEnum, error) { - var body ImpactEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromImpactEnum overwrites any union data inside the CircuitMaintenanceCircuitImpact_Impact as the provided ImpactEnum -func (t *CircuitMaintenanceCircuitImpact_Impact) FromImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeImpactEnum performs a merge with any union data inside the CircuitMaintenanceCircuitImpact_Impact, using the provided ImpactEnum -func (t *CircuitMaintenanceCircuitImpact_Impact) MergeImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the CircuitMaintenanceCircuitImpact_Impact as a BlankEnum -func (t CircuitMaintenanceCircuitImpact_Impact) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the CircuitMaintenanceCircuitImpact_Impact as the provided BlankEnum -func (t *CircuitMaintenanceCircuitImpact_Impact) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the CircuitMaintenanceCircuitImpact_Impact, using the provided BlankEnum -func (t *CircuitMaintenanceCircuitImpact_Impact) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the CircuitMaintenanceCircuitImpact_Impact as a NullEnum -func (t CircuitMaintenanceCircuitImpact_Impact) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the CircuitMaintenanceCircuitImpact_Impact as the provided NullEnum -func (t *CircuitMaintenanceCircuitImpact_Impact) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the CircuitMaintenanceCircuitImpact_Impact, using the provided NullEnum -func (t *CircuitMaintenanceCircuitImpact_Impact) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t CircuitMaintenanceCircuitImpact_Impact) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *CircuitMaintenanceCircuitImpact_Impact) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsImpactEnum returns the union data inside the CircuitMaintenanceCircuitImpactRequest_Impact as a ImpactEnum -func (t CircuitMaintenanceCircuitImpactRequest_Impact) AsImpactEnum() (ImpactEnum, error) { - var body ImpactEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromImpactEnum overwrites any union data inside the CircuitMaintenanceCircuitImpactRequest_Impact as the provided ImpactEnum -func (t *CircuitMaintenanceCircuitImpactRequest_Impact) FromImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeImpactEnum performs a merge with any union data inside the CircuitMaintenanceCircuitImpactRequest_Impact, using the provided ImpactEnum -func (t *CircuitMaintenanceCircuitImpactRequest_Impact) MergeImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the CircuitMaintenanceCircuitImpactRequest_Impact as a BlankEnum -func (t CircuitMaintenanceCircuitImpactRequest_Impact) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the CircuitMaintenanceCircuitImpactRequest_Impact as the provided BlankEnum -func (t *CircuitMaintenanceCircuitImpactRequest_Impact) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the CircuitMaintenanceCircuitImpactRequest_Impact, using the provided BlankEnum -func (t *CircuitMaintenanceCircuitImpactRequest_Impact) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the CircuitMaintenanceCircuitImpactRequest_Impact as a NullEnum -func (t CircuitMaintenanceCircuitImpactRequest_Impact) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the CircuitMaintenanceCircuitImpactRequest_Impact as the provided NullEnum -func (t *CircuitMaintenanceCircuitImpactRequest_Impact) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the CircuitMaintenanceCircuitImpactRequest_Impact, using the provided NullEnum -func (t *CircuitMaintenanceCircuitImpactRequest_Impact) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t CircuitMaintenanceCircuitImpactRequest_Impact) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *CircuitMaintenanceCircuitImpactRequest_Impact) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsStatusD95Enum returns the union data inside the CircuitMaintenanceRequest_Status as a StatusD95Enum -func (t CircuitMaintenanceRequest_Status) AsStatusD95Enum() (StatusD95Enum, error) { - var body StatusD95Enum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromStatusD95Enum overwrites any union data inside the CircuitMaintenanceRequest_Status as the provided StatusD95Enum -func (t *CircuitMaintenanceRequest_Status) FromStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeStatusD95Enum performs a merge with any union data inside the CircuitMaintenanceRequest_Status, using the provided StatusD95Enum -func (t *CircuitMaintenanceRequest_Status) MergeStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the CircuitMaintenanceRequest_Status as a BlankEnum -func (t CircuitMaintenanceRequest_Status) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the CircuitMaintenanceRequest_Status as the provided BlankEnum -func (t *CircuitMaintenanceRequest_Status) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the CircuitMaintenanceRequest_Status, using the provided BlankEnum -func (t *CircuitMaintenanceRequest_Status) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the CircuitMaintenanceRequest_Status as a NullEnum -func (t CircuitMaintenanceRequest_Status) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the CircuitMaintenanceRequest_Status as the provided NullEnum -func (t *CircuitMaintenanceRequest_Status) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the CircuitMaintenanceRequest_Status, using the provided NullEnum -func (t *CircuitMaintenanceRequest_Status) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t CircuitMaintenanceRequest_Status) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *CircuitMaintenanceRequest_Status) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsProvidedContentsEnum returns the union data inside the GitRepository_ProvidedContents_Item as a ProvidedContentsEnum -func (t GitRepository_ProvidedContents_Item) AsProvidedContentsEnum() (ProvidedContentsEnum, error) { - var body ProvidedContentsEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromProvidedContentsEnum overwrites any union data inside the GitRepository_ProvidedContents_Item as the provided ProvidedContentsEnum -func (t *GitRepository_ProvidedContents_Item) FromProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeProvidedContentsEnum performs a merge with any union data inside the GitRepository_ProvidedContents_Item, using the provided ProvidedContentsEnum -func (t *GitRepository_ProvidedContents_Item) MergeProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the GitRepository_ProvidedContents_Item as a BlankEnum -func (t GitRepository_ProvidedContents_Item) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the GitRepository_ProvidedContents_Item as the provided BlankEnum -func (t *GitRepository_ProvidedContents_Item) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the GitRepository_ProvidedContents_Item, using the provided BlankEnum -func (t *GitRepository_ProvidedContents_Item) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t GitRepository_ProvidedContents_Item) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *GitRepository_ProvidedContents_Item) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsProvidedContentsEnum returns the union data inside the GitRepositoryRequest_ProvidedContents_Item as a ProvidedContentsEnum -func (t GitRepositoryRequest_ProvidedContents_Item) AsProvidedContentsEnum() (ProvidedContentsEnum, error) { - var body ProvidedContentsEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromProvidedContentsEnum overwrites any union data inside the GitRepositoryRequest_ProvidedContents_Item as the provided ProvidedContentsEnum -func (t *GitRepositoryRequest_ProvidedContents_Item) FromProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeProvidedContentsEnum performs a merge with any union data inside the GitRepositoryRequest_ProvidedContents_Item, using the provided ProvidedContentsEnum -func (t *GitRepositoryRequest_ProvidedContents_Item) MergeProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the GitRepositoryRequest_ProvidedContents_Item as a BlankEnum -func (t GitRepositoryRequest_ProvidedContents_Item) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the GitRepositoryRequest_ProvidedContents_Item as the provided BlankEnum -func (t *GitRepositoryRequest_ProvidedContents_Item) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the GitRepositoryRequest_ProvidedContents_Item, using the provided BlankEnum -func (t *GitRepositoryRequest_ProvidedContents_Item) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t GitRepositoryRequest_ProvidedContents_Item) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *GitRepositoryRequest_ProvidedContents_Item) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFailoverStrategyEnum returns the union data inside the NestedDeviceRedundancyGroup_FailoverStrategy as a FailoverStrategyEnum -func (t NestedDeviceRedundancyGroup_FailoverStrategy) AsFailoverStrategyEnum() (FailoverStrategyEnum, error) { - var body FailoverStrategyEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFailoverStrategyEnum overwrites any union data inside the NestedDeviceRedundancyGroup_FailoverStrategy as the provided FailoverStrategyEnum -func (t *NestedDeviceRedundancyGroup_FailoverStrategy) FromFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFailoverStrategyEnum performs a merge with any union data inside the NestedDeviceRedundancyGroup_FailoverStrategy, using the provided FailoverStrategyEnum -func (t *NestedDeviceRedundancyGroup_FailoverStrategy) MergeFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the NestedDeviceRedundancyGroup_FailoverStrategy as a BlankEnum -func (t NestedDeviceRedundancyGroup_FailoverStrategy) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the NestedDeviceRedundancyGroup_FailoverStrategy as the provided BlankEnum -func (t *NestedDeviceRedundancyGroup_FailoverStrategy) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the NestedDeviceRedundancyGroup_FailoverStrategy, using the provided BlankEnum -func (t *NestedDeviceRedundancyGroup_FailoverStrategy) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t NestedDeviceRedundancyGroup_FailoverStrategy) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *NestedDeviceRedundancyGroup_FailoverStrategy) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFailoverStrategyEnum returns the union data inside the NestedDeviceRedundancyGroupRequest_FailoverStrategy as a FailoverStrategyEnum -func (t NestedDeviceRedundancyGroupRequest_FailoverStrategy) AsFailoverStrategyEnum() (FailoverStrategyEnum, error) { - var body FailoverStrategyEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFailoverStrategyEnum overwrites any union data inside the NestedDeviceRedundancyGroupRequest_FailoverStrategy as the provided FailoverStrategyEnum -func (t *NestedDeviceRedundancyGroupRequest_FailoverStrategy) FromFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFailoverStrategyEnum performs a merge with any union data inside the NestedDeviceRedundancyGroupRequest_FailoverStrategy, using the provided FailoverStrategyEnum -func (t *NestedDeviceRedundancyGroupRequest_FailoverStrategy) MergeFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the NestedDeviceRedundancyGroupRequest_FailoverStrategy as a BlankEnum -func (t NestedDeviceRedundancyGroupRequest_FailoverStrategy) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the NestedDeviceRedundancyGroupRequest_FailoverStrategy as the provided BlankEnum -func (t *NestedDeviceRedundancyGroupRequest_FailoverStrategy) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the NestedDeviceRedundancyGroupRequest_FailoverStrategy, using the provided BlankEnum -func (t *NestedDeviceRedundancyGroupRequest_FailoverStrategy) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t NestedDeviceRedundancyGroupRequest_FailoverStrategy) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *NestedDeviceRedundancyGroupRequest_FailoverStrategy) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsCableTypeChoices returns the union data inside the PatchedBulkWritableCableRequest_Type as a CableTypeChoices -func (t PatchedBulkWritableCableRequest_Type) AsCableTypeChoices() (CableTypeChoices, error) { - var body CableTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromCableTypeChoices overwrites any union data inside the PatchedBulkWritableCableRequest_Type as the provided CableTypeChoices -func (t *PatchedBulkWritableCableRequest_Type) FromCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeCableTypeChoices performs a merge with any union data inside the PatchedBulkWritableCableRequest_Type, using the provided CableTypeChoices -func (t *PatchedBulkWritableCableRequest_Type) MergeCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedBulkWritableCableRequest_Type as a BlankEnum -func (t PatchedBulkWritableCableRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedBulkWritableCableRequest_Type as the provided BlankEnum -func (t *PatchedBulkWritableCableRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedBulkWritableCableRequest_Type, using the provided BlankEnum -func (t *PatchedBulkWritableCableRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedBulkWritableCableRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedBulkWritableCableRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsImpactEnum returns the union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as a ImpactEnum -func (t PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) AsImpactEnum() (ImpactEnum, error) { - var body ImpactEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromImpactEnum overwrites any union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as the provided ImpactEnum -func (t *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) FromImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeImpactEnum performs a merge with any union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact, using the provided ImpactEnum -func (t *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MergeImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as a BlankEnum -func (t PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as the provided BlankEnum -func (t *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact, using the provided BlankEnum -func (t *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as a NullEnum -func (t PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact as the provided NullEnum -func (t *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact, using the provided NullEnum -func (t *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedBulkWritableCircuitMaintenanceCircuitImpactRequest_Impact) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsStatusD95Enum returns the union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status as a StatusD95Enum -func (t PatchedBulkWritableCircuitMaintenanceRequest_Status) AsStatusD95Enum() (StatusD95Enum, error) { - var body StatusD95Enum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromStatusD95Enum overwrites any union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status as the provided StatusD95Enum -func (t *PatchedBulkWritableCircuitMaintenanceRequest_Status) FromStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeStatusD95Enum performs a merge with any union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status, using the provided StatusD95Enum -func (t *PatchedBulkWritableCircuitMaintenanceRequest_Status) MergeStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status as a BlankEnum -func (t PatchedBulkWritableCircuitMaintenanceRequest_Status) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status as the provided BlankEnum -func (t *PatchedBulkWritableCircuitMaintenanceRequest_Status) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status, using the provided BlankEnum -func (t *PatchedBulkWritableCircuitMaintenanceRequest_Status) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status as a NullEnum -func (t PatchedBulkWritableCircuitMaintenanceRequest_Status) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status as the provided NullEnum -func (t *PatchedBulkWritableCircuitMaintenanceRequest_Status) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the PatchedBulkWritableCircuitMaintenanceRequest_Status, using the provided NullEnum -func (t *PatchedBulkWritableCircuitMaintenanceRequest_Status) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedBulkWritableCircuitMaintenanceRequest_Status) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedBulkWritableCircuitMaintenanceRequest_Status) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsProvidedContentsEnum returns the union data inside the PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item as a ProvidedContentsEnum -func (t PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) AsProvidedContentsEnum() (ProvidedContentsEnum, error) { - var body ProvidedContentsEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromProvidedContentsEnum overwrites any union data inside the PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item as the provided ProvidedContentsEnum -func (t *PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) FromProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeProvidedContentsEnum performs a merge with any union data inside the PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item, using the provided ProvidedContentsEnum -func (t *PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) MergeProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item as a BlankEnum -func (t PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item as the provided BlankEnum -func (t *PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item, using the provided BlankEnum -func (t *PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedBulkWritableGitRepositoryRequest_ProvidedContents_Item) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRequiredOnEnum returns the union data inside the PatchedBulkWritableRelationshipRequest_RequiredOn as a RequiredOnEnum -func (t PatchedBulkWritableRelationshipRequest_RequiredOn) AsRequiredOnEnum() (RequiredOnEnum, error) { - var body RequiredOnEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRequiredOnEnum overwrites any union data inside the PatchedBulkWritableRelationshipRequest_RequiredOn as the provided RequiredOnEnum -func (t *PatchedBulkWritableRelationshipRequest_RequiredOn) FromRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRequiredOnEnum performs a merge with any union data inside the PatchedBulkWritableRelationshipRequest_RequiredOn, using the provided RequiredOnEnum -func (t *PatchedBulkWritableRelationshipRequest_RequiredOn) MergeRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedBulkWritableRelationshipRequest_RequiredOn as a BlankEnum -func (t PatchedBulkWritableRelationshipRequest_RequiredOn) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedBulkWritableRelationshipRequest_RequiredOn as the provided BlankEnum -func (t *PatchedBulkWritableRelationshipRequest_RequiredOn) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedBulkWritableRelationshipRequest_RequiredOn, using the provided BlankEnum -func (t *PatchedBulkWritableRelationshipRequest_RequiredOn) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedBulkWritableRelationshipRequest_RequiredOn) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedBulkWritableRelationshipRequest_RequiredOn) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsImpactEnum returns the union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact as a ImpactEnum -func (t PatchedCircuitMaintenanceCircuitImpactRequest_Impact) AsImpactEnum() (ImpactEnum, error) { - var body ImpactEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromImpactEnum overwrites any union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact as the provided ImpactEnum -func (t *PatchedCircuitMaintenanceCircuitImpactRequest_Impact) FromImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeImpactEnum performs a merge with any union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact, using the provided ImpactEnum -func (t *PatchedCircuitMaintenanceCircuitImpactRequest_Impact) MergeImpactEnum(v ImpactEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact as a BlankEnum -func (t PatchedCircuitMaintenanceCircuitImpactRequest_Impact) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact as the provided BlankEnum -func (t *PatchedCircuitMaintenanceCircuitImpactRequest_Impact) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact, using the provided BlankEnum -func (t *PatchedCircuitMaintenanceCircuitImpactRequest_Impact) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact as a NullEnum -func (t PatchedCircuitMaintenanceCircuitImpactRequest_Impact) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact as the provided NullEnum -func (t *PatchedCircuitMaintenanceCircuitImpactRequest_Impact) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the PatchedCircuitMaintenanceCircuitImpactRequest_Impact, using the provided NullEnum -func (t *PatchedCircuitMaintenanceCircuitImpactRequest_Impact) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedCircuitMaintenanceCircuitImpactRequest_Impact) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedCircuitMaintenanceCircuitImpactRequest_Impact) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsStatusD95Enum returns the union data inside the PatchedCircuitMaintenanceRequest_Status as a StatusD95Enum -func (t PatchedCircuitMaintenanceRequest_Status) AsStatusD95Enum() (StatusD95Enum, error) { - var body StatusD95Enum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromStatusD95Enum overwrites any union data inside the PatchedCircuitMaintenanceRequest_Status as the provided StatusD95Enum -func (t *PatchedCircuitMaintenanceRequest_Status) FromStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeStatusD95Enum performs a merge with any union data inside the PatchedCircuitMaintenanceRequest_Status, using the provided StatusD95Enum -func (t *PatchedCircuitMaintenanceRequest_Status) MergeStatusD95Enum(v StatusD95Enum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedCircuitMaintenanceRequest_Status as a BlankEnum -func (t PatchedCircuitMaintenanceRequest_Status) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedCircuitMaintenanceRequest_Status as the provided BlankEnum -func (t *PatchedCircuitMaintenanceRequest_Status) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedCircuitMaintenanceRequest_Status, using the provided BlankEnum -func (t *PatchedCircuitMaintenanceRequest_Status) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsNullEnum returns the union data inside the PatchedCircuitMaintenanceRequest_Status as a NullEnum -func (t PatchedCircuitMaintenanceRequest_Status) AsNullEnum() (NullEnum, error) { - var body NullEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromNullEnum overwrites any union data inside the PatchedCircuitMaintenanceRequest_Status as the provided NullEnum -func (t *PatchedCircuitMaintenanceRequest_Status) FromNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeNullEnum performs a merge with any union data inside the PatchedCircuitMaintenanceRequest_Status, using the provided NullEnum -func (t *PatchedCircuitMaintenanceRequest_Status) MergeNullEnum(v NullEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedCircuitMaintenanceRequest_Status) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedCircuitMaintenanceRequest_Status) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRequiredOnEnum returns the union data inside the PatchedRelationshipRequest_RequiredOn as a RequiredOnEnum -func (t PatchedRelationshipRequest_RequiredOn) AsRequiredOnEnum() (RequiredOnEnum, error) { - var body RequiredOnEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRequiredOnEnum overwrites any union data inside the PatchedRelationshipRequest_RequiredOn as the provided RequiredOnEnum -func (t *PatchedRelationshipRequest_RequiredOn) FromRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRequiredOnEnum performs a merge with any union data inside the PatchedRelationshipRequest_RequiredOn, using the provided RequiredOnEnum -func (t *PatchedRelationshipRequest_RequiredOn) MergeRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedRelationshipRequest_RequiredOn as a BlankEnum -func (t PatchedRelationshipRequest_RequiredOn) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedRelationshipRequest_RequiredOn as the provided BlankEnum -func (t *PatchedRelationshipRequest_RequiredOn) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedRelationshipRequest_RequiredOn, using the provided BlankEnum -func (t *PatchedRelationshipRequest_RequiredOn) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedRelationshipRequest_RequiredOn) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedRelationshipRequest_RequiredOn) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsLengthUnitEnum returns the union data inside the PatchedWritableCableRequest_LengthUnit as a LengthUnitEnum -func (t PatchedWritableCableRequest_LengthUnit) AsLengthUnitEnum() (LengthUnitEnum, error) { - var body LengthUnitEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromLengthUnitEnum overwrites any union data inside the PatchedWritableCableRequest_LengthUnit as the provided LengthUnitEnum -func (t *PatchedWritableCableRequest_LengthUnit) FromLengthUnitEnum(v LengthUnitEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeLengthUnitEnum performs a merge with any union data inside the PatchedWritableCableRequest_LengthUnit, using the provided LengthUnitEnum -func (t *PatchedWritableCableRequest_LengthUnit) MergeLengthUnitEnum(v LengthUnitEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableCableRequest_LengthUnit as a BlankEnum -func (t PatchedWritableCableRequest_LengthUnit) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableCableRequest_LengthUnit as the provided BlankEnum -func (t *PatchedWritableCableRequest_LengthUnit) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableCableRequest_LengthUnit, using the provided BlankEnum -func (t *PatchedWritableCableRequest_LengthUnit) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableCableRequest_LengthUnit) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableCableRequest_LengthUnit) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsCableTypeChoices returns the union data inside the PatchedWritableCableRequest_Type as a CableTypeChoices -func (t PatchedWritableCableRequest_Type) AsCableTypeChoices() (CableTypeChoices, error) { - var body CableTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromCableTypeChoices overwrites any union data inside the PatchedWritableCableRequest_Type as the provided CableTypeChoices -func (t *PatchedWritableCableRequest_Type) FromCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeCableTypeChoices performs a merge with any union data inside the PatchedWritableCableRequest_Type, using the provided CableTypeChoices -func (t *PatchedWritableCableRequest_Type) MergeCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableCableRequest_Type as a BlankEnum -func (t PatchedWritableCableRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableCableRequest_Type as the provided BlankEnum -func (t *PatchedWritableCableRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableCableRequest_Type, using the provided BlankEnum -func (t *PatchedWritableCableRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableCableRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableCableRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the PatchedWritableConsolePortRequest_Type as a ConsolePortTypeChoices -func (t PatchedWritableConsolePortRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the PatchedWritableConsolePortRequest_Type as the provided ConsolePortTypeChoices -func (t *PatchedWritableConsolePortRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the PatchedWritableConsolePortRequest_Type, using the provided ConsolePortTypeChoices -func (t *PatchedWritableConsolePortRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableConsolePortRequest_Type as a BlankEnum -func (t PatchedWritableConsolePortRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableConsolePortRequest_Type as the provided BlankEnum -func (t *PatchedWritableConsolePortRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableConsolePortRequest_Type, using the provided BlankEnum -func (t *PatchedWritableConsolePortRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableConsolePortRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableConsolePortRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the PatchedWritableConsolePortTemplateRequest_Type as a ConsolePortTypeChoices -func (t PatchedWritableConsolePortTemplateRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the PatchedWritableConsolePortTemplateRequest_Type as the provided ConsolePortTypeChoices -func (t *PatchedWritableConsolePortTemplateRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the PatchedWritableConsolePortTemplateRequest_Type, using the provided ConsolePortTypeChoices -func (t *PatchedWritableConsolePortTemplateRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableConsolePortTemplateRequest_Type as a BlankEnum -func (t PatchedWritableConsolePortTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableConsolePortTemplateRequest_Type as the provided BlankEnum -func (t *PatchedWritableConsolePortTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableConsolePortTemplateRequest_Type, using the provided BlankEnum -func (t *PatchedWritableConsolePortTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableConsolePortTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableConsolePortTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the PatchedWritableConsoleServerPortRequest_Type as a ConsolePortTypeChoices -func (t PatchedWritableConsoleServerPortRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the PatchedWritableConsoleServerPortRequest_Type as the provided ConsolePortTypeChoices -func (t *PatchedWritableConsoleServerPortRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the PatchedWritableConsoleServerPortRequest_Type, using the provided ConsolePortTypeChoices -func (t *PatchedWritableConsoleServerPortRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableConsoleServerPortRequest_Type as a BlankEnum -func (t PatchedWritableConsoleServerPortRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableConsoleServerPortRequest_Type as the provided BlankEnum -func (t *PatchedWritableConsoleServerPortRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableConsoleServerPortRequest_Type, using the provided BlankEnum -func (t *PatchedWritableConsoleServerPortRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableConsoleServerPortRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableConsoleServerPortRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the PatchedWritableConsoleServerPortTemplateRequest_Type as a ConsolePortTypeChoices -func (t PatchedWritableConsoleServerPortTemplateRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the PatchedWritableConsoleServerPortTemplateRequest_Type as the provided ConsolePortTypeChoices -func (t *PatchedWritableConsoleServerPortTemplateRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the PatchedWritableConsoleServerPortTemplateRequest_Type, using the provided ConsolePortTypeChoices -func (t *PatchedWritableConsoleServerPortTemplateRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableConsoleServerPortTemplateRequest_Type as a BlankEnum -func (t PatchedWritableConsoleServerPortTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableConsoleServerPortTemplateRequest_Type as the provided BlankEnum -func (t *PatchedWritableConsoleServerPortTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableConsoleServerPortTemplateRequest_Type, using the provided BlankEnum -func (t *PatchedWritableConsoleServerPortTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableConsoleServerPortTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableConsoleServerPortTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFailoverStrategyEnum returns the union data inside the PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy as a FailoverStrategyEnum -func (t PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) AsFailoverStrategyEnum() (FailoverStrategyEnum, error) { - var body FailoverStrategyEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFailoverStrategyEnum overwrites any union data inside the PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy as the provided FailoverStrategyEnum -func (t *PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) FromFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFailoverStrategyEnum performs a merge with any union data inside the PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy, using the provided FailoverStrategyEnum -func (t *PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) MergeFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy as a BlankEnum -func (t PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy as the provided BlankEnum -func (t *PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy, using the provided BlankEnum -func (t *PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableDeviceRedundancyGroupRequest_FailoverStrategy) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsSubdeviceRoleEnum returns the union data inside the PatchedWritableDeviceTypeRequest_SubdeviceRole as a SubdeviceRoleEnum -func (t PatchedWritableDeviceTypeRequest_SubdeviceRole) AsSubdeviceRoleEnum() (SubdeviceRoleEnum, error) { - var body SubdeviceRoleEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromSubdeviceRoleEnum overwrites any union data inside the PatchedWritableDeviceTypeRequest_SubdeviceRole as the provided SubdeviceRoleEnum -func (t *PatchedWritableDeviceTypeRequest_SubdeviceRole) FromSubdeviceRoleEnum(v SubdeviceRoleEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeSubdeviceRoleEnum performs a merge with any union data inside the PatchedWritableDeviceTypeRequest_SubdeviceRole, using the provided SubdeviceRoleEnum -func (t *PatchedWritableDeviceTypeRequest_SubdeviceRole) MergeSubdeviceRoleEnum(v SubdeviceRoleEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableDeviceTypeRequest_SubdeviceRole as a BlankEnum -func (t PatchedWritableDeviceTypeRequest_SubdeviceRole) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableDeviceTypeRequest_SubdeviceRole as the provided BlankEnum -func (t *PatchedWritableDeviceTypeRequest_SubdeviceRole) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableDeviceTypeRequest_SubdeviceRole, using the provided BlankEnum -func (t *PatchedWritableDeviceTypeRequest_SubdeviceRole) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableDeviceTypeRequest_SubdeviceRole) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableDeviceTypeRequest_SubdeviceRole) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFaceEnum returns the union data inside the PatchedWritableDeviceWithConfigContextRequest_Face as a FaceEnum -func (t PatchedWritableDeviceWithConfigContextRequest_Face) AsFaceEnum() (FaceEnum, error) { - var body FaceEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFaceEnum overwrites any union data inside the PatchedWritableDeviceWithConfigContextRequest_Face as the provided FaceEnum -func (t *PatchedWritableDeviceWithConfigContextRequest_Face) FromFaceEnum(v FaceEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFaceEnum performs a merge with any union data inside the PatchedWritableDeviceWithConfigContextRequest_Face, using the provided FaceEnum -func (t *PatchedWritableDeviceWithConfigContextRequest_Face) MergeFaceEnum(v FaceEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableDeviceWithConfigContextRequest_Face as a BlankEnum -func (t PatchedWritableDeviceWithConfigContextRequest_Face) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableDeviceWithConfigContextRequest_Face as the provided BlankEnum -func (t *PatchedWritableDeviceWithConfigContextRequest_Face) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableDeviceWithConfigContextRequest_Face, using the provided BlankEnum -func (t *PatchedWritableDeviceWithConfigContextRequest_Face) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableDeviceWithConfigContextRequest_Face) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableDeviceWithConfigContextRequest_Face) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsProvidedContentsEnum returns the union data inside the PatchedWritableGitRepositoryRequest_ProvidedContents_Item as a ProvidedContentsEnum -func (t PatchedWritableGitRepositoryRequest_ProvidedContents_Item) AsProvidedContentsEnum() (ProvidedContentsEnum, error) { - var body ProvidedContentsEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromProvidedContentsEnum overwrites any union data inside the PatchedWritableGitRepositoryRequest_ProvidedContents_Item as the provided ProvidedContentsEnum -func (t *PatchedWritableGitRepositoryRequest_ProvidedContents_Item) FromProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeProvidedContentsEnum performs a merge with any union data inside the PatchedWritableGitRepositoryRequest_ProvidedContents_Item, using the provided ProvidedContentsEnum -func (t *PatchedWritableGitRepositoryRequest_ProvidedContents_Item) MergeProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableGitRepositoryRequest_ProvidedContents_Item as a BlankEnum -func (t PatchedWritableGitRepositoryRequest_ProvidedContents_Item) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableGitRepositoryRequest_ProvidedContents_Item as the provided BlankEnum -func (t *PatchedWritableGitRepositoryRequest_ProvidedContents_Item) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableGitRepositoryRequest_ProvidedContents_Item, using the provided BlankEnum -func (t *PatchedWritableGitRepositoryRequest_ProvidedContents_Item) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableGitRepositoryRequest_ProvidedContents_Item) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableGitRepositoryRequest_ProvidedContents_Item) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRoleEnum returns the union data inside the PatchedWritableIPAddressRequest_Role as a RoleEnum -func (t PatchedWritableIPAddressRequest_Role) AsRoleEnum() (RoleEnum, error) { - var body RoleEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRoleEnum overwrites any union data inside the PatchedWritableIPAddressRequest_Role as the provided RoleEnum -func (t *PatchedWritableIPAddressRequest_Role) FromRoleEnum(v RoleEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRoleEnum performs a merge with any union data inside the PatchedWritableIPAddressRequest_Role, using the provided RoleEnum -func (t *PatchedWritableIPAddressRequest_Role) MergeRoleEnum(v RoleEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableIPAddressRequest_Role as a BlankEnum -func (t PatchedWritableIPAddressRequest_Role) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableIPAddressRequest_Role as the provided BlankEnum -func (t *PatchedWritableIPAddressRequest_Role) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableIPAddressRequest_Role, using the provided BlankEnum -func (t *PatchedWritableIPAddressRequest_Role) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableIPAddressRequest_Role) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableIPAddressRequest_Role) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsModeEnum returns the union data inside the PatchedWritableInterfaceRequest_Mode as a ModeEnum -func (t PatchedWritableInterfaceRequest_Mode) AsModeEnum() (ModeEnum, error) { - var body ModeEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromModeEnum overwrites any union data inside the PatchedWritableInterfaceRequest_Mode as the provided ModeEnum -func (t *PatchedWritableInterfaceRequest_Mode) FromModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeModeEnum performs a merge with any union data inside the PatchedWritableInterfaceRequest_Mode, using the provided ModeEnum -func (t *PatchedWritableInterfaceRequest_Mode) MergeModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableInterfaceRequest_Mode as a BlankEnum -func (t PatchedWritableInterfaceRequest_Mode) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableInterfaceRequest_Mode as the provided BlankEnum -func (t *PatchedWritableInterfaceRequest_Mode) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableInterfaceRequest_Mode, using the provided BlankEnum -func (t *PatchedWritableInterfaceRequest_Mode) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableInterfaceRequest_Mode) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableInterfaceRequest_Mode) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFeedLegEnum returns the union data inside the PatchedWritablePowerOutletRequest_FeedLeg as a FeedLegEnum -func (t PatchedWritablePowerOutletRequest_FeedLeg) AsFeedLegEnum() (FeedLegEnum, error) { - var body FeedLegEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFeedLegEnum overwrites any union data inside the PatchedWritablePowerOutletRequest_FeedLeg as the provided FeedLegEnum -func (t *PatchedWritablePowerOutletRequest_FeedLeg) FromFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFeedLegEnum performs a merge with any union data inside the PatchedWritablePowerOutletRequest_FeedLeg, using the provided FeedLegEnum -func (t *PatchedWritablePowerOutletRequest_FeedLeg) MergeFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritablePowerOutletRequest_FeedLeg as a BlankEnum -func (t PatchedWritablePowerOutletRequest_FeedLeg) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritablePowerOutletRequest_FeedLeg as the provided BlankEnum -func (t *PatchedWritablePowerOutletRequest_FeedLeg) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritablePowerOutletRequest_FeedLeg, using the provided BlankEnum -func (t *PatchedWritablePowerOutletRequest_FeedLeg) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritablePowerOutletRequest_FeedLeg) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritablePowerOutletRequest_FeedLeg) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerOutletTypeChoices returns the union data inside the PatchedWritablePowerOutletRequest_Type as a PowerOutletTypeChoices -func (t PatchedWritablePowerOutletRequest_Type) AsPowerOutletTypeChoices() (PowerOutletTypeChoices, error) { - var body PowerOutletTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerOutletTypeChoices overwrites any union data inside the PatchedWritablePowerOutletRequest_Type as the provided PowerOutletTypeChoices -func (t *PatchedWritablePowerOutletRequest_Type) FromPowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerOutletTypeChoices performs a merge with any union data inside the PatchedWritablePowerOutletRequest_Type, using the provided PowerOutletTypeChoices -func (t *PatchedWritablePowerOutletRequest_Type) MergePowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritablePowerOutletRequest_Type as a BlankEnum -func (t PatchedWritablePowerOutletRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritablePowerOutletRequest_Type as the provided BlankEnum -func (t *PatchedWritablePowerOutletRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritablePowerOutletRequest_Type, using the provided BlankEnum -func (t *PatchedWritablePowerOutletRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritablePowerOutletRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritablePowerOutletRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFeedLegEnum returns the union data inside the PatchedWritablePowerOutletTemplateRequest_FeedLeg as a FeedLegEnum -func (t PatchedWritablePowerOutletTemplateRequest_FeedLeg) AsFeedLegEnum() (FeedLegEnum, error) { - var body FeedLegEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFeedLegEnum overwrites any union data inside the PatchedWritablePowerOutletTemplateRequest_FeedLeg as the provided FeedLegEnum -func (t *PatchedWritablePowerOutletTemplateRequest_FeedLeg) FromFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFeedLegEnum performs a merge with any union data inside the PatchedWritablePowerOutletTemplateRequest_FeedLeg, using the provided FeedLegEnum -func (t *PatchedWritablePowerOutletTemplateRequest_FeedLeg) MergeFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritablePowerOutletTemplateRequest_FeedLeg as a BlankEnum -func (t PatchedWritablePowerOutletTemplateRequest_FeedLeg) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritablePowerOutletTemplateRequest_FeedLeg as the provided BlankEnum -func (t *PatchedWritablePowerOutletTemplateRequest_FeedLeg) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritablePowerOutletTemplateRequest_FeedLeg, using the provided BlankEnum -func (t *PatchedWritablePowerOutletTemplateRequest_FeedLeg) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritablePowerOutletTemplateRequest_FeedLeg) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritablePowerOutletTemplateRequest_FeedLeg) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerOutletTypeChoices returns the union data inside the PatchedWritablePowerOutletTemplateRequest_Type as a PowerOutletTypeChoices -func (t PatchedWritablePowerOutletTemplateRequest_Type) AsPowerOutletTypeChoices() (PowerOutletTypeChoices, error) { - var body PowerOutletTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerOutletTypeChoices overwrites any union data inside the PatchedWritablePowerOutletTemplateRequest_Type as the provided PowerOutletTypeChoices -func (t *PatchedWritablePowerOutletTemplateRequest_Type) FromPowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerOutletTypeChoices performs a merge with any union data inside the PatchedWritablePowerOutletTemplateRequest_Type, using the provided PowerOutletTypeChoices -func (t *PatchedWritablePowerOutletTemplateRequest_Type) MergePowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritablePowerOutletTemplateRequest_Type as a BlankEnum -func (t PatchedWritablePowerOutletTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritablePowerOutletTemplateRequest_Type as the provided BlankEnum -func (t *PatchedWritablePowerOutletTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritablePowerOutletTemplateRequest_Type, using the provided BlankEnum -func (t *PatchedWritablePowerOutletTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritablePowerOutletTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritablePowerOutletTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerPortTypeChoices returns the union data inside the PatchedWritablePowerPortRequest_Type as a PowerPortTypeChoices -func (t PatchedWritablePowerPortRequest_Type) AsPowerPortTypeChoices() (PowerPortTypeChoices, error) { - var body PowerPortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerPortTypeChoices overwrites any union data inside the PatchedWritablePowerPortRequest_Type as the provided PowerPortTypeChoices -func (t *PatchedWritablePowerPortRequest_Type) FromPowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerPortTypeChoices performs a merge with any union data inside the PatchedWritablePowerPortRequest_Type, using the provided PowerPortTypeChoices -func (t *PatchedWritablePowerPortRequest_Type) MergePowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritablePowerPortRequest_Type as a BlankEnum -func (t PatchedWritablePowerPortRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritablePowerPortRequest_Type as the provided BlankEnum -func (t *PatchedWritablePowerPortRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritablePowerPortRequest_Type, using the provided BlankEnum -func (t *PatchedWritablePowerPortRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritablePowerPortRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritablePowerPortRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerPortTypeChoices returns the union data inside the PatchedWritablePowerPortTemplateRequest_Type as a PowerPortTypeChoices -func (t PatchedWritablePowerPortTemplateRequest_Type) AsPowerPortTypeChoices() (PowerPortTypeChoices, error) { - var body PowerPortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerPortTypeChoices overwrites any union data inside the PatchedWritablePowerPortTemplateRequest_Type as the provided PowerPortTypeChoices -func (t *PatchedWritablePowerPortTemplateRequest_Type) FromPowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerPortTypeChoices performs a merge with any union data inside the PatchedWritablePowerPortTemplateRequest_Type, using the provided PowerPortTypeChoices -func (t *PatchedWritablePowerPortTemplateRequest_Type) MergePowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritablePowerPortTemplateRequest_Type as a BlankEnum -func (t PatchedWritablePowerPortTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritablePowerPortTemplateRequest_Type as the provided BlankEnum -func (t *PatchedWritablePowerPortTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritablePowerPortTemplateRequest_Type, using the provided BlankEnum -func (t *PatchedWritablePowerPortTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritablePowerPortTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritablePowerPortTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsOuterUnitEnum returns the union data inside the PatchedWritableRackRequest_OuterUnit as a OuterUnitEnum -func (t PatchedWritableRackRequest_OuterUnit) AsOuterUnitEnum() (OuterUnitEnum, error) { - var body OuterUnitEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromOuterUnitEnum overwrites any union data inside the PatchedWritableRackRequest_OuterUnit as the provided OuterUnitEnum -func (t *PatchedWritableRackRequest_OuterUnit) FromOuterUnitEnum(v OuterUnitEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeOuterUnitEnum performs a merge with any union data inside the PatchedWritableRackRequest_OuterUnit, using the provided OuterUnitEnum -func (t *PatchedWritableRackRequest_OuterUnit) MergeOuterUnitEnum(v OuterUnitEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableRackRequest_OuterUnit as a BlankEnum -func (t PatchedWritableRackRequest_OuterUnit) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableRackRequest_OuterUnit as the provided BlankEnum -func (t *PatchedWritableRackRequest_OuterUnit) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableRackRequest_OuterUnit, using the provided BlankEnum -func (t *PatchedWritableRackRequest_OuterUnit) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableRackRequest_OuterUnit) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableRackRequest_OuterUnit) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRackTypeChoices returns the union data inside the PatchedWritableRackRequest_Type as a RackTypeChoices -func (t PatchedWritableRackRequest_Type) AsRackTypeChoices() (RackTypeChoices, error) { - var body RackTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRackTypeChoices overwrites any union data inside the PatchedWritableRackRequest_Type as the provided RackTypeChoices -func (t *PatchedWritableRackRequest_Type) FromRackTypeChoices(v RackTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRackTypeChoices performs a merge with any union data inside the PatchedWritableRackRequest_Type, using the provided RackTypeChoices -func (t *PatchedWritableRackRequest_Type) MergeRackTypeChoices(v RackTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableRackRequest_Type as a BlankEnum -func (t PatchedWritableRackRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableRackRequest_Type as the provided BlankEnum -func (t *PatchedWritableRackRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableRackRequest_Type, using the provided BlankEnum -func (t *PatchedWritableRackRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableRackRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableRackRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsModeEnum returns the union data inside the PatchedWritableVMInterfaceRequest_Mode as a ModeEnum -func (t PatchedWritableVMInterfaceRequest_Mode) AsModeEnum() (ModeEnum, error) { - var body ModeEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromModeEnum overwrites any union data inside the PatchedWritableVMInterfaceRequest_Mode as the provided ModeEnum -func (t *PatchedWritableVMInterfaceRequest_Mode) FromModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeModeEnum performs a merge with any union data inside the PatchedWritableVMInterfaceRequest_Mode, using the provided ModeEnum -func (t *PatchedWritableVMInterfaceRequest_Mode) MergeModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the PatchedWritableVMInterfaceRequest_Mode as a BlankEnum -func (t PatchedWritableVMInterfaceRequest_Mode) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the PatchedWritableVMInterfaceRequest_Mode as the provided BlankEnum -func (t *PatchedWritableVMInterfaceRequest_Mode) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the PatchedWritableVMInterfaceRequest_Mode, using the provided BlankEnum -func (t *PatchedWritableVMInterfaceRequest_Mode) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t PatchedWritableVMInterfaceRequest_Mode) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *PatchedWritableVMInterfaceRequest_Mode) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRequiredOnEnum returns the union data inside the Relationship_RequiredOn as a RequiredOnEnum -func (t Relationship_RequiredOn) AsRequiredOnEnum() (RequiredOnEnum, error) { - var body RequiredOnEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRequiredOnEnum overwrites any union data inside the Relationship_RequiredOn as the provided RequiredOnEnum -func (t *Relationship_RequiredOn) FromRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRequiredOnEnum performs a merge with any union data inside the Relationship_RequiredOn, using the provided RequiredOnEnum -func (t *Relationship_RequiredOn) MergeRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the Relationship_RequiredOn as a BlankEnum -func (t Relationship_RequiredOn) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the Relationship_RequiredOn as the provided BlankEnum -func (t *Relationship_RequiredOn) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the Relationship_RequiredOn, using the provided BlankEnum -func (t *Relationship_RequiredOn) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t Relationship_RequiredOn) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *Relationship_RequiredOn) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRequiredOnEnum returns the union data inside the RelationshipRequest_RequiredOn as a RequiredOnEnum -func (t RelationshipRequest_RequiredOn) AsRequiredOnEnum() (RequiredOnEnum, error) { - var body RequiredOnEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRequiredOnEnum overwrites any union data inside the RelationshipRequest_RequiredOn as the provided RequiredOnEnum -func (t *RelationshipRequest_RequiredOn) FromRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRequiredOnEnum performs a merge with any union data inside the RelationshipRequest_RequiredOn, using the provided RequiredOnEnum -func (t *RelationshipRequest_RequiredOn) MergeRequiredOnEnum(v RequiredOnEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the RelationshipRequest_RequiredOn as a BlankEnum -func (t RelationshipRequest_RequiredOn) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the RelationshipRequest_RequiredOn as the provided BlankEnum -func (t *RelationshipRequest_RequiredOn) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the RelationshipRequest_RequiredOn, using the provided BlankEnum -func (t *RelationshipRequest_RequiredOn) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t RelationshipRequest_RequiredOn) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *RelationshipRequest_RequiredOn) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsLengthUnitEnum returns the union data inside the WritableCableRequest_LengthUnit as a LengthUnitEnum -func (t WritableCableRequest_LengthUnit) AsLengthUnitEnum() (LengthUnitEnum, error) { - var body LengthUnitEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromLengthUnitEnum overwrites any union data inside the WritableCableRequest_LengthUnit as the provided LengthUnitEnum -func (t *WritableCableRequest_LengthUnit) FromLengthUnitEnum(v LengthUnitEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeLengthUnitEnum performs a merge with any union data inside the WritableCableRequest_LengthUnit, using the provided LengthUnitEnum -func (t *WritableCableRequest_LengthUnit) MergeLengthUnitEnum(v LengthUnitEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableCableRequest_LengthUnit as a BlankEnum -func (t WritableCableRequest_LengthUnit) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableCableRequest_LengthUnit as the provided BlankEnum -func (t *WritableCableRequest_LengthUnit) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableCableRequest_LengthUnit, using the provided BlankEnum -func (t *WritableCableRequest_LengthUnit) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableCableRequest_LengthUnit) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableCableRequest_LengthUnit) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsCableTypeChoices returns the union data inside the WritableCableRequest_Type as a CableTypeChoices -func (t WritableCableRequest_Type) AsCableTypeChoices() (CableTypeChoices, error) { - var body CableTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromCableTypeChoices overwrites any union data inside the WritableCableRequest_Type as the provided CableTypeChoices -func (t *WritableCableRequest_Type) FromCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeCableTypeChoices performs a merge with any union data inside the WritableCableRequest_Type, using the provided CableTypeChoices -func (t *WritableCableRequest_Type) MergeCableTypeChoices(v CableTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableCableRequest_Type as a BlankEnum -func (t WritableCableRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableCableRequest_Type as the provided BlankEnum -func (t *WritableCableRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableCableRequest_Type, using the provided BlankEnum -func (t *WritableCableRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableCableRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableCableRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the WritableConsolePortRequest_Type as a ConsolePortTypeChoices -func (t WritableConsolePortRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the WritableConsolePortRequest_Type as the provided ConsolePortTypeChoices -func (t *WritableConsolePortRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the WritableConsolePortRequest_Type, using the provided ConsolePortTypeChoices -func (t *WritableConsolePortRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableConsolePortRequest_Type as a BlankEnum -func (t WritableConsolePortRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableConsolePortRequest_Type as the provided BlankEnum -func (t *WritableConsolePortRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableConsolePortRequest_Type, using the provided BlankEnum -func (t *WritableConsolePortRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableConsolePortRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableConsolePortRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the WritableConsolePortTemplateRequest_Type as a ConsolePortTypeChoices -func (t WritableConsolePortTemplateRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the WritableConsolePortTemplateRequest_Type as the provided ConsolePortTypeChoices -func (t *WritableConsolePortTemplateRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the WritableConsolePortTemplateRequest_Type, using the provided ConsolePortTypeChoices -func (t *WritableConsolePortTemplateRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableConsolePortTemplateRequest_Type as a BlankEnum -func (t WritableConsolePortTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableConsolePortTemplateRequest_Type as the provided BlankEnum -func (t *WritableConsolePortTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableConsolePortTemplateRequest_Type, using the provided BlankEnum -func (t *WritableConsolePortTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableConsolePortTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableConsolePortTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the WritableConsoleServerPortRequest_Type as a ConsolePortTypeChoices -func (t WritableConsoleServerPortRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the WritableConsoleServerPortRequest_Type as the provided ConsolePortTypeChoices -func (t *WritableConsoleServerPortRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the WritableConsoleServerPortRequest_Type, using the provided ConsolePortTypeChoices -func (t *WritableConsoleServerPortRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableConsoleServerPortRequest_Type as a BlankEnum -func (t WritableConsoleServerPortRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableConsoleServerPortRequest_Type as the provided BlankEnum -func (t *WritableConsoleServerPortRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableConsoleServerPortRequest_Type, using the provided BlankEnum -func (t *WritableConsoleServerPortRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableConsoleServerPortRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableConsoleServerPortRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsConsolePortTypeChoices returns the union data inside the WritableConsoleServerPortTemplateRequest_Type as a ConsolePortTypeChoices -func (t WritableConsoleServerPortTemplateRequest_Type) AsConsolePortTypeChoices() (ConsolePortTypeChoices, error) { - var body ConsolePortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromConsolePortTypeChoices overwrites any union data inside the WritableConsoleServerPortTemplateRequest_Type as the provided ConsolePortTypeChoices -func (t *WritableConsoleServerPortTemplateRequest_Type) FromConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeConsolePortTypeChoices performs a merge with any union data inside the WritableConsoleServerPortTemplateRequest_Type, using the provided ConsolePortTypeChoices -func (t *WritableConsoleServerPortTemplateRequest_Type) MergeConsolePortTypeChoices(v ConsolePortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableConsoleServerPortTemplateRequest_Type as a BlankEnum -func (t WritableConsoleServerPortTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableConsoleServerPortTemplateRequest_Type as the provided BlankEnum -func (t *WritableConsoleServerPortTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableConsoleServerPortTemplateRequest_Type, using the provided BlankEnum -func (t *WritableConsoleServerPortTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableConsoleServerPortTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableConsoleServerPortTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFailoverStrategyEnum returns the union data inside the WritableDeviceRedundancyGroupRequest_FailoverStrategy as a FailoverStrategyEnum -func (t WritableDeviceRedundancyGroupRequest_FailoverStrategy) AsFailoverStrategyEnum() (FailoverStrategyEnum, error) { - var body FailoverStrategyEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFailoverStrategyEnum overwrites any union data inside the WritableDeviceRedundancyGroupRequest_FailoverStrategy as the provided FailoverStrategyEnum -func (t *WritableDeviceRedundancyGroupRequest_FailoverStrategy) FromFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFailoverStrategyEnum performs a merge with any union data inside the WritableDeviceRedundancyGroupRequest_FailoverStrategy, using the provided FailoverStrategyEnum -func (t *WritableDeviceRedundancyGroupRequest_FailoverStrategy) MergeFailoverStrategyEnum(v FailoverStrategyEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableDeviceRedundancyGroupRequest_FailoverStrategy as a BlankEnum -func (t WritableDeviceRedundancyGroupRequest_FailoverStrategy) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableDeviceRedundancyGroupRequest_FailoverStrategy as the provided BlankEnum -func (t *WritableDeviceRedundancyGroupRequest_FailoverStrategy) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableDeviceRedundancyGroupRequest_FailoverStrategy, using the provided BlankEnum -func (t *WritableDeviceRedundancyGroupRequest_FailoverStrategy) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableDeviceRedundancyGroupRequest_FailoverStrategy) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableDeviceRedundancyGroupRequest_FailoverStrategy) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsSubdeviceRoleEnum returns the union data inside the WritableDeviceTypeRequest_SubdeviceRole as a SubdeviceRoleEnum -func (t WritableDeviceTypeRequest_SubdeviceRole) AsSubdeviceRoleEnum() (SubdeviceRoleEnum, error) { - var body SubdeviceRoleEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromSubdeviceRoleEnum overwrites any union data inside the WritableDeviceTypeRequest_SubdeviceRole as the provided SubdeviceRoleEnum -func (t *WritableDeviceTypeRequest_SubdeviceRole) FromSubdeviceRoleEnum(v SubdeviceRoleEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeSubdeviceRoleEnum performs a merge with any union data inside the WritableDeviceTypeRequest_SubdeviceRole, using the provided SubdeviceRoleEnum -func (t *WritableDeviceTypeRequest_SubdeviceRole) MergeSubdeviceRoleEnum(v SubdeviceRoleEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableDeviceTypeRequest_SubdeviceRole as a BlankEnum -func (t WritableDeviceTypeRequest_SubdeviceRole) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableDeviceTypeRequest_SubdeviceRole as the provided BlankEnum -func (t *WritableDeviceTypeRequest_SubdeviceRole) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableDeviceTypeRequest_SubdeviceRole, using the provided BlankEnum -func (t *WritableDeviceTypeRequest_SubdeviceRole) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableDeviceTypeRequest_SubdeviceRole) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableDeviceTypeRequest_SubdeviceRole) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFaceEnum returns the union data inside the WritableDeviceWithConfigContextRequest_Face as a FaceEnum -func (t WritableDeviceWithConfigContextRequest_Face) AsFaceEnum() (FaceEnum, error) { - var body FaceEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFaceEnum overwrites any union data inside the WritableDeviceWithConfigContextRequest_Face as the provided FaceEnum -func (t *WritableDeviceWithConfigContextRequest_Face) FromFaceEnum(v FaceEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFaceEnum performs a merge with any union data inside the WritableDeviceWithConfigContextRequest_Face, using the provided FaceEnum -func (t *WritableDeviceWithConfigContextRequest_Face) MergeFaceEnum(v FaceEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableDeviceWithConfigContextRequest_Face as a BlankEnum -func (t WritableDeviceWithConfigContextRequest_Face) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableDeviceWithConfigContextRequest_Face as the provided BlankEnum -func (t *WritableDeviceWithConfigContextRequest_Face) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableDeviceWithConfigContextRequest_Face, using the provided BlankEnum -func (t *WritableDeviceWithConfigContextRequest_Face) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableDeviceWithConfigContextRequest_Face) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableDeviceWithConfigContextRequest_Face) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsProvidedContentsEnum returns the union data inside the WritableGitRepositoryRequest_ProvidedContents_Item as a ProvidedContentsEnum -func (t WritableGitRepositoryRequest_ProvidedContents_Item) AsProvidedContentsEnum() (ProvidedContentsEnum, error) { - var body ProvidedContentsEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromProvidedContentsEnum overwrites any union data inside the WritableGitRepositoryRequest_ProvidedContents_Item as the provided ProvidedContentsEnum -func (t *WritableGitRepositoryRequest_ProvidedContents_Item) FromProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeProvidedContentsEnum performs a merge with any union data inside the WritableGitRepositoryRequest_ProvidedContents_Item, using the provided ProvidedContentsEnum -func (t *WritableGitRepositoryRequest_ProvidedContents_Item) MergeProvidedContentsEnum(v ProvidedContentsEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableGitRepositoryRequest_ProvidedContents_Item as a BlankEnum -func (t WritableGitRepositoryRequest_ProvidedContents_Item) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableGitRepositoryRequest_ProvidedContents_Item as the provided BlankEnum -func (t *WritableGitRepositoryRequest_ProvidedContents_Item) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableGitRepositoryRequest_ProvidedContents_Item, using the provided BlankEnum -func (t *WritableGitRepositoryRequest_ProvidedContents_Item) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableGitRepositoryRequest_ProvidedContents_Item) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableGitRepositoryRequest_ProvidedContents_Item) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRoleEnum returns the union data inside the WritableIPAddressRequest_Role as a RoleEnum -func (t WritableIPAddressRequest_Role) AsRoleEnum() (RoleEnum, error) { - var body RoleEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRoleEnum overwrites any union data inside the WritableIPAddressRequest_Role as the provided RoleEnum -func (t *WritableIPAddressRequest_Role) FromRoleEnum(v RoleEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRoleEnum performs a merge with any union data inside the WritableIPAddressRequest_Role, using the provided RoleEnum -func (t *WritableIPAddressRequest_Role) MergeRoleEnum(v RoleEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableIPAddressRequest_Role as a BlankEnum -func (t WritableIPAddressRequest_Role) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableIPAddressRequest_Role as the provided BlankEnum -func (t *WritableIPAddressRequest_Role) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableIPAddressRequest_Role, using the provided BlankEnum -func (t *WritableIPAddressRequest_Role) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableIPAddressRequest_Role) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableIPAddressRequest_Role) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsModeEnum returns the union data inside the WritableInterfaceRequest_Mode as a ModeEnum -func (t WritableInterfaceRequest_Mode) AsModeEnum() (ModeEnum, error) { - var body ModeEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromModeEnum overwrites any union data inside the WritableInterfaceRequest_Mode as the provided ModeEnum -func (t *WritableInterfaceRequest_Mode) FromModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeModeEnum performs a merge with any union data inside the WritableInterfaceRequest_Mode, using the provided ModeEnum -func (t *WritableInterfaceRequest_Mode) MergeModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableInterfaceRequest_Mode as a BlankEnum -func (t WritableInterfaceRequest_Mode) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableInterfaceRequest_Mode as the provided BlankEnum -func (t *WritableInterfaceRequest_Mode) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableInterfaceRequest_Mode, using the provided BlankEnum -func (t *WritableInterfaceRequest_Mode) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableInterfaceRequest_Mode) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableInterfaceRequest_Mode) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFeedLegEnum returns the union data inside the WritablePowerOutletRequest_FeedLeg as a FeedLegEnum -func (t WritablePowerOutletRequest_FeedLeg) AsFeedLegEnum() (FeedLegEnum, error) { - var body FeedLegEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFeedLegEnum overwrites any union data inside the WritablePowerOutletRequest_FeedLeg as the provided FeedLegEnum -func (t *WritablePowerOutletRequest_FeedLeg) FromFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFeedLegEnum performs a merge with any union data inside the WritablePowerOutletRequest_FeedLeg, using the provided FeedLegEnum -func (t *WritablePowerOutletRequest_FeedLeg) MergeFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritablePowerOutletRequest_FeedLeg as a BlankEnum -func (t WritablePowerOutletRequest_FeedLeg) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritablePowerOutletRequest_FeedLeg as the provided BlankEnum -func (t *WritablePowerOutletRequest_FeedLeg) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritablePowerOutletRequest_FeedLeg, using the provided BlankEnum -func (t *WritablePowerOutletRequest_FeedLeg) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritablePowerOutletRequest_FeedLeg) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritablePowerOutletRequest_FeedLeg) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerOutletTypeChoices returns the union data inside the WritablePowerOutletRequest_Type as a PowerOutletTypeChoices -func (t WritablePowerOutletRequest_Type) AsPowerOutletTypeChoices() (PowerOutletTypeChoices, error) { - var body PowerOutletTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerOutletTypeChoices overwrites any union data inside the WritablePowerOutletRequest_Type as the provided PowerOutletTypeChoices -func (t *WritablePowerOutletRequest_Type) FromPowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerOutletTypeChoices performs a merge with any union data inside the WritablePowerOutletRequest_Type, using the provided PowerOutletTypeChoices -func (t *WritablePowerOutletRequest_Type) MergePowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritablePowerOutletRequest_Type as a BlankEnum -func (t WritablePowerOutletRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritablePowerOutletRequest_Type as the provided BlankEnum -func (t *WritablePowerOutletRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritablePowerOutletRequest_Type, using the provided BlankEnum -func (t *WritablePowerOutletRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritablePowerOutletRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritablePowerOutletRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsFeedLegEnum returns the union data inside the WritablePowerOutletTemplateRequest_FeedLeg as a FeedLegEnum -func (t WritablePowerOutletTemplateRequest_FeedLeg) AsFeedLegEnum() (FeedLegEnum, error) { - var body FeedLegEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromFeedLegEnum overwrites any union data inside the WritablePowerOutletTemplateRequest_FeedLeg as the provided FeedLegEnum -func (t *WritablePowerOutletTemplateRequest_FeedLeg) FromFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeFeedLegEnum performs a merge with any union data inside the WritablePowerOutletTemplateRequest_FeedLeg, using the provided FeedLegEnum -func (t *WritablePowerOutletTemplateRequest_FeedLeg) MergeFeedLegEnum(v FeedLegEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritablePowerOutletTemplateRequest_FeedLeg as a BlankEnum -func (t WritablePowerOutletTemplateRequest_FeedLeg) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritablePowerOutletTemplateRequest_FeedLeg as the provided BlankEnum -func (t *WritablePowerOutletTemplateRequest_FeedLeg) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritablePowerOutletTemplateRequest_FeedLeg, using the provided BlankEnum -func (t *WritablePowerOutletTemplateRequest_FeedLeg) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritablePowerOutletTemplateRequest_FeedLeg) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritablePowerOutletTemplateRequest_FeedLeg) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerOutletTypeChoices returns the union data inside the WritablePowerOutletTemplateRequest_Type as a PowerOutletTypeChoices -func (t WritablePowerOutletTemplateRequest_Type) AsPowerOutletTypeChoices() (PowerOutletTypeChoices, error) { - var body PowerOutletTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerOutletTypeChoices overwrites any union data inside the WritablePowerOutletTemplateRequest_Type as the provided PowerOutletTypeChoices -func (t *WritablePowerOutletTemplateRequest_Type) FromPowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerOutletTypeChoices performs a merge with any union data inside the WritablePowerOutletTemplateRequest_Type, using the provided PowerOutletTypeChoices -func (t *WritablePowerOutletTemplateRequest_Type) MergePowerOutletTypeChoices(v PowerOutletTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritablePowerOutletTemplateRequest_Type as a BlankEnum -func (t WritablePowerOutletTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritablePowerOutletTemplateRequest_Type as the provided BlankEnum -func (t *WritablePowerOutletTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritablePowerOutletTemplateRequest_Type, using the provided BlankEnum -func (t *WritablePowerOutletTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritablePowerOutletTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritablePowerOutletTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerPortTypeChoices returns the union data inside the WritablePowerPortRequest_Type as a PowerPortTypeChoices -func (t WritablePowerPortRequest_Type) AsPowerPortTypeChoices() (PowerPortTypeChoices, error) { - var body PowerPortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerPortTypeChoices overwrites any union data inside the WritablePowerPortRequest_Type as the provided PowerPortTypeChoices -func (t *WritablePowerPortRequest_Type) FromPowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerPortTypeChoices performs a merge with any union data inside the WritablePowerPortRequest_Type, using the provided PowerPortTypeChoices -func (t *WritablePowerPortRequest_Type) MergePowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritablePowerPortRequest_Type as a BlankEnum -func (t WritablePowerPortRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritablePowerPortRequest_Type as the provided BlankEnum -func (t *WritablePowerPortRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritablePowerPortRequest_Type, using the provided BlankEnum -func (t *WritablePowerPortRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritablePowerPortRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritablePowerPortRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsPowerPortTypeChoices returns the union data inside the WritablePowerPortTemplateRequest_Type as a PowerPortTypeChoices -func (t WritablePowerPortTemplateRequest_Type) AsPowerPortTypeChoices() (PowerPortTypeChoices, error) { - var body PowerPortTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromPowerPortTypeChoices overwrites any union data inside the WritablePowerPortTemplateRequest_Type as the provided PowerPortTypeChoices -func (t *WritablePowerPortTemplateRequest_Type) FromPowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergePowerPortTypeChoices performs a merge with any union data inside the WritablePowerPortTemplateRequest_Type, using the provided PowerPortTypeChoices -func (t *WritablePowerPortTemplateRequest_Type) MergePowerPortTypeChoices(v PowerPortTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritablePowerPortTemplateRequest_Type as a BlankEnum -func (t WritablePowerPortTemplateRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritablePowerPortTemplateRequest_Type as the provided BlankEnum -func (t *WritablePowerPortTemplateRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritablePowerPortTemplateRequest_Type, using the provided BlankEnum -func (t *WritablePowerPortTemplateRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritablePowerPortTemplateRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritablePowerPortTemplateRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsOuterUnitEnum returns the union data inside the WritableRackRequest_OuterUnit as a OuterUnitEnum -func (t WritableRackRequest_OuterUnit) AsOuterUnitEnum() (OuterUnitEnum, error) { - var body OuterUnitEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromOuterUnitEnum overwrites any union data inside the WritableRackRequest_OuterUnit as the provided OuterUnitEnum -func (t *WritableRackRequest_OuterUnit) FromOuterUnitEnum(v OuterUnitEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeOuterUnitEnum performs a merge with any union data inside the WritableRackRequest_OuterUnit, using the provided OuterUnitEnum -func (t *WritableRackRequest_OuterUnit) MergeOuterUnitEnum(v OuterUnitEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableRackRequest_OuterUnit as a BlankEnum -func (t WritableRackRequest_OuterUnit) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableRackRequest_OuterUnit as the provided BlankEnum -func (t *WritableRackRequest_OuterUnit) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableRackRequest_OuterUnit, using the provided BlankEnum -func (t *WritableRackRequest_OuterUnit) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableRackRequest_OuterUnit) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableRackRequest_OuterUnit) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsRackTypeChoices returns the union data inside the WritableRackRequest_Type as a RackTypeChoices -func (t WritableRackRequest_Type) AsRackTypeChoices() (RackTypeChoices, error) { - var body RackTypeChoices - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromRackTypeChoices overwrites any union data inside the WritableRackRequest_Type as the provided RackTypeChoices -func (t *WritableRackRequest_Type) FromRackTypeChoices(v RackTypeChoices) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeRackTypeChoices performs a merge with any union data inside the WritableRackRequest_Type, using the provided RackTypeChoices -func (t *WritableRackRequest_Type) MergeRackTypeChoices(v RackTypeChoices) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableRackRequest_Type as a BlankEnum -func (t WritableRackRequest_Type) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableRackRequest_Type as the provided BlankEnum -func (t *WritableRackRequest_Type) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableRackRequest_Type, using the provided BlankEnum -func (t *WritableRackRequest_Type) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableRackRequest_Type) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableRackRequest_Type) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsModeEnum returns the union data inside the WritableVMInterfaceRequest_Mode as a ModeEnum -func (t WritableVMInterfaceRequest_Mode) AsModeEnum() (ModeEnum, error) { - var body ModeEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromModeEnum overwrites any union data inside the WritableVMInterfaceRequest_Mode as the provided ModeEnum -func (t *WritableVMInterfaceRequest_Mode) FromModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeModeEnum performs a merge with any union data inside the WritableVMInterfaceRequest_Mode, using the provided ModeEnum -func (t *WritableVMInterfaceRequest_Mode) MergeModeEnum(v ModeEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -// AsBlankEnum returns the union data inside the WritableVMInterfaceRequest_Mode as a BlankEnum -func (t WritableVMInterfaceRequest_Mode) AsBlankEnum() (BlankEnum, error) { - var body BlankEnum - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromBlankEnum overwrites any union data inside the WritableVMInterfaceRequest_Mode as the provided BlankEnum -func (t *WritableVMInterfaceRequest_Mode) FromBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeBlankEnum performs a merge with any union data inside the WritableVMInterfaceRequest_Mode, using the provided BlankEnum -func (t *WritableVMInterfaceRequest_Mode) MergeBlankEnum(v BlankEnum) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JsonMerge(b, t.union) - t.union = merged - return err -} - -func (t WritableVMInterfaceRequest_Mode) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *WritableVMInterfaceRequest_Mode) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} diff --git a/go.mod b/go.mod index dd32858..c13be5b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/nleiva/terraform-provider-nautobot +module github.com/nautobot/terraform-provider-nautobot go 1.20 @@ -8,7 +8,7 @@ require ( github.com/hashicorp/terraform-plugin-docs v0.13.0 github.com/hashicorp/terraform-plugin-log v0.8.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 - github.com/nautobot/go-nautobot v0.0.0-00010101000000-000000000000 + github.com/nautobot/go-nautobot v1.5.8-beta github.com/tidwall/gjson v1.14.4 ) @@ -74,5 +74,3 @@ require ( google.golang.org/grpc v1.54.0 // indirect google.golang.org/protobuf v1.30.0 // indirect ) - -replace github.com/nautobot/go-nautobot => ./client diff --git a/go.sum b/go.sum index 032bfb9..bade87c 100644 --- a/go.sum +++ b/go.sum @@ -317,6 +317,8 @@ github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/nautobot/go-nautobot v1.5.8-beta h1:bBLMfg1GA4ms2tRTFLcWz5Lhz+r1KTCGL+ohBPy6u6c= +github.com/nautobot/go-nautobot v1.5.8-beta/go.mod h1:XeWVogQH4iHksB8xkL6x2r3FCAZglKtqRZatt3yJPGk= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce h1:RPclfga2SEJmgMmz2k+Mg7cowZ8yv4Trqw9UsJby758= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs= diff --git a/internal/provider/data_source_manufacturers.go b/internal/provider/data_source_manufacturers.go index f03ab04..cd0e9a1 100644 --- a/internal/provider/data_source_manufacturers.go +++ b/internal/provider/data_source_manufacturers.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/tidwall/gjson" - nb "github.com/nautobot/go-nautobot" + nb "github.com/nautobot/go-nautobot/pkg/nautobot" ) func dataSourceManufacturers() *schema.Resource { diff --git a/internal/provider/patch.go b/internal/provider/patch.go index 39e2408..4225732 100644 --- a/internal/provider/patch.go +++ b/internal/provider/patch.go @@ -7,7 +7,7 @@ import ( "time" "github.com/deepmap/oapi-codegen/pkg/types" - nb "github.com/nautobot/go-nautobot" + nb "github.com/nautobot/go-nautobot/pkg/nautobot" ) func NewSecurityProviderNautobotToken(t string) (*SecurityProviderNautobotToken, error) { diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 8b98712..4d6605c 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - nb "github.com/nautobot/go-nautobot" + nb "github.com/nautobot/go-nautobot/pkg/nautobot" ) func init() { diff --git a/internal/provider/resource_manufacturer.go b/internal/provider/resource_manufacturer.go index 46c194c..378443e 100644 --- a/internal/provider/resource_manufacturer.go +++ b/internal/provider/resource_manufacturer.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/tidwall/gjson" - nb "github.com/nautobot/go-nautobot" + nb "github.com/nautobot/go-nautobot/pkg/nautobot" ) func resourceManufacturer() *schema.Resource { diff --git a/main.go b/main.go index 40f5185..0334111 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "flag" "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" - "github.com/nleiva/terraform-provider-nautobot/internal/provider" + "github.com/nautobot/terraform-provider-nautobot/internal/provider" ) // Run "go generate" to format example terraform files and generate the docs for the registry/website @@ -36,7 +36,7 @@ func main() { Debug: debugMode, // TODO: update this string with the full name of your provider as used in your configs - ProviderAddr: "registry.terraform.io/nleiva/nautobot", + ProviderAddr: "registry.terraform.io/nautobot/nautobot", ProviderFunc: provider.New(version), } diff --git a/test/main.tf b/test/main.tf index 0e855b4..9716e1c 100644 --- a/test/main.tf +++ b/test/main.tf @@ -1,18 +1,18 @@ terraform { required_providers { nautobot = { - version = "0.3.3" - source = "github.com/nleiva/nautobot" + version = "0.0.1-beta" + source = "github.com/nautobot/nautobot" } } } provider "nautobot" { - url = "https://demo.nautobot.com/api/" + url = "https://demo.nautobot.com/api/" token = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } resource "nautobot_manufacturer" "new" { description = "Created with Terraform" - name = "New Vendor" -} \ No newline at end of file + name = "New Vendor" +}